63015a54cfc6aa8139f8f54f3e51d9a5dd149e85
[gnulib.git] / ChangeLog
1 2012-11-29  Paul Eggert  <eggert@cs.ucla.edu>
2
3         fflush, stat: no 'static inline'
4         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
5         (clear_ungetc_buffer, disable_seek_optimization)
6         (restore_seek_optimization, update_fpos_cache):
7         * lib/stat.c (orig_stat):
8         Now static, not static inline.
9         * lib/fflush.c (disable_seek_optimization, restore_seek_optimization)
10         (update_fpos_cache):
11         Define only if ! (defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1).
12         * m4/fflush.m4 (gl_PREREQ_FFLUSH):
13         * m4/stat.m4 (gl_PREREQ_STAT):
14         Do not require AC_C_INLINE.
15
16         error, filevercmp: no 'static inline'
17         * lib/error.c (is_open, flush_stdout):
18         * lib/filevercmp.c (order):
19         Now static, not static inline.
20         * m4/error.m4 (gl_PREREQ_ERROR):
21         * modules/filevercmp (configure.ac):
22         Do not require AC_C_INLINE.
23
24         dup, execute, fatal-signal, etc.: no 'static inline'
25         * lib/dup.c (dup_nothrow):
26         * lib/execute.c (nonintr_close, nonintr_open):
27         * lib/fatal-signal.c (uninstall_handlers, install_handlers):
28         * lib/fopen.c (orig_fopen):
29         * lib/freadseek.c (freadptrinc):
30         * lib/freopen.c (orig_freopen):
31         * lib/fstat.c (orig_fstat, fstat_nothrow):
32         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit)
33         (get_rusage_as_via_iterator):
34         * lib/get-rusage-data.c (get_rusage_data_via_setrlimit):
35         * lib/getdtablesize.c (_setmaxstdio_nothrow):
36         * lib/isatty.c (_isatty_nothrow):
37         * lib/open.c (orig_open):
38         * lib/read.c (read_nothrow):
39         * lib/sigprocmask.c (signal_nothrow):
40         * lib/spawn-pipe.c (nonintr_close, nonintr_open):
41         * lib/vasnprintf.c (MAX_ROOM_NEEDED):
42         * lib/wait-process.c (unregister_slave_subprocess):
43         * lib/write.c (write_nothrow):
44         Now static, not static inline.
45         * lib/spawn-pipe.c (nonintr_open): Define only if
46         (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__.
47         * m4/dup.m4 (gl_PREREQ_DUP):
48         * m4/execute.m4 (gl_EXECUTE):
49         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL):
50         * m4/fopen.m4 (gl_PREREQ_FOPEN):
51         * m4/freadseek.m4 (gl_FUNC_FREADSEEK):
52         * m4/freopen.m4 (gl_PREREQ_FREOPEN):
53         * m4/fstat.m4 (gl_PREREQ_FSTAT):
54         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE):
55         * m4/isatty.m4 (gl_PREREQ_ISATTY):
56         * m4/open.m4 (gl_PREREQ_OPEN):
57         * m4/read.m4 (gl_PREREQ_READ):
58         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK):
59         * m4/spawn-pipe.m4 (gl_SPAWN_PIPE):
60         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF):
61         * m4/wait-process.m4 (gl_WAIT_PROCESS):
62         * m4/write.m4 (gl_PREREQ_WRITE):
63         * modules/get-rusage-as, modules/get-rusage-data (configure.ac):
64         Do not require AC_C_INLINE.
65
66         c-strtod, memcoll, readutmp: no 'static inline'
67         * lib/c-strtod.c (c_locale):
68         * lib/memcoll.c (strcoll_loop):
69         * lib/readutmp.c (desirable_utmp_entry):
70         Now static, not static inline.
71         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD):
72         * m4/memcoll.m4 (gl_MEMCOLL):
73         * m4/readutmp.m4 (gl_READUTMP):
74         Do not require AC_C_INLINE.
75
76         arctwo, md4, md5, sha1, sha256, sha512: no 'static inline'
77         * lib/arctwo.c (to_uchar):
78         * lib/md4.c (set_uint32):
79         * lib/md5.c (set_uint32):
80         * lib/sha1.c (set_uint32):
81         * lib/sha256.c (set_uint32):
82         * lib/sha512.c (set_uint64):
83         Now static, not static inline.  This is a bit simpler, and doesn't
84         affect performance with GCC and default optimization.
85         * m4/arctwo.m4 (gl_ARCTWO):
86         * m4/md4.m4 (gl_MD4):
87         * m4/md5.m4 (gl_MD5):
88         * m4/sha1.m4 (gl_SHA1):
89         * m4/sha256.m4 (gl_SHA256):
90         * m4/sha512.m4 (gl_SHA512):
91         Do not require AC_C_INLINE.
92
93         cond, lock, thread: better 'inline'
94         * lib/glthread/cond.c, lib/glthread/cond.h (_GLTHREAD_COND_INLINE):
95         * lib/glthread/thread.c, lib/glthread/thread.h (_GLTHREAD_THREAD_INLINE):
96         New macros.  Use them instead of static inline, for header functions.
97         * lib/glthread/cond.c (gl_waitqueue_init, gl_waitqueue_remove)
98         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
99         * lib/glthread/lock.c (gl_waitqueue_init)
100         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
101         * lib/glthread/thread.c (get_current_thread_handle):
102         Change 'static inline' to 'inline'.
103         * lib/glthread/cond.h, lib/glthread/thread.h:
104         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
105         * m4/cond.m4 (gl_COND):
106         * m4/lock.m4 (gl_PREREQ_LOCK):
107         * m4/thread.m4 (gl_THREAD):
108         Do not require AC_C_INLINE.
109         * modules/cond, modules/thread (Depends-on): Add extern-inline.
110
111         chdir-long, cycle-check, savewd: better 'inline'
112         * lib/chdir-long.c (cdb_init, cdb_fchdir, cdb_free)
113         (find_non_slash):
114         * lib/cycle-check.c (is_zero_or_power_of_two):
115         * lib/savewd.c (savewd_delegating):
116         Change 'static inline' to 'inline'.
117         * lib/savewd.c, lib/savewd.h (SAVEWD_INLINE): New macro.
118         Replace all remaining uses of 'static inline' with it.
119         * lib/savewd.h:
120         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
121         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG):
122         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
123         * m4/savewd.m4 (gl_SAVEWD):
124         Do not require AC_C_INLINE.
125         * modules/savewd (Depends-on): Add extern-inline.
126
127         base32, base64: no need for 'inline'
128         * lib/base32.c (to_uchar, get_8, decode_8):
129         * lib/base64.c (to_uchar, get_4, decode_4):
130         Change 'static inline' to 'inline'.
131         * m4/base32.m4 (gl_PREREQ_BASE32):
132         * m4/base64.m4 (gl_PREREQ_BASE64):
133         Do not require AC_C_INLINE.
134
135         array-oset, linkedhash-list, rbtree-oset: no need for 'inline'
136         * lib/gl_array_oset.c (gl_array_nx_add_at):
137         (gl_array_remove_at):
138         * lib/gl_linkedhash_list.c (hash_resize_after_add)
139         (add_to_bucket, remove_from_bucket):
140         * lib/gl_rbtree_oset.c (rotate_left, rotate_right):
141         Change 'static inline' to 'static', as it's simpler to omit
142         'inline' unless there's a significant performance advantage.
143
144         list, oset, xlist, xoset, xsublist: simplify via extern inline
145         * lib/gl_list.h, lib/gl_list.c (GL_LIST_INLINE):
146         * lib/gl_oset.c, lib/gl_oset.h (GL_OSET_INLINE):
147         * lib/gl_xlist.c, lib/gl_xlist.h (GL_XLIST_INLINE):
148         * lib/gl_xoset.c, lib/gl_xoset.h (GL_XOSET_INLINE):
149         * lib/gl_xsublist.c, lib/gl_xsublist.h (GL_XSUBLIST_INLINE):
150         New macro.  Replace all uses of 'static inline' with it.
151         [HAVE_INLINE]: Implement functions as *_INLINE functions,
152         instead of as macros FOO that are defined to static inline
153         functions FOO_inline.
154         * lib/gl_list.c, lib/gl_oset.c, lib/gl_xlist.c, lib/gl_xoset.c:
155         * lib/gl_xsublist.c:
156         Reimplement from scratch, by defining the corresponding *_INLINE
157         macro and including the corresponding .h file.  This is simpler.
158         * modules/list, modules/oset, modules/xlist, modules/xoset:
159         (Files): Remove m4/gl_list.m4.
160         (configure.ac): Remove gl_LIST.
161         * m4/gl_list.m4: Remove.
162         * modules/list, modules/oset, modules/xlist, modules/xoset:
163         * modules/xsublist:
164         (Depends-on): Depend on extern-inline, not inline.
165
166         xalloc: better 'inline'
167         * lib/xmalloc.c, lib/xalloc.h (XALLOC_INLINE):
168         New macro.  Replace all uses of 'static inline' with it.
169         (static_inline): Remove.
170         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
171         Let 'extern inline' do the work automatically, instead of doing
172         it by hand.
173         * m4/xalloc.m4 (gl_PREREQ_XALLOC, gl_PREREQ_XMALLOC):
174         Remove.  All uses removed.
175         * modules/xalloc (Depends-on): Remove 'inline'.  Add 'extern-inline'.
176
177         gethrxtime: better 'inline'
178         * lib/xtime.c: New file.
179         * lib/gethrxtime.c, lib/gethrxtime.h (GETHRXTIME_INLINE):
180         * lib/xtime.h (XTIME_INCLUDE):
181         New macros.  Replace all uses of 'static inline' with them.
182         * lib/gethrxtime.c (gethrxtime): Define only if
183         ! (HAVE_ARITHMETIC_HRTIME_T && HAVE_DECL_GETHRTIME), since
184         this source file is now always compiled, because of the extern inline.
185         * lib/gethrxtime.h, lib/xtime.h:
186         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
187         * m4/gethrxtime.m4 (gl_GETHRXTIME): Do not check for clock macros
188         if gethrtime works, as they're not needed in that case.
189         (gl_XTIME): Do not require AC_C_INLINE.
190         (gl_PREREQ_GETHRXTIME): Remove; all uses removed, as it's always
191         compiled now.  Move the check into gl_GETHRXTIME.
192         * modules/gethrxtime (Files, lib_SOURCES): Add lib/xtime.c.
193         (Depends-on): Add extern-inline.
194         (configure.ac): gethrxtime is always compiled now.
195         (lib_SOURCES): Add gethrxtime.c.
196
197         wctype-h: better 'inline'
198         * lib/wctype-h.c: New file.
199         * lib/wctype.in.h (_GL_WCTYPE_INLINE):
200         New macro.  Replace all uses of 'static inline' with it.
201         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
202         * m4/wctype_h.m4 (gl_WCTYPE_H): Do not require AC_C_INLINE.
203         * modules/wctype-h (Files, lib_SOURCES): Add lib/wctype-h.c.
204         (Depends-on): Add extern-inline.
205
206         unistd: better 'inline'
207         * lib/unistd.c: New file.
208         * lib/unistd.in.h (_GL_UNISTD_INLINE):
209         New macro.  Replace all uses of 'static inline' with it.
210         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
211         * m4/unistd_h.m4 (gl_UNISTD_H): Do not require AC_C_INLINE.
212         * modules/unistd (Files, lib_SOURCES): Add lib/unistd.c.
213         (Depends-on): Add extern-inline.
214
215         sys_socket: better 'inline'
216         * lib/sys_socket.c: New file.
217         * lib/sys_socket.in.h (_GL_SYS_SOCKET_INLINE):
218         New macro.  Replace all uses of 'static inline' with it.
219         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
220         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Do not require AC_C_INLINE.
221         * modules/sys_socket (Files, lib_SOURCES): Add lib/sys_socket.c.
222         (Depends-on): Add extern-inline.
223
224         stdio: better 'inline'
225         * lib/stdio.c: New file.
226         * lib/stdio.in.h (_GL_STDIO_INLINE):
227         New macro.  Replace all uses of 'static inline' with it.
228         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
229         * m4/stdio_h.m4 (gl_STDIO_H): Do not require AC_C_INLINE.
230         * modules/stdio (Files, lib_SOURCES): Add lib/stdio.c.
231         (Depends-on): Add extern-inline.
232
233         sigaction: better 'inline'
234         * lib/sig-handler.c: New file.
235         * lib/sig-handler.h (SIG_HANDLER_INLINE):
236         New macro.  Replace all uses of 'static inline' with it.
237         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
238         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): Do not require AC_C_INLINE.
239         * modules/sigaction (Files, lib_SOURCES): Add lib/sig-handler.c.
240         (Depends-on): Add extern-inline.
241
242         selinux-h: better 'inline'
243         * lib/se-context.c, lib/se-selinux.c: New files.
244         * lib/getfilecon.c (map_to_failure): Omit 'inline' for static function.
245         * lib/se-context.in.h (SE_CONTEXT_INLINE):
246         New macro.  Replace all uses of 'static inline' with it.
247         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
248         * lib/se-selinux.in.h (SE_SELINUX_INLINE):
249         New macro.  Replace all uses of 'static inline' with it.
250         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
251         * modules/selinux-h (Files, lib_SOURCES):
252         Add lib/se-context.c, lib/se-selinux.c.
253         (Depends-on): Add extern-inline.
254         (configure.ac): Do not require AC_C_INLINE.
255
256         pthread: better 'inline'
257         * lib/pthread.c: New file.
258         * lib/pthread.in.h (_GL_PTHREAD_INLINE):
259         New macro.  Replace all uses of 'static inline' with it.
260         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
261         * m4/pthread.m4 (gl_PTHREAD_CHECK):
262         Add AC_LIBOBJ([pthread]).  Do not require AC_C_INLINE.
263         * modules/pthread (Files): Add lib/pthread.c.
264         (Depends-on): Add extern-inline.
265
266         math: better 'inline'
267         * lib/math.c: New file.
268         * lib/math.in.h (_GL_MATH_INLINE):
269         New macro.  Replace all uses of 'static inline' with it.
270         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
271         * m4/math_h.m4 (gl_MATH_H):
272         Do not require AC_C_INLINE.
273         * modules/math (Files, lib_SOURCES):
274         Add lib/math.c.
275         (Depends-on): Add extern-inline.
276
277         count-one-bits: better 'inline'
278         * lib/count-one-bits.c: New file.
279         * lib/count-one-bits.h (COUNT_ONE_BITS_INLINE):
280         New macro.  Replace all uses of 'static inline' with it.
281         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
282         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS):
283         Do not require AC_C_INLINE.
284         * modules/count-one-bits (Files, lib_SOURCES):
285         Add lib/count-one-bits.c.
286         (Depends-on): Add extern-inline.
287
288         count-leading-zeros: better 'inline'
289         * lib/count-leading-zeros.c: New file.
290         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS_INLINE):
291         New macro.  Replace all uses of 'static inline' with it.
292         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
293         * m4/count-leading-zeros.m4 (gl_COUNT_LEADING_ZEROS):
294         Do not require AC_C_INLINE.
295         * modules/count-leading-zeros (Files, lib_SOURCES):
296         Add lib/count-leading-zeros.c.
297         (Depends-on): Add extern-inline.
298
299         bitrotate: better 'inline'
300         * lib/bitrotate.c: New file.
301         * lib/bitrotate.h (BITROTATE_INLINE):
302         New macros.
303         Replace all uses of 'static inline' with them.
304         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
305         * modules/bitrotate (Files, lib_SOURCES): Add lib/bitrotate.c.
306         (Depends-on): Add extern-inline.
307         (configure.ac): Do not require AC_C_INLINE.
308
309 2012-11-20  Theophile Ranquet <ranquet@lrde.epita.fr>
310
311         maint.mk: avoid gratuitous failure
312         Reported by Stefano Lattarini in
313         <http://lists.gnu.org/archive/html/bug-bison/2012-11/msg00022.html>
314         * top/maint.mk (public-submodule-commit): Quote more safely.
315
316 2012-11-20  Eli Zaretskii  <eliz@gnu.org>
317
318         canonicalize, canonicalize-lgpl: support MS-Windows file names
319         See <http://lists.gnu.org/archive/html/bug-gnulib/2012-11/msg00074.html>
320         for test cases, which it'd be nice to add at some point.
321         * lib/canonicalize.c, lib/canonicalize-lgpl.c: Include dosname.h.
322         * lib/canonicalize.c (canonicalize_filename_mode):
323         * lib/canonicalize-lgpl.c (__realpath):
324         Use FILE_SYSTEM_PREFIX_LEN instead of assuming that the first
325         slash is at the beginning of the file name.  Use ISSLASH, instead
326         of a literal '/'.  Use IS_ABSOLUTE_FILE_NAME instead of comparing
327         the first character with '/'.  Test for
328         DOUBLE_SLASH_IS_DISTINCT_ROOT only if the file name does not begin
329         with a drive letter.
330         * lib/canonicalize.c (SLASHES): New macro.
331         (canonicalize_filename_mode): Use SLASHES instead of a literal "/".
332
333 2012-11-17  Dmitry V. Levin  <ldv@altlinux.org>
334
335         fts: introduce FTS_VERBATIM
336         * lib/fts_.h (FTS_VERBATIM): New bit flag.
337         (FTS_OPTIONMASK, FTS_NAMEONLY, FTS_STOP): Adjust.
338         * lib/fts.c (fts_open): Honor it.
339
340 2012-11-09  Pádraig Brady  <P@draigBrady.com>
341
342         getlogin-tests: allow errno == ENXIO
343         * tests/test-getlogin.c (main): Skip tests if getlogin fails
344         with errno == ENXIO (No controlling tty).
345         getlogin_r-tests: Likewise. Also allow errno == ENOENT
346         * tests/test-getlogin_r.c (main): Skip tests if getlogin_r fails
347         with errno == ENOENT.  This was reported to happen in various
348         situations on GNU/Linux.
349
350 2012-11-09  Paul Eggert  <eggert@cs.ucla.edu>
351
352         getlogin-tests: allow errno == ENOENT
353         * tests/test-getlogin.c (main): Skip tests if getlogin fails
354         with errno == ENOENT.  This happened to me on Ubuntu 12.04.1 x86,
355         when running a test in an Emacs shell buffer.
356
357 2012-11-08  Jim Meyering  <jim@meyering.net>
358
359         tests/nap.h: avoid warning about unused variable
360         * tests/nap.h (nap_works): Remove now-unused declaration of "result".
361
362         prefix-gnulib-mk: avoid overzealous "lib/"-prefix addition
363         * build-aux/prefix-gnulib-mk (prefix): Tighten a regexp to require
364         white space before each of the special-cased file names, to avoid
365         adding "lib/" after $(libdir)/.  Reported by Matias A. fonzo
366         in http://bugs.gnu.org/12830.
367
368 2012-11-08  Paul Eggert  <eggert@cs.ucla.edu>
369
370         fcntl-h: default O_SEARCH, O_EXEC back to O_RDONLY
371         O_PATH doesn't work with Linux kernel 3.6.5, as fchmod (fd, ...)
372         fails with errno == EBADF when fd is opened with O_PATH.
373         Reported by Jim Meyering in
374         <http://lists.gnu.org/archive/html/bug-gnulib/2012-11/msg00026.html>.
375         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
376         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default back to O_RDONLY.
377
378 2012-11-07  Paul Eggert  <eggert@cs.ucla.edu>
379
380         test-utimens: speed up by taking shorter naps
381         * tests/nap.h (lt_mtime, get_mtime, nap_works, guess_delay):
382         New functions.
383         (nap): Use them, to do a better job of guessing the delay.
384         On Fedora 17 with ext4 atop md atop hard disks, this made
385         test-utimens run 10x faster, because the test napped for
386         1 ms at a time rather than 20 ms.  Reported by Stefano Lattarini in
387         <http://bugs.gnu.org/12820#11>.
388
389 2012-11-07  Jim Meyering  <jim@meyering.net>
390
391         mountlist.c: fix a compilation failure
392         * lib/mountlist.c (read_file_system_list): Fix a compilation failure
393         I introduced while transforming commit v0.0-7683-g613bcb6
394
395 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
396
397         errno: port to LynxOS 178 2.2.2
398         Problem reported by Joel Brobecker in
399         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00088.html>.
400         * doc/posix-headers/errno.texi (errno.h): Document this.
401         * lib/errno.in.h (EILSEQ, GNULIB_defined_EILSEQ) [!EILSEQ]: New macros.
402         * lib/strerror-override.c, lib/strerror-override.h (strerror_override):
403         Supply a string for EILSEQ.
404         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Check for EILSEQ.
405
406 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
407
408         fcntl-h: default O_SEARCH, O_EXEC to O_PATH if available
409         Linux kernel 2.6.39 introduced O_PATH (see
410         <http://lwn.net/Articles/433854/>) and this is a better fallback
411         for O_SEARCH and O_EXEC than O_RDONLY, if O_PATH is available.
412         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
413         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default to O_PATH.
414         * lib/fcntl.in.h (O_ACCMODE):
415         * tests/test-fcntl-h.c (main):
416         Do not reject O_ACCMODE merely because it has more than the
417         minimal number of bits, as POSIX allows extensions here.
418
419 2012-11-04  Andrew Warshall  <warshall@99main.com>  (tiny change)
420
421         mountlist: do not classify a bind-mounted dir entry as "dummy"
422         * lib/mountlist.c (ME_DUMMY_0): Rename from ME_DUMMY, but omit
423         the "none"-testing clause.
424         (ME_DUMMY) [MOUNTED_GETMNTENT1]: New macro to encapsulate the
425         exception for bind-mounted directories.
426
427 2012-11-01  Akim Demaille  <akim@lrde.epita.fr>
428
429         quote: provide a means to escape strings with nul characters
430         * lib/quote.h, lib/quotearg.c (quote_mem, quote_n_mem): New functions.
431         (quote, quote_n): Rename formal arguments for consistency with
432         quotearg.
433
434 2012-10-30  Paul Eggert  <eggert@cs.ucla.edu>
435
436         test-raise: don't assume 199 is an invalid signal
437         * tests/test-raise.c (main): Don't assume 199 is not a signal number.
438
439         sh-quote-tests: port to Solaris 9
440         * modules/sh-quote-tests (test_sh_quote_LDADD): Add @LIBINTL@.
441         Problem reported by Dagobert Michelsen in
442         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00114.html>.
443
444 2012-10-28  Jim Meyering  <jim@meyering.net>
445
446         maint.mk: rename a new configurable variable
447         * top/maint.mk (_gl_translatable_string_re): Rename from
448         translation-markers: _gl_ prefix to insulate from user Makefile code,
449         and the _re suffix to inform that it's a regular expression.
450
451 2012-10-26  Eric Blake  <eblake@redhat.com>
452
453         maint.mk: let packages tweak sc_po_check pattern
454         * top/maint.mk (sc_po_check): Add translation-markers, to allow
455         finding files with other translation markers.
456
457 2012-10-16  Paul Eggert  <eggert@cs.ucla.edu>
458
459         euidaccess: speed up 'configure' on GNU hosts
460         * m4/euidaccess.m4 (gl_FUNC_NONREENTRANT_EUIDACCESS):
461         Check for setregid here, not in gl_PREREQ_EUIDACCESS, since
462         it's needed only in this case.  Use AC_CHECK_DECLS, not
463         AC_CHECK_DECLS_ONCE.
464         (gl_PREREQ_EUIDACCESS): Do not use AC_CHECK_HEADERS_ONCE libgen.h
465         or AC_REQUIRE for AC_FUNC_GETGROUPS.
466
467         * lib/regexec.c (re_search_internal): Fix grammar in comment.
468
469 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
470
471         fchmodat, fchownat, fstatat: port to non-inlining compilers
472         Problem reported for FreeBSD 9 by Jim Meyering in
473         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00070.html>.
474         * lib/chmodat.c, lib/chownat.c, lib/statat.c:
475         New files, which define FCHMODAT_INLINE etc.
476         * lib/fchmodat.c (FCHMODAT_INLINE):
477         * lib/fchownat.c (FCHOWNAT_INLINE):
478         * lib/fstatat.c (FSTATAT_INLINE):
479         Remove, as chmodat.c etc. now do this.
480         * modules/fchmodat (Files): Add lib/chmodat.c.
481         * modules/fchownat (Files): Add lib/chownat.c.
482         * modules/fstatat (Files): Add lib/statat.c.
483
484 2012-10-15  Jim Meyering  <jim@meyering.net>
485
486         fchmodat.c, fchownat.c: compile-impeding typos
487         * lib/fchmodat.c (FCHMODAT_INLINE): Fix typo: s/#include/#define/
488         * lib/fchownat.c (FCHOWNAT_INLINE): Likewise.
489         Introduced in commit v0.0-7636-gd202279.
490
491 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
492
493         fcntl-h: support GNU flags like O_IGNORE_CTTY
494         * doc/posix-headers/fcntl.texi (fcntl.h): Support O_IGNORE_CTTY,
495         O_NOLINK, and O_NOTRANS.  These flags are nonzero on GNU/Hurd
496         systems.  Discovered when using fcntl-h with GNU Emacs, which uses
497         O_IGNORE_CTTY.  Fix misspelling of F_SETLKW.
498         * lib/fcntl.in.h (O_IGNORE_CTTY, O_NOLINK, O_NOTRANS):
499         Define to 0 if not already defined.
500         * tests/test-fcntl-h.c: Test these new flags.
501
502 2012-10-14  Paul Eggert  <eggert@cs.ucla.edu>
503
504         faccessat, etc.: support AT_FDCWD-only use
505         * lib/at-func.c: If GNULIB_SUPPORT_ONLY_AT_FDCWD, then support
506         this function only if its first argument is AT_FDCWD.
507         Emacs wants faccessat for AT_EACCESS but not for any first-arg
508         values other than AT_FDCWD, so it doesn't want all the openat
509         machinery with fchdir etc.
510         * modules/faccessat, modules/fchmodat, modules/fchownat (Files):
511         * modules/fstatat, modules/mkdirat, modules/openat (Files):
512         * modules/unlinkat (Files):
513         Remove lib/openat-priv.h, as at-internal supplies this file.
514         Removing this file here allows us to support programs like Emacs
515         that avoid at-internal.
516
517         faccessat: speed up 'configure' on mainstream hosts
518         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT):
519         Use AT_CHECK_FUNCS for 'access', not AC_CHECK_FUNCS_ONCE,
520         since it's only on unusual platforms that we need to check for
521         'access', and it's better not to slow 'configure' down on all
522         platforms.
523
524         faccessat: port to Solaris 10
525         * lib/faccessat.c: Include <fcntl.h>, for AT_EACCESS.
526         Needed on Solaris 10, which doesn't have AT_EACCESS,
527         so we need the Gnulib fcntl.h, which defines it.
528
529 2012-10-14  Pádraig Brady  <P@draigBrady.com>
530         canonicalize: fix C89 compilation
531         * lib/canonicalize.c (canonicalize_filename_mode): Swap order of
532         declarations so C89 is supported.  Also remove the comment
533         referencing memorty allocation as the suggested feature could
534         not be implemented as suggested.
535         Reported by Michael Goffioul.
536
537 2012-10-12  Paul Eggert  <eggert@cs.ucla.edu>
538
539         group-member: omit unnecessary dependencies
540         This is for Emacs, which has its own allocator and where we
541         don't want to use xalloc.
542         * lib/group-member.c: Include xalloc-oversized.h, not xalloc.h,
543         since we no longer use xmalloc.  Do not include stdbool.h, since
544         the changes below happen to remove the only use of bool.
545         (GROUPBUF_SIZE): New constant.
546         (struct group_info): Remove n_groups member.  Add groupbuf member.
547         This lets us get the groups without using malloc, usually.
548         (free_group_info, get_group_info): Adjust to this.
549         (get_group_info): Return the number of groups found, or -1 on error.
550         Use plain malloc not xmalloc, and treat its failure as if there
551         are no groups, as the user already loses in case of error.
552         (group_member): Simplify, based on changes to get_group_info.
553         * modules/group-member (Depends-on): Remove dependencies on
554         xalloc and stdbool.  Add dependency on xalloc-oversized.
555
556 2012-10-08  Alexandre Duret-Lutz  <adl@lrde.epita.fr>  (tiny change)
557
558         gethrxtime: port to C++
559         * lib/gethrxtime.h, lib/xtime.h [__cplusplus]: Add extern "C".
560
561 2012-10-04  Paul Eggert  <eggert@cs.ucla.edu>
562
563         ptsname: fix macro-name typo
564         * lib/stdlib.in.h (ptsname): Fix misspelling of GNULIB_NAMESPACE.
565
566 2012-10-03  Simon Josefsson  <simon@josefsson.org>
567
568         inttostr: Relax license.
569         * modules/inttostr (License): Change from LGPL to LGPLv2+.
570
571 2012-10-03  Eric Blake  <eblake@redhat.com>
572
573         ptsname_r: support ptys returned by FreeBSD posix_openpt
574         * lib/ptsname_r.c (__ptsname_r): Don't munge name if it already
575         lives in /dev/pts/.
576
577 2012-10-02  Eric Blake  <eblake@redhat.com>
578
579         pselect: reject invalid file descriptors
580         * m4/pselect.m4 (gl_FUNC_PSELECT): Probe for FreeBSD bug.
581         * lib/pselect.c (rpl_pselect) [!win32]: Work around it.
582         * modules/pselect (Depends-on): Add dup2.
583         * doc/posix-functions/pselect.texi (pselect): Document this.
584
585         select: reject invalid file descriptors
586         * m4/select.m4 (gl_FUNC_SELECT): Probe for FreeBSD bug.
587         * lib/select.c (rpl_select) [!win32]: Work around it.
588         * modules/select (Depends-on): Add dup2.
589         * doc/posix-functions/select.texi (select): Document this.
590
591         select: enhance test
592         * tests/test-select.h (do_select_bad_nfd_nowait, test_bad_nfd):
593         New functions.
594         (test_function): Enhance test.
595         (do_select_bad_fd): Avoid any stale errno values.
596
597         ptsname: reject invalid file descriptors
598         http://www.austingroupbugs.net/view.php?id=503
599         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Probe for FreeBSD bug.
600         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add new witness.
601         * modules/stdlib (Makefile.am): Replace witness.
602         * lib/stdlib.in.h (ptsname): Allow for replacement.
603         * modules/ptsname (configure.ac): Trigger replacement.
604         * doc/posix-functions/ptsname.texi (ptsname): Document this.
605
606 2012-10-02:  Nikos Mavrogiannopoulos  <nmav@gnutls.org>  (tiny change)
607
608         hash-pjw-bare: new module
609         * lib/hash-pjw-bare.c: New file, very much like hash-pjw.c.
610         * lib/hash-pjw-bare.h: Likewise.
611         * modules/hash-pjw-bare: New file.
612         * MODULES.html.sh (Misc): Add it.
613
614 2012-10-02  Eric Blake  <eblake@redhat.com>
615
616         manywarnings: cater to more gcc infelicities
617         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add test for
618         -Wuninitialized without -O.
619
620 2012-10-01  Ed Maste  <emaste@freebsd.org>  (tiny change)
621
622         select, poll tests: Make setsockopt invocation effective.
623         * tests/test-poll.c (open_server_socket): Move setsockopt() call before
624         the bind() call.
625         * tests/test-select.h (open_server_socket): Likewise.
626
627 2012-09-30  Paul Eggert  <eggert@cs.ucla.edu>
628
629         sockets, sys_stat: restore AC_C_INLINE
630         This undoes the 2012-09-22 patch.
631         * m4/sockets.m4 (gl_SOCKETS):
632         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
633         Restore AC_C_INLINE, since MSVC requires __inline or _inline
634         and does not support plain 'inline'.  Reported by Bruno Haible in
635         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00183.html>.
636
637 2012-09-30  Bruno Haible  <bruno@clisp.org>
638
639         localeconv tests: Avoid test failure on OpenIndiana.
640         * tests/test-localeconv.c (main): On OpenIndiana (a Solaris 11 variant)
641         skip the 'grouping' and 'mon_grouping' tests.
642         Reported by Jim Meyering.
643
644 2012-09-30  Bruno Haible  <bruno@clisp.org>
645
646         havelib: Follow libtool developments.
647         * m4/lib-ld.m4: Rebase on libtool.m4 from libtool-2.4.
648         Suggested by Simon Josefsson.
649
650 2012-09-29  Jim Meyering  <meyering@redhat.com>
651
652         fstatat.c: fix a compile-impeding typo
653         * lib/fstatat.c (FSTATAT_INLINE): Fix typo: s/#include/#define/
654         Introduced in commit v0.0-7636-gd202279.
655         Mats Erik Andersson reported the resulting OpenBSD compilation failure.
656
657 2012-09-28  Akim Demaille  <akim@lrde.epita.fr>
658
659         extern-inline: provide a -Wundef safe config.h
660         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Protect
661         "#if __GNUC_STDC_INLINE__" with "defined __GNUC_STDC_INLINE__"
662         to produce a -Wundef warning free config.h.
663
664 2012-09-26  Paul Eggert  <eggert@cs.ucla.edu>
665
666         hash-pjw: relax license to LGPLv2+
667         * modules/hash-pjw (License): Relax, with consent of author.
668
669 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
670
671         maint.mk: fix strict vs. lazy variable issues with RELEASE
672         * top/maint.mk (_equal): New function.
673         (member_check): Strip the result to avoid spurious spaces.
674         (url_dir_list): Do not use ifeq, which is strict, as it will
675         require RELEASE_TYPE to be defined.
676         (announcement_Cc_, announcement_mail_headers_): Likewise: instead
677         of relying on ifeq, use $(release_type) to dispatch (lazily) onto...
678         (announcement_Cc_alpha,announcement_mail_headers_alpha)
679         (announcement_Cc_beta,announcement_mail_headers_beta)
680         (announcement_Cc_stable,announcement_mail_headers_stable): these.
681         (release): Do not depend on $(release-type), as it forces its
682         evaluation.  Bounce to it.
683
684 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
685
686         maint.mk: formatting changes
687         * top/maint.mk: Indent bodies of if's.
688
689 2012-09-21  Akim Demaille  <akim@lrde.epita.fr>
690
691         maint.mk: factor the validation of RELEASE_TYPE
692         With help from Jim Meyering.
693         http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00132.html
694         * top/maint.mk (_empty, _sp): Move their definition earlier.
695         (member-check, release-type): New.
696         Use the latter instead of $(RELEASE_TYPE).
697         Remove now useless local checks.
698
699 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
700
701         maint.mk: provide "make upload" to ease uploading
702         See
703         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00028.html>.
704         Do not depend simply on the current $(VERSION), as there may have been
705         new commits since the tarball generation.  Rather, rely on $(RELEASE),
706         as "make release-commit" already does.
707
708         For consistency, add "make release RELEASE='X.Y TYPE'" as an alias for
709         "make TYPE".
710
711         * top/maint.mk (upload_command, upload, release): New.
712         (RELEASE_TYPE): If undefined, default to the second word of $(RELEASE).
713         (VERSION): first word of $(RELEASE) is always right.
714         (emit_upload_commands): Adjust.
715         * top/README-release: Update.
716
717 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
718
719         maint.mk: silent rules
720         With help from Stefano Lattarini.
721         * top/maint.mk (writable-files): Use $(AM_V_GEN).
722         (announcement): Use $(AM_V_at).
723
724 2012-09-24  Paul Eggert  <eggert@cs.ucla.edu>
725
726         localename: port gl_locale_name_thread_unsafe to FreeBSD
727         * lib/localename.c (gl_locale_name_thread_unsafe): Port to FreeBSD,
728         and use the simpler FreeBSD implementation on Mac OS X as well.
729         Original idea suggested by Ed Maste in
730         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00094.html>.
731
732 2012-09-22  Paul Eggert  <eggert@cs.ucla.edu>
733
734         binary-io, eealloc, mbfile, mbiter, mbutil, xsize: better 'inline'
735         * lib/binary-io.c, lib/eealloc.c, lib/mbfile.c, lib/mbiter.c:
736         * lib/mbuiter.c, lib/xsize.c: New files.
737         * lib/binary-io.h (BINARY_IO_INLINE):
738         * lib/eealloc.h (EEALLOC_INLINE):
739         * lib/mbfile.h (MBFILE_INLINE):
740         * lib/mbiter.h (MBITER_INLINE):
741         * lib/mbuiter.h (MBUITER_INLINE):
742         * lib/xsize.h (XSIZE_INLINE):
743         New macros.
744         Replace all uses of 'static inline' with them.
745         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
746         * m4/eealloc.m4 (gl_EEALLOC):
747         * m4/mbfile.m4 (gl_MBFILE):
748         * m4/mbiter.m4 (gl_MBITER):
749         * m4/xsize.m4 (gl_XSIZE):
750         Do not require AC_C_INLINE.
751         * modules/binary-io (Files, lib_SOURCES): Add lib/binary-io.c
752         * modules/eealloc (Files, lib_SOURCES): Add lib/eealloc.c.
753         * modules/mbfile (Files, lib_SOURCES): Add lib/mbfile.c.
754         * modules/mbiter (Files, lib_SOURCES): Add lib/mbiter.c.
755         * modules/mbuiter (Files, lib_SOURCES): Add lib/mbuiter.c.
756         * modules/xsize (Files, lib_SOURCES): Add lib/xsize.c.
757         * modules/binary-io, modules/eealloc, modules/mbfile:
758         * modules/mbiter, modules/mbuiter:
759         (Depends-on): Add extern-inline.
760
761         pipe-filter-gi, pipe-filter-ii: better use of 'inline'
762         * lib/pipe-filter-aux.c: New file.
763         * lib/pipe-filter-aux.h (PIPE_FILTER_AUX_INLINE): New macro.
764         Replace all uses of 'static inline' with it.
765         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
766         * lib/pipe-filter-gi.c (filter_init, filter_cleanup)
767         (filter_retcode): No real need for inline here.
768         * modules/pipe-filter-gi, modules/pipe-filter-ii:
769         (Files): Add lib/pipe-filter-aux.c.
770         (Depends-on): Add extern-inline.
771         (configure.ac): Do not require AC_C_INLINE.
772         (lib_SOURCES): Add pipe-filter-aux.c.
773
774         fdutimensat: omit unnecessary AC_C_INLINE
775         * modules/fdutimensat (configure.ac): Remove AC_C_INLINE.
776
777         fchmodat, fchownat, fstatat: use extern-inline
778         * lib/fchmodat.c, lib/openat.h (FCHMODAT_INLINE):
779         * lib/fchownat.c, lib/openat.h (FCHOWNAT_INLINE):
780         * lib/fstatat.c, lib/openat.h (FSTATAT_INLINE):
781         New macros.
782         * lib/openat.h:
783         Replace all uses of 'static inline' with them.
784         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
785         * modules/fchmodat, modules/fchownat, modules/fstatat:
786         * modules/openat-h:
787         (Depends-on):
788         Add extern-inline.
789         (configure.ac): Remove AC_C_INLINE.
790
791         acl, mbchar, priv-set: use extern-inline
792         * lib/set-mode-acl.c, lib/acl-internal.h (ACL_INTERNAL_INLINE):
793         * lib/mbchar.c, lib/mbchar.h (MBCHAR_INLINE):
794         * lib/priv-set.c, lib/priv-set.h (PRIV_SET_INLINE):
795         New macros.
796         * lib/acl-internal.h, lib/mbchar.h, lib/priv-set.h:
797         Replace all uses of 'static inline' with it.
798         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
799         * m4/acl.m4 (gl_FUNC_ACL):
800         * m4/mbchar.m4 (gl_MBCHAR):
801         * m4/priv-set.m4 (gl_PRIV_SET):
802         Remove AC_C_INLINE, since 'inline' is no longer used directly.
803         * modules/acl, modules/mbchar, modules/priv-set (Depends-on):
804         Add extern-inline.
805
806         sockets, sys_stat: remove AC_C_INLINE in MSVC-only cases
807         * m4/sockets.m4 (gl_SOCKETS):
808         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
809         Remove AC_C_INLINE.  Here, 'inline' is used only in MSVC
810         environments where it's already guaranteed to work, so we needn't
811         check for it at 'configure'-time.
812
813         tls-tests: omit unnecessary 'inline'
814         * tests/test-tls.c (perhaps_yield): No longer inline.
815         Simplicity and portability trump efficiency in test cases.
816
817         utimens-tests: avoid unnecessary 'inline'
818         * modules/fdutimensat-tests (configure.ac):
819         * modules/futimens-tests (configure.ac):
820         * modules/utimens-tests (configure.ac):
821         * modules/utimensat-tests (configure.ac):
822         Remove AC_C_INLINE.
823         * tests/test-utimens-common.h (ctime_compare):
824         No longer inline.  Simplicity and portability trump efficiency here.
825
826         misc: don't limit commentary to inline functions
827         * lib/binary-io.h, lib/malloca.h, lib/safe-alloc.c:
828         * lib/xalloc-oversized.h, lib/xsize.h:
829         Contrast macros to functions in general, not just to inline functions,
830         when the commentary does not apply only to inline functions.
831
832 2012-09-20  Jim Meyering  <meyering@redhat.com>
833
834         non-recursive-gnulib-prefix-hack: new module
835         * build-aux/prefix-gnulib-mk: Copied from coreutils, derived from
836         the file that originated in Bison.
837         * m4/non-recursive-gnulib-prefix-hack.m4: Likewise, this code is
838         largely copied from a snippet that resided in bison's configure.ac.
839         * modules/non-recursive-gnulib-prefix-hack: New file.
840         * MODULES.html.sh (Support for maintaining and releasing projects):
841         Add it.
842
843 2012-09-18  Jim Meyering  <meyering@redhat.com>
844
845         maint.mk: generalize _gl_tight_scope for non-recursive make
846         * top/maint.mk (_gl_tight_scope): Remove a hard-coded assumption
847         that *.h would describe additional .h files in the directory
848         specified by $(_gl_TS_dir).  I.e., add this...
849         (_gl_TS_other_headers): New variable.
850
851         maint.mk: exempt trailing blanks found in "binary" files
852         * top/maint.mk (sc_trailing_blank): Filter out any matches found in
853         "binary" files, as reported by grep.  Suggested by Richard W.M. Jones
854         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
855
856 2012-09-17  Jim Meyering  <meyering@redhat.com>
857
858         maint.mk: sc_prohibit_path_max_allocation: don't FP for UNIX_PATH_MAX
859         * top/maint.mk (sc_prohibit_path_max_allocation): Avoid false-positive
860         match for symbols like UNIX_PATH_MAX. Reported by Richard W.M. Jones
861         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
862
863 2012-09-17  Jim Meyering  <meyering@redhat.com>
864
865         maint.mk: teach sc_prohibit_magic_number_exit to accept 77
866         * top/maint.mk (sc_prohibit_magic_number_exit): Do not complain about
867         uses like "exit (77)".  "77" is automake's "skip this test" exit code.
868         It is not in the same category as "exit (0)" or "exit (1)", and
869         besides, I know of no symbolic name for that 77.  Reported by
870         Richard W.M. Jones in
871         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
872
873 2012-09-17  Jim Meyering  <meyering@redhat.com>
874
875         maint.mk: relax sc_prohibit_strcmp, to avoid a false positive
876         * top/maint.mk (sc_prohibit_strcmp): Relax regexp, so as to match
877         all uses of #define, not just those that start in column 1.
878         Richard W.M. Jones reported a false positive in
879         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
880
881 2012-09-16  Paul Eggert  <eggert@cs.ucla.edu>
882
883         localcharset: work around Mac OS X bug with UTF-8 and MB_CUR_MAX
884         * lib/localcharset.c (locale_charset) [DARWIN7]:
885         Return "ASCII" if the system reports "UTF-8" and MB_CUR_MAX <= 1,
886         as these two values are incompatible.  Problem reported by Max Horn.
887         For more discussion, please see
888         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00061.html>.
889
890         doc: document sticky-EOF issue
891         * doc/posix-functions/fgetc.texi (fgetc):
892         * doc/posix-functions/fgets.texi (fgets):
893         * doc/posix-functions/fread.texi (fread):
894         * doc/posix-functions/fscanf.texi (fscanf):
895         * doc/posix-functions/getc.texi (getc):
896         * doc/posix-functions/getchar.texi (getchar):
897         * doc/posix-functions/scanf.texi (scanf):
898         Mention that glibc and default Solaris do not conform to
899         C99 and POSIX-2001 or later, with respect to how getchar
900         etc. behave when feof reports nonzero.
901
902 2012-09-13  Joachim Schmitz <jojo@schmitz-digital.de>  (tiny change)
903
904         poll: fix poll(0, NULL, msec)
905         * lib/poll.c: don't exit early if NULL is the 1st arg to poll(),
906         but nfd is 0.  In that case poll should behave like select.
907
908 2012-09-13  Joachim Schmitz <jojo@schmitz-digital.de>  (tiny change)
909             Paolo Bonzini <bonzini@gnu.org>
910
911         poll: fix for systems that can't recv() on a non-socket
912         * lib/poll.c: if recv returns ENOTSOCK, assume the descriptor
913         is readable.  In this case POLLHUP will not be supported.
914         * doc/posix-functions/poll.texi: Document this.
915
916 2012-09-13  Paolo Bonzini  <bonzini@gnu.org>
917
918         poll/select: document portability problems not fixed by Gnulib.
919         * doc/posix-functions/poll.texi: poll does not work well on
920         pipes under Windows.  It has the same limitations as select on
921         BeOS.
922         * doc/posix-functions/select.texi: select does not work well
923         on pipes under Windows.
924
925 2012-09-10  Paul Eggert  <eggert@cs.ucla.edu>
926
927         fcntl-h: check for AIX 7.1 bug with O_NOFOLLOW and O_CREAT
928         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Check for AIX 7.1 bug
929         that caused a GNU tar test failure.  Problem reported by Jez Wain; see
930         <http://lists.gnu.org/archive/html/bug-tar/2012-07/msg00018.html>.
931
932 2012-09-06  Eric Blake  <eblake@redhat.com>
933
934         net_if: give more details about the bug being fixed
935         * doc/posix-headers/net_if.texi: Add clarification.
936
937 2012-09-05  Eric Blake  <eblake@redhat.com>
938
939         net_if: new module
940         * modules/net_if: New module, borrowing ideas from netinet_in.
941         * m4/net_if_h.m4: New file.
942         * lib/net_if.in.h: Likewise.
943         * doc/posix-headers/net_if.texi (net/if.h): Document it.
944         * MODULES.html.sh (lacking POSIX:2008): Likewise.
945         * tests/test-net_if.c: Make function checks conditional.
946         Reported by Jasper Lievisse Adriaanse <jasper@humppa.nl>.
947
948 2012-09-05  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
949
950         readutmp: fix non-portable UT_PID use
951         * lib/readutmp.c (desirable_utmp_entry) <READ_UTMP_CHECK_PIDS>:
952         Use `UT_PID (u) > 0' as absolute condition.
953
954 2012-09-04  Jim Meyering  <meyering@redhat.com>
955
956         fts: reduce two or more trailing spaces to just one, usually
957         * lib/fts.c (fts_open): Upon initialization, if a name ends in two
958         or more slashes, trim all but the final one.  But if a name consists
959         solely of two slashes, don't modify it.  If it consists solely of
960         three or more slashes, strip all but one.
961
962         This is part of the solution to a minor problem with rm:
963         it would print a bogus ELOOP diagnostic when failing to remove
964         the slash-decorated name of a symlink-to-directory:
965
966             $ mkdir d && ln -s d s && env rm -r s/
967             rm: cannot remove 's': Too many levels of symbolic links
968
969         With the change below and a trivial don't-trim-trailing-slashes
970         adjustment to remove.c, it does this:
971
972             $ env rm -r s/
973             rm: cannot remove 's/': Not a directory
974
975         Improved by: Eric Blake
976
977         fts: when there is no risk of overlap, use memcpy, not memmove
978         * lib/fts.c (fts_alloc): Fix unjustified memcopy: s/memmove/memcpy/
979
980 2012-08-29  Paul Eggert  <eggert@cs.ucla.edu>
981
982         stdbool: be more compatible with mixed C/C++ compiles
983         * lib/stdbool.in.h (_Bool, true, false) [__cplusplus]:
984         Define to bool, true, false, respectively, as GCC's builtin
985         stdbool.h does.  Problem reported by Michael Goffioul in
986         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00143.html>.
987
988 2012-08-28  Jim Meyering  <meyering@redhat.com>
989
990         revert last change: it was not needed
991         * tests/test-vc-list-files-git.sh: There's already a test for
992         a working git, just below.
993
994 2012-08-28  Jim Meyering  <meyering@redhat.com>
995
996         tests: test-vc-list-files-git.sh: skip if git is not available
997         * tests/test-vc-list-files-git.sh: Skip this test when git is
998         not available.
999
1000 2012-08-26  Bruno Haible  <bruno@clisp.org>
1001
1002         gnulib-tool: Remove no-op option --no-changelog.
1003         * gnulib-tool (func_usage): Don't mention --no-changelog.
1004         (do_changelog): Remove variable.
1005         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
1006
1007 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
1008
1009         doc: remove fdl-1.2.texi
1010         It is no longer used or maintained, and its use of @acronym
1011         is problematic.  See the thread containing
1012         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00134.html>.
1013         * config/srclist.txt: Remove doc/old-licenses/fdl-1.2.texi.
1014         * doc/old-licenses/fdl-1.2.texi: Remove.
1015
1016         execinfo: port to FreeBSD
1017         * m4/execinfo.m4 (gl_EXECINFO_H): Set LIB_EXECINFO to -lexecinfo
1018         if needed, as in FreeBSD.  Reported by Bastien Roucariès in
1019         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00113.html>.
1020         * modules/execinfo (Link): Add $(LIB_EXECINFO).
1021
1022 2012-08-23  Jim Meyering  <meyering@redhat.com>
1023
1024         xstrtol.h: avoid "_Noreturn is not at beginning of declaration" warning
1025         * lib/xstrtol.h: Put "_Noreturn" before "void" in declaration,
1026         to placate gcc's -Wold-style-declaration.
1027
1028 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
1029
1030         doc: do not use @acronym
1031         * doc/inet_ntoa.texi (inet_ntoa):
1032         * doc/parse-datetime.texi (Seconds since the Epoch)
1033         (Specifying time zone rules):
1034         * doc/posix-functions/inet_ntoa.texi (inet_ntoa):
1035         Don't use @acronym.  Problem reported by John Darlington in
1036         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00124.html>.
1037
1038 2012-08-23  Paul Eggert  <eggert@cs.ucla.edu>
1039
1040         stdnoreturn: port to newer GCCs
1041         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): Avoid problems with
1042         bleeding-edge GCC that complains about 'int _Noreturn foo (void);'.
1043         Problem reported by Jim Meyering in
1044         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00121.html>.
1045         Also, rename the 'test' function to a void a clash with the
1046         already-supplied 'main' function; this fixes a bug that incorrectly
1047         rejected GCC 4.7.1's <stdnoreturn.h>.
1048         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
1049         Document GCC problem.
1050
1051 2012-08-22  Reuben Thomas  <rrt@sc3d.org>
1052
1053         pipe-filter: fix comment typo
1054         * lib/pipe-filter.h: Mention correct function.
1055
1056 2012-08-22  Paul Eggert  <eggert@cs.ucla.edu>
1057
1058         execinfo: new module
1059         This is for Emacs.  Currently, it provides a no-effect stub
1060         on all platforms where it does not already work.
1061         It already works on glibc-based systems, and on Solaris 11.
1062         * lib/execinfo.c, lib/execinfo.in.h, m4/execinfo.m4, modules/execinfo:
1063         New files.
1064         * doc/glibc-headers/execinfo.texi (execinfo.h):
1065         * MODULES.html.sh (Misc): Document it.
1066
1067 2012-08-20  Paul Eggert  <eggert@cs.ucla.edu>
1068
1069         extern-inline: support old GCC 'inline'
1070         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Use pre-C99 GCC 'inline'
1071         if available.  This applies to GCC versions 2.7 through 4.2, or
1072         when newer GCC is using -fgnu89-inline.  The goal is to address
1073         some of the performance issues mentioned by Bruno Haible in
1074         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00097.html>.
1075
1076 2012-08-20  Eric Blake  <eblake@redhat.com>
1077
1078         maint.mk: avoid redundant file name in message
1079         * top/maint.mk (sc_prohibit_strcmp, sc_unmarked_diagnostics)
1080         (sc_prohibit_defined_have_decl_tests, sc_const_long_option)
1081         (sc_makefile_path_separator_check): Remove bogus $(ME).
1082
1083 2012-08-20  Mike Frysinger <vapier@gentoo.org>
1084
1085         timer-time: fix link order when static linking on glibc
1086         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
1087         _after_ -lrt so that it's significant.
1088
1089 2012-08-19  Paul Eggert  <eggert@cs.ucla.edu>
1090
1091         timespec: omit unnecessary AC_C_INLINE
1092         * m4/timespec.m4 (gl_TIMESPEC): Do not require AC_C_INLINE.
1093
1094         stat-time: omit unnecessary AC_C_INLINE
1095         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
1096         Do not require AC_C_INLINE.
1097
1098         ignore-value: omit unnecessary AC_C_INLINE
1099         * modules/ignore-value (configure.ac): Do not require AC_C_INLINE.
1100
1101         sys_select: avoid 'static inline'
1102         * lib/sys_select.in.h (rpl_fd_isset): Now static, not static inline.
1103
1104         mktime: avoid 'static inline'
1105         * lib/mktime.c (leapyear, ydhms_diff): Now static, not static inline.
1106         * m4/mktime.m4 (gl_PREREQ_MKTIME): Do not require AC_C_INLINE.
1107
1108 2012-08-19  Bruno Haible  <bruno@clisp.org>
1109
1110         gnulib-tool: Improve coding style.
1111         * gnulib-tool (func_emit_tests_Makefile_am): Set perhapsLT, like in
1112         func_emit_lib_Makefile_am.
1113         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
1114
1115 2012-08-19  Bruno Haible  <bruno@clisp.org>
1116
1117         gnulib-tool: Fix indentation.
1118         * gnulib-tool (func_import): Fix indentation.
1119
1120 2012-08-19  Bruno Haible  <bruno@clisp.org>
1121
1122         gnulib-tool: Remove old file names from .cvsignore, .gitignore.
1123         * gnulib-tool (func_update_ignorelist): Don't use 'join -v 1' command
1124         on the list of removed files.
1125
1126 2012-08-17  Paul Eggert  <eggert@cs.ucla.edu>
1127
1128         test-parse-datetime: avoid glibc leap-second glitch
1129         * tests/test-parse-datetime.c (main): Set TZ to US Eastern time
1130         with the 2012 rules.  Problem reported by Bruce Dubbs in
1131         <http://bugs.gnu.org/12206>.
1132
1133 2012-08-14  Bruno Haible  <bruno@clisp.org>
1134
1135         gnulib-tool: Fix indentation of generated gnulib-comp.m4 file.
1136         * gnulib-tool (func_emit_autoconf_snippet): Initialize indentation
1137         from argument.
1138         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
1139
1140 2012-08-14  Eric Blake  <eblake@redhat.com>
1141
1142         ldexp: relax license
1143         * modules/ldexp (License): Trivial relax, since the module only
1144         provides a permissively licensed m4 file.
1145
1146 2012-08-13  Bruno Haible  <bruno@clisp.org>
1147
1148         gnulib-tool: Fix persistence of --witness-c-macro option.
1149         * gnulib-tool (func_import): Fix typo in emit of gl_WITNESS_C_MACRO.
1150         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
1151
1152 2012-08-11  Eric Blake  <eblake@redhat.com>
1153
1154         count-leading-zeros: use a lookup table on non-gcc compilers
1155         * lib/count-leading-zeros.h (count_leading_zeros_32): Use an
1156         alternate implementation, suggested by Jim Meyering.
1157
1158 2012-08-10  Eric Blake  <eblake@redhat.com>
1159
1160         count-leading-zeros: new module
1161         * modules/count-leading-zeros: New module.
1162         * m4/count-leading-zeros.m4: New file.
1163         * lib/count-leading-zeros.h: Likewise.
1164         * modules/count-leading-zeros-tests: New test.
1165         * tests/test-count-leading-zeros.c: New file.
1166         * MODULES.html.sh (Integer arithmetic functions): Document it.
1167
1168 2012-08-07  Simon Josefsson  <simon@josefsson.org>
1169             Jim Meyering  <meyering@redhat.com>
1170
1171         maintainer-makefile: Fix syntax error with dash.
1172         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): Quote arguments.
1173         (sc_vulnerable_makefile_CVE-2012-3386): Likewise.
1174
1175 2012-08-05  Jim Meyering  <meyering@redhat.com>
1176
1177         extern-inline: also ignore -Wmissing-declarations
1178         * m4/extern-inline.m4: Also ignore -Wmissing-declarations,
1179         required with gcc-4.8.0-to-be.
1180
1181         maint.mk: sc_prohibit_magic_number_exit: avoid new false positives
1182         * top/maint.mk (sc_prohibit_magic_number_exit): Also filter out matches
1183         for /error ?([^,]*)/.  This avoids false-positives for strings like
1184         "Unknown error (252)", introduced via commit v0.0-7538-g92875a6.
1185
1186 2012-08-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
1187
1188         gnumakefile: better interaction with Automake-NG
1189         * modules/gnumakefile [Makefile.am]: The makefiles generated by
1190         Automake-NG always contain a definition of VPATH, even in non-VPATH
1191         builds (its value being simply '.' in that case).  So, in the
1192         'clean-GNUmakefile' rule, to determine whether running under a
1193         VPATH setup, compare '$(srcdir)' to '.' rather than checking whether
1194         '$(VPATH)' expands to the empty string.
1195
1196 2012-08-02  Carlo de Falco  <carlo.defalco@polimi.it>  (tiny change)
1197
1198         base64: Use extern C scope in header file, for C++.
1199         * lib/base64.h: Add C++ namespace protection.
1200
1201 2012-08-02  Paul Eggert  <eggert@cs.ucla.edu>
1202
1203         stat-time, timespec, u64: support naive out-of-dir builds
1204         * lib/stat-time.c, lib/timespec.c, lib/u64.c:
1205         Use '#include "foo.h"', not '#include <foo.h>', when including
1206         one's own interface.  This works better when configuring with
1207         out-of-directory builds, since packages need not add an
1208         otherwise-unnecessary -I$(topdir_src)/lib to DEFAULT_INCLUDES.
1209
1210 2012-08-01  Paul Eggert  <eggert@cs.ucla.edu>
1211
1212         utimens: use extern-inline
1213         * lib/utimens.c (_GL_UTIMENS_INLINE): Define when including utimens.h.
1214         * lib/utimens.h: Add copyright notice, since this is now large enough
1215         to copyright.  Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1216         (_GL_UTIMENS_INLINE): New macro.  Use it instead of 'static inline'.
1217         * modules/utimens (Depends-on): Add extern-inline.
1218
1219         u64: use extern-inline
1220         * lib/u64.c: New file.
1221         * lib/u64.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1222         (_GL_U64_INLINE): New macro.  Use it instead of 'static inline'.
1223         * modules/u64 (Files): Add lib/u64.c.
1224         (Depends-on): Add extern-inline.
1225         (configure.ac): No need to require AC_C_INLINE, since extern-inline
1226         does that now.
1227         (lib_SOURCES): Add u64.c.
1228
1229         timespec: use extern-inline
1230         * lib/timespec.c: New file.
1231         * lib/timespec.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1232         (_GL_TIMESPEC_INLINE): New macro.  Use it instead of 'static inline'.
1233         * modules/timespec (Files): Add lib/timespec.c.
1234         (Depends-on): Add extern-inline.
1235         (lib_SOURCES): Add timespec.c.
1236
1237         stat-time: use extern-inline
1238         * lib/stat-time.c: New file.
1239         * lib/stat-time.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1240         (_GL_STAT_TIME_INLINE): New macro.  Use it instead of 'static inline'.
1241         * modules/stat-time (Files): Add lib/stat-time.c.
1242         (Depends-on): Add extern-inline.
1243         (lib_SOURCES): Add stat-time.c.
1244
1245         extern-inline: new module
1246         * modules/extern-inline, m4/extern-inline.m4: New files.
1247         This is for better support of 'extern inline' a la ISO C99,
1248         with a portable alternative on compilers that do not support
1249         C99-style 'extern inline'.  Using 'extern inline' shrinks the size
1250         of the Emacs executable, when compiled with debugging disabled,
1251         which is a typical way that Emacs is built while developing.
1252
1253 2012-08-01  Akim Demaille  <akim@lrde.epita.fr>
1254
1255         maint.mk: a "release-commit" wrapper to do-release-commit-and-tag
1256         * build-aux/do-release-commit-and-tag: Move variable definitions
1257         together.
1258         ($branch): Instead of defaulting to "master", default to the current
1259         branch (as gnu-web-doc-update does).
1260         (help): Display the current values of the option arguments.
1261         * top/maint.mk (release-commit): New.
1262         * top/README-release: Simplify the corresponding step.
1263
1264 2012-07-30  Eric Blake  <eblake@redhat.com>
1265
1266         passfd: fix comment on recvfd
1267         * lib/passfd.c (recvfd): Fix comment.
1268         Reported by Jann Horn <jannhorn@googlemail.com>.
1269
1270 2012-07-30  Jim Meyering  <meyering@redhat.com>
1271
1272         maint.mk: avoid a sub-shell
1273         * top/maint.mk (release-prep): Remove unneeded sub-shell.
1274
1275 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
1276
1277         maint.mk: use silent-rules support from Automake
1278         * top/maint.mk (news-check, vc-diff-check, announcement)
1279         (no-submodule-changes, alpha beta stable, release-prep)
1280         (web-manual, update-copyright): Use $(AM_V_GEN) and $(AM_V_at).
1281
1282 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
1283
1284         maint.mk: provide a web-manual-update target
1285         * top/maint.mk: here.
1286         * top/README-release: Use it to simplify the web manual update step.
1287
1288 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
1289
1290         README-release: shorten the circuit to post a news
1291         * top/README-release: Point directly to the news submission form.
1292
1293 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
1294
1295         gnu-web-doc-update: fix --help
1296         * build-aux/gnu-web-doc-update: The information "top level" was written
1297         twice.
1298
1299 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
1300
1301         maint.mk: absolute VPATH issue
1302         * top/maint.mk (release-prep): Help Git find .git/.
1303         From Jim Meyering.
1304
1305 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
1306
1307         gitlog-to-changelog: fix previous change
1308         * build-aux/gitlog-to-changelog: Fix condition.
1309         Add missing ";".
1310
1311 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
1312
1313         gitlog-to-changelog: don't expect .git to be in $srcdir
1314         Reported by Bruno Haible.
1315         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00265.html>
1316         * build-aux/gitlog-to-changelog (&git_dir_option): New.
1317         Use it.
1318
1319 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
1320
1321         maint.mk: absolute VPATH build fix
1322         * top/maint.mk (gpg_key_ID): Help git find .git when, for instance,
1323         $(srcdir) is not a parent of $(builddir).
1324
1325 2012-07-28  John Darrington  <john@darrington.wattle.id.au>
1326
1327         clean-temp: Fix memory leak.
1328         * lib/clean-temp.c (cleanup_temp_dir): Free also the 'subdirs' and
1329         'files' members of tmpdir.
1330
1331 2012-07-27  Jim Meyering  <meyering@redhat.com>
1332
1333         maint.mk: new rule: refresh-gnulib-patches
1334         I noticed that 8 of coreutils' 9 gl/**/*.diff files were stale.
1335         Use this rule to refresh them.
1336         * top/maint.mk (refresh-gnulib-patches): New rule.
1337
1338 2012-07-24  Bruno Haible  <bruno@clisp.org>
1339
1340         gnulib-tool: Fix handling of inctests variable.
1341         * gnulib-tool: Canonicalize $inctests also in 'update' mode.
1342         Reported by Nick Bowler <nbowler@elliptictech.com>.
1343
1344 2012-07-22  Bruno Haible  <bruno@clisp.org>
1345
1346         getpass: Assume AC_CHECK_DECLS_ONCE invocation, like in getpass.m4.
1347         * lib/getpass.h: Assume HAVE_DECL_GETPASS is defined.
1348         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
1349         Remove exemption for getpass.h.
1350         Suggested by Eric Blake.
1351
1352 2012-07-20  Eric Blake  <eblake@redhat.com>
1353
1354         verify: document conflict with -Wnested-externs
1355         * lib/verify.h: Give hint about usage when gcc warnings are enabled.
1356
1357         maint.mk: forbid exit(-1)
1358         * top/maint.mk (sc_prohibit_magic_number_exit): Detect negatives.
1359
1360 2012-07-20  Paul Eggert  <eggert@cs.ucla.edu>
1361
1362         fsusage: port back to Solaris
1363         * lib/fsusage.c (get_fs_usage): Fix busted logic causing compile-time
1364         error (fsd not declared) on Solaris 10.  Reported privately by
1365         Andrew Borodin.
1366
1367 2012-07-19  Akim Demaille  <akim@lrde.epita.fr>
1368
1369         gnu-web-doc-update: fix error messages
1370         * build-aux/gnu-web-doc-update: Don't pass $ME to die.
1371
1372         gnu-web-doc-update: check the requirements.
1373         * build-aux/gnu-web-doc-update (find_tool): Import from bootstrap.
1374         ($CVS, $CVSU, $GIT, $RSYNC, $XARGS): New.
1375         * build-aux/bootstrap (find_tool): Comment change.
1376
1377 2012-07-17  Akim Demaille  <akim@lrde.epita.fr>
1378
1379         maint.mk: minor simplication.
1380         * top/maint.mk (_sc_excl): Use $(or...) instead of $(if...)
1381         for default values.
1382
1383 2012-07-15  Akim Demaille  <akim@lrde.epita.fr>
1384
1385         gitlog-to-changelog: VPATH build issues
1386         If builddir is not a subdirectory of srcdir, running git from it will
1387         fail.
1388         * build-aux/gitlog-to-changelog (--srcdir): New option.
1389
1390 2012-07-15  Bruno Haible  <bruno@clisp.org>
1391
1392         fpending: Assume AC_CHECK_DECLS_ONCE invocation, like in fpending.m4.
1393         * lib/fpending.h: Assume HAVE_DECL___FPENDING is defined.
1394         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests)
1395         Remove exemption for fpending.h.
1396         Suggested by Eric Blake.
1397
1398 2012-07-15  Paul Eggert  <eggert@cs.ucla.edu>
1399
1400         pthread_sigmask: fix bug on FreeBSD 9
1401         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_INEFFECTIVE]:
1402         Include string.h.
1403         (pthread_sigmask) [PTHREAD_SIGMASK_INEFFECTIVE]:
1404         When calling pthread_sigmask (1729, NEW, OLD), specify non-null NEW;
1405         this avoids a bug on FreeBSD 9, where pthread_sigmask is effective
1406         but pthread_sigmask (1729, NULL, NULL) returns zero.
1407         See <http://bugs.gnu.org/11884>.
1408         Avoid the need to call pthread_sigmask (1729, ...) in most cases,
1409         by inspecting whether the main call changed the old mask.
1410
1411 2012-07-15  Reuben Thomas  <rrt@sc3d.org>
1412
1413         README-release: make it more legible
1414         * top/README-release: Improve typography slightly.
1415
1416 2012-07-15  Jim Meyering  <meyering@redhat.com>
1417
1418         maint: require that each sc_... command start with "@"
1419         * Makefile (sc_prohibit_sc_omitted_at): New rule so that
1420         "make sc_maint" helps us avoid this nit.
1421
1422 2012-07-15  Jim Meyering  <meyering@redhat.com>
1423
1424         maint.mk: add leading "@" to quiet new "make syntax-check" rule
1425         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Add "@".
1426
1427 2012-07-13  Eric Blake  <eblake@redhat.com>
1428
1429         maint.mk: new syntax check for HAVE_DECL checks
1430         * top/maint.mk (sc_prohibit_defined_have_decl_tests): New rule.
1431         * cfg.mk
1432         (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
1433         Exempt some false positives.
1434         Based on a report by Karel Zak.
1435
1436         argp: make HAVE_DECL usage consistent
1437         * lib/argp-parse.c (__argp_parse): Check contents of HAVE_DECL
1438         macros, not whether they are defined.
1439         * m4/argp.m4 (gl_ARGP): Always define HAVE_DECL_* macros, per
1440         convention with other declaration checks.
1441         Reported by Karel Zak, with suggestions from Paul Eggert.
1442
1443         stat-time: relax license to LGPLv2+
1444         * modules/stat-time (License): Relax, with consent of all authors.
1445
1446         strndup: fix m4 usage error
1447         * m4/strndup.m4 (gl_FUNC_STRNDUP): HAVE_DECL_STRNDUP is always
1448         defined, to either 0 or 1.
1449         Reported by Karel Zak.
1450
1451 2012-07-11  Jim Meyering  <meyering@redhat.com>
1452
1453         maint: enable the sc_avoid_if_before_free syntax-check rule
1454         * cfg.mk (local-checks-to-skip): Enable sc_avoid_if_before_free.
1455         (if_before_free_offenders_): Define.
1456         (if_before_free_basename_re_): Define.
1457         Exempt current files with useless if-before-free.
1458
1459 2012-07-11  Paul Eggert  <eggert@cs.ucla.edu>
1460
1461         gettext: do not assume '#define ... defined ...' behavior
1462         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS):
1463         Do not use '#define FOO ... defined BAR ...', as the C standard says
1464         it's not portable to expect that this works after macro expansion.
1465         Problem reported for gzip by Steven M. Schweda in
1466         <http://lists.gnu.org/archive/html/bug-gzip/2012-07/msg00000.html>.
1467
1468 2012-07-10  Paul Eggert  <eggert@cs.ucla.edu>
1469
1470         getloadavg: clean out old Emacs and Autoconf cruft
1471         See Glenn Morris in <http://bugs.gnu.org/11905>.
1472         * lib/getloadavg.c: Include <config.h>, <stdbool.h> always.
1473         Include <sys/param.h> if HAVE_SYS_PARAM_H, not if unix or __unix.
1474         (LDAV_CVT): Remove no-longer-used LOAD_AVE_CVT hook.
1475         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Check for <sys/param.h>.
1476
1477 2012-07-10  Akim Demaille  <akim@lrde.epita.fr>
1478
1479         bootstrap: let warn be like tests/init.sh's warn_
1480         Reported by Jim Meyering.
1481         * build-aux/bootstrap (warn): Remove, replaced by...
1482         (warnf_, warn_): these.
1483         Adjust callers.
1484         Shorten messages that no longer fit in 80 columns.
1485
1486 2012-07-09  Bruno Haible  <bruno@clisp.org>
1487
1488         getopt: Simplify after Emacs changed.
1489         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Inline gl_GETOPT_IFELSE.
1490         (gl_GETOPT_IFELSE): Remove macro.
1491
1492 2012-07-09  Jim Meyering  <meyering@redhat.com>
1493
1494         maint.mk: add sc_vulnerable_makefile_CVE-2012-3386
1495         * top/maint.mk (sc_vulnerable_makefile_CVE-2012-3386): New rule.
1496
1497         maint.mk: _sc_search_regexp, sc_vulnerable_makefile_CVE-2009-4029: fix
1498         Bugs in both of those conspired to make the
1499         sc_vulnerable_makefile_CVE-2009-4029 rule 99% useless.
1500         _sc_search_regexp's handling of non-empty $in_files would filter
1501         out any offending file names.  sc_vulnerable_makefile_CVE-2009-4029's
1502         choice of in_files value meant there would be no match in most
1503         projects, due to the presence of two or more Makefile.in files.
1504         * top/maint.mk (_sc_search_regexp) [in_vc_files,in_files]: Clarify.
1505         Fix a bug in how a non-empty $$in_files was processed:
1506         (sc_vulnerable_makefile_CVE-2009-4029): Fix erroneous use of in_files:
1507         in spite of the name, it's a regexp, not a list of file names.
1508
1509 2012-07-09  Paul Eggert  <eggert@cs.ucla.edu>
1510
1511         getloadavg, getopt: fix commentary re configure.in
1512         Autoconf is deprecating the name 'configure.in', so change it to
1513         to the new name 'configure.ac' in a couple of places.
1514         * lib/getloadavg.c: configure.in -> configure.ac, in comment.
1515         * m4/getopt.m4 (gl_GETOPT_IFELSE, gl_GETOPT_SUBSTITUTE_HEADER)
1516         (gl_PREREQ_GETOPT): Remove obsolete commentary re Emacs configure.in.
1517         Emacs has renamed it to configure.ac, and it no longer refers
1518         to these macros anyway.
1519
1520         timespec: mark functions with const attributes
1521         * lib/timespec.h (timespec_add, timespec_sub, dtotimespec):
1522         Mark with _GL_ATTRIBUTE_CONST.
1523
1524 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
1525
1526         canonicalize[-lgpl]: handle "guessing" values when cross-building
1527         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
1528         (gl_CANONICALIZE_LGPL): Check whether $gl_cv_func_realpath_works
1529         matches "*yes" instead of just "yes".  Regression introduced in commit
1530         e0bcf6626cde8dad4bfbdc4045c744f0cd8b9e24.
1531
1532 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
1533             Bruno Haible  <bruno@clisp.org>
1534
1535         canonicalize: make the right guess when cross-compiling to GNU
1536         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Match also "gnu*" to
1537         determine whether cross-compiling to glibc systems, so as to
1538         include GNU/Hurd.
1539
1540 2012-07-06  Paul Eggert  <eggert@cs.ucla.edu>
1541
1542         timespec-sub: avoid duplicate include
1543         * lib/timespec-sub.c: Do not include <config.h> twice.
1544         Reported by Juanma Barranquero.
1545
1546 2012-07-06  Akim Demaille  <akim@lrde.epita.fr>
1547
1548         bootstrap: use a more consistent error reporting scheme
1549         * build-aux/bootstrap (warn, die): New.
1550         Use them.
1551
1552 2012-07-05  Paul Eggert  <eggert@cs.ucla.edu>
1553
1554         sys_time: allow too-wide tv_sec
1555         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Allow struct
1556         timeval even if tv_sec is wider than time_t.  This allows
1557         OpenBSD 5.1 amd64 and fixes an Emacs porting glitch with utimens.c,
1558         as without this patch gnulib replaces struct timeval
1559         and OpenBSD futimes therefore has a type mismatch.
1560         * doc/posix-headers/sys_time.texi: Mention this.
1561
1562         pthread: check for both pthread_create and pthread_join
1563         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, but
1564         alter the check so that it tests for both pthread_create and
1565         pthread_join.  This should be more portable to hosts like OSF/1 5.1.
1566         Suggested by Bruno Haible and Richard Yao in
1567         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00048.html>.
1568
1569         parse-datetime: doc tuneup
1570         * doc/parse-datetime.texi: Index "leap seconds" and fix minor
1571         spacing issues.
1572
1573 2012-07-05  Akim Demaille  <akim@lrde.epita.fr>
1574
1575         do-release-commit-and-tag: fix the previous commit
1576         * build-aux/do-release-commit-and-tag: Actually the test was right,
1577         but the comment and the error message were misleading.
1578         Fix comment, and improve error message.
1579         Perform check first, so that NEWS is not modified uselessly.
1580
1581         do-release-commit-and-tag: fix typo
1582         * build-aux/do-release-commit-and-tag: Be sure that NEWS does
1583         _not_ start with a stub.
1584
1585 2012-07-04  Paul Eggert  <eggert@cs.ucla.edu>
1586
1587         pthread: check for pthread_create, not pthread_join
1588         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_create, not
1589         pthread_join.  On FreeBSD 9, pthread_create is in libpthread but
1590         pthread_join in libc.  I hope this removes the need for all the
1591         OSF/1 5.1 pthread_join business.  Reported by Richard Yao in
1592         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00042.html>.
1593
1594 2012-07-04  Jim Meyering  <meyering@redhat.com>
1595
1596         parse-datetime: fix failure to diagnose invalid input
1597         date -d "$(printf '\xb0')" would print 00:00:00 with today's date
1598         rather than diagnosing the invalid input.  Now it reports this:
1599         date: invalid date '\260'
1600         * lib/parse-datetime.y (to_uchar): Define.
1601         (yylex): Don't sign-extend "other" bytes.
1602         * m4/parse-datetime.m4: Require AC_C_INLINE for first use of "inline".
1603         Thanks to Bruno Haible for the patch to this file.
1604         * tests/test-parse-datetime.c (main): Add a test to trigger the bug.
1605         Peter Evans reported the bug in GNU date: http://bugs.gnu.org/11843
1606
1607 2012-07-03  Jim Meyering  <meyering@redhat.com>
1608
1609         bootstrap: do not require now-removed build-aux/missing
1610         Now that build-aux/missing is, er, missing, bootstrap would
1611         silently fail.
1612         * build-aux/bootstrap (gnulib_extra_files): Remove $build_aux/missing
1613         from the list, now that (since commit v0.0-7489-gd0f486f) the file is
1614         no longer part of gnulib.
1615         Diagnose the failure.
1616
1617 2012-07-03  Paul Eggert  <eggert@cs.ucla.edu>
1618
1619         alloca: add support for HP NonStop TNS/E native
1620         * lib/alloca.in.h (alloca): Support the new host.
1621         From a suggestion by Joachim Schmitz in
1622         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00355.html>.
1623
1624 2012-07-02  Pádraig Brady  <P@draigBrady.com>
1625
1626         fsusage: remove code not needed on non GNU/Linux systems.
1627
1628         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
1629         Don't include headers no longer needed in this case.
1630         * lib/fsusage.c [STAT_STATVFS &&
1631         ! (__linux__ && (__GLIBC__||__UCLIBC__))]: Undefine
1632         STAT_STATFS2_FRSIZE to exclude code not used in this case.
1633
1634 2012-07-02  Paul Eggert  <eggert@cs.ucla.edu>
1635
1636         fsusage: include files needed for glibc 2.6 fallback
1637         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
1638         Include <sys/param.h>, <sys/mount.h>, <sys/vfs.h>
1639         as they are needed for the 2.6 < glibc/Linux < 2.6.36 fallback.
1640         Problem reported by Ludovic Courtès in
1641         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00005.html>.
1642
1643         fsusage: avoid needless check on GNU/Linux
1644         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Omit STAT_STATFS3_OSF1 check
1645         on GNU/Linux systems, since it can't possibly work.
1646
1647 2012-07-01  Bruno Haible  <bruno@clisp.org>
1648
1649         log: Fix an autoconf >= 2.64 warning.
1650         * modules/log (configure.ac): Require, not invoke, gl_FUNC_LOG.
1651         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
1652
1653 2012-06-28  Bruno Haible  <bruno@clisp.org>
1654
1655         log10f: Fix possible configuration problem.
1656         * m4/log10f.m4 (gl_FUNC_LOG10F): Augment LIBS by $LOG10F_LIBM, not
1657         $LOGF_LIBM.
1658         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
1659
1660 2012-06-28  Bruno Haible  <bruno@clisp.org>
1661
1662         remove: No longer override on all platforms. Fixes bug from 2010-03-20.
1663         * m4/remove.m4 (gl_FUNC_REMOVE): Test gl_cv_func_unlink_honors_slashes,
1664         not gl_cv_func_unlink_works.
1665         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
1666
1667 2012-06-27  Eric Blake  <eblake@redhat.com>
1668
1669         config: drop scripts that automake says are not independent
1670         * config/srclist.txt: Drop elisp-comp, missing, and ylwrap.
1671         * build-aux/elisp-comp: Delete.
1672         * build-aux/missing: Likewise.
1673         * build-aux/ylwrap: Likewise.
1674         * modules/elisp-comp: Likewise.
1675         * MODULES.html.sh: Drop mention of elisp-comp.
1676         * NEWS: Mention this.
1677
1678 2012-06-26  Paul Eggert  <eggert@cs.ucla.edu>
1679
1680         root-uid: new module
1681         This is for portability to Tandem's NonStop Kernel.
1682         * lib/root-uid.h, modules/root-uid: New files.
1683         * lib/euidaccess.c, lib/pt_chown.c, lib/unlinkdir.c:
1684         * lib/write-any-file.c, tests/test-sethostname2.c:
1685         Include "root-uid.h".
1686         * lib/euidaccess.c (euidaccess):
1687         * lib/pt_chown.c (main):
1688         * lib/unlinkdir.c (cannot_unlink_dir):
1689         * lib/write-any-file.c (can_write_any_file):
1690         * m4/mknod.m4 (gl_FUNC_MKNOD):
1691         * tests/test-sethostname2.c (geteuid, main):
1692         Don't assume ROOT_UID == 0.
1693         * modules/euidaccess (Depends-on):
1694         * modules/pt_chown (Depends-on):
1695         * modules/sethostname-tests (Depends-on):
1696         * modules/unlinkdir (Depends-on):
1697         * modules/write-any-file (Depends-on):
1698         Add root-uid.
1699
1700         regex: use locale-independent comparison for codeset name
1701         See Bruno Haible's comment in <http://bugs.gnu.org/10305#120>.
1702         * lib/regcomp.c (init_dfa): Use just ASCII case comparison
1703         for codeset name.
1704         * lib/regex_internal.h: Do not include <strings.h>, since we
1705         no longer use strcasecmp.
1706         * modules/regex (Depends-on): Remove strcase.
1707
1708 2012-06-23  Bruno Haible  <bruno@clisp.org>
1709
1710         getopt-posix: No longer guarantee that option processing is resettable.
1711         * doc/posix-functions/getopt.texi: Drop description of problem with
1712         internal state. Fix info about mingw and msvc9.
1713         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't require a resettable
1714         option processing by getopt(). Run three test programs instead of one.
1715         Simplify cross-compilation guess.
1716         * NEWS: Mention the change.
1717         Reported by Rich Felker <dalias@aerifal.cx>.
1718
1719 2012-06-26  Bruno Haible  <bruno@clisp.org>
1720
1721         argp, regex: Ensure strcasecmp gets declared.
1722         * lib/argp-help.c: Include <strings.h>.
1723         * lib/regex_internal.h: Likewise.
1724         Reported and suggested by Joachim Schmitz <jojo@schmitz-digital.de>.
1725
1726 2012-06-24  Bruno Haible  <bruno@clisp.org>
1727
1728         ptsname_r: Make it consistent with ptsname on AIX.
1729         * lib/ptsname_r.c (__ptsname_r): For AIX, use nearly the same
1730         implementation as for OSF/1.
1731         * tests/test-ptsname_r.c (main) [AIX]: Use the modern way of opening
1732         a pty master.
1733
1734         ptsname_r: Make it consistent with ptsname on OSF/1.
1735         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
1736         OSF/1.
1737
1738 2012-06-24  Bruno Haible  <bruno@clisp.org>
1739
1740         ttyname_r: Fix result on OSF/1, Solaris.
1741         * lib/ttyname_r.c (ttyname_r): Produce a NUL-terminated result.
1742
1743 2012-06-24  Bruno Haible  <bruno@clisp.org>
1744
1745         ptsname_r: Add support for Solaris.
1746         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
1747         Solaris.
1748
1749         ptsname_r: Fix test failure on native Windows.
1750         * modules/ptsname_r (Depends-on): Add isatty.
1751
1752         ptsname_r: Fix test failures on IRIX, Solaris.
1753         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Test whether isatty sets
1754         errno when it fails. Define ISATTY_FAILS_WITHOUT_SETTING_ERRNO
1755         accordingly.
1756         * lib/ptsname_r.c: Include <fcntl.h>.
1757         (__ptsname_r): When isatty returned false, then on IRIX, Solaris
1758         set errno if fd is invalid.
1759         * tests/test-isatty.c (main): Update comments.
1760
1761 2012-06-24  Bruno Haible  <bruno@clisp.org>
1762
1763         ptsname test: Extend test.
1764         * tests/test-ptsname.c: Include <errno.h>.
1765         (main): Test behaviour with invalid file descriptor.
1766
1767 2012-06-23  Paul Eggert  <eggert@cs.ucla.edu>
1768
1769         time: fix obsolete comment
1770         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Remove obsolete
1771         reference to HAVE_STRUCT_TIMESPEC in comment.
1772
1773 2012-06-23  Bruno Haible  <bruno@clisp.org>
1774
1775         getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
1776         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): If getopt_long exists but
1777         does not handle abbreviated long options with equivalent
1778         disambiguations, set gl_replace_getopt to yes.
1779         * doc/posix-functions/getopt.texi: Mention the OpenBSD 5.0 problem.
1780
1781 2012-06-22  Paul Eggert  <eggert@cs.ucla.edu>
1782
1783         time_r: fix typo that always overrode localtime_r decl
1784         * m4/time_r.m4 (gl_TIME_R): Use AC_CHECK_DECLS, not
1785         AC_CHECK_DECLS_ONCE, since localtime_r is declared in <time.h>,
1786         not in a standard include.
1787
1788 2012-06-22  Bruno Haible  <bruno@clisp.org>
1789
1790         Write "Mac OS X" instead of "MacOS X".
1791         * README: Write "Mac OS X" instead of "MacOS X".
1792         * build-aux/bootstrap: Likewise.
1793         * build-aux/install-reloc: Likewise.
1794         * lib/acl-internal.h: Likewise.
1795         * lib/acl_entries.c: Likewise.
1796         * lib/argp-ba.c: Likewise.
1797         * lib/argp-pv.c: Likewise.
1798         * lib/config.charset: Likewise.
1799         * lib/copy-acl.c: Likewise.
1800         * lib/csharpexec.c: Likewise.
1801         * lib/euidaccess.c: Likewise.
1802         * lib/fbufmode.c: Likewise.
1803         * lib/fflush.c: Likewise.
1804         * lib/file-has-acl.c: Likewise.
1805         * lib/filemode.h: Likewise.
1806         * lib/fpurge.c: Likewise.
1807         * lib/freadable.c: Likewise.
1808         * lib/freadahead.c: Likewise.
1809         * lib/freading.c: Likewise.
1810         * lib/freadptr.c: Likewise.
1811         * lib/freadseek.c: Likewise.
1812         * lib/fseeko.c: Likewise.
1813         * lib/fseterr.c: Likewise.
1814         * lib/fsusage.c: Likewise.
1815         * lib/fwritable.c: Likewise.
1816         * lib/fwriting.c: Likewise.
1817         * lib/get-rusage-as.c: Likewise.
1818         * lib/get-rusage-data.c: Likewise.
1819         * lib/getdomainname.c: Likewise.
1820         * lib/idpriv-drop.c: Likewise.
1821         * lib/idpriv-droptemp.c: Likewise.
1822         * lib/localcharset.c: Likewise.
1823         * lib/locale.in.h: Likewise.
1824         * lib/localename.c: Likewise.
1825         * lib/mbsrtowcs-state.c: Likewise.
1826         * lib/nproc.c: Likewise.
1827         * lib/passfd.c: Likewise.
1828         * lib/posix_openpt.c: Likewise.
1829         * lib/printf-parse.c: Likewise.
1830         * lib/progreloc.c: Likewise.
1831         * lib/safe-read.h: Likewise.
1832         * lib/safe-write.h: Likewise.
1833         * lib/sched.in.h: Likewise.
1834         * lib/set-mode-acl.c: Likewise.
1835         * lib/signal.in.h: Likewise.
1836         * lib/stdint.in.h: Likewise.
1837         * lib/stdio-impl.h: Likewise.
1838         * lib/stdlib.in.h: Likewise.
1839         * lib/strtod.c: Likewise.
1840         * lib/sys_select.in.h: Likewise.
1841         * lib/tcgetsid.c: Likewise.
1842         * lib/unistd.in.h: Likewise.
1843         * lib/unlockpt.c: Likewise.
1844         * lib/vasnprintf.c: Likewise.
1845         * lib/vma-iter.c: Likewise.
1846         * lib/wcsrtombs-state.c: Likewise.
1847         * m4/acl.m4: Likewise.
1848         * m4/acosl.m4: Likewise.
1849         * m4/asinl.m4: Likewise.
1850         * m4/atanl.m4: Likewise.
1851         * m4/c-stack.m4: Likewise.
1852         * m4/cosl.m4: Likewise.
1853         * m4/expl.m4: Likewise.
1854         * m4/extensions.m4: Likewise.
1855         * m4/fdatasync.m4: Likewise.
1856         * m4/fmal.m4: Likewise.
1857         * m4/frexp.m4: Likewise.
1858         * m4/frexpf.m4: Likewise.
1859         * m4/frexpl.m4: Likewise.
1860         * m4/fsusage.m4: Likewise.
1861         * m4/getdomainname.m4: Likewise.
1862         * m4/getloadavg.m4: Likewise.
1863         * m4/getopt.m4: Likewise.
1864         * m4/gettext.m4: Likewise.
1865         * m4/gnulib-common.m4: Likewise.
1866         * m4/intdiv0.m4: Likewise.
1867         * m4/intlmacosx.m4: Likewise.
1868         * m4/largefile.m4: Likewise.
1869         * m4/ldexpl.m4: Likewise.
1870         * m4/link-follow.m4: Likewise.
1871         * m4/locale-ar.m4: Likewise.
1872         * m4/locale-fr.m4: Likewise.
1873         * m4/locale-ja.m4: Likewise.
1874         * m4/locale-tr.m4: Likewise.
1875         * m4/locale-zh.m4: Likewise.
1876         * m4/locale_h.m4: Likewise.
1877         * m4/lock.m4: Likewise.
1878         * m4/logl.m4: Likewise.
1879         * m4/mathfunc.m4: Likewise.
1880         * m4/minus-zero.m4: Likewise.
1881         * m4/mktime.m4: Likewise.
1882         * m4/mmap-anon.m4: Likewise.
1883         * m4/multiarch.m4: Likewise.
1884         * m4/nanosleep.m4: Likewise.
1885         * m4/nocrash.m4: Likewise.
1886         * m4/poll.m4: Likewise.
1887         * m4/printf-frexpl.m4: Likewise.
1888         * m4/printf.m4: Likewise.
1889         * m4/signbit.m4: Likewise.
1890         * m4/sinl.m4: Likewise.
1891         * m4/sqrtl.m4: Likewise.
1892         * m4/strerror_r.m4: Likewise.
1893         * m4/tanl.m4: Likewise.
1894         * m4/threadlib.m4: Likewise.
1895         * m4/ttyname_r.m4: Likewise.
1896         * m4/unlink.m4: Likewise.
1897         * m4/visibility.m4: Likewise.
1898         * m4/wcwidth.m4: Likewise.
1899         * tests/minus-zero.h: Likewise.
1900         * tests/test-alloca-opt.c: Likewise.
1901         * tests/test-copy-acl.sh: Likewise.
1902         * tests/test-copy-file.sh: Likewise.
1903         * tests/test-fdatasync.c: Likewise.
1904         * tests/test-file-has-acl.sh: Likewise.
1905         * tests/test-flock.c: Likewise.
1906         * tests/test-fsync.c: Likewise.
1907         * tests/test-localename.c: Likewise.
1908         * tests/test-malloca.c: Likewise.
1909         * tests/test-nonblocking-pipe.h: Likewise.
1910         * tests/test-nonblocking-socket.h: Likewise.
1911         * tests/test-openpty.c: Likewise.
1912         * tests/test-posix_openpt.c: Likewise.
1913         * tests/test-ptsname.c: Likewise.
1914         * tests/test-ptsname_r.c: Likewise.
1915         * tests/test-sameacls.c: Likewise.
1916         * tests/test-select.h: Likewise.
1917         * tests/test-set-mode-acl.sh: Likewise.
1918         * tests/test-snprintf-posix.h: Likewise.
1919         * tests/test-sprintf-posix.h: Likewise.
1920         * tests/test-strtod.c: Likewise.
1921         * tests/test-time.c: Likewise.
1922         * tests/test-vasnprintf-posix.c: Likewise.
1923         * tests/test-vasprintf-posix.c: Likewise.
1924         * doc/acl-resources.txt: Likewise.
1925         * doc/**/*.texi: Likewise.
1926         Reported by Max Horn <max@quendi.de>.
1927
1928 2012-06-22  Bruno Haible  <bruno@clisp.org>
1929
1930         grantpt: Relax requirement regarding invalid file descriptors.
1931         * lib/grantpt.c: Don't include <fcntl.h>.
1932         (grantpt): Don't verify the validity of the file descriptor.
1933         * modules/grantpt (Depends-on): Remove fcntl-h.
1934         * tests/test-grantpt.c (main): Allow grantpt to succeed for invalid
1935         file descriptors.
1936         * doc/posix-functions/grantpt.texi: Document more platforms on which
1937         grantpt succeeds for invalid file descriptors.
1938         Reported by Rich Felker <dalias@aerifal.cx>.
1939
1940 2012-06-22  Bruno Haible  <bruno@clisp.org>
1941
1942         fbufmode test: Don't test unportable behaviour.
1943         * tests/test-fbufmode.c (test_mode): New function, extracted from main.
1944         (main): Invoke it three times.
1945         Reported by Szabolcs Nagy <nsz@port70.net>
1946         and Rich Felker <dalias@aerifal.cx>.
1947
1948 2012-06-21  Bruno Haible  <bruno@clisp.org>
1949
1950         gnulib-tool: Refactor inctests variable.
1951         * gnulib-tool: Normalize inctests to 'true' or 'false', not ''.
1952         (func_modules_transitive_closure,
1953         func_modules_transitive_closure_separately,
1954         func_import, func_create_testdir): Update.
1955
1956         gnulib-tool: --create-[mega]testdir, --[mega]test implies --with-tests.
1957         * gnulib-tool: Accept option --without-tests.
1958         (func_usage): Document --without-tests option. Rearrange.
1959         (inctests): Normalize according to the mode.
1960         * NEWS: Mention the change.
1961         Suggested by Simon Josefsson.
1962
1963 2012-06-21  Bruce Korb  <bkorb@gnu.org>
1964
1965         parse-duration test: Avoid spurious output.
1966         * tests/test-parse-duration.sh: Reindent with leading tabs.
1967
1968 2012-06-21  Jim Meyering  <meyering@redhat.com>
1969
1970         maint: disable the strncpy prohibition
1971         * cfg.mk: Do not prohibit strncpy here.
1972
1973 2012-06-21  Bruno Haible  <bruno@clisp.org>
1974
1975         nonblocking: Avoid compilation error on mingw64.
1976         * m4/stdio_h.m4 (gl_STDIO_H): Invoke gl_MODULE_INDICATOR for scanf,
1977         fscanf.
1978         * modules/vscanf (configure.ac): Invoke gl_MODULE_INDICATOR.
1979         * modules/vfscanf (configure.ac): Likewise.
1980         * lib/stdio-read.c (scanf, fscanf, vscanf, vfscanf): Enable function
1981         definition only if stdio.h has prepared it.
1982         Reported by Daniel P. Berrange <berrange@redhat.com>.
1983
1984 2012-06-20  Bernd Jendrissek  <bernd.jendrissek@gmail.com>  (tiny change)
1985
1986         gnulib-tool: Use readlink if it is available.
1987         * gnulib-tool (func_readlink): Choose function more appropriately.
1988
1989 2012-06-21  Paul Eggert  <eggert@cs.ucla.edu>
1990
1991         posixtm-tests: port to buggy compiler
1992         Problem reported by Simon Josefsson in
1993         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00246.html>.
1994         * modules/posixtm-tests (Depends-on): Add stdint.
1995         * tests/test-posixtm.c (struct posixtm_test.t_expected):
1996         Now of type int_least64_t, not int64_t, both because that's
1997         what INT64_C returns and because int_least64_t works even
1998         on 72-bit hosts.
1999         (T): Use INT64_C on constants outside the traditional int range,
2000         to work around compiler bug noted by Simon.
2001
2002         mktime: fix integer overflow in 'configure'-time test
2003         * m4/mktime.m4 (gl_FUNC_MKTIME): Do not rely on undefined behavior
2004         after integer overflow.  Problem reported by Rich Felker in
2005         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00257.html>.
2006         Also, don't look for further instances of a bug if we've already
2007         found one instance; this helps 'configure' run faster.
2008
2009 2012-06-20  John Darrington  <john@darrington.wattle.id.au>  (tiny change)
2010
2011         tmpfile, clean-temp: Fix invocation of GetVersionEx.
2012         * lib/tmpfile.c (supports_delete_on_close): Initialize parameter for
2013         GetVersionEx correctly.
2014         * lib/clean-temp.c (supports_delete_on_close): Likewise.
2015
2016 2012-06-20  Bruno Haible  <bruno@clisp.org>
2017
2018         fdopen: Allow implementations that don't reject invalid fd arguments.
2019         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...)
2020         succeeds.
2021         Reported by Rich Felker <dalias@aerifal.cx>.
2022
2023 2012-06-20  Simon Josefsson  <simon@josefsson.org>
2024
2025         * modules/parse-duration-tests (test_parse_duration_LDADD): Don't
2026         bring in LIBINTL.
2027
2028 2012-06-20  Paul Eggert  <eggert@cs.ucla.edu>
2029
2030         init.sh: do not rely on autoupated PWD
2031         This addresses symptoms of the problem reported by Nelson H.F. Beebe in
2032         <http://lists.gnu.org/archive/html/bug-gzip/2012-06/msg00008.html>.
2033         Although Nelson's bug was not necessarily fixed by this patch,
2034         it seems wise to make the change for safety.
2035         * tests/init.sh (path_prepend_): Do not rely on PWD updating
2036         automagically after 'cd'; this is not reliable on older shells.
2037         (setup_): Fail if we cannot cd to temporary directory.
2038
2039 2012-06-19  Bruno Haible  <bruno@clisp.org>
2040
2041         stat, fstat: Avoid warnings on mingw64.
2042         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Undefine before
2043         redefining.
2044         * lib/fstat.c (stat, fstat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Likewise.
2045         Reported by Daniel P. Berrange <berrange@redhat.com>.
2046
2047 2012-06-19  Bruno Haible  <bruno@clisp.org>
2048
2049         stdioext: Add support for musl libc.
2050
2051         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
2052         * lib/fbufmode.c (fbufmode): Add conditional code for musl.
2053
2054         * m4/fseterr.m4: New file.
2055         * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
2056         function exists.
2057         * modules/fseterr (Files): Add m4/fseterr.m4.
2058         (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
2059         __fseterr does not exist.
2060         (Makefile.am): Remove fseterr.c from lib_SOURCES.
2061
2062         * lib/freadable.h: Update comment.
2063
2064         * lib/fwritable.h: Update comment.
2065
2066         * lib/freading.h: Update comment.
2067
2068         * lib/fwriting.h: Update comment.
2069
2070         * m4/freadahead.m4: New file.
2071         * lib/freadahead.h (freadahead): Define as an alias of __freadahead if
2072         that function exists.
2073         * modules/freadahead (Files): Add m4/freadahead.m4.
2074         (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
2075         __freadahead does not exist.
2076         (Makefile.am): Remove freadahead.c from lib_SOURCES.
2077
2078         * m4/freadptr.m4: New file.
2079         * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
2080         function exists.
2081         * modules/freadptr (Files): Add m4/freadptr.m4.
2082         (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
2083         __freadptr does not exist.
2084         (Makefile.am): Remove freadptr.c from lib_SOURCES.
2085
2086         * m4/freadseek.m4: New file.
2087         * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
2088         exists.
2089         * modules/freadseek (Files): Add m4/freadseek.m4.
2090         (configure.ac): Invoke gl_FUNC_FREADSEEK.
2091
2092         * lib/fpurge.c (fpurge): Update comment.
2093
2094         Reported by and with help from Rich Felker <dalias@aerifal.cx>.
2095
2096 2012-06-19  Bruno Haible  <bruno@clisp.org>
2097
2098         *printf-posix: Put more info into config.log.
2099         * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
2100         exit code into config.log.
2101
2102 2012-06-19  Bruno Haible  <bruno@clisp.org>
2103
2104         getopt-gnu: Fix exit code overflow in autoconf test.
2105         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
2106         to keep them below < 128.
2107
2108 2012-06-17  Jim Meyering  <meyering@redhat.com>
2109
2110         maint.mk: fix typo in code to derive GPG key at release time
2111         * top/maint.mk (gpg_key_ID): Fix typo: $3 -> $$3
2112
2113 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
2114
2115         regex: avoid warning when pointers are not long
2116         * lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
2117         and uintptr_t, not long, for portability to hosts where pointers and
2118         long have different sizes.  Issue noted by Daniel P. Berrange in
2119         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00122.html>
2120         and fix suggested by Bruno Haible in
2121         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00128.html>.
2122
2123 2012-06-17  Bruno Haible  <bruno@clisp.org>
2124
2125         dummy: Relicense into the public domain.
2126         * modules/dummy (License): Set to "public domain".
2127         Suggested by Reuben Thomas.
2128
2129 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
2130
2131         announce-gen: VPATH issues
2132         * build-aux/announce-gen (--srcdir): New option, used to trim the
2133         $srcdir part of the path from $builddir to NEWS.
2134         * top/maint.mk (announcement): Adjust.
2135
2136 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
2137
2138         gnu-web-doc-update: VPATH builds
2139         * build-aux/gnu-web-doc-update (--builddir): New option.
2140         Revamp the handling of options.
2141         Prefer $(...) to `...`.
2142         Don't pass --tmpdir=. to mktemp, it is useless given that we specify
2143         the template, and it is GNU mktemp specific.
2144         Prefer set -e to long series of &&.
2145         Restore the initial git branch, not "master".
2146         Properly initialize submodules (don't rely only on bootstrap).
2147         Do not reconfigure blindly, use config.status.
2148         * top/README-release: Update instructions for gnu-web-doc-update.
2149
2150 2012-06-11  Jim Meyering  <meyering@redhat.com>
2151
2152         maint.mk: revert most of the previous change re "all these"
2153         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Remove that pair.
2154         For rationale, see the discussion at
2155         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30912
2156
2157 2012-06-10  Karl Berry  <karl@gnu.org>
2158
2159         * build-aux/gnupload: with --dry-run, do not ask for gpg pw.
2160
2161         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
2162
2163 2012-06-10  Bruce Korb  <bkorb@gnu.org>
2164
2165         parse-duration: Relicense under LGPLv2+.
2166         * modules/parse-duration (License): Change to LGPLv2+.
2167
2168 2012-06-10  Jim Meyering  <meyering@redhat.com>
2169
2170         maint.mk: prohibit common grammar error: "all these"
2171         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
2172         the list of prohibited word sequences.  It should be "all of these".
2173         * lib/tempname.c (__gen_tempname): Fix one of them.
2174
2175 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
2176
2177         do-release-commit-and-tag: support VPATH builds
2178         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
2179         (noteworthy): Defined earlier to factor its value.
2180         (noteworthy_stub): New.
2181         Use it to factor.
2182         (help_version): Split into...
2183         (help, version): these.
2184         Adjust the option processing part.
2185         Support "--option=value" in addition to "--option value".
2186         (builddir): New.
2187         (--builddir): New option.
2188         * top/README-release: Document this.
2189         Reword slightly so that the reader cannot understand that he
2190         has to do these steps before calling do-release-commit-and-tag.
2191
2192 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
2193
2194         readme-release: also require announce-gen and maintainer-makefile
2195         * modules/readme-release (Depends-on): here.
2196         * modules/announce-gen, modules/do-release-commit-and-tag,
2197         modules/gnu-web-doc-update, modules/maintainer-makefile
2198         (Description): Point to readme-release.
2199
2200 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
2201
2202         maint.mk: fix VPATH issues.
2203         * top/maint.mk (news-check): GNU Make understand $< very well.
2204         (release-prep): NEWS is in $(srcdir).
2205
2206 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
2207
2208         readme-release: require the promoted modules.
2209         * modules/readme-release (Depends-on): Add
2210         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
2211         in this text.
2212
2213 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
2214             Bruno Haible  <bruno@clisp.org>
2215
2216         error, strerror-override: Support mingw64 from Fedora 17.
2217         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
2218         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
2219         EINPROGRESS.
2220         * lib/strerror-override.h (strerror_override): Test it.
2221         * lib/strerror-override.c (strerror_override): Likewise.
2222         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
2223
2224 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
2225             Bruno Haible  <bruno@clisp.org>
2226
2227         error, strerror-override: Support mingw64 from Fedora 17.
2228         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
2229         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
2230         * lib/strerror-override.h (strerror_override): Test it.
2231         * lib/strerror-override.c (strerror_override): Likewise.
2232
2233 2012-06-03  Bruno Haible  <bruno@clisp.org>
2234
2235         error, strerror-override: Support new errno values from POSIX:2008.
2236         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
2237         ENOTRECOVERABLE.
2238         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
2239         platforms.
2240         * lib/strerror-override.c (strerror_override): Conditionalize the
2241         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
2242         * lib/strerror-override.h (strerror_override): Declare also if
2243         GNULIB_defined_EOWNERDEAD is defined.
2244         * tests/test-errno.c (e130, e131): New variables.
2245         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
2246         ENOTRECOVERABLE.
2247         Reported by Paolo Bonzini.
2248
2249 2012-05-31  Jim Meyering  <meyering@redhat.com>
2250
2251         savewd: add missing dependency on sys_wait module
2252         * modules/savewd (Depends-on): Add sys_wait, needed at least
2253         for MSVC.  Report and suggested change by Michael Goffioul.
2254
2255 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
2256
2257         system-quote-tests: port to CentOS 5
2258         Problem reported by Tom G. Christensen in
2259         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00255.html>.
2260         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
2261
2262 2012-05-29  Jim Meyering  <meyering@redhat.com>
2263
2264         maint: fix typos in comments and ChangeLog
2265         Culprits identified and fixed mostly automatically using these commands:
2266         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
2267         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
2268         using http://github.com/lyda/misspell-check
2269         * ChangeLog: Fix typos.
2270         * doc/solaris-versions: Likewise.
2271         * lib/regexec.c (re_search_stub): Likewise.
2272         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
2273
2274 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
2275
2276         manywarnings: remove duplicate -Wmultichar entry
2277         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
2278         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
2279         so keep the entry marked as documented.
2280
2281 2012-05-27  Karl Berry  <karl@gnu.org>
2282
2283         * config/srclist.txt (mktime.c): remove last libc sync,
2284         perhaps just temporarily.
2285
2286 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
2287
2288         regex: don't assume uint64_t or uint32_t
2289         * lib/regcomp.c (init_word_char): Don't assume that the types
2290         uint64_t and uint32_t exist.  The C standard doesn't guarantee
2291         them, and on some 32-bit compilers there is no uint64_t.
2292         Problem reported by Gianluigi Tiesi in
2293         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html>.
2294
2295 2012-05-25  Jim Meyering  <meyering@redhat.com>
2296
2297         maint.mk: add strncpy-prohibiting syntax-check rule
2298         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
2299
2300 2012-05-24  Jim Meyering  <meyering@redhat.com>
2301
2302         maint.mk: compute $(gpg_key_ID) more portably
2303         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
2304         That use of sed is not portable to some fringe systems.
2305         Reported by Paul Eggert in
2306         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
2307
2308 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
2309
2310         mktime: sync from glibc
2311         * config/srclist.txt: Uncomment mktime.c.
2312         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
2313         First, indent with tabs, since glibc uses tabs and doesn't want to
2314         change and we'd rather be identical to glibc.  Also, two small
2315         coding changes:
2316         (isdst_differ): Use &&, not &, as && is the usual style.
2317         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
2318         for clarity.
2319
2320 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
2321
2322         announce-gen: du -h is more portable than du --human
2323         * build-aux/announce-gen (sizes): Invoke du with -h instead
2324         of --human.  Accept leading white space in its output.
2325
2326 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
2327
2328         announce-gen: Improve diagnostics.
2329         * build-aux/announce-gen: When parsing command line options,
2330         prefer "announce-gen: option --release-type requires an argument"
2331         to "Option release-type requires an argument".
2332
2333 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
2334
2335         maint.mk: gpg_key_ID: use sed more portably
2336         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
2337         the closing brace.
2338         (refresh-po): Fuse two sed invocations into one.
2339
2340 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
2341
2342         gitlog-to-changelog: support the log message format used in Bison.
2343         * build-aux/gitlog-to-changelog: Support --strip-tab and
2344         --strip-cherry-picked.
2345
2346 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
2347
2348         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
2349         the rest of the current time slice to another thread in the current
2350         process. So if the thread that feeds the file decscriptor we're
2351         polling is not in the current process, we get busy-waiting.
2352         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
2353         Patch from Theodore Leblond.
2354         * lib/select.c: Split polling out of the loop that sets the output
2355         fd_sets.  Check for zero result and loop if the wait timeout is
2356         infinite.
2357
2358 2012-05-21  Simon Josefsson  <simon@josefsson.org>
2359
2360         select: Fix build error on IRIX 6.5.
2361         * lib/select.c: Include stddef.h for NULL.
2362
2363 2012-05-21  Simon Josefsson  <simon@josefsson.org>
2364
2365         gc: fix libgcrypt detection on older machines.
2366         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
2367         copyright years because the file has been distributed every year
2368         since it was created.
2369
2370 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
2371
2372         crypto: fix bug in large buffer handling
2373         Problem reported by Serge Belyshev for glibc in
2374         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
2375         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00226.html>.
2376         * lib/md4.c (md4_process_block):
2377         * lib/md5.c (md5_process_block):
2378         * lib/sha1.c (sha1_process_block):
2379         * lib/sha256.c (sha256_process_block):
2380         Don't assume the buffer length is less than 2**32.
2381         * lib/sha512.c (sha512_process_block): Likewise.
2382         Here, the bug is present only in the rare case where the host does
2383         not support uint64_t or where size_t is wider than 64 bits.
2384         Use u64size to work around the problems.
2385         * lib/u64.h (u64size): New macro.
2386
2387 2012-05-15  Pádraig Brady  <P@draigBrady.com>
2388
2389         fsusage: fix block size returned on older Linux 2.6
2390
2391         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
2392         which is available since Linux 2.6.
2393         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
2394         when the member is available so it can be used as a fallback.
2395         * doc/posix-functions/statvfs.texi: Mention the hang issue
2396         on Linux < 2.6.36.
2397
2398 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
2399
2400         bootstrap: suppress stderr chatter
2401         * build-aux/bootstrap (insert_sorted_if_absent, main program):
2402         Omit unnecessary chatter to stderr.  The main program chatter
2403         was there only inadvertantly.
2404
2405         bootstrap: .gitignore files created by autopoint, libtool
2406         I ran into this problem when bootstrapping the latest diffutils.
2407         After './bootstrap', 'git status' reported lots of untracked files
2408         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
2409         autopoint and do not need to be version-controlled.
2410         * build-aux/bootstrap: Put into .gitignore the files that
2411         autopoint and libtool create, by keeping track of files that exist
2412         after but not before these programs are run.
2413         (version_controlled_file): Move up.  2nd arg is now full file
2414         name, not base name; this is more convenient.  Put CVS at the end,
2415         as it's now somewhat deprecated.
2416
2417 2012-05-14  Jim Meyering  <meyering@redhat.com>
2418
2419         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
2420         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
2421         definition.  Reported by Bruno Haible.
2422
2423 2012-05-13  Bruno Haible  <bruno@clisp.org>
2424             Paul Eggert  <eggert@cs.ucla.edu>
2425
2426         binary-io: Define set_binary_mode function.
2427         * lib/binary-io.h (set_binary_mode): New function.
2428         (SET_BINARY): Define in terms of set_binary_mode.
2429         * modules/binary-io (configure.ac): Require AC_C_INLINE.
2430         * tests/test-binary-io.c (main): Accept an argument, and test either
2431         set_binary_mode or SET_BINARY depending on the argument.
2432         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
2433         argument. Clean up also t-bin-out0.tmp.
2434
2435 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
2436
2437         bootstrap: take advantage of POSIX shell features
2438
2439         The 'bootstrap' script offered by Gnulib script already uses POSIX
2440         shell features (like $((...)) arithmetic expansions) that are not
2441         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
2442         means that bootstrap must already be run using a proper POSIX shell,
2443         which will thus provide more features, like ${var#pattern} parameter
2444         expansion or inversion of a command exit status with '!'.  We can
2445         thus use these features to improve the clarity and the performances
2446         of the bootstrap script.
2447
2448         Suggested by Eric Blake.
2449
2450         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
2451         of sed/expr plus command substitutions, to save some forks.  While
2452         we are at it, prefer the POSIX $(...) form of command substitution,
2453         rather than the legacy form `...` (since the former is visually
2454         clearer and interacts better with quoting), and prefer the idiom:
2455           "if ! CMD; then ACTION ..."
2456         over the idiom:
2457           "if CMD; then :; else ACTION ..."
2458         which was required by legacy Bourne shells not supporting '!'.
2459
2460 2012-05-12  Bruno Haible  <bruno@clisp.org>
2461
2462         system-quote: Add more comments.
2463         * lib/system-quote.h: Add more comments about wilcards and limitations.
2464         Suggested by Eli Zaretskii <eliz@gnu.org>.
2465
2466         sh-quote, system-quote: Add comments about wildcards.
2467         * lib/sh-quote.h: Clarify what happens with wildcard characters.
2468         * lib/system-quote.h: Likewise.
2469         Reported by Eli Zaretskii <eliz@gnu.org>.
2470
2471 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
2472
2473         fsusage: check for GNU/Linux statvfs problem dynamically
2474         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
2475         Define STAT_STATFS2_BSIZE too, since in this case the code now
2476         checks dynamically whether statvfs is reliable, falling back on
2477         Linux-style statfs otherwise.
2478         (statvfs_works): New function, for dynamically testing statvfs.
2479         (get_fs_usage) [STAT_STATVFS]: Use it.
2480         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
2481         statvfs on GNU/Linux hosts, since it's now done dynamically.
2482
2483 2012-05-10  Bruno Haible  <bruno@clisp.org>
2484
2485         system-quote, execute, spawn-pipe: Escape '?' on Windows.
2486         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
2487         '?' character.
2488         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
2489         * tests/test-system-quote-main.c (check_all): Check also strings like
2490         "??????????".
2491         Reported by Eli Zaretskii <eliz@gnu.org>.
2492
2493 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
2494
2495         _Noreturn: port config.h to gcc -Wundef
2496         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
2497         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
2498         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00147.html>.
2499
2500 2012-05-10  Bruno Haible  <bruno@clisp.org>
2501
2502         system-quote: Refactor.
2503         * lib/system-quote.h (system_quote_copy): Fix comment.
2504         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
2505         New functions, extracted from system_quote_copy.
2506         (system_quote_length, system_quote_copy): Use these functions.
2507         Reported by Paul Eggert.
2508
2509 2012-05-08  Bruno Haible  <bruno@clisp.org>
2510
2511         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
2512         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
2513
2514 2012-05-08  Bruno Haible  <bruno@clisp.org>
2515
2516         Tests for module 'system-quote'.
2517         * modules/system-quote-tests: New file.
2518         * tests/test-system-quote.sh: New file.
2519         * tests/test-system-quote-main.c: New file.
2520         * tests/test-system-quote-child.c: New file.
2521
2522         New module 'system-quote'.
2523         * lib/system-quote.h: New file.
2524         * lib/system-quote.c: New file.
2525         * modules/system-quote: New file.
2526
2527 2012-05-08  Bruno Haible  <bruno@clisp.org>
2528
2529         sh-quote: Make C++ safe and allow multiple inclusion.
2530         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
2531         declarations in extern "C".
2532
2533 2012-05-08  Bruno Haible  <bruno@clisp.org>
2534
2535         sh-quote tests: Make tests stricter.
2536         * tests/test-sh-quote.c (check_one): Check the return value of
2537         shell_quote_copy.
2538         (main): Check a string with a CR character. Check a string that
2539         contains UCHAR_MAX.
2540
2541 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
2542
2543         warnings.m4: provide a means to specify the program to compile.
2544         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
2545         (gl_WARN_ADD): here.
2546         Use gl_AS_VAR_APPEND.
2547         Support an argument to specify the program to compile.
2548         (gl_WARN_ADD): Accept an argument to specify the program to compile.
2549         AC_SUBST the WARN_CFLAGS when they are used.
2550         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
2551         leave this to gl_WARN_ADD.
2552
2553 2012-05-08  Eric Blake  <eblake@redhat.com>
2554
2555         doc: recommendations on gettext version
2556         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
2557         choice between versions.
2558         * DEPENDENCIES (gettext): Cover both approaches.
2559
2560 2012-05-08  Jim Meyering  <meyering@redhat.com>
2561
2562         init.sh: explain why EXEEXT support uses aliases rather than functions
2563         * tests/init.sh: Add a comment.
2564
2565         init.sh: don't let bash aliases interfere with tests
2566         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
2567         is bash.  This avoids problems for those who alias standard commands to
2568         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
2569         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
2570
2571 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
2572
2573         stdint: be more consistent with glibc, SunOS libc
2574         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
2575         (gl_int_fast16_t, gl_uint_fast16_t)
2576         (gl_int_fast32_t, gl_uint_fast32_t)
2577         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
2578         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
2579         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
2580         Be consistent with glibc by default, and with SunOS 5.10 and later
2581         if __sun is defined.  This lessens the likelihood of clashes if
2582         code compiled for older hosts is combined with code compiled for
2583         newer ones.  Problem reported by Niels Möller in
2584         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00074.html>.
2585
2586 2012-05-07  Eric Blake  <eblake@redhat.com>
2587
2588         isatty: relax license to LGPLv2+
2589         * modules/isatty (License): Relax license.
2590
2591 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
2592
2593         stat-size: comment fix
2594         * lib/stat-size.h: Remove obsolete comment about indenting.
2595
2596 2012-05-06  Bruno Haible  <bruno@clisp.org>
2597
2598         Tests for module 'sh-quote'.
2599         * modules/sh-quote-tests: New file.
2600         * tests/test-sh-quote.c: New file.
2601
2602 2012-05-06  Bruno Haible  <bruno@clisp.org>
2603
2604         sh-quote: Improve shell_quote_argv's signature.
2605         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
2606         * lib/sh-quote.c (shell_quote_argv): Likewise.
2607
2608 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
2609
2610         stdint: document issues with int_fast8_t etc.
2611         * doc/posix-headers/stdint.texi (stdint.h): Say that other
2612         stdint.h substitutes may define these types differently.  See
2613         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00071.html>.
2614
2615 2012-05-05  Bruno Haible  <bruno@clisp.org>
2616
2617         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
2618         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
2619         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
2620         or 'guessing no (mishandles large arguments)'.
2621
2622 2012-05-05  Bruno Haible  <bruno@clisp.org>
2623
2624         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
2625         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
2626         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
2627         set gl_cv_func_link_follows_symlink to "guessing no".
2628
2629 2012-05-05  Bruno Haible  <bruno@clisp.org>
2630
2631         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
2632         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
2633         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
2634         "guessing no".
2635         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
2636
2637 2012-05-05  Bruno Haible  <bruno@clisp.org>
2638
2639         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
2640         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
2641         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
2642         set gl_cv_struct_dirent_d_ino to "guessing yes".
2643
2644 2012-05-05  Bruno Haible  <bruno@clisp.org>
2645
2646         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
2647         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
2648         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
2649         "guessing yes".
2650
2651 2012-05-05  Bruno Haible  <bruno@clisp.org>
2652
2653         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
2654         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
2655         compiling to a glibc system, set gl_cv_func_signbit and
2656         gl_cv_func_signbit_gcc to "guessing yes".
2657
2658 2012-05-05  Bruno Haible  <bruno@clisp.org>
2659
2660         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
2661         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
2662         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
2663         to "guessing yes".
2664         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
2665         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
2666
2667 2012-05-05  Bruno Haible  <bruno@clisp.org>
2668
2669         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
2670         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
2671         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
2672         gl_cv_func_realpath_works to "guessing yes".
2673
2674 2012-05-05  Bruno Haible  <bruno@clisp.org>
2675
2676         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
2677         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
2678         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
2679
2680 2012-05-04  Bruno Haible  <bruno@clisp.org>
2681
2682         Tweak last commit.
2683         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
2684         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
2685
2686 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
2687
2688         unistd_h: make it easier to avoid sys_types_h
2689         This is useful for Emacs, which has its own method of porting to
2690         Windows, and which therefore does not need the sys_types_h module.
2691         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
2692         code moved here from gl_SYS_TYPES_H.
2693         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
2694         using the code directly.
2695         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
2696         gl_SYS_TYPES_H.
2697         * modules/sys_types (Files):
2698         * modules/unistd (Files): Add m4/off_t.m4.
2699
2700 2012-05-03  Bruno Haible  <bruno@clisp.org>
2701
2702         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
2703         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
2704         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
2705         "guessing yes" or "guessing no".
2706         (gl_FUNC_LSTAT): Update.
2707         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
2708         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
2709         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
2710
2711 2012-05-03  Bruno Haible  <bruno@clisp.org>
2712
2713         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
2714         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
2715         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
2716         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
2717         cross-compiling, choose the first alternative on glibc systems.
2718         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
2719
2720 2012-05-03  Bruno Haible  <bruno@clisp.org>
2721
2722         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
2723         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
2724         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
2725
2726 2012-05-03  Bruno Haible  <bruno@clisp.org>
2727
2728         chown: Avoid "guessing no" when cross-compiling to glibc systems.
2729         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
2730
2731 2012-05-03  Bruno Haible  <bruno@clisp.org>
2732
2733         Avoid "guessing no" guesses when cross-compiling to glibc systems.
2734         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
2735         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
2736         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
2737         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
2738         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
2739         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
2740         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
2741         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
2742         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
2743         compiling to glibc systems, set gl_cv_func_chown_slash_works,
2744         gl_cv_func_chown_ctime_works to "guessing yes".
2745         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
2746         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
2747         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
2748         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
2749         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
2750         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
2751         compiling to glibc systems, set gl_cv_func_open_directory_works to
2752         "guessing yes".
2753         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
2754         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
2755         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
2756         "guessing yes".
2757         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
2758         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
2759         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
2760         compiling to glibc systems, set gl_cv_func_floorf_ieee to
2761         "guessing yes".
2762         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
2763         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
2764         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
2765         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
2766         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
2767         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
2768         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
2769         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
2770         "guessing yes".
2771         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
2772         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
2773         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
2774         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
2775         "guessing yes".
2776         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
2777         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
2778         "guessing yes".
2779         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
2780         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
2781         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
2782         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
2783         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
2784         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
2785         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
2786         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
2787         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
2788         compiling to glibc systems, set gl_cv_func_log10f_ieee to
2789         "guessing yes".
2790         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
2791         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
2792         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
2793         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
2794         "guessing yes".
2795         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
2796         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
2797         "guessing yes".
2798         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
2799         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
2800         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
2801         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
2802         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
2803         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
2804         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
2805         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
2806         compiling to glibc systems, set gl_cv_func_mkfifo_works to
2807         "guessing yes".
2808         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
2809         compiling to glibc systems, set gl_cv_func_mknod_works to
2810         "guessing yes".
2811         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
2812         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
2813         "guessing yes".
2814         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
2815         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
2816         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
2817         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
2818         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
2819         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
2820         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
2821         compiling to glibc systems, set gl_cv_func_svid_putenv to
2822         "guessing yes".
2823         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
2824         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
2825         "guessing yes".
2826         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
2827         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
2828         "guessing yes".
2829         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
2830         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
2831         to "guessing yes".
2832         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
2833         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
2834         to "guessing yes".
2835         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
2836         compiling to glibc systems, set gl_cv_func_rmdir_works to
2837         "guessing yes".
2838         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
2839         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
2840         gl_cv_func_unlink_parent_fails to "guessing yes".
2841         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
2842         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
2843         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
2844         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
2845         gl_cv_func_rename_dest_works to "guessing yes".
2846         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
2847         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
2848         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
2849         compiling to glibc systems, set gl_cv_func_roundf_ieee to
2850         "guessing yes".
2851         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
2852         compiling to glibc systems, set gl_cv_func_roundl_ieee to
2853         "guessing yes".
2854         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
2855         compiling to glibc systems, set gl_cv_func_setenv_works to
2856         "guessing yes".
2857         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
2858         compiling to glibc systems, set gl_cv_func_unsetenv_works to
2859         "guessing yes".
2860         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
2861         compiling to glibc systems, set gl_cv_func_sleep_works to
2862         "guessing yes".
2863         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
2864         compiling to glibc systems, set gl_cv_func_stat_file_slash to
2865         "guessing yes".
2866         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
2867         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
2868         "guessing yes".
2869         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
2870         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
2871         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
2872         compiling to glibc systems, set gl_cv_func_truncf_ieee to
2873         "guessing yes".
2874         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
2875         compiling to glibc systems, set gl_cv_func_truncl_ieee to
2876         "guessing yes".
2877         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
2878         compiling to glibc systems, set gl_cv_func_usleep_works to
2879         "guessing yes".
2880         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
2881         compiling to glibc systems, set gl_cv_func_futimesat_works to
2882         "guessing yes".
2883
2884 2012-05-03  Bruno Haible  <bruno@clisp.org>
2885
2886         Say "guessing yes" or "guessing no" when cross-compiling.
2887         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
2888         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
2889         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
2890         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
2891         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
2892         am_cv_func_working_getline to "guessing yes" or "guessing no".
2893         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
2894         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
2895         (gl_FUNC_MEMMEM): When cross-compiling, set
2896         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
2897         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
2898         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
2899         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
2900         set gl_cv_func_strcasestr_works_always to "guessing yes" or
2901         "guessing no".
2902         (gl_FUNC_STRCASESTR): When cross-compiling, set
2903         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
2904         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
2905         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
2906         (gl_FUNC_STRSTR): When cross-compiling, set
2907         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
2908         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
2909         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
2910         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
2911         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
2912
2913 2012-05-01  Bruno Haible  <bruno@clisp.org>
2914
2915         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
2916         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
2917         * build-aux/reloc-ldflags: Likewise.
2918         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
2919
2920 2012-05-01  Bruno Haible  <bruno@clisp.org>
2921
2922         gnulib-tool: Remove transitional code.
2923         * gnulib-tool: Don't warn about --import with 0 arguments any more.
2924         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
2925
2926 2012-05-01  Bruno Haible  <bruno@clisp.org>
2927
2928         getcwd: Fix misindentation.
2929         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
2930
2931 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
2932
2933         exclude: process exclude and include directives in order
2934         This restores the pre-2009 behavior, and is part of a fix of a
2935         grep bug reported by Quentin Arce in
2936         <http://lists.gnu.org/archive/html/bug-grep/2012-04/msg00056.html>.
2937         * lib/exclude.c (struct exclude): Remove 'tail' member.
2938         (new_exclude_segment): Prepend the new segment instead of appending.
2939         Return void, since that's now more convenient.
2940         (file_pattern_matches): Renamed from excluded_file_pattern_p.
2941         (file_name_matches): Renamed from excluded_file_name_p.
2942         (file_pattern_matches, file_name_matches):
2943         Return true if the pattern matches, not if it excludes.
2944         All callers changed.
2945         (excluded_file_name): Process the list in reverse order;
2946         since the list is now reversed this restores the pre-2009 behavior.
2947         (add_exclude): Adjust to new reversed-order list.  Use local var
2948         rather than macro, for clarity.
2949         * tests/test-exclude7.sh: Adjust to corrected behavior.
2950
2951         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
2952         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
2953         it's not possible here.  Handle the case of \ at end of pattern
2954         without dumping core.
2955         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
2956
2957         _Noreturn: future-proof non-GNU and non-MSVC compilers
2958         * build-aux/snippet/_Noreturn.h (_Noreturn):
2959         * m4/gnulib-common.m4 (gl_COMMON_BODY):
2960         Do not define _Noreturn if __STDC_VERSION__ indicates this is
2961         C11 or later.  This is more likely to work with random future C
2962         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
2963         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00195.html>.
2964
2965         exclude: handle wildcards with FNM_EXTMATCH
2966         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
2967         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
2968         comment that "has wildcards" really means "has or may have
2969         wildcards".  Simplify by avoiding the need to call strcspn.
2970
2971 2012-04-29  Bruno Haible  <bruno@clisp.org>
2972
2973         gnulib-tool: Fix list of authors.
2974         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
2975
2976 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
2977
2978         bootstrap: support Automake-NG in $buildreq
2979         * bootstrap (check_versions): Handle automake and aclocal from
2980         Automake-NG specially.  They can be specified as respectively
2981         the "automake-ng" and "aclocal-ng" requirements.
2982
2983 2012-04-25  Eric Blake  <eblake@redhat.com>
2984
2985         bootstrap: only force latest Makefile.in.in for gettext module
2986         * build-aux/bootstrap (with_gettext): Only install latest
2987         Makefile.in.in for projects requesting bleeding edge gettext.
2988
2989 2012-04-22  Bruno Haible  <bruno@clisp.org>
2990
2991         doc: Mention reason for replacement on glibc/Linux systems.
2992         * doc/posix-functions/dprintf.texi: Mention the problem with special
2993         'long double' values.
2994         * doc/posix-functions/fprintf.texi: Likewise.
2995         * doc/posix-functions/printf.texi: Likewise.
2996         * doc/posix-functions/snprintf.texi: Likewise.
2997         * doc/posix-functions/sprintf.texi: Likewise.
2998         * doc/posix-functions/vdprintf.texi: Likewise.
2999         * doc/posix-functions/vfprintf.texi: Likewise.
3000         * doc/posix-functions/vprintf.texi: Likewise.
3001         * doc/posix-functions/vsnprintf.texi: Likewise.
3002         * doc/posix-functions/vsprintf.texi: Likewise.
3003         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
3004         platforms with F_DUPFD_CLOEXEC problems.
3005         * doc/posix-functions/glob.texi: Mention which platforms are affected
3006         by the problem with symbolic links.
3007         * doc/posix-functions/linkat.texi: Mention the problem with
3008         AT_SYMLINK_FOLLOW on Linux.
3009
3010 2012-04-22  Bruno Haible  <bruno@clisp.org>
3011
3012         pwrite: Don't replace on all platforms.
3013         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
3014
3015 2012-04-22  Bruno Haible  <bruno@clisp.org>
3016
3017         rint* tests: Avoid gcc warnings.
3018         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
3019         * tests/test-rintf.c (INFINITY, NAN): Likewise.
3020         * tests/test-rintl.c (INFINITY, NAN): Likewise.
3021
3022 2012-04-21  Bruno Haible  <bruno@clisp.org>
3023
3024         users.txt: Update.
3025         * users.txt: Add freedink, wdiff. Update URLs for projects that have
3026         switched from CVS to git, bzr, or svn.
3027
3028 2012-04-21  Bruno Haible  <bruno@clisp.org>
3029
3030         Large File Support for native Windows platforms.
3031
3032         * m4/largefile.m4 (gl_LARGEFILE): New macro.
3033         * modules/largefile (configure.ac): Require gl_LARGEFILE.
3034
3035         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
3036         type.
3037         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
3038         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
3039         * doc/posix-headers/sys_types.texi: Mention the effect of the
3040         'largefile' module.
3041
3042         * lib/fcntl.in.h: Add comments about off_t.
3043         * modules/fcntl-h (Depends-on): Add sys_types.
3044
3045         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
3046         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
3047         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
3048         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
3049         * modules/unistd (Depends-on): Add sys_types.
3050         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
3051
3052         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
3053         instead of lseek.
3054         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
3055         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
3056         * modules/lseek (Depends-on): Add sys_types.
3057
3058         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
3059         msvc-nothrow.h.
3060         (SetFileSize): New function.
3061         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
3062         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
3063         if Large File Support is requested.
3064         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
3065         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
3066
3067         * lib/stdio.in.h: Add comments about off_t.
3068         * modules/stdio (Depends-on): Add sys_types.
3069
3070         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
3071         instead of ftello.
3072         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
3073         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
3074         (gl_PREREQ_FTELLO): New macro.
3075         * modules/ftello (Depends-on): Add sys_types.
3076         (configure.ac): Incoke gl_PREREQ_FTELLO.
3077
3078         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
3079         instead of fseeko.
3080         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
3081         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
3082         (gl_PREREQ_FSEEKO): New macro.
3083         * modules/fseeko (Depends-on): Add sys_types.
3084         (configure.ac): Invoke gl_PREREQ_FSEEKO.
3085
3086         * lib/sys_stat.in.h: Add comments about off_t.
3087         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
3088         64-bit integer for st_size in 'struct stat'.
3089         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
3090         Define _GL_WINDOWS_64_BIT_ST_SIZE.
3091         * modules/sys_stat (Depends-on): Add sys_types.
3092         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
3093
3094         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
3095         instead of stat or _stat.
3096
3097         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
3098         'struct _stati64' instead of fstat and 'struct stat'.
3099         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
3100         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
3101
3102         Reported by Ray Satiro <raysatiro@yahoo.com>.
3103
3104 2012-04-19  Eric Blake  <eblake@redhat.com>
3105
3106         bootstrap: accommodate older libtool
3107         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
3108         Reported by Daniel P. Berrange.
3109
3110 2012-04-19  Jim Meyering  <meyering@redhat.com>
3111
3112         announce-gen: avoid failure due to lack of Digest::SHA1
3113         Even with the preferred Digest::SHA available, this script
3114         would fail when the backup module, Digest::SHA1, was not installed.
3115         * build-aux/announce-gen: Quote the conditional use of "use".
3116         Reported by Reuben Thomas in:
3117         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
3118
3119         bootstrap: don't let a user's CDPATH setting affect this script
3120         When CDPATH is set, cd will sometimes generate output.
3121         When "cd" is run in a subshell whose output matters, that
3122         surprising-to-some output can cause malfunction.
3123         Unsetting CDPATH turns off this shell "feature."
3124         * build-aux/bootstrap (CDPATH): Unset.
3125         Reported by Reuben Thomas in:
3126         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
3127         and inspired by his patch here:
3128         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
3129
3130 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
3131         and Jim Meyering  <meyering@redhat.com>
3132
3133         maint.mk: catch "see @xref{}" and similar
3134         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
3135         prohibit "See also @xref{", "Also see @pxref{", and similar.
3136
3137 2012-04-16  Jim Meyering  <meyering@redhat.com>
3138
3139         bootstrap: really use gnulib's po/Makefile.in.in
3140         * build-aux/bootstrap: Correct the source file name in previous change.
3141         Reported by Akim Demaille.
3142
3143         configmake: correct minor inconsistency in Makefile rule
3144         * modules/configmake (Makefile.am): All other rules like this one
3145         run the final "mv -f ..." in the same backslash-continued command
3146         as the one that does everything else.  This one put the mv -f ...
3147         command on a separate, non-backslash-continued line.
3148         Make it like the others.
3149
3150         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
3151         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
3152         the one from gettext.  Reported by Akim Demaille.
3153
3154 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
3155
3156         Fix recursion of install-* into po directories.
3157         Bison's install-pdf bug reported by Hans Aberg at
3158         <http://lists.gnu.org/archive/html/bug-bison/2011-05/msg00008.html>.
3159         * build-aux/po/Makefile.in.in (install-dvi, install-html)
3160         (install-info, install-pdf, install-ps): New targets.
3161
3162 2012-04-16  Jim Meyering  <meyering@redhat.com>
3163
3164         maint: avoid spurious "make sc_maint" failure
3165         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
3166         exempt all *.class file names, for lib/javaversion.class.
3167
3168 2012-04-15  Bruno Haible  <bruno@clisp.org>
3169
3170         lseek: Make configure test independent of environment.
3171         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
3172         Windows, we know that lseek() on pipes is broken; skip the runtime
3173         test.
3174
3175 2012-04-14  Bruno Haible  <bruno@clisp.org>
3176
3177         stat: Bypass buggy override in mingw64.
3178         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
3179         * lib/stat.c (stat) [mingw64]: Define to _stat.
3180         * doc/posix-functions/stat.texi: Mention mingw64 bug.
3181
3182 2012-04-14  Bruno Haible  <bruno@clisp.org>
3183
3184         pathmax: Fix compilation error on MSVC 9.
3185         * modules/pathmax (Depends-on): Add unistd.
3186
3187 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
3188
3189         README: document pointer comparison assumption
3190         * README (Portability guidelines): Document assumption about
3191         pointer comparisons, in response to a recent bug-gnulib comment by
3192         Jeffrey Kegler.
3193
3194 2012-04-12  Bruno Haible  <bruno@clisp.org>
3195
3196         Tests for module 'getrusage'.
3197         * modules/getrusage-tests: New file.
3198         * tests/test-getrusage.c: New file.
3199
3200         New module 'getrusage'.
3201         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
3202         warn-on-use.h.
3203         (getrusage): New declaration.
3204         * lib/getrusage.c: New file.
3205         * m4/getrusage.m4: New file.
3206         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
3207         is declared.
3208         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
3209         HAVE_GETRUSAGE.
3210         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
3211         snippet/c++defs, snippet/warn-on-use.
3212         (Makefile.am): Update generation of sys/resource.h. Substitute
3213         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
3214         * modules/getrusage: New file.
3215         * doc/posix-functions/getrusage.texi: Mention the new module.
3216
3217 2012-04-12  Bruno Haible  <bruno@clisp.org>
3218
3219         Tests for module 'sys_resource'.
3220         * modules/sys_resource-tests: New file.
3221         * tests/test-sys_resource.c: New file.
3222
3223         New module 'sys_resource'.
3224         * lib/sys_resource.in.h: New file.
3225         * m4/sys_resource_h.m4: New file.
3226         * modules/sys_resource: New file.
3227         * doc/posix-headers/sys_resource.texi: Mention the new module.
3228
3229 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
3230
3231         ioctl: Fix compilation error on mingw.
3232         * lib/ioctl.c: Include <windows.h>.
3233         Also reported by Ray Satiro <raysatiro@yahoo.com>.
3234
3235 2012-04-04  Jim Meyering  <meyering@redhat.com>
3236
3237         regex: correct #pragma guard expression
3238         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
3239         not 4.3.  Correct its cpp guard expression.
3240
3241 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
3242
3243         regex: remove unnecessary type punning
3244         Problem reported by Vladimir Serbinenko in
3245         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00006.html>.
3246         * lib/regex.h (struct re_pattern_buffer): Change the type of
3247         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
3248         Fix comment to match code.
3249         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
3250         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
3251         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
3252         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
3253         (set_regs):
3254         Omit no-longer-necessary casts.
3255
3256 2012-04-03  Bruno Haible  <bruno@clisp.org>
3257
3258         Tests for module 'ilogbl'.
3259         * modules/ilogbl-tests: New file.
3260         * tests/test-ilogbl.c: New file.
3261
3262         New module 'ilogbl'.
3263         * lib/math.in.h (ilogbl): New declaration.
3264         * lib/ilogbl.c: New file.
3265         * m4/ilogbl.m4: New file.
3266         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
3267         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
3268         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
3269         Split sed invocation, to avoid the limit of 100 substitutions of
3270         HP-UX 'sed'.
3271         * modules/ilogbl: New file.
3272         * tests/test-math-c++.cc: Check the declaration of ilogbl.
3273         * doc/posix-functions/ilogbl.texi: Mention the new module.
3274
3275 2012-04-03  Bruno Haible  <bruno@clisp.org>
3276
3277         Tests for module 'ilogbf'.
3278         * modules/ilogbf-tests: New file.
3279         * tests/test-ilogbf.c: New file.
3280
3281         New module 'ilogbf'.
3282         * lib/math.in.h (ilogbf): New declaration.
3283         * lib/ilogbf.c: New file.
3284         * m4/ilogbf.m4: New file.
3285         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
3286         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
3287         REPLACE_ILOGBF.
3288         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
3289         REPLACE_ILOGBF.
3290         * modules/ilogbf: New file.
3291         * tests/test-math-c++.cc: Check the declaration of ilogbf.
3292         * doc/posix-functions/ilogbf.texi: Mention the new module.
3293
3294 2012-04-03  Bruno Haible  <bruno@clisp.org>
3295
3296         Tests for module 'ilogb'.
3297         * modules/ilogb-tests: New file.
3298         * tests/test-ilogb.c: New file.
3299         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
3300         tests/test-logb-ieee.h.
3301
3302         New module 'ilogb'.
3303         * lib/math.in.h (ilogb): New declaration.
3304         * lib/ilogb.c: New file.
3305         * m4/ilogb.m4: New file.
3306         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
3307         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
3308         REPLACE_ILOGB.
3309         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
3310         REPLACE_ILOGB.
3311         * modules/ilogb: New file.
3312         * tests/test-math-c++.cc: Check the declaration of ilogb.
3313         * doc/posix-functions/ilogb.texi: Mention the new module.
3314
3315 2012-04-03  Bruno Haible  <bruno@clisp.org>
3316
3317         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
3318         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
3319         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
3320         (main): Check their values.
3321         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
3322         problem.
3323
3324 2012-04-03  Bruno Haible  <bruno@clisp.org>
3325
3326         Tests for module 'logbl-ieee'.
3327         * modules/logbl-ieee-tests: New file.
3328         * tests/test-logbl-ieee.c: New file.
3329
3330         New module 'logbl-ieee'.
3331         * modules/logbl-ieee: New file.
3332
3333         Tests for module 'logb-ieee'.
3334         * modules/logb-ieee-tests: New file.
3335         * tests/test-logb-ieee.c: New file.
3336
3337         New module 'logb-ieee'.
3338         * modules/logb-ieee: New file.
3339
3340         Tests for module 'logbf-ieee'.
3341         * modules/logbf-ieee-tests: New file.
3342         * tests/test-logbf-ieee.c: New file.
3343         * tests/test-logb-ieee.h: New file.
3344
3345         New module 'logbf-ieee'.
3346         * modules/logbf-ieee: New file.
3347
3348 2012-04-03  Bruno Haible  <bruno@clisp.org>
3349
3350         Tests for module 'logbl'.
3351         * modules/logbl-tests: New file.
3352         * tests/test-logbl.c: New file.
3353
3354         New module 'logbl'.
3355         * lib/math.in.h (logbl): New declaration.
3356         * lib/logbl.c: New file.
3357         * m4/logbl.m4: New file.
3358         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
3359         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
3360         REPLACE_LOGBL.
3361         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
3362         REPLACE_LOGBL.
3363         * modules/logbl: New file.
3364         * tests/test-math-c++.cc: Check the declaration of logbl.
3365         * doc/posix-functions/logbl.texi: Mention the new module.
3366
3367 2012-04-02  Bruno Haible  <bruno@clisp.org>
3368
3369         Tests for module 'logbf'.
3370         * modules/logbf-tests: New file.
3371         * tests/test-logbf.c: New file.
3372
3373         New module 'logbf'.
3374         * lib/math.in.h (logbf): New declaration.
3375         * lib/logbf.c: New file.
3376         * m4/logbf.m4: New file.
3377         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
3378         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
3379         REPLACE_LOGBF.
3380         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
3381         REPLACE_LOGBF.
3382         * modules/logbf: New file.
3383         * tests/test-math-c++.cc: Check the declaration of logbf.
3384         * doc/posix-functions/logbf.texi: Mention the new module.
3385
3386 2012-04-02  Bruno Haible  <bruno@clisp.org>
3387
3388         logb tests: More tests.
3389         * tests/test-logb.h: New file, based on tests/test-logb.c and
3390         tests/test-frexp.h.
3391         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
3392         (main): Just invoke test_function.
3393         * modules/logb-tests (Files): Add tests/test-logb.h,
3394         tests/minus-zero.h, tests/randomd.c.
3395         (Makefile.am): Add randomd.c to test_logb_SOURCES.
3396
3397         logb: Provide replacement and workarounds.
3398         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
3399         is 1.
3400         * lib/logb.c: New file.
3401         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
3402         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
3403         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
3404         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
3405         * modules/logb (Files): Add lib/logb.c.
3406         (Depends-on): Add isfinite, frexp, isnand.
3407         (configure.ac): Compile the replacement code logb.c if needed.
3408         * tests/test-math-c++.cc: Check the declaration of logb.
3409         * doc/posix-functions/logb.texi: Mention the replacement and the bug
3410         with subnormal numbers.
3411
3412 2012-04-02  Bruno Haible  <bruno@clisp.org>
3413
3414         log10* tests: Speed up.
3415         * tests/test-log10.h (test_function): Reduce amount of random numbers
3416         to test.
3417
3418 2012-04-01  Bruno Haible  <bruno@clisp.org>
3419
3420         logf-ieee: Fix test whether logf works.
3421         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
3422
3423 2012-04-01  Bruno Haible  <bruno@clisp.org>
3424
3425         log10l: Work around log10l-ieee test failure on IRIX 6.5.
3426         * lib/log10l.c: Include <float.h>
3427         (log10l): On IRIX, normalize the +Infinity value.
3428         * modules/log10l (Depends-on): Add 'float'.
3429         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
3430         +Infinity.
3431
3432         log10f-ieee: Work around test failure on NetBSD 5.1.
3433         * m4/log10f-ieee.m4: New file.
3434         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
3435         test whether log10f works with a negative argument. Replace it if not.
3436         * lib/log10f.c (log10f): For negative arguments, return NaN.
3437         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
3438         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
3439         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
3440
3441         log10f-ieee: Work around test failure on Solaris 9.
3442         * modules/log10f-ieee (Depends-on): Add log10-ieee.
3443         (configure.ac): Require gl_FUNC_LOG10F.
3444
3445         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
3446         * m4/log10-ieee.m4: New file.
3447         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
3448         whether log10 works with a negative argument. Replace it if not.
3449         * lib/log10.c (log10): For negative arguments, return NaN.
3450         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
3451         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
3452         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
3453
3454         Tests for module 'log10l-ieee'.
3455         * modules/log10l-ieee-tests: New file.
3456         * tests/test-log10l-ieee.c: New file.
3457
3458         New module 'log10l-ieee'.
3459         * modules/log10l-ieee: New file.
3460
3461         Tests for module 'log10-ieee'.
3462         * modules/log10-ieee-tests: New file.
3463         * tests/test-log10-ieee.c: New file.
3464
3465         New module 'log10-ieee'.
3466         * modules/log10-ieee: New file.
3467
3468         Tests for module 'log10f-ieee'.
3469         * modules/log10f-ieee-tests: New file.
3470         * tests/test-log10f-ieee.c: New file.
3471         * tests/test-log10-ieee.h: New file.
3472
3473         New module 'log10f-ieee'.
3474         * modules/log10f-ieee: New file.
3475
3476 2012-04-01  Bruno Haible  <bruno@clisp.org>
3477
3478         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
3479         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
3480         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
3481         workaround.
3482         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
3483         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
3484         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
3485         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
3486         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
3487         (Depends-on): Update conditions.
3488         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
3489         IRIX 6.5, OSF/1 5.1 problems.
3490
3491 2012-04-01  Bruno Haible  <bruno@clisp.org>
3492
3493         log10f: Work around OSF/1 5.1 bug.
3494         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
3495         * lib/log10f.c (log10f): If logf exists, use it and provide just the
3496         workaround.
3497         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
3498         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
3499         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
3500         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
3501         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
3502         (Depends-on): Update conditions.
3503         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
3504
3505 2012-04-01  Bruno Haible  <bruno@clisp.org>
3506
3507         log10: Work around OSF/1 5.1 bug.
3508         * lib/math.in.h (log10): New declaration.
3509         * lib/log10.c: New file.
3510         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
3511         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
3512         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
3513         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
3514         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
3515         * modules/log10 (Files): Add lib/log10.c.
3516         (Depends-on): Add math.
3517         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
3518         * tests/test-math-c++.cc: Check the declaration of log10.
3519         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
3520
3521 2012-03-31  Bruno Haible  <bruno@clisp.org>
3522
3523         log10l tests: More tests.
3524         * modules/log10l-tests (Files): Add tests/test-log10l.h,
3525         tests/minus-zero.h, tests/randoml.c.
3526         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
3527         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
3528         (main): Invoke test_function.
3529
3530         log10f tests: More tests.
3531         * modules/log10f-tests (Files): Add tests/test-log10.h,
3532         tests/minus-zero.h, tests/randomf.c.
3533         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
3534         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
3535         (main): Invoke test_function.
3536
3537         log10 tests: More tests.
3538         * tests/test-log10.h: New file.
3539         * modules/log10-tests (Files): Add tests/test-log10.h,
3540         tests/minus-zero.h, tests/randomd.c.
3541         (Makefile.am): Add randomd.c to test_log10_SOURCES.
3542         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
3543         (main): Invoke test_function.
3544
3545 2012-03-31  Simon Josefsson  <simon@josefsson.org>
3546
3547         fflush: Fix syntax error.
3548         * lib/fflush.c: Include unused-parameter.h, needed for
3549         _GL_UNUSED_PARAMETER.
3550         * modules/fflush (Depends-on): Add snippet/unused-parameter.
3551
3552 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
3553
3554         regex: pacify GCC when compiling GRUB
3555         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
3556         a diagnostic.  Reported by Vladimir Serbinenko in
3557         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00163.html>.
3558
3559 2012-03-29  Eric Blake  <eblake@redhat.com>
3560
3561         stdio: don't assume gets any more
3562         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
3563         support.
3564         * modules/stdio (Makefile.am): Likewise.
3565         * lib/stdio-read.c (gets): Likewise.
3566         * tests/test-stdio-c++.cc: Likewise.
3567         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
3568         * lib/stdio.in.h (gets): Make warning occur in more places.
3569         * doc/posix-functions/gets.texi (gets): Update documentation.
3570         Reported by Christer Solskogen.
3571
3572         maint.mk: fix syntax checks without exclusions
3573         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
3574         Reported by Daniel P. Berrange.
3575
3576         strerror_r: avoid compiler warning
3577         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
3578         level.
3579
3580         fflush: avoid compiler warning
3581         * lib/fflush.c (update_fpos_cache): Mark variables that are
3582         potentially unused.
3583
3584 2012-03-25  Bruno Haible  <bruno@clisp.org>
3585
3586         Tests for module 'localeconv'.
3587         * modules/localeconv-tests: New file.
3588         * tests/test-localeconv.c: New file.
3589
3590         New module 'localeconv'.
3591         * lib/locale.in.h (localeconv): New declaration.
3592         * lib/localeconv.c: New file.
3593         * m4/localeconv.m4: New file.
3594         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
3595         REPLACE_LOCALECONV.
3596         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
3597         REPLACE_LOCALECONV.
3598         * modules/localeconv: New file.
3599         * modules/nl_langinfo (Depends-on): Add localeconv.
3600         * modules/human (Depends-on): Likewise.
3601         * doc/posix-functions/localeconv.texi: Mention the new module.
3602
3603 2012-03-25  Bruno Haible  <bruno@clisp.org>
3604
3605         locale: Provide a complete 'struct lconv'.
3606         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
3607         'struct lconv' does not contain int_p_cs_precedes.
3608         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
3609         * doc/posix-headers/locale.texi: Update.
3610
3611         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
3612         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
3613         * doc/posix-headers/locale.texi: Update.
3614
3615         locale: Provide a working 'struct lconv'.
3616         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
3617         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
3618         'struct lconv' does not even contain decimal_point.
3619         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
3620         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
3621         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
3622         * doc/posix-headers/locale.texi: Mention the problems with
3623         'struct lconv'.
3624         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
3625
3626 2012-03-24  Bruno Haible  <bruno@clisp.org>
3627
3628         Enable common subexpression optimization in GCC.
3629         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
3630         macros.
3631         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
3632         GCC attribute 'const'.
3633         (uc_locale_language): Declare with GCC attribute 'pure'.
3634         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
3635         with GCC attribute 'const'.
3636         * lib/unictype.in.h (uc_is_general_category_withtable,
3637         uc_combining_class, uc_combining_class_name,
3638         uc_combining_class_long_name, uc_bidi_class_name,
3639         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
3640         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
3641         uc_decimal_value, uc_digit_value, uc_numeric_value,
3642         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
3643         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
3644         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
3645         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
3646         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
3647         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
3648         Declare with GCC attribute 'const'.
3649         (uc_general_category_name, uc_general_category_long_name,
3650         uc_general_category_byname, uc_general_category,
3651         uc_is_general_category, uc_combining_class_byname,
3652         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
3653         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
3654         Declare with GCC attribute 'pure'.
3655         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
3656         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
3657         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
3658         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
3659         with GCC attribute 'pure'.
3660         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
3661         'const'.
3662         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
3663         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
3664         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
3665         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
3666         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
3667         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
3668         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
3669         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
3670         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
3671         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
3672         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
3673         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
3674         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
3675         GCC attribute 'pure'.
3676         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
3677         'const'.
3678         * lib/uniwidth.in.h (uc_width): Simplify declaration.
3679         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
3680         u32_strwidth): Declare with GCC attribute 'pure'.
3681
3682         Enable common subexpression optimization in GCC.
3683         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
3684         (alphasort): Declare with GCC attribute 'pure'.
3685         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
3686         (atoll): Declare with GCC attribute 'pure'.
3687         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
3688         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
3689         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
3690         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
3691         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
3692         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
3693         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
3694
3695 2012-03-24  Bruno Haible  <bruno@clisp.org>
3696
3697         gnulib-tool: Avoid unintended error output from 'cmp'.
3698         * gnulib-tool (func_add_file, func_update_file, func_import): Use
3699         "cmp -s", not "cmp > /dev/null".
3700
3701 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
3702
3703         gnulib-tool: fix imprecise comments w.r.t. an automake bug
3704
3705         It's not just Automake versions < 1.9b that creates an empty
3706         pkgdatadir at installation time if pkgdata_DATA is specified
3707         to empty; modern automake versions do this as well, at least
3708         until automake 1.11.4 (not yet released at the moment of writing,
3709         but soon to appear).  That behaviour was generally considered a
3710         feature rather than a bug, at least until this discussion:
3711         <http://lists.gnu.org/archive/html/automake/2012-03/msg00014.html>
3712
3713         See also automake bugs #10997 and #11030.
3714
3715         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
3716         reference to relevant automake bug numbers.
3717         (func_emit_tests_Makefile_am): Likewise.
3718
3719 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
3720
3721         announce-gen: use Digest::SHA when possible
3722         * build-aux/announce-gen: Use Digest::SHA when possible, falling
3723         back to Digest::SHA1 if necessary.
3724
3725 2012-03-20  Jim Meyering  <meyering@redhat.com>
3726
3727         tests: avoid gcc warnings about argv vs. const initializers
3728         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
3729         warnings about discarding 'const' qualifier from pointer target type.
3730         * tests/test-posix_spawn2.c (main): Likewise.
3731
3732 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
3733
3734         README-release: simplify slightly
3735         * top/README-release: Run "git checkout master" only once.
3736
3737 2012-03-15  Mark Wielaard  <mark@klomp.org>
3738
3739         git-merge-changelog: add specific example on how to use with hg.
3740         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
3741
3742 2012-03-18  Mark Wielaard  <mark@klomp.org>
3743
3744         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
3745
3746 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
3747
3748         git-version-gen: don't let "prefix" envvar cause trouble
3749         * build-aux/git-version-gen (prefix): Initialize properly,
3750         so as not to use a value specified via the environment.
3751         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
3752
3753 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
3754
3755         regex: diagnose too-large repeat counts in EREs
3756         Previously, the code did not diagnose the too-large repeat count
3757         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
3758         as if it were 'b\{1000000000}', which is unexpected.
3759         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
3760         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
3761         is a reasonable one for this problem.  Another option would be to
3762         create a new REG_OVERFLOW error for repeat counts that are too large.
3763         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
3764         count is too large, so that the caller can distinguish the two cases.
3765         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
3766         "Too large" return code, and that repeat counts are one example of this.
3767
3768 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
3769
3770         doc: some glibc x32 integer width issues
3771         * doc/posix-headers/sys_types.texi (sys/types.h):
3772         * doc/posix-headers/time.texi (time.h):
3773         Mention that glibc x32 does not conform to POSIX in a couple of
3774         areas related to integer widths.
3775
3776 2012-03-15  Bruno Haible  <bruno@clisp.org>
3777
3778         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
3779         * lib/fma.c (VOLATILE): New macro.
3780         (FUNC): Use it to work around a GCC compiler bug.
3781
3782 2012-03-13  Bruno Haible  <bruno@clisp.org>
3783
3784         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
3785         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
3786         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
3787         REPLACE_HYPOTL to 1.
3788         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
3789
3790 2012-03-13  Bruno Haible  <bruno@clisp.org>
3791
3792         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
3793         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
3794         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
3795         REPLACE_REMAINDERL to 1.
3796         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
3797         bug.
3798
3799 2012-03-13  Bruno Haible  <bruno@clisp.org>
3800
3801         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
3802         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
3803         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
3804         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
3805         too big rounding errors.
3806         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
3807         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
3808         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
3809         (Depends-on): Update conditions.
3810         * tests/test-sqrtl.c (my_ldexpl): New function.
3811         (main): Add test of a particular value.
3812         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
3813
3814 2012-03-13  Pádraig Brady  <P@draigBrady.com>
3815
3816         doc: Update timer_* platform portability notes.
3817         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
3818         that always return ENOSYS.
3819         * doc/posix-functions/timer_delete.texi: Likewise.
3820         * doc/posix-functions/timer_gettime.texi: Likewise.
3821         * doc/posix-functions/timer_settime.texi: Likewise.
3822
3823 2012-03-13  Bruno Haible  <bruno@clisp.org>
3824
3825         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
3826         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
3827         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
3828         REPLACE_CBRTL to 1.
3829         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
3830
3831 2012-03-13  Bruno Haible  <bruno@clisp.org>
3832
3833         remainderl: Avoid compilation error on AIX >= 5.2.
3834         * lib/math.in.h (remainderl): Undefine macro from the system header.
3835
3836 2012-03-13  Bruno Haible  <bruno@clisp.org>
3837
3838         Avoid compilation errors with MSVC option -fp:strict.
3839         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
3840         * lib/cbrtf.c: Likewise.
3841         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
3842
3843 2012-03-12  Bruno Haible  <bruno@clisp.org>
3844
3845         uninorm: Don't crash in out-of-memory conditions.
3846         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
3847         gracefully.
3848         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
3849         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
3850
3851 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
3852
3853         quote: fix syntax-check
3854         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
3855         also exports quote_quoting_options.
3856
3857 2012-03-12  Simon Josefsson  <simon@josefsson.org>
3858
3859         Collapse list of copyright years to ranges.  See
3860         <https://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00051.html>.
3861         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
3862         build-aux/csharpexec.sh.in, build-aux/gnupload,
3863         build-aux/install-reloc, build-aux/javacomp.sh.in,
3864         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
3865         build-aux/move-if-change, build-aux/reloc-ldflags,
3866         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
3867
3868 2012-03-11  Bruno Haible  <bruno@clisp.org>
3869
3870         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
3871         * m4/log2f-ieee.m4: New file.
3872         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
3873         whether log2f works with a minus zero argument. Replace it if not.
3874         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
3875         (Depends-on): Add log2-ieee.
3876         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
3877         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
3878
3879         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
3880         * m4/log2-ieee.m4: New file.
3881         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
3882         whether log2 works with a minus zero argument. Replace it if not.
3883         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
3884         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
3885         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
3886
3887         Tests for module 'log2l-ieee'.
3888         * modules/log2l-ieee-tests: New file.
3889         * tests/test-log2l-ieee.c: New file.
3890
3891         New module 'log2l-ieee'.
3892         * modules/log2l-ieee: New file.
3893
3894         Tests for module 'log2-ieee'.
3895         * modules/log2-ieee-tests: New file.
3896         * tests/test-log2-ieee.c: New file.
3897
3898         New module 'log2-ieee'.
3899         * modules/log2-ieee: New file.
3900
3901         Tests for module 'log2f-ieee'.
3902         * modules/log2f-ieee-tests: New file.
3903         * tests/test-log2f-ieee.c: New file.
3904         * tests/test-log2-ieee.h: New file.
3905
3906         New module 'log2f-ieee'.
3907         * modules/log2f-ieee: New file.
3908
3909 2012-03-11  Bruno Haible  <bruno@clisp.org>
3910
3911         Tests for module 'log2l'.
3912         * modules/log2l-tests: New file.
3913         * tests/test-log2l.c: New file.
3914
3915         New module 'log2l'.
3916         * lib/math.in.h (log2l): New declaration.
3917         * lib/log2l.c: New file.
3918         * m4/log2l.m4: New file.
3919         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
3920         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
3921         REPLACE_LOG2L.
3922         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
3923         REPLACE_LOG2L.
3924         * modules/log2l: New file.
3925         * tests/test-math-c++.cc: Check the declaration of log2l.
3926         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
3927         and OSF/1 problems.
3928
3929 2012-03-11  Bruno Haible  <bruno@clisp.org>
3930
3931         Tests for module 'log2f'.
3932         * modules/log2f-tests: New file.
3933         * tests/test-log2f.c: New file.
3934
3935         New module 'log2f'.
3936         * lib/math.in.h (log2f): New declaration.
3937         * lib/log2f.c: New file.
3938         * m4/log2f.m4: New file.
3939         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
3940         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
3941         REPLACE_LOG2F.
3942         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
3943         REPLACE_LOG2F.
3944         * modules/log2f: New file.
3945         * tests/test-math-c++.cc: Check the declaration of log2f.
3946         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
3947         and OSF/1 and Cygwin problems.
3948
3949 2012-03-11  Bruno Haible  <bruno@clisp.org>
3950
3951         Tests for module 'log2'.
3952         * modules/log2-tests: New file.
3953         * tests/test-log2.c: New file.
3954         * tests/test-log2.h: New file.
3955
3956         New module 'log2'.
3957         * lib/math.in.h (log2): New declaration.
3958         * lib/log2.c: New file.
3959         * m4/log2.m4: New file.
3960         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
3961         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
3962         REPLACE_LOG2.
3963         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
3964         REPLACE_LOG2.
3965         * modules/log2: New file.
3966         * tests/test-math-c++.cc: Check the declaration of log2.
3967         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
3968         and OSF/1 and Cygwin problems.
3969
3970 2012-03-11  Bruno Haible  <bruno@clisp.org>
3971
3972         exp2* tests: More tests.
3973         * tests/test-exp2.h (test_function): Test all integral arguments that
3974         don't need to overflow or denormalized numbers.
3975         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
3976         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
3977         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
3978
3979 2012-03-10  Bruno Haible  <bruno@clisp.org>
3980
3981         log1pl-ieee: Work around test failure on AIX 7.1.
3982         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
3983
3984         log1pl-ieee: Work around test failure on IRIX 6.5.
3985         * m4/log1pl-ieee.m4: New file.
3986         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
3987         test whether log1pl works with a minus zero argument. Replace it if
3988         not.
3989         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
3990         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
3991         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
3992         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
3993         (Depends-on): Update conditions.
3994         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
3995         m4/signbit.m4.
3996         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
3997         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
3998
3999         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
4000         * m4/log1pf-ieee.m4: New file.
4001         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
4002         test whether log1pf works with a minus zero argument. Replace it if
4003         not.
4004         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
4005         m4/signbit.m4.
4006         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
4007         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
4008
4009         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
4010         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
4011         (configure.ac): Require gl_FUNC_LOG1PF.
4012
4013         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
4014         * m4/log1p-ieee.m4: New file.
4015         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
4016         whether log1p works with a minus zero argument. Replace it if not.
4017         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
4018         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
4019         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
4020         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
4021         (Depends-on): Update conditions.
4022         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
4023         m4/signbit.m4.
4024         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
4025         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
4026
4027         Tests for module 'log1pl-ieee'.
4028         * modules/log1pl-ieee-tests: New file.
4029         * tests/test-log1pl-ieee.c: New file.
4030
4031         New module 'log1pl-ieee'.
4032         * modules/log1pl-ieee: New file.
4033
4034         Tests for module 'log1p-ieee'.
4035         * modules/log1p-ieee-tests: New file.
4036         * tests/test-log1p-ieee.c: New file.
4037
4038         New module 'log1p-ieee'.
4039         * modules/log1p-ieee: New file.
4040
4041         Tests for module 'log1pf-ieee'.
4042         * modules/log1pf-ieee-tests: New file.
4043         * tests/test-log1pf-ieee.c: New file.
4044         * tests/test-log1p-ieee.h: New file.
4045
4046         New module 'log1pf-ieee'.
4047         * modules/log1pf-ieee: New file.
4048
4049 2012-03-10  Bruno Haible  <bruno@clisp.org>
4050
4051         Tests for module 'log1pl'.
4052         * modules/log1pl-tests: New file.
4053         * tests/test-log1pl.c: New file.
4054
4055         New module 'log1pl'.
4056         * lib/math.in.h (log1pl): New declaration.
4057         * lib/log1pl.c: New file.
4058         * m4/log1pl.m4: New file.
4059         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
4060         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
4061         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
4062         * modules/log1pl: New file.
4063         * tests/test-math-c++.cc: Check the declaration of log1pl.
4064         * doc/posix-functions/log1pl.texi: Mention the new module.
4065
4066 2012-03-10  Bruno Haible  <bruno@clisp.org>
4067
4068         Tests for module 'log1pf'.
4069         * modules/log1pf-tests: New file.
4070         * tests/test-log1pf.c: New file.
4071
4072         New module 'log1pf'.
4073         * lib/math.in.h (log1pf): New declaration.
4074         * lib/log1pf.c: New file.
4075         * m4/log1pf.m4: New file.
4076         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
4077         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
4078         REPLACE_LOG1PF.
4079         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
4080         REPLACE_LOG1PF.
4081         * modules/log1pf: New file.
4082         * tests/test-math-c++.cc: Check the declaration of log1pf.
4083         * doc/posix-functions/log1pf.texi: Mention the new module.
4084
4085 2012-03-10  Bruno Haible  <bruno@clisp.org>
4086
4087         log1p tests: More tests.
4088         * tests/test-log1p.h: New file.
4089         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
4090         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
4091         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
4092         (main): Invoke test_function.
4093
4094         log1p: Provide replacement for Minix and MSVC.
4095         * lib/math.in.h (log1p): New declaration.
4096         * lib/log1p.c: New file.
4097         * m4/log1p.m4: New file.
4098         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
4099         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
4100         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
4101         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
4102         (Depends-on): Add math, isnand, log, round.
4103         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
4104         HAVE_LOG1P is 0.
4105         * tests/test-math-c++.cc: Check the declaration of log1p.
4106         * doc/posix-functions/log1p.texi: Mention the replacement.
4107
4108 2012-03-10  Bruno Haible  <bruno@clisp.org>
4109
4110         math tests: Small simplification.
4111         * tests/test-exp.h (test_function): Use the same err_bound for
4112         'double' on platforms with sizeof (long double) == sizeof (double)
4113         than on platforms with sizeof (long double) > sizeof (double).
4114         * tests/test-exp2.h (test_function): Likewise.
4115         * tests/test-expm1.h (test_function): Likewise.
4116         * tests/test-log.h (test_function): Likewise.
4117
4118 2012-03-10  Bruno Haible  <bruno@clisp.org>
4119
4120         Fix some comments.
4121         * lib/expl.c: Fix an ambiguous comment.
4122         * lib/expm1.c: Likewise.
4123         * lib/expm1l.c: Likewise.
4124         * lib/exp2.c: Likewise.
4125         * lib/exp2l.c: Likewise.
4126
4127 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
4128
4129         regex: allow inclusion of <regex.h> before <limits.h>
4130         Without this patch, portable programs had to include <limits.h> before
4131         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
4132         I ran into this problem with a test version of GNU grep on Solaris 8.
4133         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
4134         This is done conditionally so that this change can be merged
4135         back to glibc.
4136         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
4137         using the included regex.
4138
4139         fts: depend on fdopendir
4140         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
4141         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
4142         problem was introduced when fdopendir was split out.
4143
4144 2012-03-10  Bruno Haible  <bruno@clisp.org>
4145
4146         Remove unused variables.
4147         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
4148         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
4149
4150 2012-03-10  Bruno Haible  <bruno@clisp.org>
4151
4152         isnanf-nolibm: Fix last commit.
4153         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
4154
4155         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
4156         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
4157
4158 2012-03-10  Bruno Haible  <bruno@clisp.org>
4159
4160         logf-ieee: Work around test failure on NetBSD 5.1.
4161         * m4/logf-ieee.m4: New file.
4162         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
4163         whether logf works with a negative argument. Replace it if not.
4164         * lib/logf.c (logf): For negative arguments, return NaN.
4165         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
4166         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
4167         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
4168
4169         logf-ieee: Work around test failure on Solaris 9.
4170         * modules/logf-ieee (Depends-on): Add log-ieee.
4171         (configure.ac): Require gl_FUNC_LOGF.
4172
4173         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
4174         * m4/log-ieee.m4: New file.
4175         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
4176         log works with a negative argument. Replace it if not.
4177         * lib/log.c (log): For negative arguments, return NaN.
4178         * modules/log-ieee (Files): Add m4/log-ieee.m4.
4179         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
4180         * doc/posix-functions/log.texi: Mention the log-ieee module.
4181
4182         Tests for module 'logl-ieee'.
4183         * modules/logl-ieee-tests: New file.
4184         * tests/test-logl-ieee.c: New file.
4185
4186         New module 'logl-ieee'.
4187         * modules/logl-ieee: New file.
4188
4189         Tests for module 'log-ieee'.
4190         * modules/log-ieee-tests: New file.
4191         * tests/test-log-ieee.c: New file.
4192
4193         New module 'log-ieee'.
4194         * modules/log-ieee: New file.
4195
4196         Tests for module 'logf-ieee'.
4197         * modules/logf-ieee-tests: New file.
4198         * tests/test-logf-ieee.c: New file.
4199         * tests/test-log-ieee.h: New file.
4200
4201         New module 'logf-ieee'.
4202         * modules/logf-ieee: New file.
4203
4204 2012-03-10  Bruno Haible  <bruno@clisp.org>
4205
4206         log: Fix bug introduced on 2012-03-09.
4207         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
4208
4209 2012-03-10  Pádraig Brady  <P@draigBrady.com>
4210
4211         timer-time: link explicitly with pthreads on glibc
4212         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
4213         to support static linking, when newer glibc is
4214         detected, as that contains pthread emulation of
4215         POSIX timer functions where required.
4216         * modules/timer-time: Depend on threadlib to
4217         pull in the appropriate library to link.
4218
4219 2012-03-10  Bruno Haible  <bruno@clisp.org>
4220
4221         log* tests: More tests.
4222         * tests/test-log.h: New file.
4223         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
4224         (main): Invoke test_function.
4225         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
4226         (main): Invoke test_function.
4227         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
4228         (main): Invoke test_function.
4229         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
4230         tests/randomd.c.
4231         (Makefile.am): Add randomd.c to test_log_SOURCES.
4232         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
4233         tests/randomf.c.
4234         (Makefile.am): Add randomf.c to test_logf_SOURCES.
4235         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
4236         tests/randoml.c.
4237         (Depends-on): Add 'float'.
4238         (Makefile.am): Add randoml.c to test_logl_SOURCES.
4239
4240 2012-03-09  Bruno Haible  <bruno@clisp.org>
4241
4242         logl: Work around OSF/1 5.1 bug.
4243         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
4244         * lib/logl.c (logl): If logl exists, use it and provide just the
4245         workaround.
4246         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
4247         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
4248         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
4249         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
4250         * modules/logl (configure.ac): Consider REPLACE_LOGL.
4251         (Depends-on): Update conditions.
4252         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
4253
4254 2012-03-09  Bruno Haible  <bruno@clisp.org>
4255
4256         logf: Work around OSF/1 5.1 bug.
4257         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
4258         * lib/logf.c (logf): If logf exists, use it and provide just the
4259         workaround.
4260         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
4261         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
4262         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
4263         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
4264         * modules/logf (configure.ac): Consider REPLACE_LOGF.
4265         (Depends-on): Update conditions.
4266         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
4267
4268 2012-03-09  Bruno Haible  <bruno@clisp.org>
4269
4270         log: Work around OSF/1 5.1 bug.
4271         * lib/math.in.h (log): New declaration.
4272         * lib/log.c: New file.
4273         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
4274         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
4275         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
4276         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
4277         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
4278         * modules/log (Files): Add lib/log.c.
4279         (Depends-on): Add math.
4280         (configure.ac): If REPLACE_LOG is 1, compile an override.
4281         * tests/test-math-c++.cc: Check the declaration of log.
4282         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
4283
4284 2012-03-09  Jim Meyering  <meyering@redhat.com>
4285
4286         readtokens.c: adjust wording in a comment
4287         * lib/readtokens.c: Insert omitted "that" in a comment.
4288
4289 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
4290
4291         modechange: add notations +40, 00440, etc.
4292         * lib/modechange.c (mode_compile): Support new notations
4293         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
4294
4295 2012-03-08  Bruno Haible  <bruno@clisp.org>
4296
4297         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
4298         * m4/exp2l-ieee.m4: New file.
4299         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
4300         test whether exp2l works with a NaN argument and with a negative
4301         infinity argument. Replace it if not.
4302         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
4303         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
4304         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
4305         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
4306         (Depends-on): Update conditions.
4307         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
4308         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
4309         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
4310
4311         Tests for module 'exp2l-ieee'.
4312         * modules/exp2l-ieee-tests: New file.
4313         * tests/test-exp2l-ieee.c: New file.
4314
4315         New module 'exp2l-ieee'.
4316         * modules/exp2l-ieee: New file.
4317
4318         Tests for module 'exp2-ieee'.
4319         * modules/exp2-ieee-tests: New file.
4320         * tests/test-exp2-ieee.c: New file.
4321
4322         New module 'exp2-ieee'.
4323         * modules/exp2-ieee: New file.
4324
4325         Tests for module 'exp2f-ieee'.
4326         * modules/exp2f-ieee-tests: New file.
4327         * tests/test-exp2f-ieee.c: New file.
4328         * tests/test-exp2-ieee.h: New file.
4329
4330         New module 'exp2f-ieee'.
4331         * modules/exp2f-ieee: New file.
4332
4333 2012-03-08  Bruno Haible  <bruno@clisp.org>
4334
4335         Tests for module 'exp2l'.
4336         * modules/exp2l-tests: New file.
4337         * tests/test-exp2l.c: New file.
4338
4339         New module 'exp2l'.
4340         * lib/math.in.h (exp2l): New declaration.
4341         * lib/exp2l.c: New file.
4342         * lib/expl-table.c: New file, extracted from lib/expl.c.
4343         * lib/expl.c (gl_expl_table): New declaration.
4344         (expl): Remove expl_table. Update reference.
4345         * m4/exp2l.m4: New file.
4346         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
4347         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
4348         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
4349         * modules/exp2l: New file.
4350         * modules/expl (Files): Add lib/expl-table.c.
4351         (configure.ac): Compile also expl-table.c.
4352         * tests/test-math-c++.cc: Check the declaration of exp2l.
4353         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
4354         problem.
4355
4356 2012-03-08  Bruno Haible  <bruno@clisp.org>
4357
4358         Tests for module 'exp2f'.
4359         * modules/exp2f-tests: New file.
4360         * tests/test-exp2f.c: New file.
4361
4362         New module 'exp2f'.
4363         * lib/math.in.h (exp2f): New declaration.
4364         * lib/exp2f.c: New file.
4365         * m4/exp2f.m4: New file.
4366         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
4367         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
4368         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
4369         * modules/exp2f: New file.
4370         * tests/test-math-c++.cc: Check the declaration of exp2f.
4371         * doc/posix-functions/exp2f.texi: Mention the new module and the
4372         IRIX problem.
4373
4374 2012-03-08  Bruno Haible  <bruno@clisp.org>
4375
4376         Tests for module 'exp2'.
4377         * modules/exp2-tests: New file.
4378         * tests/test-exp2.c: New file.
4379         * tests/test-exp2.h: New file.
4380
4381         New module 'exp2'.
4382         * lib/math.in.h (exp2): New declaration.
4383         * lib/exp2.c: New file.
4384         * m4/exp2.m4: New file.
4385         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
4386         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
4387         REPLACE_EXP2.
4388         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
4389         REPLACE_EXP2.
4390         * modules/exp2: New file.
4391         * tests/test-math-c++.cc: Check the declaration of exp2.
4392         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
4393         and OpenBSD problems.
4394
4395 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
4396
4397         savedir: fix comment typo
4398         * lib/savedir.c (savedirstream): Fix typo in comment.
4399
4400 2012-03-08  Bruno Haible  <bruno@clisp.org>
4401
4402         test-readtokens.c: use const; remove unwarranted cast
4403         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
4404
4405 2012-03-08  Bruno Haible  <bruno@clisp.org>
4406
4407         fmal: Avoid compilation error on AIX.
4408         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
4409         AIX 5.2..7.1.
4410
4411 2012-03-08  Bruno Haible  <bruno@clisp.org>
4412
4413         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
4414         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
4415         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
4416         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
4417         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
4418         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
4419         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
4420
4421 2012-03-08  Bruno Haible  <bruno@clisp.org>
4422
4423         remainderf: Override buggy system function on IRIX 6.5.
4424         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
4425         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
4426         when it exists.
4427         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
4428
4429 2012-03-08  Jim Meyering  <meyering@redhat.com>
4430
4431         test-readtokens.c: avoid const-related compilation warnings
4432         * tests/test-readtokens.c: Avoid const-related compilation warnings.
4433
4434 2012-03-07  Jim Meyering  <meyering@redhat.com>
4435             Bruno Haible  <bruno@clisp.org>
4436
4437         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
4438         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
4439         tests/randomd.c.
4440         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
4441         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
4442         tests/randoml.c.
4443         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
4444
4445 2012-03-07  Bruno Haible  <bruno@clisp.org>
4446
4447         expm1l: Avoid compilation error on AIX.
4448         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
4449         AIX 5.2..7.1.
4450
4451 2012-03-07  Bruno Haible  <bruno@clisp.org>
4452
4453         expm1l: Don't override undeclared system function on IRIX 6.5.
4454         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
4455         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
4456         it exists. Set HAVE_DECL_EXPM1L.
4457         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
4458         HAVE_EXPM1L.
4459         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
4460         HAVE_EXPM1L.
4461         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
4462
4463 2012-03-07  Bruno Haible  <bruno@clisp.org>
4464
4465         remainderl: Don't override undeclared system function on IRIX 6.5.
4466         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
4467         HAVE_REMAINDERL.
4468         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
4469         declared when it exists. Set HAVE_DECL_REMAINDERL.
4470         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
4471         not HAVE_REMAINDERL.
4472         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
4473         HAVE_REMAINDERL.
4474         * doc/posix-functions/remainderl.texi: Mention missing declaration
4475         problem.
4476
4477 2012-03-07  Bruno Haible  <bruno@clisp.org>
4478
4479         rintf: Don't override undeclared system function on IRIX 6.5.
4480         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
4481         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
4482         exists. Set HAVE_DECL_RINTF.
4483         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
4484         HAVE_RINTF.
4485         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
4486         HAVE_RINTF.
4487         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
4488
4489 2012-03-07  Bruno Haible  <bruno@clisp.org>
4490
4491         roundl: Avoid compilation error on AIX.
4492         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
4493         AIX 5.2..7.1.
4494
4495 2012-03-07  Bruno Haible  <bruno@clisp.org>
4496
4497         roundl: Don't override undeclared system function on IRIX 6.5.
4498         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
4499         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
4500         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
4501         * modules/roundl (configure.ac): For replacement code, test
4502         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
4503         (Depends-on): Update conditions.
4504         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
4505
4506 2012-03-07  Bruno Haible  <bruno@clisp.org>
4507
4508         roundf: Don't override undeclared system function on IRIX 6.5.
4509         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
4510         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
4511         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
4512         * modules/roundf (configure.ac): For replacement code, test
4513         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
4514         (Depends-on): Update conditions.
4515         * modules/roundf-ieee (Depends-on): Update conditions.
4516         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
4517
4518 2012-03-07  Bruno Haible  <bruno@clisp.org>
4519
4520         round: Don't override undeclared system function on IRIX 6.5.
4521         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
4522         argument.
4523         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
4524         also when it is not declared. Set HAVE_ROUND. For replacement code,
4525         test HAVE_ROUND, not HAVE_DECL_ROUND.
4526         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
4527         not HAVE_DECL_ROUND.
4528         (Depends-on): Update conditions.
4529         * modules/round-ieee (Depends-on): Update conditions.
4530         * doc/posix-functions/round.texi: Mention the IRIX problem.
4531
4532 2012-03-07  Bruno Haible  <bruno@clisp.org>
4533
4534         copysignf: Don't override undeclared system function on IRIX 6.5.
4535         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
4536         HAVE_COPYSIGNF.
4537         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
4538         declared when it exists. Set HAVE_DECL_COPYSIGNF.
4539         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
4540         not HAVE_COPYSIGNF.
4541         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
4542         HAVE_COPYSIGNF.
4543         * doc/posix-functions/copysignf.texi: Mention missing declaration
4544         problem.
4545
4546 2012-03-07  Jim Meyering  <meyering@redhat.com>
4547
4548         readtokens: add tests
4549         * modules/readtokens-tests: New file.
4550         * tests/test-readtokens.c: New file.
4551
4552 2012-03-07  Jim Meyering  <meyering@redhat.com>
4553
4554         quotearg: the module must now include quote.h
4555         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
4556         So must the module.
4557         * modules/quotearg (Files): Add quote.h.
4558
4559 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
4560
4561         readtokens: avoid core dumps with unusual calling patterns
4562         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
4563         * lib/readtokens.c: Include limits.h.
4564         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
4565         (readtoken): Don't cache the delimiters; the cache code was buggy
4566         if !delim && saved_delim, or if the new n_delim differs from the old.
4567         Also, it wasn't thread-safe.
4568
4569 2012-03-07  Bruno Haible  <bruno@clisp.org>
4570
4571         quote: Adhere to common module description layout.
4572         * modules/quote (Makefile.am): Add back empty section.
4573
4574 2012-03-06  Akim Demaille  <demaille@gostai.com>
4575
4576         quote: fuse into quotearg
4577         This patch is made for the benefit of Bison.
4578         quote does not leave the choice of the quoting style to the user.
4579         quoting_style provides poor customizability, yet quoting_options,
4580         which is very rich, is hidden inside quotearg.c.  So in order to
4581         allow quote customization, move its implementation to quotearg.c.
4582         * lib/quote.c: Remove.
4583         * modules/quote: Adjust.
4584         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
4585         warning: provide all the members of literal structs.
4586         (quote_quoting_options): New.
4587         (quote, quote_n): Import implementation from quote.c.
4588         * lib/quote.h: Import the comments from quote.c.
4589         (quote_quoting_options): New.
4590
4591 2012-03-06  Bruno Haible  <bruno@clisp.org>
4592
4593         Tests for module 'expm1l-ieee'.
4594         * modules/expm1l-ieee-tests: New file.
4595         * tests/test-expm1l-ieee.c: New file.
4596
4597         New module 'expm1l-ieee'.
4598         * modules/expm1l-ieee: New file.
4599
4600         Tests for module 'expm1f-ieee'.
4601         * modules/expm1f-ieee-tests: New file.
4602         * tests/test-expm1f-ieee.c: New file.
4603
4604         New module 'expm1f-ieee'.
4605         * modules/expm1f-ieee: New file.
4606
4607         Tests for module 'expm1-ieee'.
4608         * modules/expm1-ieee-tests: New file.
4609         * tests/test-expm1-ieee.c: New file.
4610         * tests/test-expm1-ieee.h: New file.
4611
4612         New module 'expm1-ieee'.
4613         * modules/expm1-ieee: New file.
4614         * m4/expm1-ieee.m4: New file.
4615         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
4616         whether expm1 works with a minus zero argument. Replace it if not.
4617         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
4618         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
4619         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
4620         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
4621         (Depends-on): Update conditions.
4622         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
4623         AIX problem.
4624
4625 2012-03-06  Bruno Haible  <bruno@clisp.org>
4626
4627         Work around expm1f bug on IRIX 6.5.
4628         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
4629         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
4630         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
4631         not work.
4632         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
4633         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
4634         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
4635         (Depends-on): Update conditions.
4636         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
4637
4638 2012-03-06  Bruno Haible  <bruno@clisp.org>
4639
4640         Tests for module 'expm1l'.
4641         * modules/expm1l-tests: New file.
4642         * tests/test-expm1l.c: New file.
4643
4644         New module 'expm1l'.
4645         * lib/math.in.h (expm1l): New declaration.
4646         * lib/expm1l.c: New file.
4647         * m4/expm1l.m4: New file.
4648         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
4649         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
4650         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
4651         * modules/expm1l: New file.
4652         * tests/test-math-c++.cc: Check the declaration of expm1l.
4653         * doc/posix-functions/expm1l.texi: Mention the new module.
4654
4655 2012-03-06  Bruno Haible  <bruno@clisp.org>
4656
4657         Tests for module 'expm1f'.
4658         * modules/expm1f-tests: New file.
4659         * tests/test-expm1f.c: New file.
4660
4661         New module 'expm1f'.
4662         * lib/math.in.h (expm1f): New declaration.
4663         * lib/expm1f.c: New file.
4664         * m4/expm1f.m4: New file.
4665         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
4666         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
4667         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
4668         * modules/expm1f: New file.
4669         * tests/test-math-c++.cc: Check the declaration of expm1f.
4670         * doc/posix-functions/expm1f.texi: Mention the new module.
4671
4672 2012-03-06  Bruno Haible  <bruno@clisp.org>
4673
4674         Tests for module 'expm1'.
4675         * modules/expm1-tests: New file.
4676         * tests/test-expm1.c: New file.
4677         * tests/test-expm1.h: New file.
4678
4679         New module 'expm1'.
4680         * lib/math.in.h (expm1): New declaration.
4681         * lib/expm1.c: New file.
4682         * m4/expm1.m4: New file.
4683         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
4684         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
4685         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
4686         * modules/expm1: New file.
4687         * tests/test-math-c++.cc: Check the declaration of expm1.
4688         * doc/posix-functions/expm1.texi: Mention the new module.
4689
4690 2012-03-06  Bruno Haible  <bruno@clisp.org>
4691
4692         math: Ensure declarations of math functions.
4693         * modules/acosf (Depends-on): Add 'extensions'.
4694         * modules/asinf (Depends-on): Likewise.
4695         * modules/atan2f (Depends-on): Likewise.
4696         * modules/atanf (Depends-on): Likewise.
4697         * modules/cbrt (Depends-on): Likewise.
4698         * modules/cbrtf (Depends-on): Likewise.
4699         * modules/cbrtl (Depends-on): Likewise.
4700         * modules/copysignf (Depends-on): Likewise.
4701         * modules/copysignl (Depends-on): Likewise.
4702         * modules/cosf (Depends-on): Likewise.
4703         * modules/coshf (Depends-on): Likewise.
4704         * modules/expf (Depends-on): Likewise.
4705         * modules/fabsf (Depends-on): Likewise.
4706         * modules/fabsl (Depends-on): Likewise.
4707         * modules/fmaf (Depends-on): Likewise.
4708         * modules/fmal (Depends-on): Likewise.
4709         * modules/fmodf (Depends-on): Likewise.
4710         * modules/fmodl (Depends-on): Likewise.
4711         * modules/frexpf (Depends-on): Likewise.
4712         * modules/frexpl (Depends-on): Likewise.
4713         * modules/hypot (Depends-on): Likewise.
4714         * modules/hypotf (Depends-on): Likewise.
4715         * modules/hypotl (Depends-on): Likewise.
4716         * modules/ldexpf (Depends-on): Likewise.
4717         * modules/ldexpl (Depends-on): Likewise.
4718         * modules/log10f (Depends-on): Likewise.
4719         * modules/log10l (Depends-on): Likewise.
4720         * modules/log1p (Depends-on): Likewise.
4721         * modules/logb (Depends-on): Likewise.
4722         * modules/logf (Depends-on): Likewise.
4723         * modules/modff (Depends-on): Likewise.
4724         * modules/modfl (Depends-on): Likewise.
4725         * modules/powf (Depends-on): Likewise.
4726         * modules/remainderf (Depends-on): Likewise.
4727         * modules/remainderl (Depends-on): Likewise.
4728         * modules/rintf (Depends-on): Likewise.
4729         * modules/rintl (Depends-on): Likewise.
4730         * modules/sinf (Depends-on): Likewise.
4731         * modules/sinhf (Depends-on): Likewise.
4732         * modules/sqrtf (Depends-on): Likewise.
4733         * modules/tanf (Depends-on): Likewise.
4734         * modules/tanhf (Depends-on): Likewise.
4735         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
4736         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
4737         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
4738         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
4739         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
4740         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
4741         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
4742         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
4743         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
4744         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
4745         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
4746         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
4747         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
4748         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
4749         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
4750         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
4751         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
4752         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
4753         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
4754         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
4755         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
4756         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
4757         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
4758         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
4759         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
4760         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
4761         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
4762         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
4763         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
4764         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
4765         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
4766         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
4767         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
4768         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
4769         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
4770         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
4771         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
4772         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
4773         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
4774         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
4775         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
4776
4777 2012-03-06  Bruno Haible  <bruno@clisp.org>
4778
4779         math: Update module names in warnings.
4780         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
4781         tanl): Use specific module name in warn-on-use warning.
4782
4783 2012-03-06  Bruno Haible  <bruno@clisp.org>
4784
4785         expl: Simplify computation.
4786         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
4787
4788 2012-03-05  Bruno Haible  <bruno@clisp.org>
4789
4790         exp* tests: More tests.
4791         * tests/test-exp.h: New file.
4792         * tests/test-exp.c: Include <float.h> and test-exp.h.
4793         (main): Invoke test_function.
4794         * tests/test-expf.c: Include <float.h> and test-exp.h.
4795         (main): Invoke test_function.
4796         * tests/test-expl.c: Include <float.h> and test-exp.h.
4797         (main): Invoke test_function.
4798         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
4799         (Makefile.am): Add randomd.c to test_exp_SOURCES.
4800         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
4801         (Makefile.am): Add randomf.c to test_expf_SOURCES.
4802         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
4803         (Depends-on): Add 'float'.
4804         (Makefile.am): Add randoml.c to test_expl_SOURCES.
4805
4806         expl: Fix precision of computed result.
4807         * lib/expl.c: Completely rewritten.
4808         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
4809         (Maintainer): Add me.
4810         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
4811
4812 2012-03-05  Bruno Haible  <bruno@clisp.org>
4813
4814         cbrt* tests: More tests.
4815         * tests/test-cbrt.h: New file.
4816         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
4817         (main): Invoke test_function.
4818         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
4819         (main): Invoke test_function.
4820         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
4821         (main): Invoke test_function.
4822         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
4823         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
4824         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
4825         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
4826         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
4827         (Depends-on): Add 'float'.
4828         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
4829
4830 2012-03-05  Bruno Haible  <bruno@clisp.org>
4831
4832         hypot* tests: More tests.
4833         * tests/test-hypot.h: New file, partially extracted from
4834         tests/test-hypotl.c.
4835         * tests/test-hypot.c: Include test-hypot.h.
4836         (main): Invoke test_function.
4837         * tests/test-hypotf.c: Include test-hypot.h.
4838         (main): Invoke test_function.
4839         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
4840         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
4841         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
4842         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
4843         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
4844         tests/randomf.c.
4845         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
4846         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
4847         tests/randoml.c.
4848         (Depends-on): Add 'fpucw', 'float'.
4849         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
4850
4851 2012-03-05  Bruno Haible  <bruno@clisp.org>
4852
4853         fpucw: Doc about FreeBSD.
4854         * lib/fpucw.h: Mention FreeBSD in comments.
4855
4856 2012-03-04  Bruno Haible  <bruno@clisp.org>
4857
4858         sqrt* tests: More tests.
4859         * tests/test-sqrt.h: New file.
4860         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
4861         (main): Invoke test_function.
4862         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
4863         (main): Invoke test_function.
4864         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
4865         (main): Invoke test_function.
4866         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
4867         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
4868         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
4869         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
4870         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
4871         (Depends-on): Add 'float'.
4872         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
4873
4874 2012-03-04  Bruno Haible  <bruno@clisp.org>
4875
4876         remainder* tests: More tests.
4877         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
4878         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
4879         (main): Invoke test_function.
4880         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
4881         (main): Invoke test_function.
4882         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
4883         (main): Invoke test_function.
4884         * modules/remainder-tests (Files): Add tests/test-remainder.h,
4885         tests/randomd.c.
4886         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
4887         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
4888         tests/randomf.c.
4889         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
4890         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
4891         tests/randoml.c.
4892         (Depends-on): Add 'float'.
4893         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
4894
4895 2012-03-04  Bruno Haible  <bruno@clisp.org>
4896
4897         remainder, remainderf, remainderl: Fix computation for large quotients.
4898         * lib/remainder.c: Completely rewritten.
4899         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
4900         USE_FLOAT.
4901         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
4902         USE_LONG_DOUBLE.
4903         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
4904         isnand, isinf. Remove round, fma.
4905         * modules/remainderf (Files): Add lib/remainder.c.
4906         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
4907         Remove roundf, fmaf.
4908         * modules/remainderl (Files): Add lib/remainder.c.
4909         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
4910         isinf. Remove roundl, fmal.
4911         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
4912         REMAINDER_LIBM.
4913         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
4914         REMAINDERF_LIBM.
4915         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
4916         REMAINDERL_LIBM.
4917
4918 2012-03-04  Bruno Haible  <bruno@clisp.org>
4919
4920         fmod* tests: More tests.
4921         * tests/test-fmod.h (my_ldexp): New function.
4922         (test_function): Reduce amount of random numbers to test. Add tests
4923         of very large quotients x / y.
4924         * tests/test-fmod.c (MAX_EXP): New macro.
4925         * tests/test-fmodf.c (MAX_EXP): Likewise.
4926         * tests/test-fmodl.c (MAX_EXP): Likewise.
4927
4928 2012-03-04  Bruno Haible  <bruno@clisp.org>
4929
4930         fmod, fmodl: Fix computation for large quotients x / y.
4931         * lib/fmod.c: Completely rewritten.
4932         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
4933         USE_LONG_DOUBLE.
4934         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
4935         isnand. Remove fma.
4936         * modules/fmodl (Files): Add lib/fmod.c.
4937         (Depends-on): Add float, isfinite, signbit, fabsl,
4938         frexpl, ldexpl, isnanl. Remove fma.
4939         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
4940         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
4941
4942 2012-03-03  Bruno Haible  <bruno@clisp.org>
4943
4944         fmod* tests: More tests.
4945         * tests/test-fmod.h: New file.
4946         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
4947         (main): Invoke test_function.
4948         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
4949         (main): Invoke test_function.
4950         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
4951         (main): Invoke test_function.
4952         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
4953         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
4954         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
4955         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
4956         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
4957         (Depends-on): Add 'float'.
4958         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
4959
4960 2012-03-03  Bruno Haible  <bruno@clisp.org>
4961
4962         rint* tests: More tests.
4963         * tests/test-rint.h: New file, partially extracted from
4964         tests/test-rintl.c.
4965         * tests/test-rint.c: Include test-rint.h.
4966         (main): Invoke test_function.
4967         * tests/test-rintf.c: Include test-rint.h.
4968         (main): Invoke test_function.
4969         * tests/test-rintl.c: Include test-rint.h.
4970         (main): Invoke test_function.
4971         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
4972         (Makefile.am): Add randomd.c to test_rint_SOURCES.
4973         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
4974         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
4975         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
4976         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
4977
4978 2012-03-03  Bruno Haible  <bruno@clisp.org>
4979
4980         modf* tests: More tests.
4981         * tests/test-modf.h: New file.
4982         * tests/test-modf.c: Include <float.h> and test-modf.h.
4983         (main): Invoke test_function.
4984         * tests/test-modff.c: Include <float.h> and test-modf.h.
4985         (main): Invoke test_function.
4986         * tests/test-modfl.c: Include <float.h> and test-modf.h.
4987         (main): Invoke test_function.
4988         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
4989         (Makefile.am): Add randomd.c to test_modf_SOURCES.
4990         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
4991         (Makefile.am): Add randomf.c to test_modff_SOURCES.
4992         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
4993         (Depends-on): Add 'float'.
4994         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
4995
4996 2012-03-03  Bruno Haible  <bruno@clisp.org>
4997
4998         fabs* tests: More tests.
4999         * tests/test-fabs.h: New file, partially extracted from
5000         tests/test-fabsl.c.
5001         * tests/test-fabs.c (RANDOM): New macro.
5002         * tests/test-fabsf.c (RANDOM): New macro.
5003         * tests/test-fabsl.c (RANDOM): New macro.
5004         * modules/fabs-tests (Files): Add tests/randomd.c.
5005         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
5006         * modules/fabsf-tests (Files): Add tests/randomf.c.
5007         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
5008         * modules/fabsl-tests (Files): Add tests/randoml.c.
5009         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
5010
5011 2012-03-03  Bruno Haible  <bruno@clisp.org>
5012
5013         ldexp* tests: More tests.
5014         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
5015         * tests/test-ldexp.c (RANDOM): New macro.
5016         * tests/test-ldexpf.c (RANDOM): New macro.
5017         * tests/test-ldexpl.c (RANDOM): New macro.
5018         * modules/ldexp-tests (Files): Add tests/randomd.c.
5019         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
5020         * modules/ldexpf-tests (Files): Add tests/randomf.c.
5021         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
5022         * modules/ldexpl-tests (Files): Add tests/randoml.c.
5023         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
5024
5025 2012-03-03  Bruno Haible  <bruno@clisp.org>
5026
5027         frexp* tests: More tests.
5028         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
5029         * tests/test-frexp.c (RANDOM): New macro.
5030         * tests/test-frexpf.c (RANDOM): New macro.
5031         * tests/test-frexpl.c (RANDOM): New macro.
5032         * modules/frexp-tests (Files): Add tests/randomd.c.
5033         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
5034         * modules/frexpf-tests (Files): Add tests/randomf.c.
5035         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
5036         * modules/frexpl-tests (Files): Add tests/randoml.c.
5037         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
5038
5039 2012-03-03  Bruno Haible  <bruno@clisp.org>
5040
5041         Support for pseudo-random numbers in tests.
5042         * tests/randomf.c: New file.
5043         * tests/randomd.c: New file.
5044         * tests/randoml.c: New file.
5045         * tests/macros.h (randomf, randomd, randoml): New declarations.
5046
5047 2012-03-03  Bruno Haible  <bruno@clisp.org>
5048
5049         frexp* tests: Refactor.
5050         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
5051         * tests/test-frexp.c: Include and use it.
5052         * tests/test-frexpf.c: Likewise.
5053         * tests/test-frexpl.c: Likewise.
5054         * modules/frexp-tests (Files): Add tests/test-frexp.h.
5055         * modules/frexpf-tests (Files): Likewise.
5056         * modules/frexpl-tests (Files): Likewise.
5057
5058 2012-03-02  Jim Meyering  <meyering@redhat.com>
5059
5060         maint: don't specify XZ_OPT=-9ev in dist-related rule
5061         Using xz's -9 option is warranted only if you have a very large
5062         tarball (see xz's documentation for the sizes vs. presets), and
5063         requires 64MiB of memory at decompression time.
5064         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
5065         Automake's default of just "-e" is fine.  Override on a
5066         per-package basis by setting XZ_OPT e.g., in cfg.mk.
5067
5068 2012-03-01  Eric Blake  <eblake@redhat.com>
5069
5070         maint.mk: allow announcement for non-gnulib project
5071         * maint.mk (announcement): Skip gnulib version if not used.
5072
5073 2012-03-01  Jim Meyering  <meyering@redhat.com>
5074
5075         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
5076         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
5077         envvar settings cannot interfere.  Otherwise, setting envvars like
5078         prohibit=foo require=bar, etc. would cause spurious test failures.
5079
5080 2012-03-01  Eric Blake  <eblake@redhat.com>
5081
5082         maint.mk: add per-line exclusions to prohibitions
5083         * maint.mk (_sc_search_regexp): Add $exclude parameter.
5084         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
5085         (sc_const_long_option): Use it.
5086
5087 2012-03-01  Bruno Haible  <bruno@clisp.org>
5088
5089         Tests for module 'expl-ieee'.
5090         * modules/expl-ieee-tests: New file.
5091         * tests/test-expl-ieee.c: New file.
5092
5093         New module 'expl-ieee'.
5094         * modules/expl-ieee: New file.
5095
5096         Tests for module 'exp-ieee'.
5097         * modules/exp-ieee-tests: New file.
5098         * tests/test-exp-ieee.c: New file.
5099
5100         New module 'exp-ieee'.
5101         * modules/exp-ieee: New file.
5102
5103         Tests for module 'expf-ieee'.
5104         * modules/expf-ieee-tests: New file.
5105         * tests/test-expf-ieee.c: New file.
5106         * tests/test-exp-ieee.h: New file.
5107
5108         New module 'expf-ieee'.
5109         * modules/expf-ieee: New file.
5110
5111 2012-02-29  Bruno Haible  <bruno@clisp.org>
5112
5113         cbrtl-ieee: Work around test failure on IRIX 6.5.
5114         * m4/cbrtl-ieee.m4: New file.
5115         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
5116         test whether cbrtl works with a minus zero argument. Replace it if not.
5117         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
5118         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
5119         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
5120         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
5121         (Depends-on): Update conditions.
5122         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
5123         m4/signbit.m4.
5124         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
5125         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
5126         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
5127
5128         Tests for module 'cbrtl-ieee'.
5129         * modules/cbrtl-ieee-tests: New file.
5130         * tests/test-cbrtl-ieee.c: New file.
5131
5132         New module 'cbrtl-ieee'.
5133         * modules/cbrtl-ieee: New file.
5134
5135         Tests for module 'cbrt-ieee'.
5136         * modules/cbrt-ieee-tests: New file.
5137         * tests/test-cbrt-ieee.c: New file.
5138
5139         New module 'cbrt-ieee'.
5140         * modules/cbrt-ieee: New file.
5141
5142         Tests for module 'cbrtf-ieee'.
5143         * modules/cbrtf-ieee-tests: New file.
5144         * tests/test-cbrtf-ieee.c: New file.
5145         * tests/test-cbrt-ieee.h: New file.
5146
5147         New module 'cbrtf-ieee'.
5148         * modules/cbrtf-ieee: New file.
5149
5150 2012-02-29  Bruno Haible  <bruno@clisp.org>
5151
5152         cbrtf: Work around bug in IRIX 6.5 system function.
5153         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
5154         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
5155         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
5156         work.
5157         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
5158         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
5159         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
5160         (Depends-on): Update conditions.
5161         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
5162
5163 2012-02-29  Bruno Haible  <bruno@clisp.org>
5164
5165         Tests for module 'cbrtl'.
5166         * modules/cbrtl-tests: New file.
5167         * tests/test-cbrtl.c: New file.
5168
5169         New module 'cbrtl'.
5170         * lib/math.in.h (cbrtl): New declaration.
5171         * lib/cbrtl.c: New file.
5172         * m4/cbrtl.m4: New file.
5173         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
5174         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
5175         HAVE_DECL_CBRTL.
5176         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
5177         HAVE_DECL_CBRTL.
5178         * modules/cbrtl: New file.
5179         * tests/test-math-c++.cc: Check the declaration of cbrtl.
5180         * doc/posix-functions/cbrtl.texi: Mention the new module.
5181
5182 2012-02-29  Bruno Haible  <bruno@clisp.org>
5183
5184         Tests for module 'cbrtf'.
5185         * modules/cbrtf-tests: New file.
5186         * tests/test-cbrtf.c: New file.
5187
5188         New module 'cbrtf'.
5189         * lib/math.in.h (cbrtf): New declaration.
5190         * lib/cbrtf.c: New file.
5191         * m4/cbrtf.m4: New file.
5192         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
5193         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
5194         HAVE_DECL_CBRTF.
5195         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
5196         HAVE_DECL_CBRTF.
5197         * modules/cbrtf: New file.
5198         * tests/test-math-c++.cc: Check the declaration of cbrtf.
5199         * doc/posix-functions/cbrtf.texi: Mention the new module.
5200
5201 2012-02-29  Bruno Haible  <bruno@clisp.org>
5202
5203         cbrt: Provide replacement on MSVC and Minix.
5204         * lib/math.in.h (cbrt): New declaration.
5205         * lib/cbrt.c: New file.
5206         * m4/cbrt.m4: New file.
5207         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
5208         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
5209         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
5210         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
5211         (Depends-on): Add dependencies.
5212         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
5213         * tests/test-math-c++.cc: Check the declaration of cbrt.
5214         * doc/posix-functions/cbrt.texi: Mention that the module provides a
5215         replacement.
5216
5217 2012-02-29  Bruno Haible  <bruno@clisp.org>
5218
5219         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
5220         * m4/hypotl-ieee.m4: New file.
5221         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
5222         test whether hypotl works with mixed NaN and Infinity arguments.
5223         Replace it if not.
5224         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
5225         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
5226         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
5227         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
5228         (Depends-on): Update conditions.
5229         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
5230         (Depends-on): Add hypot-ieee.
5231         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
5232         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
5233
5234         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
5235         * m4/hypotf-ieee.m4: New file.
5236         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
5237         test whether hypotf works with mixed NaN and Infinity arguments.
5238         Replace it if not.
5239         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
5240         (Depends-on): Add hypot-ieee.
5241         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
5242         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
5243
5244         hypot-ieee: Work around test failure on OSF/1 and native Windows.
5245         * lib/math.in.h (hypot): New declaration.
5246         * lib/hypot.c: New file.
5247         * m4/hypot-ieee.m4: New file.
5248         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
5249         whether hypot works with mixed NaN and Infinity arguments. Replace it
5250         if not.
5251         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
5252         REPLACE_HYPOT.
5253         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
5254         * modules/hypot (Files): Add lib/hypot.c.
5255         (Depends-on): Add dependencies.
5256         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
5257         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
5258         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
5259         * tests/test-math-c++.cc: Check the declaration of hypot.
5260         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
5261
5262         Tests for module 'hypotl-ieee'.
5263         * modules/hypotl-ieee-tests: New file.
5264         * tests/test-hypotl-ieee.c: New file.
5265
5266         New module 'hypotl-ieee'.
5267         * modules/hypotl-ieee: New file.
5268
5269         Tests for module 'hypot-ieee'.
5270         * modules/hypot-ieee-tests: New file.
5271         * tests/test-hypot-ieee.c: New file.
5272
5273         New module 'hypot-ieee'.
5274         * modules/hypot-ieee: New file.
5275
5276         Tests for module 'hypotf-ieee'.
5277         * modules/hypotf-ieee-tests: New file.
5278         * tests/test-hypotf-ieee.c: New file.
5279         * tests/test-hypot-ieee.h: New file.
5280
5281         New module 'hypotf-ieee'.
5282         * modules/hypotf-ieee: New file.
5283
5284 2012-02-29  Bruno Haible  <bruno@clisp.org>
5285
5286         Remove unused variables.
5287         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
5288         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
5289         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
5290         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
5291
5292 2012-02-29  Eric Blake  <eblake@redhat.com>
5293
5294         termios: fix pid_t always, not just for tcgetsid
5295         * doc/posix-headers/termios.texi (termios.h): Mention problem.
5296         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
5297         just when building tcgetsid.
5298
5299 2012-02-29  Bruno Haible  <bruno@clisp.org>
5300
5301         Tests for module 'hypotl'.
5302         * modules/hypotl-tests: New file.
5303         * tests/test-hypotl.c: New file.
5304
5305         New module 'hypotl'.
5306         * lib/math.in.h (hypotl): New declaration.
5307         * lib/hypotl.c: New file.
5308         * m4/hypotl.m4: New file.
5309         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
5310         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
5311         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
5312         * modules/hypotl: New file.
5313         * tests/test-math-c++.cc: Check the hypotl declaration.
5314         * doc/posix-functions/hypotl.texi: Mention the new module.
5315
5316 2012-02-29  Eric Blake  <eblake@redhat.com>
5317
5318         tcgetsid: fix cygwin header bug
5319         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
5320
5321         docs: update cygwin progress
5322         * doc/posix-functions/llround.texi (llround): Added in cygwin
5323         1.7.8.
5324         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
5325         * doc/glibc-functions/program_invocation_name.texi
5326         (program_invocation_name): Likewise.
5327         * doc/glibc-functions/program_invocation_short_name.texi
5328         (program_invocation_short_name): Likewise.
5329         * doc/glibc-functions/madvise.texi (madvise): Likewise.
5330         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
5331         Likewise.
5332         * doc/posix-functions/pthread_spin_destroy.texi
5333         (pthread_spin_destroy): Added in cygwin 1.7.10.
5334         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
5335         Likewise.
5336         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
5337         Likewise.
5338         * doc/posix-functions/pthread_spin_trylock.texi
5339         (pthread_spin_trylock): Likewise.
5340         * doc/posix-functions/pthread_spin_unlock.texi
5341         (pthread_spin_unlock): Likewise.
5342         * doc/posix-functions/pthread_setschedprio.texi
5343         (pthread_setschedprio): Likewise.
5344         * doc/posix-functions/pthread_attr_getstack.texi
5345         (pthread_attr_getstack): Likewise.
5346         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
5347         (pthread_attr_getstackaddr): Likewise.
5348         * doc/glibc-functions/pthread_getattr_np.texi
5349         (pthread_getattr_np): Likewise.
5350         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
5351         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
5352         * doc/posix-functions/clock_settime.texi (clock_settime):
5353         Likewise.
5354         * doc/posix-functions/pthread_attr_getguardsize.texi
5355         (pthread_attr_getguardsize): Likewise.
5356         * doc/posix-functions/pthread_attr_setguardsize.texi
5357         (pthread_attr_setguardsize): Likewise.
5358         * doc/posix-functions/pthread_attr_setstack.texi
5359         (pthread_attr_setstack): Likewise.
5360         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
5361         (pthread_attr_setstackaddr): Likewise.
5362         * doc/posix-functions/clock_getcpuclockid.texi
5363         (clock_getcpuclockid): Likewise.
5364         * doc/posix-functions/pthread_getcpuclockid.texi
5365         (pthread_getcpuclockid): Likewise.
5366         * doc/glibc-functions/error.texi (error): Likewise.
5367         * doc/glibc-functions/error_at_line.texi (error_at_line):
5368         Likewise.
5369         * doc/glibc-functions/error_message_count.texi
5370         (error_message_count): Likewise.
5371         * doc/glibc-functions/error_one_per_line.texi
5372         (error_one_per_line): Likewise.
5373         * doc/glibc-functions/error_print_progname.texi
5374         (error_print_progname): Likewise.
5375         * doc/posix-functions/pthread_condattr_getclock.texi
5376         (pthread_condattr_getclock): Likewise.
5377         * doc/posix-functions/pthread_condattr_setclock.texi
5378         (pthread_condattr_setclock): Likewise.
5379         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
5380         Likewise.
5381         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
5382         * doc/glibc-functions/getpt.texi (getpt): Likewise.
5383         * doc/glibc-functions/get_current_dir_name.texi
5384         (get_current_dir_name): Likewise.
5385         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
5386         Likewise.
5387         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
5388         wrong return type.
5389         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
5390         1.7.11.
5391
5392 2012-02-29  Bruno Haible  <bruno@clisp.org>
5393
5394         Tests for module 'hypotf'.
5395         * modules/hypotf-tests: New file.
5396         * tests/test-hypotf.c: New file.
5397
5398         New module 'hypotf'.
5399         * lib/math.in.h (hypotf): New declaration.
5400         * lib/hypotf.c: New file.
5401         * m4/hypotf.m4: New file.
5402         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
5403         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
5404         REPLACE_HYPOTF.
5405         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
5406         REPLACE_HYPOTF.
5407         * modules/hypotf: New file.
5408         * tests/test-math-c++.cc: Check the hypotf declaration.
5409         * doc/posix-functions/hypotf.texi: Mention the new module.
5410
5411         hypot: Prepare for hypotf module.
5412         * m4/hypot.m4: New file.
5413         * modules/hypot (Files): Add m4/hypot.m4.
5414         (configure.ac): Invoke gl_FUNC_HYPOT.
5415
5416 2012-02-29  Bruno Haible  <bruno@clisp.org>
5417
5418         hypot tests: More tests.
5419         * tests/test-hypot.c: Include <float.h>.
5420         (main): Add tests about overflow and underflow.
5421
5422 2012-02-29  Bruno Haible  <bruno@clisp.org>
5423
5424         math code: Add comments.
5425         * lib/acosl.c: Add comment about related glibc source files.
5426         * lib/asinl.c: Likewise.
5427         * lib/atanl.c: Likewise.
5428         * lib/expl.c: Likewise.
5429         * lib/logl.c: Likewise.
5430         * lib/sincosl.c: Likewise.
5431         * lib/sinl.c: Likewise.
5432         * lib/tanl.c: Likewise.
5433         * lib/trigl.c: Likewise.
5434         * lib/cosl.c: Likewise. Fix comments.
5435
5436 2012-02-28  Bruno Haible  <bruno@clisp.org>
5437
5438         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
5439         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
5440         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
5441         HUGE_VALL are defined.
5442         (numeric_equald): Renamed from numeric_equal.
5443         (numeric_equalf, numeric_equall): New functions.
5444         (main): Check also HUGE_VALF, HUGE_VALL.
5445         * modules/math-tests (Files): Add tests/macros.h.
5446         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
5447         HUGE_VALL.
5448
5449 2012-02-28  Bruno Haible  <bruno@clisp.org>
5450
5451         doc: Move ISO C11 feature notes into POSIX chapters.
5452         * doc/posix-functions/aligned_alloc.texi: Renamed from
5453         doc/glibc-functions/aligned_alloc.texi.
5454         * doc/posix-functions/quick_exit.texi: Renamed from
5455         doc/glibc-functions/quick_exit.texi.
5456         * doc/posix-headers/uchar.texi: Renamed from
5457         doc/glibc-headers/uchar.texi.
5458         * doc/posix-functions/c16rtomb.texi: Renamed from
5459         doc/glibc-functions/c16rtomb.texi.
5460         * doc/posix-functions/c32rtomb.texi: Renamed from
5461         doc/glibc-functions/c32rtomb.texi.
5462         * doc/posix-functions/mbrtoc16.texi: Renamed from
5463         doc/glibc-functions/mbrtoc16.texi.
5464         * doc/posix-functions/mbrtoc32.texi: Renamed from
5465         doc/glibc-functions/mbrtoc32.texi.
5466         * doc/gnulib.texi: Update.
5467         (Glibc uchar.h): Remove section.
5468         Suggested by Eric Blake.
5469
5470 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
5471
5472         stdnoreturn: port to MSVC better
5473         MSVC standard headers use __declspec(noreturn), so #define noreturn
5474         to empty on that platform.  Reported by Bruno Haible in
5475         <http://lists.gnu.org/archive/html/bug-gnulib/2012-02/msg00152.html>.
5476         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
5477         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
5478
5479 2012-02-28  Bruno Haible  <bruno@clisp.org>
5480
5481         doc: Mention new glibc headers and functions.
5482         * doc/glibc-headers/uchar.texi: New file.
5483         * doc/glibc-functions/aligned_alloc.texi: New file.
5484         * doc/glibc-functions/c16rtomb.texi: New file.
5485         * doc/glibc-functions/c32rtomb.texi: New file.
5486         * doc/glibc-functions/clock_adjtime.texi: New file.
5487         * doc/glibc-functions/fanotify_init.texi: New file.
5488         * doc/glibc-functions/fanotify_mark.texi: New file.
5489         * doc/glibc-functions/inet6_opt_append.texi: New file.
5490         * doc/glibc-functions/inet6_opt_find.texi: New file.
5491         * doc/glibc-functions/inet6_opt_finish.texi: New file.
5492         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
5493         * doc/glibc-functions/inet6_opt_init.texi: New file.
5494         * doc/glibc-functions/inet6_opt_next.texi: New file.
5495         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
5496         * doc/glibc-functions/inet6_rth_add.texi: New file.
5497         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
5498         * doc/glibc-functions/inet6_rth_init.texi: New file.
5499         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
5500         * doc/glibc-functions/inet6_rth_segments.texi: New file.
5501         * doc/glibc-functions/inet6_rth_space.texi: New file.
5502         * doc/glibc-functions/login.texi: New file.
5503         * doc/glibc-functions/mbrtoc16.texi: New file.
5504         * doc/glibc-functions/mbrtoc32.texi: New file.
5505         * doc/glibc-functions/name_to_handle_at.texi: New file.
5506         * doc/glibc-functions/ntp_gettimex.texi: New file.
5507         * doc/glibc-functions/open_by_handle_at.texi: New file.
5508         * doc/glibc-functions/prlimit.texi: New file.
5509         * doc/glibc-functions/process_vm_readv.texi: New file.
5510         * doc/glibc-functions/process_vm_writev.texi: New file.
5511         * doc/glibc-functions/recvmmsg.texi: New file.
5512         * doc/glibc-functions/scandirat.texi: New file.
5513         * doc/glibc-functions/sendmmsg.texi: New file.
5514         * doc/glibc-functions/setns.texi: New file.
5515         * doc/glibc-functions/timespec_get.texi: New file.
5516         * doc/gnulib.texi: Include them.
5517         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
5518         sections.
5519         Reported by Eric Blake.
5520
5521 2012-02-28  Bruno Haible  <bruno@clisp.org>
5522
5523         Avoid compilation errors with MSVC option -fp:strict.
5524         * lib/floor.c: Use MSVC specific pragma fenv_access.
5525         * lib/ceil.c: Likewise.
5526         * lib/trunc.c: Likewise.
5527         * lib/round.c: Likewise.
5528         * lib/rint.c: Likewise.
5529         * lib/fma.c: Likewise.
5530         * lib/integer_length.c: Likewise.
5531         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
5532         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
5533         * tests/test-floor2.c: Likewise.
5534         * tests/test-floorf2.c: Likewise.
5535         * tests/test-ceil2.c: Likewise.
5536         * tests/test-ceilf2.c: Likewise.
5537         * tests/test-trunc2.c: Likewise.
5538         * tests/test-truncf2.c: Likewise.
5539         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
5540
5541 2012-02-27  Bruno Haible  <bruno@clisp.org>
5542
5543         Tests for module 'sqrtl-ieee'.
5544         * modules/sqrtl-ieee-tests: New file.
5545         * tests/test-sqrtl-ieee.c: New file.
5546
5547         New module 'sqrtl-ieee'.
5548         * modules/sqrtl-ieee: New file.
5549
5550         Tests for module 'sqrt-ieee'.
5551         * modules/sqrt-ieee-tests: New file.
5552         * tests/test-sqrt-ieee.c: New file.
5553
5554         New module 'sqrt-ieee'.
5555         * modules/sqrt-ieee: New file.
5556
5557         Tests for module 'sqrtf-ieee'.
5558         * modules/sqrtf-ieee-tests: New file.
5559         * tests/test-sqrtf-ieee.c: New file.
5560         * tests/test-sqrt-ieee.h: New file.
5561
5562         New module 'sqrtf-ieee'.
5563         * modules/sqrtf-ieee: New file.
5564
5565 2012-02-27  Bruno Haible  <bruno@clisp.org>
5566
5567         remainderl-ieee: Work around test failure on OSF/1.
5568         * m4/remainderl-ieee.m4: New file.
5569         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
5570         present, test whether remainderl works with a zero second argument.
5571         Replace it if not.
5572         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
5573         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
5574         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
5575         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
5576         (Depends-on): Update conditions.
5577         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
5578         (Depends-on): Add remainder-ieee.
5579         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
5580         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
5581         module.
5582
5583         remainderf-ieee: Work around test failure on OSF/1.
5584         * m4/remainderf-ieee.m4: New file.
5585         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
5586         present, test whether remainderf works with a zero second argument.
5587         Replace it if not.
5588         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
5589         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
5590         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
5591         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
5592         (Depends-on): Update conditions.
5593         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
5594         (Depends-on): Add remainder-ieee.
5595         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
5596         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
5597         module.
5598
5599         remainder-ieee: Work around test failure on OSF/1.
5600         * m4/remainder-ieee.m4: New file.
5601         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
5602         present, test whether remainder works with a zero second argument.
5603         Replace it if not.
5604         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
5605         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
5606         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
5607         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
5608         (Depends-on): Update dependencies.
5609         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
5610         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
5611         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
5612
5613         Tests for module 'remainderl-ieee'.
5614         * modules/remainderl-ieee-tests: New file.
5615         * tests/test-remainderl-ieee.c: New file.
5616
5617         New module 'remainderl-ieee'.
5618         * modules/remainderl-ieee: New file.
5619
5620         Tests for module 'remainder-ieee'.
5621         * modules/remainder-ieee-tests: New file.
5622         * tests/test-remainder-ieee.c: New file.
5623
5624         New module 'remainder-ieee'.
5625         * modules/remainder-ieee: New file.
5626
5627         Tests for module 'remainderf-ieee'.
5628         * modules/remainderf-ieee-tests: New file.
5629         * tests/test-remainderf-ieee.c: New file.
5630         * tests/test-remainder-ieee.h: New file.
5631
5632         New module 'remainderf-ieee'.
5633         * modules/remainderf-ieee: New file.
5634
5635 2012-02-27  Bruno Haible  <bruno@clisp.org>
5636
5637         modff, modfl: Fix configure syntax error.
5638         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
5639         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
5640
5641 2012-02-27  Bruno Haible  <bruno@clisp.org>
5642
5643         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
5644         * m4/fmodl-ieee.m4: New file.
5645         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
5646         whether fmodl works with zero arguments. Replace it if not.
5647         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
5648         (Depends-on): Add fmod-ieee.
5649         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
5650         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
5651
5652         fmodf-ieee: Work around test failure on OSF/1.
5653         * m4/fmodf-ieee.m4: New file.
5654         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
5655         whether fmodf works with zero arguments. Replace it if not.
5656         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
5657         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
5658         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
5659         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
5660         (Depends-on): Update dependencies.
5661         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
5662         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
5663         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
5664
5665         fmodf-ieee: Work around test failure on MSVC 9.
5666         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
5667         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
5668
5669         fmod-ieee: Work around test failures on OSF/1, mingw.
5670         * m4/fmod-ieee.m4: New file.
5671         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
5672         whether fmod works with zero arguments. Replace it if not.
5673         * lib/math.in.h (fmod): New declaration.
5674         * lib/fmod.c: New file.
5675         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
5676         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
5677         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
5678         * modules/fmod (Files): Add lib/fmod.c.
5679         (Depends-on): Add math, isinf, trunc, fma.
5680         (configure.ac): Arrange to compile lib/fmod.c if needed.
5681         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
5682         m4/signbit.m4.
5683         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
5684         * tests/test-math-c++.cc: Check the declaration of fmod.
5685         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
5686
5687         fmodl-ieee: Fix test failures.
5688         * lib/fmodl.c (fmodl): Treat Inf specially.
5689         * modules/fmodl (Depends-on): Add isinf.
5690
5691         Tests for module 'fmodl-ieee'.
5692         * modules/fmodl-ieee-tests: New file.
5693         * tests/test-fmodl-ieee.c: New file.
5694
5695         New module 'fmodl-ieee'.
5696         * modules/fmodl-ieee: New file.
5697
5698         Tests for module 'fmod-ieee'.
5699         * modules/fmod-ieee-tests: New file.
5700         * tests/test-fmod-ieee.c: New file.
5701
5702         New module 'fmod-ieee'.
5703         * modules/fmod-ieee: New file.
5704
5705         Tests for module 'fmodf-ieee'.
5706         * modules/fmodf-ieee-tests: New file.
5707         * tests/test-fmodf-ieee.c: New file.
5708         * tests/test-fmod-ieee.h: New file.
5709
5710         New module 'fmodf-ieee'.
5711         * modules/fmodf-ieee: New file.
5712
5713 2012-02-27  Bruno Haible  <bruno@clisp.org>
5714
5715         Tests for module 'rintl-ieee'.
5716         * modules/rintl-ieee-tests: New file.
5717         * tests/test-rintl-ieee.c: New file.
5718
5719         New module 'rintl-ieee'.
5720         * modules/rintl-ieee: New file.
5721
5722         Tests for module 'rint-ieee'.
5723         * modules/rint-ieee-tests: New file.
5724         * tests/test-rint-ieee.c: New file.
5725
5726         New module 'rint-ieee'.
5727         * modules/rint-ieee: New file.
5728
5729         Tests for module 'rintf-ieee'.
5730         * modules/rintf-ieee-tests: New file.
5731         * tests/test-rintf-ieee.c: New file.
5732         * tests/test-rint-ieee.h: New file.
5733
5734         New module 'rintf-ieee'.
5735         * modules/rintf-ieee: New file.
5736
5737 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
5738
5739         regex: re_search etc. should return -2 when memory exhausted
5740         This bug was uncovered when testing 'grep'.  Without the fix,
5741         re_search and friends return -1 when memory is exhausted, but -1
5742         means no match, and this causes grep to falsely report no-match
5743         instead of memory-exhaustion.  See
5744         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
5745         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
5746         trouble; this can occur if re_search_internal ran out of memory.
5747
5748 2012-02-26  Bruno Haible  <bruno@clisp.org>
5749
5750         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
5751         * m4/modfl-ieee.m4: New file.
5752         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
5753         whether modfl works with Inf. Replace it if not.
5754         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
5755         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
5756         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
5757         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
5758         (Depends-on): Update dependencies.
5759         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
5760         m4/signbit.m4.
5761         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
5762         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
5763
5764         modfl-ieee: Fix dependencies.
5765         * modules/modfl-ieee (Depends-on): Add modf-ieee.
5766
5767         modfl-ieee: Fix test failures.
5768         * lib/modfl.c (modfl): Treat NaN and Inf specially.
5769         * modules/modfl (Depends-on): Add isfinite, isinf.
5770
5771         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
5772         * m4/modff-ieee.m4: New file.
5773         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
5774         whether modff works with NaN and Inf. Replace it if not.
5775         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
5776         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
5777         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
5778         * modules/modff (configure.ac): Consider REPLACE_MODFF.
5779         (Depends-on): Update dependencies.
5780         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
5781         m4/signbit.m4.
5782         (Depends-on): Add modf-ieee.
5783         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
5784         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
5785
5786         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
5787         * m4/modf-ieee.m4: New file.
5788         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
5789         whether modf works with NaN and Inf. Replace it if not.
5790         * lib/math.in.h (modf): New declaration.
5791         * lib/modf.c: New file.
5792         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
5793         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
5794         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
5795         * modules/modf (Files): Add lib/modf.c.
5796         (Depends-on): Add math, isfinite, trunc, isinf.
5797         (configure.ac): Addrange to compile lib/modf.c if needed.
5798         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
5799         m4/signbit.m4.
5800         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
5801         * tests/test-math-c++.cc: Check the declaration of modf.
5802         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
5803
5804         Tests for module 'modfl-ieee'.
5805         * modules/modfl-ieee-tests: New file.
5806         * tests/test-modfl-ieee.c: New file.
5807
5808         New module 'modfl-ieee'.
5809         * modules/modfl-ieee: New file.
5810
5811         Tests for module 'modf-ieee'.
5812         * modules/modf-ieee-tests: New file.
5813         * tests/test-modf-ieee.c: New file.
5814
5815         New module 'modf-ieee'.
5816         * modules/modf-ieee: New file.
5817
5818         Tests for module 'modff-ieee'.
5819         * modules/modff-ieee-tests: New file.
5820         * tests/test-modff-ieee.c: New file.
5821         * tests/test-modf-ieee.h: New file.
5822
5823         New module 'modff-ieee'.
5824         * modules/modff-ieee: New file.
5825
5826 2012-02-26  Bruno Haible  <bruno@clisp.org>
5827
5828         Tests for module 'fabsl-ieee'.
5829         * modules/fabsl-ieee-tests: New file.
5830         * tests/test-fabsl-ieee.c: New file.
5831
5832         New module 'fabsl-ieee'.
5833         * modules/fabsl-ieee: New file.
5834
5835         Tests for module 'fabs-ieee'.
5836         * modules/fabs-ieee-tests: New file.
5837         * tests/test-fabs-ieee.c: New file.
5838
5839         New module 'fabs-ieee'.
5840         * modules/fabs-ieee: New file.
5841
5842         Tests for module 'fabsf-ieee'.
5843         * modules/fabsf-ieee-tests: New file.
5844         * tests/test-fabsf-ieee.c: New file.
5845         * tests/test-fabs-ieee.h: New file.
5846
5847         New module 'fabsf-ieee'.
5848         * modules/fabsf-ieee: New file.
5849
5850 2012-02-26  Bruno Haible  <bruno@clisp.org>
5851
5852         Tests for module 'fmal-ieee'.
5853         * modules/fmal-ieee-tests: New file.
5854         * tests/test-fmal-ieee.c: New file.
5855
5856         New module 'fmal-ieee'.
5857         * modules/fmal-ieee: New file.
5858
5859         Tests for module 'fma-ieee'.
5860         * modules/fma-ieee-tests: New file.
5861         * tests/test-fma-ieee.c: New file.
5862
5863         New module 'fma-ieee'.
5864         * modules/fma-ieee: New file.
5865
5866         Tests for module 'fmaf-ieee'.
5867         * modules/fmaf-ieee-tests: New file.
5868         * tests/test-fmaf-ieee.c: New file.
5869         * tests/test-fma-ieee.h: New file.
5870
5871         New module 'fmaf-ieee'.
5872         * modules/fmaf-ieee: New file.
5873
5874 2012-02-26  Bruno Haible  <bruno@clisp.org>
5875
5876         Tests for module 'ldexpl-ieee'.
5877         * modules/ldexpl-ieee-tests: New file.
5878         * tests/test-ldexpl-ieee.c: New file.
5879
5880         New module 'ldexpl-ieee'.
5881         * modules/ldexpl-ieee: New file.
5882
5883         Tests for module 'ldexp-ieee'.
5884         * modules/ldexp-ieee-tests: New file.
5885         * tests/test-ldexp-ieee.c: New file.
5886
5887         New module 'ldexp-ieee'.
5888         * modules/ldexp-ieee: New file.
5889
5890         Tests for module 'ldexpf-ieee'.
5891         * modules/ldexpf-ieee-tests: New file.
5892         * tests/test-ldexpf-ieee.c: New file.
5893         * tests/test-ldexp-ieee.h: New file.
5894
5895         New module 'ldexpf-ieee'.
5896         * modules/ldexpf-ieee: New file.
5897
5898 2012-02-26  Bruno Haible  <bruno@clisp.org>
5899
5900         Refactor frexp*-ieee tests.
5901         * tests/test-frexp-ieee.h: New file.
5902         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
5903         (main): Just call test_function.
5904         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
5905         (main): Just call test_function.
5906         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
5907         (main): Just call test_function.
5908         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
5909         * modules/frexp-ieee-tests (Files): Likewise.
5910         * modules/frexpl-ieee-tests (Files): Likewise.
5911
5912         Tests for module 'frexpl-ieee'.
5913         * modules/frexpl-ieee-tests: New file.
5914         * tests/test-frexpl-ieee.c: New file.
5915
5916         New module 'frexpl-ieee'.
5917         * modules/frexpl-ieee: New file.
5918
5919         Tests for module 'frexp-ieee'.
5920         * modules/frexp-ieee-tests: New file.
5921         * tests/test-frexp-ieee.c: New file.
5922
5923         New module 'frexp-ieee'.
5924         * modules/frexp-ieee: New file.
5925
5926         Tests for module 'frexpf-ieee'.
5927         * modules/frexpf-ieee-tests: New file.
5928         * tests/test-frexpf-ieee.c: New file.
5929
5930         New module 'frexpf-ieee'.
5931         * modules/frexpf-ieee: New file.
5932
5933 2012-02-26  Bruno Haible  <bruno@clisp.org>
5934
5935         roundl-ieee tests: More tests.
5936         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
5937         (main): Add tests for [MX] shaded specification in POSIX.
5938         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
5939         (Depends-on): Add isnanl-nolibm.
5940
5941         round-ieee tests: More tests.
5942         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
5943         (main): Add tests for [MX] shaded specification in POSIX.
5944         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
5945         (Depends-on): Add isnand-nolibm.
5946
5947         roundf-ieee tests: More tests.
5948         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
5949         (main): Add tests for [MX] shaded specification in POSIX.
5950         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
5951         (Depends-on): Add isnanf-nolibm.
5952
5953         truncl-ieee tests: More tests.
5954         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
5955         (main): Add tests for [MX] shaded specification in POSIX.
5956         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
5957         (Depends-on): Add isnanl-nolibm.
5958
5959         trunc-ieee tests: More tests.
5960         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
5961         (main): Add tests for [MX] shaded specification in POSIX.
5962         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
5963         (Depends-on): Add isnand-nolibm.
5964
5965         truncf-ieee tests: More tests.
5966         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
5967         (main): Add tests for [MX] shaded specification in POSIX.
5968         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
5969         (Depends-on): Add isnanf-nolibm.
5970
5971         ceill-ieee tests: More tests.
5972         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
5973         (main): Add tests for [MX] shaded specification in POSIX.
5974         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
5975         (Depends-on): Add isnanl-nolibm.
5976
5977         ceil-ieee tests: More tests.
5978         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
5979         (main): Add tests for [MX] shaded specification in POSIX.
5980         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
5981         (Depends-on): Add isnand-nolibm.
5982
5983         ceilf-ieee tests: More tests.
5984         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
5985         (main): Add tests for [MX] shaded specification in POSIX.
5986         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
5987         (Depends-on): Add isnanf-nolibm.
5988
5989         floorl-ieee tests: More tests.
5990         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
5991         (main): Add tests for [MX] shaded specification in POSIX.
5992         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
5993         (Depends-on): Add isnanl-nolibm.
5994
5995         floor-ieee tests: More tests.
5996         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
5997         (main): Add tests for [MX] shaded specification in POSIX.
5998         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
5999         (Depends-on): Add isnand-nolibm.
6000
6001         floorf-ieee tests: More tests.
6002         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
6003         (main): Add tests for [MX] shaded specification in POSIX.
6004         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6005         (Depends-on): Add isnanf-nolibm.
6006
6007 2012-02-26  Bruno Haible  <bruno@clisp.org>
6008
6009         fpieee: More comments.
6010         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
6011
6012 2012-02-25  Bruno Haible  <bruno@clisp.org>
6013
6014         Tests for module 'log10l'.
6015         * modules/log10l-tests: New file.
6016         * tests/test-log10l.c: New file.
6017         * tests/test-math-c++.cc: Check the declaration of log10l.
6018
6019         New module 'log10l'.
6020         * lib/math.in.h (log10l): New declaration.
6021         * lib/log10l.c: New file.
6022         * m4/log10l.m4: New file.
6023         * modules/log10l: New file.
6024         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
6025         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
6026         HAVE_DECL_LOG10L.
6027         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
6028         HAVE_DECL_LOG10L.
6029         * doc/posix-functions/log10l.texi: Mention the new module.
6030
6031 2012-02-25  Bruno Haible  <bruno@clisp.org>
6032
6033         fmodl, remainder*: Avoid wrong results due to rounding errors.
6034         * lib/fmodl.c (fmodl): Correct the result if it is not within the
6035         expected bounds.
6036         * lib/remainderf.c (remainderf): Likewise.
6037         * lib/remainder.c (remainder): Likewise.
6038         * lib/remainderl.c (remainderl): Likewise.
6039
6040 2012-02-25  Bruno Haible  <bruno@clisp.org>
6041
6042         Tests for module 'remainderl'.
6043         * modules/remainderl-tests: New file.
6044         * tests/test-remainderl.c: New file.
6045         * tests/test-math-c++.cc: Check the declaration of remainderl.
6046
6047         New module 'remainderl'.
6048         * lib/math.in.h (remainderl): New declaration.
6049         * lib/remainderl.c: New file.
6050         * m4/remainderl.m4: New file.
6051         * modules/remainderl: New file.
6052         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
6053         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
6054         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
6055         HAVE_REMAINDERL.
6056         * doc/posix-functions/remainderl.texi: Mention the new module.
6057
6058 2012-02-25  Bruno Haible  <bruno@clisp.org>
6059
6060         Tests for module 'remainderf'.
6061         * modules/remainderf-tests: New file.
6062         * tests/test-remainderf.c: New file.
6063         * tests/test-math-c++.cc: Check the declaration of remainderf.
6064
6065         New module 'remainderf'.
6066         * lib/math.in.h (remainderf): New declaration.
6067         * lib/remainderf.c: New file.
6068         * m4/remainderf.m4: New file.
6069         * modules/remainderf: New file.
6070         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
6071         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
6072         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
6073         HAVE_REMAINDERF.
6074         * doc/posix-functions/remainderf.texi: Mention the new module.
6075
6076 2012-02-25  Bruno Haible  <bruno@clisp.org>
6077
6078         remainder: Support for MSVC.
6079         * lib/math.in.h (remainder): New declaration.
6080         * lib/remainder.c: New file.
6081         * m4/remainder.m4: New file.
6082         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
6083         (Depends-on): Add math, round, fma.
6084         (configure.ac): Use results of gl_FUNC_REMAINDER.
6085         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
6086         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
6087         HAVE_DECL_REMAINDER.
6088         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
6089         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
6090         * tests/test-math-c++.cc: Check the declaration of remainder.
6091         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
6092         problems are fixed.
6093
6094 2012-02-25  Bruno Haible  <bruno@clisp.org>
6095
6096         Tests for module 'fmodl'.
6097         * modules/fmodl-tests: New file.
6098         * tests/test-fmodl.c: New file.
6099         * tests/test-math-c++.cc: Check the declaration of fmodl.
6100
6101         New module 'fmodl'.
6102         * lib/math.in.h (fmodl): New declaration.
6103         * lib/fmodl.c: New file.
6104         * m4/fmodl.m4: New file.
6105         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
6106         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
6107         REPLACE_FMODL.
6108         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
6109         REPLACE_FMODL.
6110         * modules/fmodl: New file.
6111         * doc/posix-functions/fmodl.texi: Mention the new module.
6112
6113 2012-02-25  Bruno Haible  <bruno@clisp.org>
6114
6115         Tests for module 'modfl'.
6116         * modules/modfl-tests: New file.
6117         * tests/test-modfl.c: New file.
6118         * tests/test-math-c++.cc: Check the declaration of modfl.
6119
6120         New module 'modfl'.
6121         * lib/math.in.h (modfl): New declaration.
6122         * lib/modfl.c: New file.
6123         * m4/modfl.m4: New file.
6124         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
6125         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
6126         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
6127         * modules/modfl: New file.
6128         * doc/posix-functions/modfl.texi: Mention the new module.
6129
6130 2012-02-25  Bruno Haible  <bruno@clisp.org>
6131
6132         Tests for module 'fabsl'.
6133         * modules/fabsl-tests: New file.
6134         * tests/test-fabsl.c: New file.
6135         * tests/test-math-c++.cc: Check the declaration of fabsl.
6136
6137         New module 'fabsl'.
6138         * lib/math.in.h (fabsl): New declaration.
6139         * lib/fabsl.c: New file.
6140         * m4/fabsl.m4: New file.
6141         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
6142         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
6143         REPLACE_FABSL.
6144         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
6145         REPLACE_FABSL.
6146         * modules/fabsl: New file.
6147         * doc/posix-functions/fabsl.texi: Mention the new module.
6148
6149 2012-02-25  Bruno Haible  <bruno@clisp.org>
6150
6151         fabs tests: More tests.
6152         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
6153         (zero): New variable.
6154         (main): Add tests for signed zero.
6155         * modules/fabs-tests (Files): Add tests/minus-zero.h.
6156
6157         fabsf tests: More tests.
6158         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
6159         (zero): New variable.
6160         (main): Add tests for signed zero.
6161         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
6162
6163 2012-02-24  Bruno Haible  <bruno@clisp.org>
6164
6165         atanl: Provide function definition on MSVC.
6166         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
6167         function pointer.
6168         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
6169
6170 2012-02-24  Bruno Haible  <bruno@clisp.org>
6171
6172         acosl: Provide function definition on MSVC.
6173         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
6174         function pointer.
6175         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
6176
6177 2012-02-24  Bruno Haible  <bruno@clisp.org>
6178
6179         asinl: Provide function definition on MSVC.
6180         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
6181         function pointer.
6182         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
6183
6184 2012-02-24  Bruno Haible  <bruno@clisp.org>
6185
6186         tanl: Provide function definition on MSVC.
6187         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
6188         function pointer.
6189         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
6190
6191 2012-02-24  Bruno Haible  <bruno@clisp.org>
6192
6193         cosl: Provide function definition on MSVC.
6194         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
6195         function pointer.
6196         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
6197
6198 2012-02-24  Bruno Haible  <bruno@clisp.org>
6199
6200         sinl: Provide function definition on MSVC.
6201         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
6202         function pointer.
6203         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
6204
6205 2012-02-24  Bruno Haible  <bruno@clisp.org>
6206
6207         logl: Provide function definition on MSVC.
6208         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
6209         function pointer.
6210         * lib/math.in.h (logl): Undefine if it does not exist as a function.
6211
6212 2012-02-24  Bruno Haible  <bruno@clisp.org>
6213
6214         expl: Provide function definition on MSVC.
6215         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
6216         function pointer.
6217         * lib/math.in.h (expl): Undefine if it does not exist as a function.
6218
6219 2012-02-24  Bruno Haible  <bruno@clisp.org>
6220
6221         sqrtl: Provide function definition on MSVC.
6222         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
6223         a function pointer.
6224         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
6225
6226 2012-02-24  Bruno Haible  <bruno@clisp.org>
6227
6228         ceill: Provide function definition on MSVC.
6229         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
6230         used as a function pointer.
6231         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
6232
6233 2012-02-24  Bruno Haible  <bruno@clisp.org>
6234
6235         floorl: Provide function definition on MSVC.
6236         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
6237         used as a function pointer.
6238         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
6239
6240 2012-02-24  Bruno Haible  <bruno@clisp.org>
6241
6242         ceilf: Provide function definition on MSVC.
6243         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
6244         used as a function pointer.
6245         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
6246
6247 2012-02-24  Bruno Haible  <bruno@clisp.org>
6248
6249         floorf: Provide function definition on MSVC.
6250         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
6251         used as a function pointer.
6252         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
6253
6254 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
6255
6256         stdnoreturn: new module
6257         This implements a replacement for C11's <stdnoreturn.h>.
6258         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
6259         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
6260         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
6261         * tests/test-stdnoreturn.c: New files.
6262
6263 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
6264
6265         regex: fix false multibyte matches in some regular expressions
6266         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
6267         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
6268         * lib/regex_internal.c (re_string_skip_chars):
6269         Fix miscomputation of remain_len that may cause incomplete
6270         multi-byte character and false match.
6271
6272 2012-02-24  Jim Meyering  <meyering@redhat.com>
6273
6274         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
6275         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
6276         uses with "==" *before* the call, e.g., 0 == strcmp (...)
6277         Remove now-unnecessary str''cmp obfuscation.
6278         Suggested by Akim Demaille.
6279
6280 2012-02-24  Bruno Haible  <bruno@clisp.org>
6281
6282         streq: Rename macro.
6283         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
6284         * NEWS: Mention the change.
6285         * lib/mbrtowc.c (mbrtowc): Update.
6286         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
6287         * lib/wcwidth.c (wcwidth): Update.
6288         Suggested by Akim Demaille and Jim Meyering.
6289
6290 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
6291
6292         regex: fix typo in definition of MIN
6293         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
6294         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
6295
6296 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
6297             Bruno Haible  <bruno@clisp.org>
6298
6299         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
6300         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
6301         entries into a stack-allocated buffer directly.
6302         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
6303
6304 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
6305             Bruno Haible  <bruno@clisp.org>
6306
6307         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
6308
6309          - There were several instances of this pattern:
6310
6311              for (;;) {
6312                n = acl (f, GETACLCNT, 0, NULL);
6313                [ allocate an array A of size N ]
6314                if (acl (f, GETACL, n, a) == n)
6315                  break;
6316              }
6317
6318            This loop might never terminate if some other process is constantly
6319            manipulating the file's ACL.  The loop should be rewritten to
6320            terminate.
6321
6322          - The acl (... GETACLNT ...) call is merely an optimization; its value
6323            is merely a hint as to how big to make the array.  A better
6324            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
6325            and just guess a reasonably-big size, growing the size and trying
6326            again if it's not large enough.  This guarantees termination, and
6327            saves a system call.
6328
6329         * lib/acl-internal.h: Include <limits.h>.
6330         (MIN, SIZE_MAX): New macros.
6331         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
6332         a stack-allocated buffer, and use malloc if it does not fit. Don't
6333         use GETACLCNT.
6334         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
6335
6336 2012-02-19  Bruno Haible  <bruno@clisp.org>
6337
6338         acl: Fix endless loop on Solaris with vxfs.
6339         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
6340         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
6341         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
6342         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
6343         * tests/test-sameacls.c (main)[Solaris]: Likewise.
6344         Reported by Bill Jones in
6345         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
6346
6347 2012-02-19  Bruno Haible  <bruno@clisp.org>
6348
6349         acl: Fix copy-acl test failure on Solaris 11 2011-11.
6350         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
6351         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
6352         that this function returns 0 in some more cases.
6353
6354 2012-02-19  Bruno Haible  <bruno@clisp.org>
6355
6356         acl: Update doc references.
6357         * doc/acl-resources.txt: Update links to Solaris documentation.
6358
6359 2012-02-19  Bruno Haible  <bruno@clisp.org>
6360
6361         Fix test failure in many locales on Solaris 11.
6362         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
6363         'tr' arguments.
6364         * tests/test-pipe-filter-ii1.c (main): Likewise.
6365         * build-aux/bootstrap (check_versions): Run 'tr' command with range
6366         expressions in the C locale.
6367         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
6368         * m4/host-os.m4 (gl_HOST_OS): Likewise.
6369
6370 2012-02-19  Bruno Haible  <bruno@clisp.org>
6371
6372         gnulib-tool: Improve usage message.
6373         * gnulib-tool (func_usage): Move doc of --help and --version to the
6374         section "Operation modes".
6375
6376 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
6377
6378         README-release: make it easier to execute commands
6379         * top/README-release: break commands out on to separate lines.
6380
6381 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
6382
6383         GNUmakefile: simplify detection of unconfigured trees
6384         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
6385         whether the tree make is being run from is already configured or
6386         not.  Related simplifications.
6387
6388 2012-02-13  Simon Josefsson  <simon@josefsson.org>
6389
6390         * gnulib-tool (func_usage): Document --help and --version.
6391
6392 2012-02-11  Jim Meyering  <meyering@redhat.com>
6393
6394         bootstrap: don't exit 0 upon gnulib-tool failure
6395         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
6396         its exit status, not 0.
6397
6398 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
6399
6400         README-release: various improvements
6401         * top/README-release: Give a command to push changes for the
6402         release.  Add "distcheck" to list of other pre-release checks.
6403         Fix instance of "make stable" which should be "make TYPE".
6404
6405 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
6406
6407         maint: replace FSF snail-mail addresses with URLs
6408         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
6409         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
6410         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
6411         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
6412         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
6413         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
6414         * lib/check-version.c, lib/check-version.h, lib/config.charset:
6415         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
6416         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
6417         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
6418         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
6419         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
6420         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
6421         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
6422         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
6423         * lib/glthread/thread.c, lib/glthread/thread.h:
6424         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
6425         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
6426         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
6427         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
6428         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
6429         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
6430         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
6431         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
6432         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
6433         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
6434         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
6435         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
6436         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
6437         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
6438         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
6439         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
6440         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
6441         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
6442         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
6443         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
6444         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
6445         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
6446         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
6447         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
6448         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
6449         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
6450         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
6451         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
6452         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
6453         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
6454         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
6455         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
6456         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
6457         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
6458         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
6459         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
6460         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
6461         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
6462         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
6463         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
6464         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
6465         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
6466         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
6467         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
6468         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
6469         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
6470         * tests/test-poll.c, tests/test-quotearg-simple.c:
6471         * tests/test-quotearg.c, tests/test-quotearg.h:
6472         * tests/test-round-ieee.c, tests/test-round1.c:
6473         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
6474         * tests/test-roundl-ieee.c, tests/test-roundl.c:
6475         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
6476         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
6477         * tests/test-strerror.c, tests/test-strerror_r.c:
6478         * tests/test-strsignal.c, tests/test-strverscmp.c:
6479         * tests/test-xmemdup0.c:
6480         Replace FSF snail mail addresses with URLs, as per GNU coding
6481         standards.  See glibc bug
6482         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
6483
6484 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
6485
6486         README-release: capitalize a word and split a line
6487         * top/README-release: Fix punctuation and spacing.
6488
6489 2012-02-08  Akim Demaille  <demaille@gostai.com>
6490
6491         fatal-signal: use C prototypes (with explicit void).
6492         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
6493         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
6494
6495 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
6496
6497         regex: spelling fix
6498         * lib/regexec.c: spelling fix
6499
6500         regex: rely on stdint.h for SIZE_MAX
6501         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
6502
6503 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
6504
6505         regex: merge glibc changes
6506
6507         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
6508         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
6509         (init_word_char): Work even if bitset words are not exactly 32 or
6510         64 bits wide.  Don't assume there are no padding bits.
6511         * lib/regex.c [_LIBC]: Do not include <config.h>.
6512         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
6513         and -Wtype-limits.
6514         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
6515         needless disagreement with glibc.  All uses changed.  Define it to
6516         1 only if _GNU_SOURCE, to match glibc.
6517         (_REG_RM_NAME): Remove; no longer needed, since the names in
6518         question are now all protected by __USE_GNU.
6519         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
6520         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
6521         * lib/regex_internal.h (MIN): New macro.
6522
6523         2012-01-03 Ulrich Drepper <drepper@gmail.com>
6524         * lib/regcomp.c (init_word_char): Optimize regex a bit.
6525
6526         2011-12-30 Jakub Jelinek <jakub@redhat.com>
6527         * lib/regex_internal.c (re_string_fetch_byte_case):
6528         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
6529         is miscompiled, and it turns out it is because of an incorrect
6530         attribute on re_string_fetch_byte_case.  Unlike
6531         re_string_peek_byte_case, this one is really not pure, it modifies
6532         memory (increments pstr->cur_idx), and with the pure attribute GCC
6533         assumed it doesn't and it cached the presumed value of
6534         regexp->cur_idx in a variable across the
6535          for (;; ++i)
6536            {
6537              if (i >= BRACKET_NAME_BUF_SIZE)
6538                return REG_EBRACK;
6539              if (token->type == OP_OPEN_CHAR_CLASS)
6540                ch = re_string_fetch_byte_case (regexp);
6541              else
6542                ch = re_string_fetch_byte (regexp);
6543              if (re_string_eoi(regexp))
6544                return REG_EBRACK;
6545              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
6546                break;
6547              elem->opr.name[i] = ch;
6548            }
6549
6550         2011-11-29 Andreas Schwab <schwab@redhat.com>
6551         * lib/regcomp.c (build_equiv_class):
6552         Fix access after end of search string in regex matcher.
6553
6554         2011-11-12 Ulrich Drepper <drepper@redhat.com>
6555         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
6556
6557         2011-10-12 Ulrich Drepper <drepper@redhat.com>
6558         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
6559
6560         2011-10-11 Ulrich Drepper <drepper@redhat.com>
6561         * lib/regcomp.c (parse_branch, parse_sub_exp):
6562         More regex memory leak fixes and tests.
6563         (parse_sub_exp, parse_bracket_exp):
6564         Fix memory leak for some invalid regular expressions.
6565
6566         2011-05-28 Ulrich Drepper <drepper@gmail.com>
6567         * lib/regex_internal.c, lib/regexec.c:
6568         Fix unnecessary overallocation due to incomplete character.  When
6569         incomplete characters are found at the end of a string the code
6570         ran amok and allocated lots of memory.  Stricter limits are now in
6571         place.
6572
6573         2011-05-20 Reuben Thomas <rrt@sc3d.org>
6574         * lib/regex.h: Update documentation.
6575
6576         2011-05-16 Aharon Robbins <arnold@skeeve.com>
6577         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
6578
6579         2010-05-05 Andreas Schwab <schwab@redhat.com>
6580         * lib/regexec.c (find_collation_sequence_value):
6581         Fix lookup of collation sequence value during regexp matching.
6582
6583         2010-01-22 Ulrich Drepper <drepper@redhat.com>
6584         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
6585
6586         2008-01-16 Ulrich Drepper <drepper@redhat.com>
6587         * lib/regex.h: Cleanup namespace.
6588
6589         2007-11-26 Ulrich Drepper <drepper@redhat.com>
6590         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
6591
6592         2007-08-26 Ulrich Drepper <drepper@redhat.com>
6593         * lib/regex_internal.h: Prevent some declarations and definitions
6594         to be seen when used in tests.
6595
6596         2005-05-06 Ulrich Drepper <drepper@redhat.com>
6597         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
6598         __libc_lock_* macros if not _LIBC.
6599         (struct re_dfa_t): Add lock.
6600
6601 2012-02-07  Eric Blake  <eblake@redhat.com>
6602
6603         maint.mk: also prohibit lower-case @var@
6604         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
6605         lower case, like @top_srcdir@.
6606
6607 2012-02-04  Eric Blake  <eblake@redhat.com>
6608
6609         canonicalize: avoid uninitialized memory use
6610         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
6611         random '/' left in dest.
6612         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
6613
6614 2012-02-04  Bruno Haible  <bruno@clisp.org>
6615
6616         isatty: Fix test failure of ptsname_r on native Windows.
6617         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
6618         and don't set errno.
6619         (isatty): Test first whether fd is valid. Set errno when returning 0.
6620
6621 2012-02-04  Bruno Haible  <bruno@clisp.org>
6622
6623         spawn-pipe tests: Fix a NULL program name in a diagnostic.
6624         * tests/test-spawn-pipe-main.c: Include progname.h.
6625         (main): Invoke set_program_name.
6626         * modules/spawn-pipe-tests (Depends-on): Add progname.
6627
6628         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
6629         * tests/test-nonblocking-socket-main.c: Include progname.h.
6630         (main): Invoke set_program_name.
6631         * modules/nonblocking-socket-tests (Depends-on): Add progname.
6632
6633         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
6634         * tests/test-nonblocking-pipe-main.c: Include progname.h.
6635         (main): Invoke set_program_name.
6636         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
6637
6638 2012-02-04  Eric Blake  <eblake@redhat.com>
6639
6640         canonicalize-lgpl: fix // handling
6641         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
6642
6643         canonicalize: fix // handling
6644         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
6645         /// to //, since only // is special.
6646
6647 2012-02-04  Bruno Haible  <bruno@clisp.org>
6648
6649         ioctl: Fix test failure on native Windows.
6650         * lib/ioctl.c: Include msvc-nothrow.h.
6651         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
6652
6653 2012-02-04  Bruno Haible  <bruno@clisp.org>
6654
6655         fsync: Avoid test failure on native Windows.
6656         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
6657         read-only.
6658
6659 2012-02-04  Bruno Haible  <bruno@clisp.org>
6660
6661         sys_select: Avoid syntax error on OpenBSD 5.0.
6662         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
6663         currently being included, just include the system's <sys/select.h>.
6664
6665 2012-02-04  Bruno Haible  <bruno@clisp.org>
6666
6667         sys_select: Avoid syntax error on OpenBSD 5.0.
6668         * lib/sys_select.in.h: Include <signal.h> only after the include_next
6669         <sys/select.h>, not before.
6670         Reported by Jiri B <jirib@devio.us>.
6671
6672 2012-02-04  Bruno Haible  <bruno@clisp.org>
6673
6674         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
6675         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
6676         global variables.
6677         * tests/test-get-rusage-data.c (main): Likewise.
6678         Reported by Jim Meyering.
6679
6680 2012-02-04  Bruno Haible  <bruno@clisp.org>
6681
6682         stdioext: Fix last commit.
6683         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
6684
6685 2012-02-03  Bruno Haible  <bruno@clisp.org>
6686
6687         stdioext: Add tentative support for Plan9.
6688         * lib/stdio-impl.h: Include <errno.h>.
6689         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
6690         * lib/freadable.c (freadable): Likewise.
6691         * lib/fwritable.c (fwritable): Likewise.
6692         * lib/fbufmode.c (fbufmode): Likewise.
6693         * lib/freading.c (freading): Likewise.
6694         * lib/fwriting.c (fwriting): Likewise.
6695         * lib/freadptr.c (freadptr): Likewise.
6696         * lib/freadseek.c (freadptrinc): Likewise.
6697         * lib/freadahead.c (freadahead): Likewise.
6698         * lib/fpurge.c (fpurge): Likewise.
6699         * lib/fseeko.c (rpl_fseeko): Likewise.
6700         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
6701         Reported by Jens Staal <staal1978@gmail.com>.
6702
6703 2012-02-02  Jim Meyering  <meyering@redhat.com>
6704
6705         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
6706         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
6707         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
6708         not even to try to add the attribute.  Instead, add a pragma to suppress
6709         the suggestion/warning.
6710
6711 2012-01-31  Karl Berry  <karl@gnu.org>
6712
6713         setstate doc: typo.
6714         * doc/posix-functions/setstate.texi (setstate): { not (.
6715
6716 2012-01-31  Bruno Haible  <bruno@clisp.org>
6717
6718         popen: Make more robust on Windows.
6719         * lib/popen.c: On native Windows, use the _popen based code even if
6720         HAVE_POPEN is set.
6721         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
6722         environment variable on native Windows.
6723
6724 2012-01-30  Bruno Haible  <bruno@clisp.org>
6725
6726         pclose: Fix typo.
6727         * lib/stdio.in.h (pclose): Fix typo in warning message.
6728
6729 2012-01-30  Bruno Haible  <bruno@clisp.org>
6730
6731         doc about getlogin_r, setstate.
6732         * doc/posix-functions/getlogin_r.texi: List the incompatible
6733         declaration problem under "not fixed by gnulib".
6734         * doc/posix-functions/setstate.texi: Mention incompatible declaration
6735         problem on Solaris 11 and other platforms.
6736
6737 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
6738             Bruno Haible  <bruno@clisp.org>
6739
6740         poll tests: Make test more robust.
6741         * tests/test-poll.c: Include macros.h.
6742         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
6743         return value of various I/O operations.
6744         * modules/poll-tests (Files): Add tests/macros.h.
6745
6746 2012-01-30  Bruno Haible  <bruno@clisp.org>
6747
6748         sys_stat: Fix support for mingw64 and MSVC.
6749         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
6750         header files already do it.
6751         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
6752         stat itself.
6753         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
6754
6755 2012-01-30  Bruno Haible  <bruno@clisp.org>
6756
6757         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
6758         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
6759         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
6760
6761 2012-01-29  Bruno Haible  <bruno@clisp.org>
6762
6763         quotearg: Fix test failure on MacOS X 10.5.
6764         * tests/test-quotearg-simple.c: Include localcharset.h.
6765         (main): If the locale encoding is not ASCII, bypass the tests of
6766         locale_quoting_style and clocale_quoting_style.
6767         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
6768
6769 2012-01-29  Jim Meyering  <meyering@redhat.com>
6770
6771         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
6772         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
6773         detect uses of canonicalize_file_name.
6774
6775 2012-01-28  Bruno Haible  <bruno@clisp.org>
6776
6777         test-framework-sh: Fix test failure with AIX 7.1 diff.
6778         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
6779         in column 1, like 'diff -c' does.
6780         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
6781         whether 'diff -u' is used. Instead, test whether the output contains
6782         some '@' character.
6783
6784 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
6785
6786         strtoimax: eliminate need for stdint.h, inttypes.h checks
6787         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
6788         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
6789         the prerequisites for a recently-introduced strtoimax test.
6790         I guess this might cause strtoimax to be replaced when not
6791         strictly necessary on older hosts, but this shouldn't introduce
6792         any bugs and it should make Emacs 'configure' faster on typical
6793         modern hosts.  Problem discovered when importing the latest gnulib
6794         to an Emacs test version.
6795         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
6796
6797 2012-01-28  Bruno Haible  <bruno@clisp.org>
6798
6799         sys_time: Override 'struct timeval' on some native Windows platforms.
6800         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
6801         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
6802         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
6803         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
6804         needs to be overridden.
6805         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
6806         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
6807         * tests/test-sys_select.c: Check that the tv_sec member has the same
6808         size as a 'time_t'.
6809         * tests/test-sys_time.c: Likewise.
6810         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
6811         is set, set also REPLACE_GETTIMEOFDAY.
6812         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
6813         convert the resulting 'struct timeval' before returning.
6814         * lib/select.c: Include <sys/time.h>.
6815         (select, timeval): Undefine at the right place.
6816         * modules/select (Depends-on): Add sys_time.
6817         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
6818         some Windows platforms.
6819         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
6820
6821 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
6822
6823         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
6824         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
6825         an integer.
6826         * lib/fcntl.c (dupfd): Likewise.
6827         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
6828
6829 2012-01-28  Bruno Haible  <bruno@clisp.org>
6830
6831         fcntl: Avoid compilation error on native Windows.
6832         * modules/fcntl (Depends-on): Add 'close'.
6833
6834 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
6835
6836         select, poll, isatty: Avoid warnings on x86_64 mingw64.
6837         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
6838         pointer to an integer.
6839         * lib/poll.c (IsConsoleHandle): Likewise.
6840         * lib/isatty.c (IsConsoleHandle): Likewise.
6841
6842 2012-01-28  Jim Meyering  <meyering@redhat.com>
6843
6844         doc: clarify README-release
6845         * top/README-release: Clarify: you should make a point to have
6846         the latest stable versions of build tools in your PATH, and the
6847         reference to buildreq is solely for its list of tool names, not
6848         for its minimal-functional version numbers.
6849         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
6850
6851         maint.mk: use more readable (yet functionally equivalent) quoting
6852         It is common to quote a single quote in a single quoted string like
6853         this:  '...'\''...'.  Unless you know the idiom, that looks like
6854         gibberish, so prefer to double-quote the string when possible.
6855         Then you can use a more readable, lone single quote: "...'..."
6856         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
6857         "don't" is more readable than the equivalent 'don'\''t'.
6858         (sc_cast_of_x_alloc_return_value): Likewise.
6859         (sc_cast_of_alloca_return_value): Likewise.
6860         (sc_makefile_path_separator_check): Similar: use ":" in '...',
6861         rather than '\'':'\''.
6862
6863 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
6864
6865         stdalign: relax _Alignof and tighten _Alignas test
6866         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
6867         as it was too strict: alignof must divide offsetof, but it need
6868         not equal offsetof.  Inspired by Joseph S. Myers's comment
6869         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
6870         Conversely, tighten the _Alignas test a bit, as the resulting
6871         alignment must be exactly 8.
6872
6873 2012-01-27  Bruno Haible  <bruno@clisp.org>
6874
6875         stdalign: Document the last change.
6876         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
6877
6878 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
6879
6880         stdalign: check that alignof and offsetof are consistent
6881         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
6882         Problem reported for gnulib by Richard W.M. Jones in
6883         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
6884
6885 2012-01-27  Jim Meyering  <meyering@redhat.com>
6886
6887         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
6888         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
6889         convert a sequence with gaps to the minimal containing range.
6890         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
6891         * tests/test-update-copyright.sh: Test for this.
6892         The FSF confirmed it is ok to do this, assuming there is at
6893         least one significant change per year in the affected range:
6894         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
6895
6896 2012-01-26  Bruno Haible  <bruno@clisp.org>
6897
6898         pipe2: refine doc about thread-safety
6899         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
6900         multithread-safety problem.
6901         * doc/glibc-functions/accept4.texi: Likewise.
6902
6903 2012-01-26  Bruno Haible  <bruno@clisp.org>
6904
6905         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
6906         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
6907         In the test program, include <fcntl.h>, for O_RDONLY.
6908
6909 2012-01-26  Eric Blake  <eblake@redhat.com>
6910
6911         pipe2: document lack of thread-safety in replacement
6912         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
6913         issue in replacement.
6914         * doc/glibc-functions/accept4.texi (accept4): Likewise.
6915         Based on a report by Eric Wong.
6916
6917 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
6918             Bruno Haible  <bruno@clisp.org>
6919
6920         malloca: Avoid warnings on x86_64 mingw64.
6921         * lib/malloca.c: Include <stdint.h>.
6922         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
6923         * modules/malloca (Depends-on): Add stdint.
6924         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
6925
6926 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
6927
6928         obstack: remove __STDC__ conditionals
6929         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
6930         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
6931         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
6932         m4/include_next.m4 as the only gnulib-maintained places that still
6933         refer to __STDC__.
6934
6935 2012-01-24  Bruno Haible  <bruno@clisp.org>
6936
6937         havelib: Modern quoting.
6938         * build-aux/config.rpath: Quote 'like this', not `like this', as per
6939         the recent change to the GNU coding standards.
6940
6941 2012-01-24  Bruno Haible  <bruno@clisp.org>
6942
6943         stdint: Improve support for Android.
6944         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
6945         Reported by Simon Josefsson <simon@josefsson.org>.
6946
6947 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
6948
6949         doc: omit trailing empty lines from INSTALL etc.
6950         * doc/Makefile (INSTALL): Omit trailing empty lines.
6951         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
6952         omit trailing empty lines.  This simplifies the build procedure.
6953
6954 2012-01-23  Jim Meyering  <meyering@redhat.com>
6955
6956         tests: avoid spurious warnings about gl_sockets_startup
6957         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
6958         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
6959         reporting a "statement with no effect".
6960         * tests/test-accept.c (main): Mark as "(void)".
6961         * tests/test-accept4.c (main): Likewise.
6962         * tests/test-bind.c (main): Likewise.
6963         * tests/test-connect.c (main): Likewise.
6964         * tests/test-getpeername.c (main): Likewise.
6965         * tests/test-getsockname.c (main): Likewise.
6966         * tests/test-getsockopt.c (main): Likewise.
6967         * tests/test-listen.c (main): Likewise.
6968         * tests/test-recv.c (main): Likewise.
6969         * tests/test-recvfrom.c (main): Likewise.
6970         * tests/test-send.c (main): Likewise.
6971         * tests/test-sendto.c (main): Likewise.
6972         * tests/test-setsockopt.c (main): Likewise.
6973         * tests/test-shutdown.c (main): Likewise.
6974
6975 2012-01-21  Bruno Haible  <bruno@clisp.org>
6976
6977         locale-fr.m4: Fix for Android.
6978         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
6979         failure of the test program on Bionic libc.
6980
6981 2012-01-21  Jim Meyering  <meyering@redhat.com>
6982
6983         bootstrap: fail when bootstrap_post_import_hook fails
6984         Otherwise, it's far too easy to miss diagnostics emitted
6985         between gnulib-tool's output and that of running configure.
6986         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
6987
6988 2012-01-17  Jim Meyering  <meyering@redhat.com>
6989
6990         maint: enable sc_trailing_blank
6991         * build-aux/pmccabe.css: Remove trailing blanks.
6992         * doc/acl-cygwin.txt: Likewise.
6993         * doc/gnu-oids.texi: Likewise
6994         * cfg.mk: Enable sc_trailing_blank.
6995         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
6996
6997 2012-01-17  Jim Meyering  <meyering@redhat.com>
6998
6999         maint: enable sc_prohibit_openat_without_use
7000         * cfg.mk: Enable sc_prohibit_openat_without_use.
7001         Exempt lib/selinux-at.c.
7002
7003 2012-01-17  Jim Meyering  <meyering@redhat.com>
7004
7005         maint: enable sc_prohibit_cloexec_without_use
7006         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
7007         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
7008
7009 2012-01-17  Jim Meyering  <meyering@redhat.com>
7010
7011         maint: enable sc_prohibit_intprops_without_use
7012         * cfg.mk: Enable sc_prohibit_intprops_without_use
7013         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
7014
7015 2012-01-17  Jim Meyering  <meyering@redhat.com>
7016
7017         maint: enable sc_prohibit_hash_pjw_without_use
7018         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
7019         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
7020         to match any use of \<hash_pjw\>, i.e., not necessarily with a
7021         following " (".
7022
7023 2012-01-17  Jim Meyering  <meyering@redhat.com>
7024
7025         maint: enable double-word-prohibiting rule
7026         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
7027         Exempt three files.
7028
7029 2012-01-17  Jim Meyering  <meyering@redhat.com>
7030
7031         maint: remove empty lines at EOF, but excluding modules/*
7032         Apply syntax rules at home as well as abroad.  Most changes
7033         were induced by running this:
7034           make srcdir=. _build-aux=build-aux -f top/maint.mk \
7035             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
7036             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
7037         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
7038         Exempt modules/* and two binary files.
7039         Also exempt doc/INSTALL*, per request from Bruno Haible.
7040         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
7041         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
7042         * doc/Copyright/request-assign.future: Likewise.
7043         * doc/Copyright/request-disclaim.changes: Likewise.
7044         * doc/INSTALL: Likewise.
7045         * doc/INSTALL.ISO: Likewise.
7046         * doc/INSTALL.UTF-8: Likewise.
7047         * doc/acl-cygwin.txt: Likewise.
7048         * doc/acl-resources.txt: Likewise.
7049         * doc/fdl-1.2.texi: Likewise.
7050         * doc/fdl-1.3.texi: Likewise.
7051         * doc/fdl.texi: Likewise.
7052         * lib/argp-pin.c: Likewise.
7053         * lib/round.c: Likewise.
7054         * lib/unicase/u16-totitle.c: Likewise.
7055         * lib/unictype/block_test.c: Likewise.
7056         * lib/uninorm/canonical-decomposition.c: Likewise.
7057         * m4/README: Likewise.
7058         * m4/relocatable-lib.m4: Likewise.
7059         * tests/test-isnand-nolibm.c: Likewise.
7060         * tests/test-isnand.c: Likewise.
7061         * tests/uninorm/NormalizationTest.txt: Likewise.
7062
7063 2012-01-17  Jim Meyering  <meyering@redhat.com>
7064
7065         maint: add framework to run syntax-check rules against gnulib sources
7066         * cfg.mk: New file, to disable all currently-failing tests.
7067         We'll enable them one by one, as they are made to pass.
7068         * Makefile (sc_maint): New rule.
7069
7070 2012-01-21  Bruno Haible  <bruno@clisp.org>
7071
7072         stdint: Add support for Android.
7073         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
7074         include the system's <stdint.h>.
7075         Reported by Simon Josefsson <simon@josefsson.org>.
7076
7077 2012-01-19  Jim Meyering  <meyering@redhat.com>
7078
7079         bootstrap: add bootstrap_post_import_hook
7080         Bison does still need something like the gnulib_mk_hook whose
7081         invocation I had to remove along with slurp in commit 767ccd40.
7082         Technically, we could get along without it, but doing so would
7083         have required living with a warning and a mandatory post-bootstrap
7084         automake rerun.
7085         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
7086         (bootstrap_post_import_hook): New function.
7087         Invoke it after gnulib-tool --import and before autoreconf.
7088
7089 2012-01-18  Jim Meyering  <meyering@redhat.com>
7090
7091         gitlog-to-changelog: don't use "no_"-prefixed variable name
7092         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
7093         to enable both --cluster and --no-cluster.  Change variable name,
7094         s/\$no_cluster/$cluster/, and reverse usage to match.
7095
7096         gitlog-to-changelog: use "||", not "or" in expressions
7097         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
7098         expressions.
7099
7100 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
7101
7102         gitlog-to-changelog: new option --no-cluster
7103         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
7104         clustering of adjacent commit messages.
7105
7106 2012-01-17  Jim Meyering  <meyering@redhat.com>
7107
7108         maint: spell file systems with two words, not one
7109         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
7110         two words, not one.
7111
7112 2012-01-16  Jim Meyering  <meyering@redhat.com>
7113
7114         bootstrap: add a FIXME comment to ensure we eventually remove the hack
7115         * build-aux/bootstrap (gnulib_tool_options): Add comment.
7116
7117 2012-01-16  Eric Blake  <eblake@redhat.com>
7118
7119         bootstrap: cater to autoconf 2.59
7120         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
7121         is not available.
7122
7123         bootstrap: properly check for libtool
7124         * build-aux/bootstrap (libtoolize): Also run libtool when older
7125         usage is detected.
7126
7127 2012-01-15  Bruno Haible  <bruno@clisp.org>
7128
7129         Improve support for MSVC 9.
7130         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
7131         clashes on MSVC.
7132         * lib/fcntl.in.h: Likewise.
7133         * lib/stdlib.in.h: Likewise.
7134         * lib/sys_stat.in.h: Likewise.
7135
7136 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
7137
7138         gnupload: we hold the master copy of this script now
7139         For motivation and more information, see:
7140         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
7141         * build-aux/gnupload: Make it clear in the heading comments that the
7142         master copy of this file is maintained by gnulib.  Since we are at
7143         it, bump its copyright year and ...
7144         ($scriptversion): ... the date in its version.
7145         ($usage): Patches and bug reports should be sent to the gnulib list,
7146         not the automake one.
7147         * config/srclist.txt: Don't try to sync 'gnupload' from automake
7148         anymore.
7149
7150 2012-01-15  Bruno Haible  <bruno@clisp.org>
7151
7152         Fix module 'random'.
7153         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
7154         initstate, setstate are declared.
7155
7156 2012-01-14  Bruno Haible  <bruno@clisp.org>
7157
7158         Tests for module 'random'.
7159         * modules/random-tests: New file.
7160         * tests/test-random.c: New file, based on tests/test-random_r.c.
7161
7162         New module 'random'.
7163         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
7164         declarations.
7165         * lib/random.c: New file, based on glibc/stdlib/random.c.
7166         * m4/random.m4: New file.
7167         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
7168         HAVE_RANDOM.
7169         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
7170         * modules/random: New file.
7171         * config/srclist.txt: Add an entry for random.c.
7172         * doc/posix-functions/random.texi: Mention the 'random' module.
7173         * doc/posix-functions/initstate.texi: Likewise.
7174         * doc/posix-functions/setstate.texi: Likewise.
7175         * doc/posix-functions/srandom.texi: Likewise.
7176
7177 2012-01-12  Bruno Haible  <bruno@clisp.org>
7178
7179         random_r: Use common idioms.
7180         * lib/random_r.c: Include <stdlib.h> first.
7181
7182         random_r: Override incompatible API on AIX, OSF/1.
7183         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
7184         Override the system function if REPLACE_RANDOM_R is 1.
7185         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
7186         and OSF/1, set REPLACE_RANDOM_R.
7187         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
7188         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
7189         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
7190         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
7191         * doc/glibc-functions/random_r.texi: Likewise.
7192         * doc/glibc-functions/setstate_r.texi: Likewise.
7193
7194         random_r: Support for MSVC 9.
7195         * lib/random_r.c: Include stdint.h, not inttypes.h.
7196
7197 2012-01-12  Eric Blake  <eblake@redhat.com>
7198
7199         inet_ntop: guard extra work by IF_LINT
7200         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
7201         better code generation when not checking for warnings.
7202         Suggested by Paul Eggert and Jim Meyering.
7203
7204         strptime: fix regression on mingw
7205         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
7206         Fix regression.  Reported by Bruno Haible.
7207
7208 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
7209             Bruno Haible  <bruno@clisp.org>
7210
7211         copy-file: add error-code-returning variant.
7212         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
7213         (qcopy_file_preserving): New declaration.
7214         * lib/copy-file.c (qcopy_file_preserving): Renamed from
7215         copy_file_preserving. Change return type to 'int'. Don't emit an error
7216         message here.
7217         (copy_file_preserving): New function.
7218         * tests/test-copy-file.c: Include <stdlib.h>.
7219         (main): Test qcopy_file_preserving if the environment variable
7220         NO_STDERR_OUTPUT is set.
7221         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
7222         with NO_STDERR_OUTPUT
7223         * tests/test-copy-file-2.sh: Likewise.
7224
7225 2012-01-10  Bruno Haible  <bruno@clisp.org>
7226
7227         copy-file: Use 'quote' module consistently.
7228         * lib/copy-file.c (copy_file_preserving): Use quote().
7229
7230         copy-file: Refactor.
7231         * lib/copy-file.c: Include quote.h.
7232         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
7233         message here.
7234         * modules/copy-file (Depends-on): Add quote.
7235
7236         acl: Export qcopy_acl.
7237         * lib/acl.h (qcopy_acl): New declaration.
7238         * lib/copy-acl.c (qcopy_acl): Make non-static.
7239
7240         acl: Rename a local variable.
7241         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
7242
7243         acl: Align return values of copy_acl and qcopy_acl.
7244         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
7245         maybe < -1.
7246
7247 2012-01-11  Eric Blake  <eblake@redhat.com>
7248
7249         strptime: silence gcc warnings
7250         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
7251         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
7252         Reported by Daniel P. Berrange.
7253
7254         inet_ntop: silence gcc warning
7255         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
7256         Reported by Daniel P. Berrange.
7257
7258 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
7259
7260         getloadavg test: skip the test on GNU/Linux without /proc mounted
7261         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
7262         file.  When /proc is not mounted, it always fails with ENOENT.
7263         * tests/test-getloadavg.c (main): Treat ENOENT return code from
7264         getloadavg(3) the same way as ENOSYS and ENOTSUP.
7265
7266 2012-01-10  Bruno Haible  <bruno@clisp.org>
7267
7268         regex: Avoid link error on MSVC 9.
7269         * modules/regex (Depends-on): Add wctype.
7270
7271 2012-01-10  Bruno Haible  <bruno@clisp.org>
7272
7273         doc: Mention --with-tests option.
7274         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
7275         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
7276         --with-tests.
7277         Reported by Reuben Thomas.
7278
7279 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
7280
7281         users.txt: order package names lexicographically.
7282         * users.txt: Order package names lexicographically.
7283
7284 2012-01-10  Jim Meyering  <meyering@redhat.com>
7285
7286         maint.mk: fix description in comment
7287         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
7288
7289         ignore-value: remove deprecated ignore_ptr function
7290         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
7291         * NEWS: Note this.
7292
7293 2012-01-09  Jim Meyering  <meyering@redhat.com>
7294
7295         test-init.sh: avoid a subshell
7296         * tests/test-init.sh: Remove protective subshell.
7297         Suggested by Bernhard Voelker.  While a subshell is normally
7298         required to protect against older shells (Solaris, FreeBSD) that
7299         warn about a missing program before performing redirection, the
7300         shell-selection tests performed by init.sh probably exclude any
7301         offending shell.
7302
7303 2012-01-08  Bruno Haible  <bruno@clisp.org>
7304
7305         setlocale tests: Avoid test failure on Solaris 11 2011-11.
7306         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
7307         variable.
7308
7309 2012-01-08  Bruno Haible  <bruno@clisp.org>
7310
7311         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
7312         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
7313         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
7314         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
7315         macro.
7316         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
7317         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
7318         * lib/spawn_faction_addopen.c: Add workaround implementation if
7319         HAVE_WORKING_POSIX_SPAWN.
7320         * modules/spawn (Makefile): Substitute
7321         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
7322         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
7323         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
7324         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
7325         (Depends-on): Update conditions.
7326         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
7327         the Solaris 11 bug.
7328
7329 2012-01-08  Bruno Haible  <bruno@clisp.org>
7330
7331         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
7332         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
7333         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
7334         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
7335         macro.
7336         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
7337         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
7338         * lib/spawn_faction_adddup2.c: Add workaround implementation if
7339         HAVE_WORKING_POSIX_SPAWN.
7340         * modules/spawn (Makefile): Substitute
7341         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
7342         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
7343         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
7344         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
7345         (Depends-on): Update conditions.
7346         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
7347         the Solaris 11 bug.
7348
7349 2012-01-08  Bruno Haible  <bruno@clisp.org>
7350
7351         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
7352         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
7353         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
7354         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
7355         HAVE_WORKING_POSIX_SPAWN.
7356         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
7357         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
7358         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
7359         * lib/spawn_faction_addclose.c: Add workaround implementation if
7360         HAVE_WORKING_POSIX_SPAWN.
7361         * modules/spawn (Makefile): Substitute
7362         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
7363         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
7364         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
7365         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
7366         (Depends-on): Update conditions.
7367         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
7368         the Solaris 11 bug.
7369
7370 2012-01-08  Bruno Haible  <bruno@clisp.org>
7371
7372         doc: Update for Solaris 11 2011-11.
7373         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
7374         * m4/printf.m4: Update comments.
7375
7376 2012-01-08  Bruno Haible  <bruno@clisp.org>
7377
7378         mktime: Avoid compilation error on Solaris 11.
7379         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
7380
7381 2012-01-08  Bruno Haible  <bruno@clisp.org>
7382
7383         doc: Small fix.
7384         * doc/posix-headers/nl_types.texi: Correct platforms list.
7385
7386 2012-01-08  Simon Josefsson  <simon@josefsson.org>
7387
7388         Add lgpl-3.0 module.
7389         * MODULES.html.sh (Support for building documentation): Add
7390         lgpl-3.0.
7391         * modules/lgpl-3.0: New file.
7392
7393 2012-01-08  Jim Meyering  <meyering@redhat.com>
7394
7395         select.c: indent with spaces, not TABs
7396         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
7397
7398 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
7399
7400         quotearg: do not use grave accent for left quote
7401         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
7402         locale_quoting_style.
7403         (quotearg_buffer_restyled): Fix example.
7404         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
7405
7406 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
7407
7408         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
7409         Most programs do not have translation catalogs for English and much
7410         less separate catalogs for British and American English.  Drop the
7411         suggestion to translators about these two, and provide it
7412         automatically for Unicode locales.  Like most programs, even those
7413         using American English, we use single quotation marks.  This conflicts
7414         with the American typographic convention, but works better when you
7415         cite the entire error message within double quotes.  It also tries not
7416         to clash with established practice and with what non-gnulib programs
7417         will usually do.
7418         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
7419         using an UTF-8 or GB-18030 locale.  The list of other locales with
7420         quotes was provided by Bruno Haible.
7421         (quotearg_buffer_restyled): Adjust instructions to translators.
7422         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
7423         text, since this would be wrong when using Unicode.
7424         * modules/quotearg: Depend on c-strcaseeq.
7425
7426 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
7427
7428         quotearg: fix Wikipedia link
7429         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
7430
7431 2012-01-07  Simon Josefsson  <simon@josefsson.org>
7432
7433         Fix for mingw with MSVC9.
7434         * m4/ld-version-script.m4: Check that compiler rejects version
7435         scripts with syntax errors.  Reported by Bruno Haible
7436         <bruno@clisp.org>.
7437
7438 2012-01-06  Bruno Haible  <bruno@clisp.org>
7439
7440         Talk about "native Windows API", not "Woe32".
7441         * lib/accept4.c: Update comments to mention native Windows.
7442         * lib/execute.c: Likewise.
7443         * lib/fatal-signal.c: Likewise.
7444         * lib/localcharset.c: Likewise.
7445         * lib/nanosleep.c: Likewise.
7446         * lib/nl_langinfo.c: Likewise.
7447         * lib/pclose.c: Likewise.
7448         * lib/pipe-filter-gi.c: Likewise.
7449         * lib/pipe-filter-ii.c: Likewise.
7450         * lib/pipe.c: Likewise.
7451         * lib/pipe2.c: Likewise.
7452         * lib/popen.c: Likewise.
7453         * lib/progreloc.c: Likewise.
7454         * lib/relocatable.c: Likewise.
7455         * lib/sigaction.c: Likewise.
7456         * lib/sigprocmask.c: Likewise.
7457         * lib/spawn-pipe.h: Likewise.
7458         * lib/spawn-pipe.c: Likewise.
7459         * lib/spawni.c: Likewise.
7460         * lib/stat-time.h: Likewise.
7461         * lib/w32spawn.h: Likewise.
7462         * tests/test-isatty.c: Likewise.
7463         * lib/config.charset: More comments.
7464         * doc/gnulib-intro.texi: Mention native Windows.
7465         * doc/posix-functions/_Exit_C99.texi: Likewise.
7466         * doc/posix-headers/fcntl.texi: Likewise.
7467
7468 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
7469
7470         argp: Avoid crash if translator uses % characters in a translation.
7471         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
7472         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
7473
7474 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
7475
7476         doc: C11 and C++11 are now official
7477         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
7478         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
7479         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
7480         * modules/stdalign:
7481         Replace references to draft C1X to C11, and to draft C++0X to C++11.
7482
7483 2012-01-06  Bruno Haible  <bruno@clisp.org>
7484
7485         uc-is-grapheme-break tests: Tweak.
7486         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
7487         message.
7488
7489 2012-01-06  Bruno Haible  <bruno@clisp.org>
7490
7491         test-init.sh: correct the test for diff -u
7492         * tests/test-init.sh: Also redirect stdout to /dev/null.
7493
7494 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
7495
7496         Use ', not `, for quoting output.
7497         * build-aux/announce-gen (usage, sizes, print_news_deltas)
7498         (print_changelog_deltas, get_tool_versions, main program):
7499         * build-aux/git-version-gen:
7500         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
7501         * build-aux/move-if-change (help):
7502         * build-aux/useless-if-before-free (usage, main program):
7503         * check-module (parse_module_file, usage)
7504         (find_included_lib_files, check_module):
7505         * lib/argmatch.c (main) [TEST]:
7506         * lib/argp-help.c (_help):
7507         * lib/getopt1.c (main) [TEST]:
7508         * lib/git-merge-changelog.c (usage):
7509         * lib/xstrtol-error.c (xstrtol_error):
7510         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
7511         * m4/argz.m4 (gl_FUNC_ARGZ):
7512         * m4/bison.m4 (gl_BISON):
7513         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
7514         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
7515         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
7516         * m4/fpending.m4 (gl_PREREQ_FPENDING):
7517         * m4/gc-random.m4 (gl_GC_RANDOM):
7518         * m4/intl.m4 (gt_CHECK_DECL):
7519         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
7520         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
7521         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
7522         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
7523         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
7524         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
7525         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
7526         * tests/test-dirname.c (main):
7527         * tests/test-getpass.c (main):
7528         * tests/test-iconvme.c (main):
7529         * tests/test-parse-datetime.c (LOG):
7530         * tests/test-xstrtoimax.sh:
7531         * tests/test-xstrtol.sh:
7532         * tests/test-xstrtoll.sh:
7533         * tests/test-xstrtoumax.sh:
7534         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
7535         * top/GNUmakefile (abort-due-to-no-makefile):
7536         Quote 'like this', not `like this', as per the recent change to
7537         the GNU coding standards.
7538
7539 2012-01-05  Bruno Haible  <bruno@clisp.org>
7540
7541         strtoimax: Don't force a replacement on systems where intmax_t is int.
7542         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
7543         'intmax_t' is not larger than 'int'.
7544         Reported by Pádraig Brady <P@draigBrady.com>.
7545
7546 2012-01-05  Bruno Haible  <bruno@clisp.org>
7547
7548         doc: Mention NetBSD bugs.
7549         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
7550         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
7551
7552 2012-01-05  Bruno Haible  <bruno@clisp.org>
7553
7554         strtoumax tests: Enhance tests.
7555         * tests/test-strtoumax.c (main): Add tests for large values.
7556
7557 2012-01-05  Bruno Haible  <bruno@clisp.org>
7558
7559         strtoimax: Work around AIX 5.1 bug.
7560         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
7561         definition.
7562         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
7563         Set HAVE_STRTOIMAX.
7564         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
7565         REPLACE_STRTOIMAX.
7566         * modules/inttypes-incomplete (Makefile.am): Substitute
7567         REPLACE_STRTOIMAX.
7568         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
7569         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
7570         (Depends-on): Update conditions.
7571         * tests/test-strtoimax.c (main): Add tests for large values.
7572         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
7573
7574 2012-01-05  Bruno Haible  <bruno@clisp.org>
7575
7576         inttypes: Modernize.
7577         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
7578         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
7579         (Makefile.am): Update inttypes.h rule.
7580
7581 2012-01-05  Jim Meyering  <meyering@redhat.com>
7582
7583         init.sh: don't waste a subshell just to redirect stderr
7584         * tests/init.sh: In testing for diff -u and diff -c, use a
7585         stderr-redirecting exec inside `...` rather than a subshell.
7586
7587         test-init.sh: avoid failure on HP-UX 11.00
7588         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
7589         resolves to diff -c or cmp.  Reported by Bruno Haible.
7590
7591 2012-01-05  Bruno Haible  <bruno@clisp.org>
7592
7593         Tests for module 'strtoull'.
7594         * modules/strtoull-tests: New file.
7595         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
7596
7597 2012-01-05  Bruno Haible  <bruno@clisp.org>
7598
7599         Tests for module 'strtoll'.
7600         * modules/strtoll-tests: New file.
7601         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
7602
7603 2012-01-05  Bruno Haible  <bruno@clisp.org>
7604
7605         Tests for module 'strtoul'.
7606         * modules/strtoul-tests: New file.
7607         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
7608
7609 2012-01-05  Bruno Haible  <bruno@clisp.org>
7610
7611         Tests for module 'strtol'.
7612         * modules/strtol-tests: New file.
7613         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
7614
7615 2012-01-04  Jim Meyering  <meyering@redhat.com>
7616
7617         test-init.sh: accommodate Solaris 5.10's different diff -u output
7618         * tests/test-init.sh: Also exempt @@ lines from the comparison
7619         of diff output, since Solaris 5.10 and GNU diff formats differ.
7620         Reported by Stefano Lattarini.
7621
7622 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
7623
7624         test-posixtm: don't assume signed integer wraparound
7625         * tests/test-posixtm.c (main): Don't assume wraparound semantics
7626         after signed integer overflow.  Inspired by (though it may not
7627         fix) Bruno Haible's bug report in
7628         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
7629
7630         Spell out "Windows 9x" and "Windows XP".
7631         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
7632         "Windows 9x" and "WinXP" with "Windows XP".
7633
7634 2012-01-04  Jim Meyering  <meyering@redhat.com>
7635
7636         test-vc-list-files-cvs.sh: remove obsolete comment
7637         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
7638         double exit.  Now that's all encapsulated via skip_ and Exit.
7639
7640 2012-01-04  Bruno Haible  <bruno@clisp.org>
7641
7642         Talk about "native Windows API", not "Win32".
7643         * lib/classpath.c: Update comments to mention native Windows.
7644         * lib/csharpexec.c: Likewise.
7645         * lib/dup2.c: Likewise.
7646         * lib/error.c: Likewise.
7647         * lib/fcntl.c: Likewise.
7648         * lib/filename.h: Likewise.
7649         * lib/findprog.c: Likewise.
7650         * lib/get-rusage-as.c: Likewise.
7651         * lib/get-rusage-data.c: Likewise.
7652         * lib/getpagesize.c: Likewise.
7653         * lib/javaexec.c: Likewise.
7654         * lib/msvc-inval.c: Likewise.
7655         * lib/msvc-nothrow.c: Likewise.
7656         * lib/nanosleep.c: Likewise.
7657         * lib/nonblocking.c: Likewise.
7658         * lib/printf-parse.c: Likewise.
7659         * lib/setlocale.c: Likewise.
7660         * lib/sigaction.c: Likewise.
7661         * lib/strerror_r.c: Likewise.
7662         * lib/tmpdir.c: Likewise.
7663         * lib/vasnprintf.c: Likewise.
7664         * lib/w32spawn.h: Likewise.
7665         * lib/waitpid.c: Likewise.
7666         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
7667         * m4/locale-ar.m4: Likewise.
7668         * m4/locale-fr.m4: Likewise.
7669         * m4/locale-ja.m4: Likewise.
7670         * m4/locale-tr.m4: Likewise.
7671         * m4/locale-zh.m4: Likewise.
7672         * m4/printf.m4: Likewise.
7673         * tests/test-cloexec.c: Likewise.
7674         * tests/test-copy-acl.sh: Likewise.
7675         * tests/test-copy-file.sh: Likewise.
7676         * tests/test-file-has-acl.sh: Likewise.
7677         * tests/test-set-mode-acl.sh: Likewise.
7678         * tests/test-dup-safer.c: Likewise.
7679         * tests/test-dup2.c: Likewise.
7680         * tests/test-dup3.c: Likewise.
7681         * tests/test-fcntl.c: Likewise.
7682         * tests/test-nonblocking-pipe.h: Likewise.
7683         * tests/test-nonblocking-socket.h: Likewise.
7684         * tests/test-pipe.c: Likewise.
7685         * tests/test-pipe2.c: Likewise.
7686         * tests/test-spawn-pipe-child.c: Likewise.
7687         * doc/acl-resources.txt: Likewise.
7688         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
7689         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
7690         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
7691         * lib/localcharset.c: Update comments to mention native Windows.
7692         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
7693         * lib/localename.c: Likewise.
7694         * lib/progreloc.c: Likewise.
7695         * lib/relocatable.c: Likewise.
7696         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
7697         (windows_compute_revents): Renamed from win32_compute_revents.
7698         (windows_compute_revents_socket): Renamed from
7699         win32_compute_revents_socket.
7700         * lib/select.c: Update comments to mention native Windows.
7701         (windows_poll_handle): Renamed from win32_poll_handle.
7702         * m4/threadlib.m4: Update comments to mention native Windows.
7703         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
7704         --enable-threads=windows instead of --enable-threads=win32. Set
7705         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
7706         * lib/glthread/lock.h: Update comments to mention native Windows.
7707         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
7708         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
7709         USE_WIN32_THREADS.
7710         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
7711         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
7712         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
7713         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
7714         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
7715         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
7716         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
7717         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
7718         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
7719         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
7720         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
7721         * tests/test-tls.c: Likewise.
7722         Rationale:
7723         Microsoft renamed the "Win32 API" to "Windows API", as it is available
7724         on both 32-bit and 64-bit Windows systems.
7725         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
7726         line of distinction is between "native Windows" on one side and Unix/
7727         POSIX systems on the other side. More details in
7728         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
7729         Suggested by Paul Eggert.
7730
7731 2012-01-03  Bruno Haible  <bruno@clisp.org>
7732
7733         isatty: Support for MSVC 9.
7734         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
7735         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
7736         (_isatty_nothrow): New function.
7737         (isatty): Use it instead of _isatty.
7738         (IsConsoleHandle): Add comment, from Paolo Bonzini.
7739         * lib/poll.c (IsConsoleHandle): Likewise.
7740         * lib/select.c (IsConsoleHandle): Likewise.
7741         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
7742         (gl_PREREQ_ISATTY): New macro.
7743         * modules/isatty (Depends-on): Add msvc-inval.
7744         (configure.ac): Invoke gl_PREREQ_ISATTY.
7745
7746 2012-01-03  Jim Meyering  <meyering@redhat.com>
7747
7748         maint.mk: remove temporary transition aid from over 1.5 years ago
7749         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
7750         purpose was to aid in the transition (avoiding silent malfunction)
7751         from that old name to the new _sc_search_regexp.  This shim was
7752         added by commit 219c504b.
7753
7754         init.sh: do not try to accommodate compare arguments starting with "-"
7755         * tests/init.sh (compare_dev_null_): Do not try to accommodate
7756         compare arguments that start with "-".  Besides, we do not worry
7757         about this when invoking diff or cmp; why start now with sed?
7758         Using "--" to separate options from argument would trigger sed
7759         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
7760         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
7761
7762 2012-01-02  Bruno Haible  <bruno@clisp.org>
7763
7764         Enhance tests for module 'isatty'.
7765         * modules/isatty-tests (Depends-on): Add pipe-posix.
7766         * tests/test-isatty.c: Include <fcntl.h>.
7767         (DEV_NULL): New macro.
7768         (main): Test the resut of isatty() also on regular files, pipes, and
7769         /dev/null.
7770
7771         New module 'isatty'.
7772         * lib/unistd.in.h (isatty): New declaration.
7773         * lib/isatty.c: New file, based on an idea of
7774         Bastien Roucariès <roucaries.bastien@gmail.com>.
7775         * m4/isatty.m4: New file.
7776         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
7777         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
7778         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
7779         REPLACE_ISATTY.
7780         * modules/isatty: New file.
7781         * doc/posix-functions/isatty.texi: Mention the new module.
7782         Suggested by Paolo Bonzini.
7783
7784 2012-01-02  Bruno Haible  <bruno@clisp.org>
7785
7786         canonicalize: Tweak 2011-12-29 commit.
7787         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
7788         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
7789
7790 2012-01-02  Jim Meyering  <meyering@redhat.com>
7791
7792         gitlog-to-changelog: describe input syntax in --help output
7793         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
7794
7795         gitlog-to-changelog: fix typo in --help: show backslash before email @
7796         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
7797         in sources, but not in actual output.
7798
7799 2011-12-30  Jim Meyering  <meyering@redhat.com>
7800
7801         gitlog-to-changelog: don't malfunction when name contains %-directive
7802         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
7803         in a name string cause trouble.  E.g., with a user name of "%s",
7804         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
7805
7806 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
7807
7808         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
7809         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
7810         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
7811         the "  (tiny change)" notation that is appended to the standard
7812         ChangeLog "date  name  email" header line.
7813
7814 2012-01-01  Jim Meyering  <meyering@redhat.com>
7815
7816         test-framework-sh: init.sh: fix "make dist" failure
7817         When using gnulib-tool's --with-tests option and any module that
7818         depends on test-framework-sh, "make dist" would fail due to the
7819         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
7820         in the gltests directory, and not in the gllib/ directory.
7821         One way to work around that is to move the EXTRA_DIST += init.sh
7822         from the primary module to the -tests one:
7823         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
7824         * modules/test-framework-sh (Makefile.am): ...not here.
7825         Reported by Tom G. Christensen in
7826         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
7827
7828         version-etc: update copyright year reported by --version
7829         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
7830
7831 2011-12-31  Pádraig Brady  <P@draigBrady.com>
7832
7833         canonicalize: only stat() if required
7834         * lib/canonicalize.c (canonicalize_filename_mode):
7835         Avoid calling l?stat() when both CAN_MISSING,
7836         and CAN_NOLINKS are set, as we neither need
7837         to resolve symlinks or test component existence.
7838
7839 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
7840
7841         doc: cover st_ino issues once; add OpenVMS etc.
7842         * doc/posix-functions/stat.texi (stat):
7843         * doc/posix-functions/lstat.texi (lstat):
7844         * doc/posix-functions/fstatat.texi (fstatat):
7845         * doc/posix-functions/fstat.texi (fstat):
7846         Move general 'struct stat' stuff to sys_stat.texi,
7847         leaving behind a pointer.
7848         * doc/posix-headers/sys_stat.texi (sys/stat.h):
7849         Merge duplicate info about 'struct stat' problems into here.
7850         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
7851         and suggest partial workarounds.
7852
7853         same-inode: port to OpenVMS
7854         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
7855         three st_ino values.
7856
7857 2011-12-30  Pádraig Brady  <P@draigBrady.com>
7858
7859         canonicalize: fix references to stat() and lstat()
7860         * lib/canonicalize.c (canonicalize_filename_mode):
7861         Ensure references always resolve to a replacement
7862         function if required (even via a macro).
7863
7864 2011-12-30  Jim Meyering  <meyering@redhat.com>
7865
7866         gitlog-to-changelog: remove a little duplication
7867         * build-aux/gitlog-to-changelog (main): Grep @lines once,
7868         rather than twice.
7869
7870 2011-12-29  Pádraig Brady  <P@draigBrady.com>
7871
7872         canonicalize: add support for not resolving symlinks
7873         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
7874         indicate we don't want to follow symlinks.  Also
7875         provide CAN_MODE_MASK to aid setting these existing
7876         mutually exclusive values.
7877         * lib/canonicalize.c (canonicalize_filename_mode):
7878         Extract the flags from can_mode parameter, which
7879         are currently just used to select between stat()
7880         and lstat().  Also ensure that mutually exclusive
7881         values are flagged immediately as invalid.
7882         * tests/test-canonicalize.c: Verify symlinks are
7883         not followed, and that invalid flag combinations
7884         are diagnosed.
7885
7886 2011-12-25  Jim Meyering  <meyering@redhat.com>
7887
7888         gitlog-to-changelog: do not clump multi-paragraph entries
7889         Identical header lines (date,name,email+coauthors) are suppressed,
7890         thus putting all entries with those same characteristics under
7891         a single header.  However, when a log entry consists of two or
7892         more paragraphs, it may not be clear where it starts and ends.
7893         This change makes it so that such an entry is always separated
7894         from others by a header line, even when that header would
7895         otherwise be suppressed.
7896         * build-aux/gitlog-to-changelog: Implement the above.
7897         Inspired by a related request from Stefano Lattarini in
7898         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
7899
7900 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
7901
7902         announce-gen: fix `cmd' typo in diagnostic
7903         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
7904         diagnostic: a missing '$' meant that the command was not output.
7905
7906 2011-12-23  Jim Meyering  <meyering@redhat.com>
7907
7908         test-framework-sh: distribute init.sh
7909         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
7910         Otherwise, "make -C gnulib-tests check" (at least in grep) would
7911         fail due to the lack of init.sh.
7912
7913         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
7914         * modules/atexit-tests: Rather than listing tests/init.sh,
7915         now that there's a module for it, simply depend on that new module.
7916         * modules/closein-tests: Likewise.
7917         * modules/exclude-tests: Likewise.
7918         * modules/getcwd-tests: Likewise.
7919         * modules/perror-tests: Likewise.
7920         * modules/pread-tests: Likewise.
7921         * modules/pwrite-tests: Likewise.
7922         * modules/vc-list-files-tests: Likewise.
7923         * modules/verify-tests: Likewise.
7924         * modules/xalloc-die-tests: Likewise.
7925         * modules/xstrtoimax-tests: Likewise.
7926         * modules/xstrtol-tests: Likewise.
7927         * modules/xstrtoll-tests: Likewise.
7928         * modules/xstrtoumax-tests: Likewise.
7929         * modules/yesno-tests: Likewise.
7930
7931 2011-12-22  Jim Meyering  <meyering@redhat.com>
7932
7933         test-framework-sh: add minimal tests of init.sh's compare function
7934         * modules/test-framework-sh-tests: New file.
7935         * tests/test-init.sh: New file.
7936
7937         test-framework-sh: new module
7938         * modules/test-framework-sh: New file.
7939         * MODULES.html.sh (Support for maintaining and releasing projects):
7940         List it.
7941
7942         init.sh: do not emit simulated diff output to stderr
7943         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
7944
7945 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
7946
7947         .gitignore: ignore gnulib.dvi and regex.info
7948         * doc/.gitignore:add gnulib.dvi and regex.info
7949
7950 2011-12-22  Jim Meyering  <meyering@redhat.com>
7951
7952         init.sh: correct previous change
7953         * tests/init.sh (compare): My previous change was wrong.
7954         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
7955
7956         init.sh: avoid unwarranted test failure when using "set -e"
7957         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
7958         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
7959         a use like "compare exp out" would get evoke an unconditional failure.
7960
7961 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
7962
7963         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
7964         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
7965         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
7966         autoreconf that did not.
7967         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
7968         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
7969
7970 2011-12-17  Jim Meyering  <meyering@redhat.com>
7971
7972         bootstrap: remove some now-unneeded code
7973         This script arose back when gnulib-tool was young.
7974         Since then, it has seen improvements that render much of this
7975         script unnecessary.  In particular, it can now make symlinks
7976         to the files it uses.  Also, I no longer see as much value in
7977         marking files as read-only via comments.
7978         If you relied on the symlink-creation feature of the preceding
7979         version of this script, you can get most of that functionality
7980         by adding the --symlink option to the definition of
7981         gnulib_tool_option_extras in your bootstrap.conf file.
7982         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
7983         Run autopoint and libtoolize *before* gnulib-tool.
7984         After it, run an abbreviated autoreconf, rather than a loop around
7985         all tools.
7986         (slirp, bt_mark_as_generated): Remove functions.
7987
7988 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
7989
7990         ftoastr: fix typo
7991         * lib/ftoastr.h: Fix misspelling in comment.
7992
7993 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
7994
7995         * top/README-release: fix punctuation.
7996
7997 2011-12-17  Jim Meyering  <meyering@redhat.com>
7998
7999         bootstrap: correct the recent buildreq change
8000         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
8001         had no effect.
8002         * build-aux/bootstrap (buildreq): Bracket each search term with
8003         "*...*", so that the shell "case" statement works as intended.
8004         Add comments.
8005
8006 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
8007
8008         build: let bootstrap resort to wget when downloading .po files
8009         * build-aux/bootstrap (download_po_files): Fallback to wget when
8010         downloading the .po files via rsync fails.  This is necessary to
8011         bootstrap from behind a strict firewall.
8012
8013 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
8014
8015         stdint: don't assume C++11 when compiling with g++
8016         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
8017         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
8018         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
8019         work also in C++ before C++11, as that improperly inhibits
8020         generating a substitute stdint.h for that case.
8021
8022 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
8023
8024         alloca: protect comment from gnulib-tool
8025         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
8026         that gnulib-tool doesn't think it's a license, and munge it to
8027         say "GCC version 3".
8028
8029 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
8030
8031         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
8032         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
8033         $(abs_top_builddir) instead of $(top_builddir).
8034
8035 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
8036
8037         strftime-tests: also test nanoseconds
8038         * tests/test-strftime.c (T): Add a test of %N.
8039
8040 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
8041
8042         inttypes, stdint: add C++11 support
8043         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
8044         when including inttypes.h and stdint.h.  Support this change to
8045         the standard.
8046         * doc/posix-headers/inttypes.texi (inttypes.h):
8047         * doc/posix-headers/stdint.texi (stdint.h): Document this.
8048         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
8049         Define if not defined already, for the benefit of pre-C++11 hosts.
8050         Define the standard format macros (e.g., PRId8) always.
8051         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
8052         Likewise, if __cpluspus.  Define the standard constant and limit
8053         macros (e.g., INT8_C, INT8_MAX) always.
8054         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
8055         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
8056         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
8057         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
8058         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
8059         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
8060         Likewise.
8061
8062 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
8063
8064         nonblocking tests: Fix test failure on Linux/PPC.
8065         Suggested by Prerna Saxena in
8066         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
8067         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
8068         Set to 1100000.
8069
8070 2011-12-12  Jim Meyering  <meyering@redhat.com>
8071
8072         argmatch: don't hard-code `' when listing valid option arguments
8073         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
8074         use the quote function to add quotes.  Use fputs rather than
8075         fprintf for the format string with no format directive.
8076
8077 2011-12-07  Eric Blake  <eblake@redhat.com>
8078
8079         bootstrap: detect tools required by gnulib-tool
8080         * build-aux/bootstrap (buildreq): Provide minimum implicit
8081         dependencies.
8082         * DEPENDENCIES: Mention patch as a prereq.
8083
8084 2011-12-04  Bruno Haible  <bruno@clisp.org>
8085
8086         sethostname: Port to Windows platforms.
8087         * lib/sethostname.c: Provide an alternate implementation for Windows
8088         platforms.
8089         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
8090         (main): Skip the test if sethostname() fails with EPERM. On Windows
8091         platforms, don't check the result of gethostname().
8092
8093 2011-12-04  Bruno Haible  <bruno@clisp.org>
8094             Jim Meyering  <meyering@redhat.com>
8095
8096         tests: Avoid spurious error message on platforms without mktemp program.
8097         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
8098
8099 2011-12-04  Bruno Haible  <bruno@clisp.org>
8100
8101         sethostname: Fix documentation.
8102         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
8103         "not fixed" section.
8104
8105 2011-12-03  Bruno Haible  <bruno@clisp.org>
8106
8107         gnulib-tool: Verify that the License field is present and non-empty.
8108         * gnulib-tool (func_get_license_raw): New function, extracted from
8109         func_get_license.
8110         (func_get_license): Use it. Warn if the module is not a test module and
8111         has no license.
8112         Suggested by Jim Meyering.
8113
8114 2011-12-03  Bruno Haible  <bruno@clisp.org>
8115
8116         sethostname tests: Fix link error on mingw.
8117         * tests/test-sethostname1.c: New file, extracted from
8118         tests/test-sethostname.c.
8119         * tests/test-sethostname2.c: New file, extracted from
8120         tests/test-sethostname.c.
8121         * tests/test-sethostname.c: Remove file.
8122         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
8123         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
8124         (Depends-on): Add gethostname.
8125         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
8126         Link the latter with $(GETHOSTNAME_LIB).
8127
8128         sethostname tests: Fix compilation error on mingw.
8129         * tests/test-sethostname.c: Don't include <sys/types.h>.
8130         (geteuid): Use a dummy value without uid_t.
8131         * modules/sethostname-tests (Depends-on): Remove sys_types.
8132
8133         sethostname tests: Avoid a gcc warning.
8134         * tests/test-sethostname.c (main): Remove an unused variable.
8135
8136         Tweak last commit.
8137         * modules/sethostname-tests (Files): Sort by decreasing importance.
8138         (configure.ac): Check for geteuid.
8139         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
8140         the test when there's nothing to test. Drop an unnecessary cast.
8141         Improve an error message. Verify that the final sethostname() call
8142         succeeds.
8143
8144 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
8145
8146         Add a test suite for the sethostname module.
8147         * modules/sethostname-tests: New file.  A test program
8148         for the sethostname module.
8149         * tests/test-sethostname.c: Likewise.
8150
8151 2011-12-03  Bruno Haible  <bruno@clisp.org>
8152
8153         Tweak last commit.
8154         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
8155         Fix preprocessor directives indentation. Fix typos.
8156         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
8157         * modules/unistd (Makefile): Likewise.
8158
8159 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
8160
8161         Integrate the sethostname module into unistd.
8162         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
8163         into the unistd.h header.
8164         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
8165         preprocessor directives.
8166         * modules/unistd: Setup the Makefile substitutions of the
8167         SETHOSTNAME preprocessor directives.
8168
8169 2011-12-03  Bruno Haible  <bruno@clisp.org>
8170
8171         Tweak last commit.
8172         * lib/sethostname.c: Don't include <string.h>.
8173         (sethostname): No need to copy the argument string to the stack. Don't
8174         call clearerr. Preserve errno when fprintf failed.
8175         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
8176         Don't invoke AC_REPLACE_FUNCS.
8177         * modules/sethostname (Link): Remove empty section.
8178         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
8179         failure problem.
8180
8181 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
8182
8183         New module 'sethostname'.
8184         * lib/sethostname.c (sethostname): New file.  Provide sethostname
8185         for systems that lack it.
8186         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
8187         sethostname declaration and function.
8188         * modules/sethostname: New file.  Define the sethostname module.
8189
8190 2011-12-03  Bruno Haible  <bruno@clisp.org>
8191
8192         Tweak last commit.
8193         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
8194
8195 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
8196
8197         Split the HOST_NAME_MAX detection into a separate m4 macro.
8198         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
8199         macro so it can be used by the pending sethostname module.
8200
8201 2011-12-03  Bruno Haible  <bruno@clisp.org>
8202
8203         Fix module descriptions syntax.
8204         * modules/argv-iter (License): Fix syntax.
8205         * modules/di-set (License): Likewise.
8206         * modules/ino-map (License): Likewise.
8207         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
8208
8209 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
8210
8211         stdalign: port to Clang 3.0
8212         Problem reported by Simon Josefsson in
8213         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
8214         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
8215         which has <stdalign.h> but which does not define alignof.
8216         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
8217
8218 2011-12-01  Eric Blake  <eblake@redhat.com>
8219
8220         mktempd: silence dd usage
8221         * build-aux/mktempd (rand_bytes): Silence dd.
8222
8223 2011-11-30  Simon Josefsson  <simon@josefsson.org>
8224
8225         manywarnings: Don't mention gcc version in docstring.
8226         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
8227         Jim Meyering <meyering@redhat.com>.
8228
8229 2011-11-30  Jim Meyering  <meyering@redhat.com>
8230
8231         hash: mark a few floating point constants with "f" suffix
8232         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
8233         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
8234         floating point constants with "f", since they're destined to be
8235         saved/used as "float"s.
8236
8237 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
8238
8239         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
8240         * tests/test-float.c (test_long_double): Correct and re-enable the
8241         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
8242
8243 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
8244
8245         Avoid subtracting two pointers that don't point into the same block.
8246         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
8247         only pointers into the same memory block are subtracted. We cannot
8248         assume that sizeof (ptrdiff_t) == sizeof (void *).
8249
8250 2011-11-29  Eric Blake  <eblake@redhat.com>
8251
8252         maint.mk: add syntax check for use of compare from init.sh
8253         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
8254         moved here from coreutils.
8255
8256         manywarnings: drop -Wunsuffixed-float-constants
8257         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
8258         '1.0D', which is the only way to silence this warning for 'double'.
8259
8260 2011-11-29  Jim Meyering  <meyering@redhat.com>
8261
8262         hash: mark compute_bucket_size with the pure attribute
8263         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
8264
8265         quotearg, propername: correct pragma guard expression
8266         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
8267         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
8268
8269 2011-11-28  Jim Meyering  <meyering@redhat.com>
8270
8271         propername: do not mark proper_name with the const attribute
8272         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
8273         since it examines data pointed to by its parameter.
8274         * lib/propername.c (proper_name): Instead, add a pragma to suppress
8275         the suggestion from -Wsuggest-attribute=const.
8276
8277         propername: mark one more function as const
8278         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
8279
8280 2011-11-27  Jim Meyering  <meyering@redhat.com>
8281
8282         mark functions with const and pure attributes
8283
8284         Mark functions per suggestions from gcc-4.6 when using these options:
8285         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
8286         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
8287         Follow these guidelines: when possible, apply the attribute to
8288         an extern declaration, not to its definition.  Apply it to the
8289         definition only when the definition is static.
8290         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
8291         * lib/argv-iter.h (argv_iter_n_args): Likewise.
8292         * lib/base64.h (isbase64): Likewise.
8293         * lib/basename-lgpl.c (last_component, base_len): Likewise.
8294         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
8295         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
8296         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
8297         (c_tolower, c_toupper): Likewise.
8298         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
8299         * lib/chdir-long.c (find_non_slash): Likewise.
8300         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
8301         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
8302         * lib/file-type.h (file_type): Likewise.
8303         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
8304         * lib/filevercmp.c (verrevcmp): Likewise.
8305         * lib/freadahead.h (freadahead): Likewise.
8306         * lib/fts.c (fts_maxarglen): Likewise.
8307         * lib/hash-pjw.h (hash_pjw): Likewise.
8308         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
8309         * lib/hash.c (is_prime, next_prime): Likewise.
8310         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
8311         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
8312         (hash_table_ok, hash_get_first, hash_string): Likewise.
8313         (compute_bucket_size): Likewise.
8314         * lib/i-ring.h (i_ring_empty): Likewise.
8315         * lib/isnan.c (isnanl): Likewise.
8316         * lib/math.h (isnanl, rpl_isnanl): Likewise.
8317         * lib/memcasecmp.h (memcasecmp): Likewise.
8318         * lib/memchr2.h (memchr2): Likewise.
8319         * lib/memcmp2.h (memcmp2): Likewise.
8320         * lib/parse-datetime.y (lookup_zone): Likewise.
8321         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
8322         [!WINDOWS_SOCKETS]: Likewise.
8323         * lib/strnlen1.h (strnlen1): Likewise.
8324         * lib/uniwidth.in.h (uc_width): Likewise.
8325         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
8326         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
8327         (quoting_options_from_style): Add a comment.
8328         * lib/propername.h (proper_name): Add a comment.
8329
8330 2011-11-27  Bruno Haible  <bruno@clisp.org>
8331
8332         Remove unused macros from !_LIBC code in glibc-borrowed files.
8333         * lib/fnmatch.c (STRCOLL): Remove macro.
8334         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
8335         * lib/glob.c (__stat, __readdir64): Remove macros.
8336         * lib/tempname.c (__open64, __xstat64): Remove macros.
8337         Suggested by Paul Eggert.
8338
8339 2011-11-27  Bruno Haible  <bruno@clisp.org>
8340
8341         getcwd: Fix link error on MSVC 9.
8342         * modules/getcwd (Depends-on): Add readdir, rewinddir.
8343
8344 2011-11-27  Bruno Haible  <bruno@clisp.org>
8345
8346         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
8347         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
8348         HAVE_OPENDIR is 0.
8349         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
8350         HAVE_CLOSEDIR is 0.
8351         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
8352         is 0.
8353         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
8354
8355 2011-11-27  Bruno Haible  <bruno@clisp.org>
8356
8357         getcwd: Fix bug from 2011-08-17.
8358         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
8359         platforms that need it.
8360         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
8361         code of 4 to be a failure, not a success. This ensures that
8362         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
8363
8364 2011-11-27  Bruno Haible  <bruno@clisp.org>
8365
8366         binary-io tests: Avoid test failure on mingw when libtool is used.
8367         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
8368         Don't verify the size of t-bin-out1.tmp here.
8369         * tests/test-binary-io.sh: Verify it here.
8370         Reported by Simon Josefsson.
8371
8372 2011-11-26  Bruno Haible  <bruno@clisp.org>
8373
8374         Fix conflict between two instantiations of module 'unistd'.
8375         * gnulib-tool (func_emit_autoconf_snippet): Substitute
8376         ${include_guard_prefix} also in the autoconf snippet.
8377         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
8378         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
8379         GNULIB_UNISTD_H_GETOPT.
8380         * modules/getopt-posix (configure.ac): Set the
8381         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
8382         * modules/getopt-gnu (configure.ac): Likewise.
8383         * modules/unistd (Makefile.am): Change the substitution value of
8384         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
8385         Reported by Simon Josefsson.
8386
8387 2011-11-25  Bruno Haible  <bruno@clisp.org>
8388
8389         pagealign_alloc: Doc and comments.
8390         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
8391         module.
8392         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
8393
8394 2011-11-25  Jim Meyering  <meyering@redhat.com>
8395
8396         test-update-copyright.sh: avoid false-positive failure
8397         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
8398         around false positive failure on Cygwin/Windows.  The latter was
8399         matching erroneously-created files with names like
8400         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
8401
8402 2011-11-25  Simon Josefsson  <simon@josefsson.org>
8403
8404         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
8405         * m4/valgrind-tests.m4: Check that the parameters that will be
8406         used works, not just a subset of them.  Reported by Bruno Haible
8407         <bruno@clisp.org>.
8408
8409 2011-11-24  Jim Meyering  <meyering@redhat.com>
8410
8411         test-stdalign.c: comment out long double tests
8412         * tests/test-stdalign.c: Don't try to reduce alignment of long double
8413         variables.  That provokes errors like this from gcc-4.7.0 20111124:
8414         error: '_Alignas' specifiers cannot reduce alignment of \
8415         'static_longdouble_alignas'.
8416
8417 2011-11-22  Jim Meyering  <meyering@redhat.com>
8418
8419         init.sh: make "compare /dev/null FILE" output more readable
8420         * tests/init.sh (compare_): Document the preferred order of arguments.
8421         (emit_diff_u_header_): New function.
8422         (compare_dev_null_): Emit a simulated diff, rather than just the
8423         contents of the unexpected file.  Suggestion from Bruno Haible.
8424
8425 2011-11-21  Jim Meyering  <meyering@redhat.com>
8426             Eric Blake  <eblake@redhat.com>
8427
8428         init.sh: work around OSF/1 5.1's mishandling of /dev/null
8429         * tests/init.sh: Make our compare function slightly more portable.
8430         Reported by Bruno Haible in
8431         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
8432
8433 2011-11-21  Simon Josefsson  <simon@josefsson.org>
8434
8435         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
8436         before using it, in code that ends up in config.h.
8437
8438 2011-11-20  Bruno Haible  <bruno@clisp.org>
8439
8440         getcwd: Work around getcwd bug on AIX 5..7.
8441         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
8442         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
8443         Use a different value for gl_cv_func_getcwd_path_max. Move the
8444         definition of HAVE_PARTLY_WORKING_GETCWD from here...
8445         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
8446         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
8447         Define HAVE_MINIMALLY_WORKING_GETCWD.
8448         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
8449         where it is not even minimally working, that is, on AIX.
8450         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
8451         m4/getcwd-path-max.m4.
8452         (main): Update exit code computation.
8453         * doc/posix-functions/getcwd.texi: Mention list of platforms where
8454         getcwd does not handle long file names.
8455
8456 2011-11-20  Bruno Haible  <bruno@clisp.org>
8457
8458         getcwd: Fix bug from 2009-09-10.
8459         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
8460         like "no".
8461
8462 2011-11-20  Simon Josefsson  <simon@josefsson.org>
8463
8464         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
8465
8466 2011-11-20  Bruno Haible  <bruno@clisp.org>
8467
8468         fma tests: Avoid shadowing local variables.
8469         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
8470         expected.
8471
8472 2011-11-20  Bruno Haible  <bruno@clisp.org>
8473
8474         copysignf tests: Fix.
8475         * tests/test-copysignf.c: Fix signature check.
8476
8477 2011-11-20  Bruno Haible  <bruno@clisp.org>
8478
8479         fma: Remove unused code.
8480         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
8481         unused macros.
8482
8483 2011-11-20  Bruno Haible  <bruno@clisp.org>
8484
8485         sethostname: Fix doc about AIX.
8486         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
8487         sethostname; it has it.
8488
8489         sethostname: Mention more portability problems.
8490         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
8491         problem.
8492         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
8493
8494 2011-11-19  Bruno Haible  <bruno@clisp.org>
8495
8496         Depend on module fcntl-h when AT_FDCWD is used.
8497         * modules/utimens (Depends-on): Add fcntl-h.
8498         * modules/areadlinkat (Depends-on): Likewise.
8499         * modules/areadlinkat-with-size (Depends-on): Likewise.
8500         * modules/faccessat (Depends-on): Likewise.
8501         * modules/fchmodat (Depends-on): Likewise.
8502         * modules/fchownat (Depends-on): Likewise.
8503         * modules/getcwd (Depends-on): Likewise.
8504         * modules/mkdirat (Depends-on): Likewise.
8505         * modules/mkfifoat (Depends-on): Likewise.
8506         * modules/readlinkat (Depends-on): Likewise.
8507         * modules/symlinkat (Depends-on): Likewise.
8508         * modules/dup2-tests (Depends-on): Likewise.
8509         * modules/fdutimensat-tests (Depends-on): Likewise.
8510         * modules/futimens-tests (Depends-on): Likewise.
8511
8512 2011-11-19  Bruno Haible  <bruno@clisp.org>
8513
8514         euidaccess: Update a comment.
8515         * lib/euidaccess.c: Update comment about platforms with faccessat.
8516
8517 2011-11-19  Bruno Haible  <bruno@clisp.org>
8518
8519         openat: Fix file list.
8520         * modules/openat (Files): Remove lib/at-func.c.
8521
8522 2011-11-19  Bruno Haible  <bruno@clisp.org>
8523
8524         fstatat: Simplify.
8525         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
8526         gnulib should define rpl_fstatat, there is a
8527         "#define fstatat rpl_fstatat" in <sys/stat.h>.
8528
8529 2011-11-19  Bruno Haible  <bruno@clisp.org>
8530
8531         Ensure 'inline' can be used in tests/test-utimens-common.h.
8532         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
8533         * modules/futimens-tests (configure.ac): Likewise.
8534         * modules/utimens-tests (configure.ac): Likewise.
8535         * modules/utimensat-tests (configure.ac): Likewise.
8536
8537 2011-11-19  Simon Josefsson  <simon@josefsson.org>
8538
8539         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
8540         not hash_insert0.
8541         (hash_insert_if_absent): Doc fix.
8542
8543 2011-11-19  Simon Josefsson  <simon@josefsson.org>
8544
8545         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
8546
8547 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
8548
8549         test-getcwd: disambiguate exit status
8550         * tests/test-getcwd.c (test_long_name): Return 0..7.
8551         (main): Exit with an unambiguous exit status.  The old
8552         code yielded a mysterious mixture of two failure codes.
8553
8554         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
8555         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
8556         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
8557         rpl_fstatat or fstatat.  This should fix the other problem
8558         reported by Kai Habel in
8559         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
8560         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
8561         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
8562         and I reproduced it on a Solaris 8 host we still have in production.
8563
8564 2011-11-18  Jim Meyering  <meyering@redhat.com>
8565
8566         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
8567         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
8568         Add a sentence to the comment.
8569         (hash_insert0): New function that simply calls hash_insert_if_absent.
8570         * lib/hash.h (hash_insert_if_absent): Declare it.
8571         (hash_insert0): Add deprecation attribute.
8572         (_GL_ATTRIBUTE_DEPRECATED): Define.
8573         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
8574         not hash_insert0.
8575         * NEWS: Mention it, even though it's not really an incompatible change.
8576
8577 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
8578
8579         openat: avoid compilation failure due to lack of <errno.h> inclusion
8580         * lib/openat.c: Include <errno.h>.
8581
8582 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
8583
8584         * modules/getcwd (Depends-on): Add fdopendir.
8585         This fixes one of the two problems reported by Kai Habel in
8586         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
8587
8588         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
8589         stdalign problem reported by Ian Beckwith in
8590         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
8591         * modules/crypto/gc-arcfour (Depends-on):
8592         Depend conditionally on crypto/arcfour.
8593         * modules/crypto/gc-arctwo (Depends-on):
8594         Depend conditionally on crypto/arctwo.
8595         * modules/crypto/gc-des (Depends-on):
8596         Depend conditionally on crypto/des.
8597         * modules/crypto/gc-hmac-md5 (Depends-on):
8598         Depend conditionally on crypto/hmac-md5.
8599         * modules/crypto/gc-hmac-sha1 (Depends-on):
8600         Depend conditionally on crypto/hmac-sha1.
8601         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
8602         * modules/crypto/gc-md4 (Depends-on):
8603         Depend conditionally on crypto/md4.
8604         * modules/crypto/gc-md5 (Depends-on):
8605         Depend conditionally on crypto/md5.
8606         * modules/crypto/gc-rijndael (Depends-on):
8607         Depend conditionally on crypto/rijndael.
8608         * modules/crypto/gc-sha1 (Depends-on):
8609         Depend conditionally on crypto/sha1.
8610         * modules/crypto/gc-arcfour:
8611         * modules/crypto/gc-arctwo:
8612         * modules/crypto/gc-des:
8613         * modules/crypto/gc-hmac-md5:
8614         * modules/crypto/gc-hmac-sha1:
8615         * modules/crypto/gc-md2:
8616         * modules/crypto/gc-md4:
8617         * modules/crypto/gc-md5:
8618         * modules/crypto/gc-rijndael:
8619         * modules/crypto/gc-sha1:
8620         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
8621         now that the conditional dependencies do the work for us.
8622
8623 2011-11-17  Jim Meyering  <meyering@redhat.com>
8624
8625         tests: factor st_ctime-comparison out of two headers
8626         * tests/test-utimens-common.h (ctime_compare): Define.
8627         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
8628         * tests/test-lutimens.h (test_lutimens): Likewise.
8629         * tests/test-utimens.h (test_utimens): Likewise.
8630
8631         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
8632         Invoke the test program via an init.sh-using wrapper.
8633         * tests/test-getcwd.sh: New file.
8634         * modules/getcwd-tests (Files): Add it.
8635         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
8636
8637 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
8638
8639         gitlog-to-changelog: support multi-author commits.
8640         The FSF cares about keeping track of all authors of patches to its
8641         projects, but Git doesn't provide obvious support for multi-author
8642         changesets. Consensus seems to be forming around the use of extra
8643         Signed-off-by inspired lines in the log message formatted as
8644         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
8645         multi-author commits between version control systems.
8646         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
8647         log message and output in standard ChangeLog multi-author format.
8648         Reported by Peter Rosin <peda@lysator.liu.se>
8649
8650 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
8651             Bruno Haible  <bruno@clisp.org>
8652
8653         Fix some modules' file list.
8654         * modules/fstatat (Files): Add m4/lstat.m4.
8655         * modules/openat (Files): Likewise.
8656         * modules/unlinkat (Files): Likewise.
8657
8658 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
8659
8660         maint.mk: fix tight-scope.mk generation in VPATH builds.
8661         * top/maint.mk (tight-scope.mk): Make sure to prefix file
8662         reference with $(srcdir) so that the file is found correctly even
8663         when running `make syntax-check' in a VPATH build.
8664
8665 2011-11-13  Bruno Haible  <bruno@clisp.org>
8666             Jim Meyering  <meyering@redhat.com>
8667
8668         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
8669         * tests/init.sh (compare): Remove "No differences encountered" or
8670         synonymous output from the 'diff' program.
8671
8672 2011-11-13  Bruno Haible  <bruno@clisp.org>
8673
8674         Makefile: Tweak indentation.
8675         * Makefile: Use tab as first character in every line that contains rule
8676         commands.
8677
8678 2011-11-13  Bruno Haible  <bruno@clisp.org>
8679
8680         Syntax check for copyright statements.
8681         * check-copyright: New file.
8682         * Makefile (sc_check_copyright): New rule.
8683
8684 2011-11-13  Simon Josefsson  <simon@josefsson.org>
8685
8686         * build-aux/git-version-gen: Add --prefix to configure the tag
8687         match string.
8688
8689 2011-11-13  Simon Josefsson  <simon@josefsson.org>
8690
8691         * build-aux/git-version-gen: Add --help and --version.
8692
8693 2011-11-12  Jim Meyering  <meyering@redhat.com>
8694
8695         revamp the other test-exclude?.sh scripts to use init.sh, too
8696         * tests/test-exclude1.sh: Use init.sh.
8697         * tests/test-exclude2.sh: Likewise.
8698         * tests/test-exclude3.sh: Likewise.
8699         * tests/test-exclude4.sh: Likewise.
8700         * tests/test-exclude5.sh: Likewise.
8701         * tests/test-exclude6.sh: Likewise.
8702         * tests/test-exclude7.sh: Likewise.
8703         * tests/test-exclude8.sh: Likewise.
8704         * modules/exclude-tests (Files): List init.sh.
8705
8706         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
8707         These shell scripts ignored failure of the binary test-exclude,
8708         so making the latter return 77 didn't cause them to be skipped.
8709         * tests/test-exclude5.sh: Exit with test-exclude's error status
8710         when that program fails.  Revamp to use init.sh.
8711         * tests/test-exclude2.sh: Likewise.
8712
8713         test-exclude: fix a typo
8714         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
8715
8716 2011-11-11  Bruno Haible  <bruno@clisp.org>
8717
8718         obstack: Fix compilation error on MSVC 9.
8719         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
8720
8721 2011-11-11  Jim Meyering  <meyering@redhat.com>
8722
8723         test-exclude: skip tests rather than failing on deficient systems
8724         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
8725         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
8726         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
8727         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
8728
8729 2011-11-10  Bruno Haible  <bruno@clisp.org>
8730
8731         ptsname_r test: Avoid gcc warning on glibc systems.
8732         * tests/test-ptsname_r.c (null_ptr): New function.
8733         (test_errors): Use it.
8734
8735 2011-11-10  Bruno Haible  <bruno@clisp.org>
8736
8737         ptsname_r: Avoid compilation error on OSF/1 5.1.
8738         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
8739         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
8740         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
8741         function is not declared or incompatibly declared.
8742         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
8743         * modules/ptsname_r (Depends-on, configure.ac): Update.
8744         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
8745
8746 2011-11-10  Bruno Haible  <bruno@clisp.org>
8747
8748         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
8749         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
8750         When cross-compiling, guess yes on all platforms except AIX.
8751         Reported by Ludovic Courtès <ludo@gnu.org>.
8752
8753 2011-11-09  Bruno Haible  <bruno@clisp.org>
8754
8755         ptsname_r tests: Fix bugs.
8756         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
8757         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
8758
8759 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
8760
8761         fstatat: work with cross-compilation
8762         Problem reported by Ludovic Courtès in
8763         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
8764         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
8765         "cross-compiling" and assume the bug is present.  Replace
8766         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
8767         an inverted sense, to be more conservative about our assumptions.
8768         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
8769
8770 2011-11-09  Bruno Haible  <bruno@clisp.org>
8771
8772         Improve MODULES.html output.
8773         * modules/mkfifoat (Description): Use the word "function".
8774         * modules/readlinkat (Description): Likewise.
8775         * modules/symlinkat (Description): Likewise.
8776
8777 2011-11-09  Eric Blake  <eblake@redhat.com>
8778
8779         ptsname_r-tests: new test module
8780         * modules/ptsname_r-tests: New module.
8781         * tests/test-ptsname_r.c: New file.
8782
8783         ptsname_r: new module
8784         * modules/ptsname_r: New module.
8785         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
8786         * lib/ptsname.c (__ptsname_r): Split...
8787         * lib/ptsname_r.c: ...into new file.
8788         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
8789         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
8790         * modules/stdlib (Makefile.am): Substitute witnesses.
8791         * lib/stdlib.in.h (ptsname_r): Declare it.
8792         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
8793         * MODULES.html.sh (Misc): Likewise.
8794         * modules/ptsname (Depends-on): Alter dependency.
8795         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
8796
8797 2011-11-09  Jim Meyering  <meyering@redhat.com>
8798
8799         announce-gen: be more concise when there's only one URL+tarball
8800         * build-aux/announce-gen (get_tool_versions): When you distribute
8801         only one type of tarball, combine the first two "Here are..."
8802         sections and make the key-checking grammar independent of
8803         how many tarballs there are.
8804
8805 2011-11-09  Eric Blake  <eblake@redhat.com>
8806
8807         openpty: provide a stub on mingw
8808         * lib/pty.in.h (includes): Provide forward declarations.
8809         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
8810
8811         raise: fix mingw handling of SIGPIPE
8812         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
8813
8814 2011-11-08  Bruno Haible  <bruno@clisp.org>
8815
8816         More conditional dependencies.
8817         * modules/faccessat (Depends-on): Add conditions.
8818         * modules/fchmodat (Depends-on): Likewise.
8819         * modules/fchownat (Depends-on): Likewise.
8820         * modules/fstatat (Depends-on): Likewise.
8821         * modules/mkfifoat (Depends-on): Likewise.
8822         * modules/readlinkat (Depends-on): Likewise.
8823         * modules/symlinkat (Depends-on): Likewise.
8824         * modules/unlinkat (Depends-on): Likewise.
8825         * modules/utimensat (Depends-on): Likewise.
8826         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
8827         * modules/linkat (Depends-on): Refine the conditions.
8828         * modules/renameat (Depends-on): Likewise.
8829
8830 2011-11-08  Bruno Haible  <bruno@clisp.org>
8831
8832         faccessat: Move AC_LIBOBJ invocation to module description.
8833         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
8834         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
8835         invocation from here...
8836         * modules/faccessat (configure.ac): ... to here. Invoke
8837         gl_PREREQ_FACCESSAT.
8838
8839 2011-11-08  Bruno Haible  <bruno@clisp.org>
8840
8841         faccessat: Simplify autoconf macro.
8842         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
8843         gl_FUNC_EUIDACCESS.
8844
8845 2011-11-08  Bruno Haible  <bruno@clisp.org>
8846
8847         renameat: Fix dependencies.
8848         * modules/renameat (Depends-on): Add stdbool.
8849
8850 2011-11-08  Bruno Haible  <bruno@clisp.org>
8851
8852         mkfifoat: Fix module description.
8853         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
8854         not gl_UNISTD_MODULE_INDICATOR.
8855
8856 2011-11-08  Bruno Haible  <bruno@clisp.org>
8857
8858         fstatat: Remove unused dependency.
8859         * modules/fstatat (Depends-on): Remove fstat.
8860
8861 2011-11-08  Simon Josefsson  <simon@josefsson.org>
8862
8863         GNUmakefile: behave when Makefile is missing.
8864         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
8865
8866 2011-11-08  Bruno Haible  <bruno@clisp.org>
8867
8868         openat: Conditionalize dependencies.
8869         * lib/openat.c: Reduce the scope of some #includes.
8870         * modules/openat (Depends-on): Add conditions.
8871
8872 2011-11-07  Jim Meyering  <meyering@redhat.com>
8873
8874         maint.mk: extract GPG key ID without using a temporary file
8875         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
8876         without using a temporary file.  Based on a suggestion from Werner Koch
8877         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
8878
8879 2011-11-07  Eric Blake  <eblake@redhat.com>
8880
8881         grantpt: fix typo
8882         * lib/stdlib.in.h (grantpt): Check correct function.
8883
8884         maint.mk: silence new syntax check
8885         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
8886
8887 2011-11-06  Bruno Haible  <bruno@clisp.org>
8888
8889         Doc about floating-point and math API.
8890         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
8891         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
8892
8893 2011-11-06  Bruno Haible  <bruno@clisp.org>
8894
8895         stdalign tests: Skip the test when compiled by Sun C.
8896         * tests/test-stdalign.c (main): Skip the test on Sun C.
8897
8898 2011-11-06  Bruno Haible  <bruno@clisp.org>
8899
8900         ansi-c++-opt: Complete the 2011-06-05 change.
8901         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
8902         does not support namespaces, set the variable to "no", not to ":".
8903
8904 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
8905
8906         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
8907
8908 2011-11-06  Bruno Haible  <bruno@clisp.org>
8909
8910         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
8911         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
8912         (minus_zerol) [HP-UX]: New macro.
8913         (unary_minus) [HP-UX]: New function.
8914         (copysignl) [HP-UX]: Use unary_minus function.
8915
8916 2011-11-06  Bruno Haible  <bruno@clisp.org>
8917
8918         ldexp, ldexpf, ldexpl: Enhance tests.
8919         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
8920         and tests/test-ldexpl.c.
8921         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
8922         LDEXP, MIN_EXP, MAX_EXP): New macros.
8923         Include test-ldexp.h.
8924         (main): Just call test_function.
8925         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
8926         infinity.h, nan.h.
8927         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
8928         MAX_EXP): New macros.
8929         Include test-ldexp.h.
8930         (x, y): Remove variables.
8931         (main): Just call test_function.
8932         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
8933         infinity.h, nan.h.
8934         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
8935         MAX_EXP): New macros.
8936         Include test-ldexp.h.
8937         (x, y): Remove variables.
8938         (main): Just call test_function.
8939         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
8940         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
8941         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
8942         (Depends-on): Add isnand-nolibm, signbit, float.
8943         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
8944         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
8945         (Depends-on): Add isnanf-nolibm, signbit, float.
8946
8947 2011-11-06  Bruno Haible  <bruno@clisp.org>
8948
8949         math tests: Cosmetics.
8950         * tests/test-math-c++.cc: Reorder declarations.
8951
8952 2011-11-05  Bruno Haible  <bruno@clisp.org>
8953
8954         fma*: Simplify test.
8955         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
8956         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
8957
8958         Tests for module 'fmal'.
8959         * modules/fmal-tests: New file.
8960         * tests/test-fmal1.c: New file.
8961         * tests/test-fmal2.c: New file.
8962
8963         New module 'fmal'.
8964         * lib/math.in.h (fmal): New declaration.
8965         * lib/fmal.c: New file.
8966         * m4/fmal.m4: New file.
8967         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
8968         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
8969         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
8970         REPLACE_FMAL.
8971         * modules/fmal: New file.
8972         * doc/posix-functions/fmal.texi: Mention the new module and the various
8973         bugs.
8974
8975         Tests for module 'fmaf'.
8976         * modules/fmaf-tests: New file.
8977         * tests/test-fmaf1.c: New file.
8978         * tests/test-fmaf2.c: New file.
8979
8980         New module 'fmaf'.
8981         * lib/math.in.h (fmaf): New declaration.
8982         * lib/fmaf.c: New file.
8983         * m4/fmaf.m4: New file.
8984         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
8985         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
8986         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
8987         REPLACE_FMAF.
8988         * modules/fmaf: New file.
8989         * doc/posix-functions/fmaf.texi: Mention the new module and the various
8990         bugs.
8991
8992         Tests for module 'fma'.
8993         * modules/fma-tests: New file.
8994         * tests/test-fma1.c: New file.
8995         * tests/test-fma1.h: New file.
8996         * tests/test-fma2.c: New file.
8997         * tests/test-fma2.h: New file.
8998
8999         New module 'fma'.
9000         * lib/math.in.h (fma): New declaration.
9001         * lib/fma.c: New file.
9002         * m4/fma.m4: New file.
9003         * m4/fegetround.m4: New file.
9004         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
9005         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
9006         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
9007         REPLACE_FMA.
9008         * modules/fma: New file.
9009         * doc/posix-functions/fma.texi: Mention the new module and the various
9010         bugs.
9011
9012         Extend gl_MATHFUNC.
9013         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
9014         Support 'void' as argument type.
9015         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
9016
9017 2011-11-05  Jim Meyering  <meyering@redhat.com>
9018
9019         maint.mk: also prohibit inclusion of dirent.h without use
9020         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
9021
9022 2011-11-05  Bruno Haible  <bruno@clisp.org>
9023
9024         ldexpl tests: Avoid test failure on MSVC 9.
9025         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
9026         value. Needed in order to enforce the conversion from a value greater
9027         than LDBL_MAX to Infinity.
9028
9029 2011-11-05  Bruno Haible  <bruno@clisp.org>
9030
9031         New modules 'at-internal', 'openat-h', split off from module 'openat'.
9032         * modules/at-internal: New file, extracted from modules/openat.
9033         * modules/openat-h: New file.
9034         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
9035         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
9036         * modules/openat (Description): Add reference to POSIX function.
9037         (Files): Remove lib/openat.h, lib/openat-proc.c.
9038         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
9039         intprops, unistd.
9040         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
9041         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
9042         gl_FCNTL_MODULE_INDICATOR.
9043         (Include): Remove unistd.h, openat.h.
9044         * modules/areadlinkat (Files): Add lib/at-func.c.
9045         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
9046         openat-die, openat-h, save-cwd.
9047         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
9048         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
9049         openat-die, openat-h, save-cwd, unistd.
9050         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
9051         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
9052         openat-h, save-cwd. Remove fcntl-h, openat.
9053         * modules/fchmodat (Files): Remove lib/openat.h.
9054         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
9055         openat, stdbool, unistd.
9056         * modules/fchownat (Files): Remove lib/openat.h.
9057         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
9058         openat, stdbool, sys_stat.
9059         * modules/fdopendir (Files): Remove lib/openat-priv.h,
9060         lib/openat-proc.c.
9061         (Depends-on): Add at-internal.
9062         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
9063         * modules/fstatat (Files): Remove lib/openat.h.
9064         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
9065         stdbool, unistd.
9066         * modules/fts (Depends-on): Add openat-h.
9067         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
9068         openat.
9069         * modules/mkdirat (Files): Remove lib/openat.h.
9070         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
9071         openat, stdbool, sys_stat.
9072         * modules/mkfifoat (Files): Add lib/at-func.c.
9073         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
9074         openat-h, save-cwd. Remove fcntl-h, openat.
9075         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
9076         * modules/readlinkat (Files): Add lib/at-func.c.
9077         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
9078         openat-h, save-cwd. Remove fcntl-h, openat.
9079         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
9080         openat.
9081         * modules/selinux-at (Files): Add lib/at-func.c.
9082         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
9083         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
9084         * modules/symlinkat (Files): Add lib/at-func.c.
9085         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
9086         openat-h, save-cwd. Remove fcntl-h, openat.
9087         * modules/unlinkat (Files): Remove lib/openat.h.
9088         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
9089         stdbool.
9090         * modules/utimensat (Files): Add lib/at-func.c.
9091         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
9092         openat-die, openat-h, save-cwd.
9093         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
9094         * modules/fdutimensat-tests (Depends-on): Add openat.
9095         * modules/fstatat-tests (Depends-on): Add openat-h.
9096         * modules/readlinkat-tests (Depends-on): Add openat.
9097         * modules/symlinkat-tests (Depends-on): Add openat.
9098
9099 2011-11-05  Bruno Haible  <bruno@clisp.org>
9100
9101         openat: Include <stdbool.h>.
9102         * lib/openat.c: Include <stdbool.h>.
9103
9104 2011-11-04  Bruno Haible  <bruno@clisp.org>
9105
9106         fchownat, renameat, unlinkat: Fix dependencies.
9107         * modules/fchownat (Depends-on): Add fstatat.
9108         * modules/renameat (Depends-on): Likewise.
9109         * modules/unlinkat (Depends-on): Likewise.
9110
9111 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
9112
9113         openat: remove direct dependency on dirent
9114         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
9115         and hasn't been needed ever since fdopendir was split into its own
9116         module on 2009-08-31.
9117         * modules/openat (Depends-on): Remove dirent.
9118
9119 2011-11-04  Bruno Haible  <bruno@clisp.org>
9120
9121         renameat: Optimize code size.
9122         * modules/renameat (configure.ac): Don't compile at-func2.c if
9123         REPLACE_RENAMEAT is 1.
9124
9125 2011-11-04  Bruno Haible  <bruno@clisp.org>
9126
9127         openat tests: Fix file list.
9128         * modules/openat-tests (Files): Add tests/test-open.h.
9129
9130 2011-11-04  Bruno Haible  <bruno@clisp.org>
9131
9132         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
9133         * modules/fchmodat (Depends-on): Add openat-die.
9134         * modules/fchownat (Depends-on): Likewise.
9135         * modules/linkat (Depends-on): Likewise.
9136         * modules/renameat (Depends-on): Likewise.
9137         * modules/openat (Depends-on): Add dirent.
9138
9139 2011-11-04  Jim Meyering  <meyering@redhat.com>
9140
9141         at-func*.c: fix comments
9142         * lib/at-func2.c: Correct/improve first-line comment.
9143         * lib/at-func.c: Correct grammar in first-line comment.
9144
9145 2011-11-04  Bruno Haible  <bruno@clisp.org>
9146
9147         New module 'mkdirat', split off from module 'openat'.
9148         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
9149         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
9150         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
9151         * modules/mkdirat: New file, extracted from modules/openat.
9152         * modules/openat (Files): Remove lib/mkdirat.c.
9153         (Depends-on): Remove mkdir.
9154         (configure.ac): Remove AC_LIBOBJ of mkdirat.
9155         (Include): Remove <sys/stat.h>.
9156         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
9157         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
9158         tests/test-mkdir.h.
9159         (Depends-on): Remove ignore-value.
9160         (Makefile.am): Remove rules for test-mkdirat.
9161         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
9162         of module 'openat'.
9163         * NEWS: Mention the change.
9164
9165 2011-11-04  Bruno Haible  <bruno@clisp.org>
9166
9167         closedir: Avoid warning on mingw.
9168         * lib/closedir.c: Include <unistd.h>.
9169
9170 2011-11-04  Bruno Haible  <bruno@clisp.org>
9171
9172         New module 'fstatat', split off from module 'openat'.
9173         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
9174         defined.
9175         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
9176         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
9177         gl_FUNC_FSTATAT.
9178         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
9179         * modules/fstatat: New file, extracted from modules/openat.
9180         * modules/openat (Files): Remove lib/fstatat.c.
9181         (Depends-on): Remove lstat.
9182         (configure.ac): Remove AC_LIBOBJ of fstatat.
9183         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
9184         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
9185         tests/test-lstat.h, tests/test-stat.h.
9186         (Depends-on): Remove getcwd-lgpl.
9187         (Makefile.am): Remove rules for test-fstatat.
9188         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
9189         of module 'openat'.
9190         * NEWS: Mention the change.
9191         * modules/getcwd (Depends-on): Add fstatat.
9192         * modules/linkat (Depends-on): Likewise.
9193         * modules/mkfifoat-tests (Depends-on): Likewise.
9194         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
9195
9196 2011-11-03  Bruno Haible  <bruno@clisp.org>
9197
9198         New module 'unlinkat', split off from module 'openat'.
9199         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
9200         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
9201         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
9202         * modules/unlinkat: New file, extracted from modules/openat. Correct
9203         the dependency conditions.
9204         * modules/openat (Files): Remove lib/unlinkat.c.
9205         (Depends-on): Remove rmdir, unlink.
9206         (configure.ac): Remove AC_LIBOBJ of unlinkat.
9207         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
9208         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
9209         tests/test-rmdir.h, tests/test-unlink.h.
9210         (Depends-on): Remove unlinkdir.
9211         (Makefile.am): Remove rules for test-unlinkat.
9212         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
9213         of module 'openat'.
9214         * NEWS: Mention the change.
9215         * modules/linkat-tests (Depends-on): Add unlinkat.
9216         * modules/mkfifoat-tests (Depends-on): Likewise.
9217         * modules/readlinkat-tests (Depends-on): Likewise.
9218
9219 2011-11-02  Bruno Haible  <bruno@clisp.org>
9220
9221         New module 'fchmodat', split off from module 'openat'.
9222         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
9223         defined.
9224         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
9225         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
9226         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
9227         * modules/fchmodat: New file, extracted from modules/openat.
9228         * modules/openat (Files): Remove lib/fchmodat.c.
9229         (configure.ac): Remove AC_LIBOBJ of fchmodat.
9230         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
9231         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
9232         (Makefile.am): Remove rules for test-fchmodat.
9233         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
9234         of module 'openat'.
9235         * NEWS: Mention the change.
9236
9237 2011-11-02  Jim Meyering  <meyering@redhat.com>
9238
9239         putenv: indent #definition of "environ" to placate cppi
9240         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
9241
9242         gitlog-to-changelog: provide a ChangeLog-repair mechanism
9243         Git logs are often treated as immutable, because editing them
9244         changes the SHA1 checksums of all descendants.  Thus, errors in
9245         git logs tend to stay there forever.  However, when we generate
9246         a ChangeLog file -- typically for distribution -- from that git log,
9247         we can actually make corrections in the generated file.  The key
9248         lies in recording in machine-readable/applicable form the desired
9249         corrections.  See --help for description and an example.
9250         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
9251         (usage): Describe it; alphabetize option descriptions.
9252         (main): Honor the new option, carefully.
9253
9254 2011-11-01  Jim Meyering  <meyering@redhat.com>
9255
9256         gitlog-to-changelog: avoid an infloop
9257         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
9258         that ends up being empty.
9259
9260 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
9261
9262         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
9263         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
9264         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
9265         contains (possibly-quoted) backslashes.  This should avoid
9266         all-too-common shell bugs if COMPLICATED contains backslashes in
9267         the "wrong" places.  Reported by David Evans in
9268         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
9269         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
9270         because we want ASCII ranges.  Is there some reason we don't use
9271         the C locale everywhere in this script?
9272         (func_module, top level): Avoid unwanted pathname expansion when
9273         $repo_url_prefix or $repo_url_suffix_repl contain shell
9274         metacharacters like '?' and '*'.
9275
9276 2011-11-01  Bruno Haible  <bruno@clisp.org>
9277
9278         fchownat: Improve description.
9279         * modules/fchownat (Description): Add link to function.
9280
9281 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
9282
9283         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
9284         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
9285         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
9286         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
9287
9288 2011-11-01  Bruno Haible  <bruno@clisp.org>
9289
9290         alignof: Avoid collision with stdalign module.
9291         * lib/alignof.h (alignof): Remove macro.
9292         * NEWS: Mention the change.
9293         Reported by Paul Eggert.
9294
9295 2011-11-01  Bruno Haible  <bruno@clisp.org>
9296
9297         New module 'fchownat', split off from module 'openat'.
9298         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
9299         defined.
9300         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
9301         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
9302         invoke gl_FUNC_FCHOWNAT.
9303         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
9304         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
9305         * modules/fchownat: New file, extracted from modules/openat.
9306         * modules/openat (Files): Remove lib/fchownat.c.
9307         (Depends-on): Remove lchown.
9308         (configure.ac): Remove AC_LIBOBJ of fchownat.
9309         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
9310         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
9311         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
9312         (Depends-on): Remove mgetgroups, usleep, stat-time.
9313         (configure.ac): Remove test for getegid.
9314         (Makefile.am): Remove rules for test-fchownat.
9315         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
9316         of module 'openat'.
9317         * NEWS: Mention the change.
9318
9319 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
9320
9321         stdalign: port better to MSVC and to Sun C 5.11
9322         This fixes some of the problems reported by Bruno Haible in
9323         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
9324         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
9325         shortcomings of MSVC and of Sun C 5.11.
9326         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
9327         around __declspec arg.
9328         * modules/stdalign-tests (Files): Add tests/macros.h.
9329         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
9330         Include macros.h, for ASSERT.
9331         (DECLARE_ALIGNED): Remove.
9332         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
9333         to catch bug), and to 1 if not (simplifies the rest of the code).
9334         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
9335         (CHECK_AUTO): Remove.
9336         (CHECK_ALIGNED): Check only the alignment of the static vars,
9337         since auto var alignment isn't supported by Sun C 5.11.
9338         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
9339         ASSERT failures are easier to diagnose.
9340
9341 2011-10-31  Bruno Haible  <bruno@clisp.org>
9342
9343         doc about some IRIX 5.3 problems.
9344         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
9345         on IRIX 5.3.
9346         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
9347         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
9348         5.3.
9349         * doc/posix-functions/grantpt.texi: Likewise.
9350         * doc/posix-functions/unlockpt.texi: Likewise.
9351         * doc/posix-functions/lgamma.texi: Likewise.
9352         * doc/posix-functions/nextafter.texi: Likewise.
9353         * doc/posix-functions/remainder.texi: Likewise.
9354         * doc/posix-functions/select.texi: Mention misplaced declaration on
9355         IRIX 5.3.
9356         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9357
9358 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
9359
9360         gitlog-to-changelog: fix git-log invocation.
9361         git-log mishandles date strings before 1970-01-01 UTC, and there is
9362         no use to specify --since=1970-01-01 by default anyway.
9363         * build-aux/gitlog-to-changelog: By default, when no --since option
9364         was given, do not specify explicit --since option to git-log.
9365
9366 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
9367
9368         gitlog-to-changelog: new option --append-dot.
9369         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
9370         first non-blank line of each commit message terminated with a dot.
9371
9372 2011-10-30  Bruno Haible  <bruno@clisp.org>
9373
9374         ffsl, ffsll: Avoid compilation error due to 'restrict'.
9375         * lib/ffsl.h: Include <config.h>.
9376         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
9377
9378 2011-10-30  Jim Meyering  <meyering@redhat.com>
9379
9380         GNUmakefile: reenable "make syntax-check" for most projects
9381         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
9382         build-aux variable", "syntax-check" would do nothing but succeed with
9383         the "No version control files detected..." diagnostic (unless you
9384         happened to override _build-aux via cfg.mk).
9385         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
9386         to precede inclusion of maint.mk.  Otherwise, these variables would
9387         be used undefined in any project that does not override the default.
9388
9389 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
9390
9391         gitlog-to-changelog: treat a message with only blank lines as empty.
9392         * build-aux/gitlog-to-changelog: Move the code that removes leading and
9393         trailing blank lines before the code that issues a warning about an
9394         empty commit message.
9395
9396 2011-10-30  Jim Meyering  <meyering@redhat.com>
9397
9398         test-parse-datetime.c: avoid new DST-related false positive test failure
9399         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
9400         based on the time/date we'll convert, not the current time.
9401         Otherwise, the moment we cross a DST boundary like today's in
9402         Europe, (CEST to CET), that offset ends up being one hour off.
9403
9404 2011-10-27  Bruno Haible  <bruno@clisp.org>
9405
9406         fstat: Tweak documentation.
9407         * modules/fstat (Description): More precise description.
9408
9409 2011-10-27  Bruno Haible  <bruno@clisp.org>
9410
9411         Update documentation regarding 'largefile' module.
9412         * doc/posix-functions/fstat.texi: Tweak wording.
9413         * doc/posix-functions/opendir.texi: Mention that the module fixes the
9414         problems with huge directories and/or small ino_t types.
9415         * doc/posix-functions/readdir.texi: Likewise.
9416         * doc/posix-functions/rewinddir.texi: Likewise.
9417
9418 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
9419
9420         maint.mk: don't maintain a second build-aux variable.
9421         * maint.mk (build_aux): Removed.  The maintainer-makefile module
9422         depends on GNUmakefile, which already maintains a cfg.mk
9423         overridable $(_build-aux) for projects with a non-standard
9424         build-aux directory location, although without the $(srcdir)
9425         prefix.  Use that variable consistently instead of introducing a
9426         second one.  Adjust all call sites.
9427
9428 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
9429
9430         Add stdalign module and use it in other modules.
9431         This is based on a previous proposal by Bruno Haible
9432         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
9433
9434         stdalign: new module
9435         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
9436         * modules/stdalign: New files.
9437         * MODULES.html.sh (c1x_core_properties): Add stdalign.
9438         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
9439
9440         stdalign-tests: new module
9441         * modules/stdalign-tests, tests/test-stdalign.c: New files.
9442
9443         argp: use stdalign
9444         * lib/argp-parse.c: Include <stdalign.h>.
9445         (alignof): Remove.
9446         * modules/argp (Depends-on): Add stdalign.
9447
9448         crypto libraries: use stdalign
9449         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
9450         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
9451         Do not include <stdlib.h> twice, in md4.c.
9452         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
9453         because we are accessing a pointer's bit-pattern, not a size.
9454         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
9455         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
9456         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
9457         * modules/crypto/sha512: Likewise.
9458
9459         sys_socket: use stdalign, not alignof
9460         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
9461         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
9462
9463 2011-10-27  Bruno Haible  <bruno@clisp.org>
9464
9465         raise test: Avoid a test failure on Linux/MIPS.
9466         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
9467         because 99 is a valid signal on Linux/MIPS.
9468
9469 2011-10-27  Bruno Haible  <bruno@clisp.org>
9470
9471         nonblocking tests: Fix test failure on Linux/MIPS.
9472         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
9473         Set to 270000.
9474
9475 2011-10-27  Bruno Haible  <bruno@clisp.org>
9476
9477         utimensat: Work around problem on Linux/hppa.
9478         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
9479         values.
9480         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
9481
9482 2011-10-25  Jim Meyering  <meyering@redhat.com>
9483
9484         maint.mk: fix a bug in sc_prohibit_stddef_without_use
9485         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
9486         after symbols like NULL, size_t, etc.
9487         Reported by Alfred M. Szmidt.
9488
9489         maint.mk: exempt ENODATA from a syntax-check rule
9490         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
9491         from the sc_prohibit_always-defined_macros syntax-check rule.
9492         Add a comment.  See this for more details:
9493         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
9494
9495 2011-10-23  Jim Meyering  <meyering@redhat.com>
9496
9497         fts: close parent dir FD before returning from post-traversal fts_read
9498         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
9499         unlink A, even though an FD open on A remained.  This is suboptimal
9500         (holding a file descriptor open longer than needed), but otherwise not
9501         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
9502         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
9503         that represents a real problem: it causes the removal of A to fail
9504         with e.g., "rm: cannot remove `A': Device or resource busy"
9505
9506         fts visits each directory twice and keeps a cache (fts_fd_ring) of
9507         directory file descriptors.  After completing the final, FTS_DP,
9508         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
9509         cache, but then proceeded to add a new FD to it via the subsequent
9510         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
9511         final file descriptor would be closed only via fts_close's call to
9512         fd_ring_clear.  Now, it is usually closed earlier, via the final
9513         FTS_DP-returning fts_read call.
9514         * lib/fts.c (restore_initial_cwd): New function, converted from
9515         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
9516         Update callers.
9517         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
9518         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
9519
9520 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
9521             Bruno Haible  <bruno@clisp.org>
9522             Jim Meyering  <jim@meyering.net>
9523
9524         readme-release: improve safety of release prep instructions.
9525         * README-release: Don't git pull all branches when only master
9526         is needed for the release process.
9527         Run make maintainer-clean before changing trees and merging.
9528         Don't try to run ./configure right after git pull in case files
9529         that influence the bootstrap process have changed, move the
9530         ./configure step to after running ./bootstrap.
9531         Don't bootstrap "one last time"... it's the first time!
9532
9533 2011-10-22  Bruno Haible  <bruno@clisp.org>
9534
9535         errno, strerror-override: Support for MSVC 10.
9536         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
9537         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
9538         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
9539         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
9540         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
9541         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
9542         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
9543         Assign values compatible with MSVC 10.
9544         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
9545         New macros.
9546         (GNULIB_defined_EWINSOCK): New macro.
9547         * lib/strerror-override.c (strerror_override): Update accordingly.
9548         * lib/strerror-override.h: Likewise.
9549         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
9550         longer equal to the corresponding errno value.
9551         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
9552
9553 2011-10-22  Bruno Haible  <bruno@clisp.org>
9554
9555         perror: Recognize when test program crashes.
9556         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
9557         strerror, set gl_cv_func_perror_works to no.
9558         Reported by Daniel Richard G. <skunk@iskunk.org>.
9559
9560         perror: Fix indentation.
9561         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
9562
9563 2011-10-22  Bruno Haible  <bruno@clisp.org>
9564
9565         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
9566         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
9567         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
9568         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
9569         functions, not as a macro.
9570         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
9571         macros.
9572         (isfinite, isinf, isnan, signbit): Check overloaded functions and
9573         absence of macro.
9574         Suggested by Eric Blake.
9575         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
9576
9577 2011-10-21  Bruno Haible  <bruno@clisp.org>
9578
9579         relocatable-prog-wrapper: Don't leave object files behind.
9580         * build-aux/install-reloc: Re-synchronize list of .o files to be
9581         removed with list of compilation units.
9582
9583 2011-10-20  Bruno Haible  <bruno@clisp.org>
9584
9585         openpty, posix_openpt: Remove code duplication.
9586         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
9587         * lib/openpty.c: Include <stdlib.h>.
9588         (openpty): Use posix_openpt on all platforms except IRIX.
9589         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
9590
9591 2011-10-20  Bruno Haible  <bruno@clisp.org>
9592
9593         unlockpt: Detect invalid argument.
9594         * lib/unlockpt.c: Include <fcntl.h>.
9595         (unlockpt): Check whether fd is valid, using fcntl().
9596         * modules/unlockpt (Depends-on): Add fcntl-h.
9597
9598 2011-10-20  Bruno Haible  <bruno@clisp.org>
9599
9600         openpty: Avoid compilation error on AIX 6.1.
9601         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
9602
9603 2011-10-20  Bruno Haible  <bruno@clisp.org>
9604
9605         posix_openpt: Support for OpenBSD.
9606         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
9607         (posix_openpt) [OpenBSD]: New code.
9608         * lib/grantpt.c: Include <fcntl.h>.
9609         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
9610         * modules/grantpt (Depends-on): Add fcntl-h.
9611
9612 2011-10-20  Bruno Haible  <bruno@clisp.org>
9613
9614         posix_openpt test: Coding style.
9615         * tests/test-posix_openpt.c: Use GNU coding style.
9616
9617 2011-10-20  Bruno Haible  <bruno@clisp.org>
9618
9619         grantpt: Support --avoid=pt_chown.
9620         * modules/grantpt (Files): Add lib/pty-private.h.
9621
9622 2011-10-20  Bruno Haible  <bruno@clisp.org>
9623
9624         posix_openpt: Fix autoconf macro.
9625         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
9626         unneeded check for _getpty.
9627
9628 2011-10-20  Bruno Haible  <bruno@clisp.org>
9629
9630         openpty: Update comments.
9631         * lib/openpty.c: Add comments about Minix.
9632
9633 2011-10-19  Eric Blake  <eblake@redhat.com>
9634
9635         openpty: relax license
9636         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
9637
9638         pt_chown: use configmake to simplify build
9639         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
9640
9641         ptsname and others: relax license
9642         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
9643         * modules/unlockpt (License): Likewise.
9644         * modules/pt_chown (License): Likewise.
9645         * modules/ptsname (License): Likewise.
9646         * modules/ttyname_r (License): Likewise.
9647
9648 2011-10-19  Jim Meyering  <meyering@redhat.com>
9649
9650         posix_openpt: remove spurious #endif
9651         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
9652
9653 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
9654
9655         maint.mk: Respect $(build_aux) in web-manual rule.
9656         * top/maint.mk (web-manual): Find gen-announce script in user's
9657         $(build_aux) directory instead of hard-coding 'build-aux'.
9658
9659 2011-10-19  Bruno Haible  <bruno@clisp.org>
9660
9661         posix_openpt: Fix compilation error.
9662         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
9663         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
9664         Mention the openpty module as an alternative.
9665
9666 2011-10-19  Bruno Haible  <bruno@clisp.org>
9667
9668         Support for old NeXTstep 3.3 frexp().
9669         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
9670         execution time of the test to 5 seconds.
9671         Reported by Daniel Richard G. <skunk@iskunk.org>.
9672
9673 2011-10-19  Bruno Haible  <bruno@clisp.org>
9674
9675         Support for old NeXTstep 3.3 sed.
9676         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
9677         part, use /.../, not \|...|. Escape periods in the header file name.
9678         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
9679         Reported by Daniel Richard G. <skunk@iskunk.org>.
9680
9681 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
9682
9683         Support for old NeXTstep 3.3 gcc.
9684         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
9685         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
9686         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
9687         * lib/spawn.in.h (_Restrict_arr_): Likewise.
9688         * lib/regex.h (_Restrict_arr_): Likewise.
9689         * lib/regex_internal.h (re_token_t): Likewise.
9690         * lib/regexec.c (check_node_accept_bytes): Likewise.
9691         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
9692
9693 2011-10-18  Eric Blake  <eblake@redhat.com>
9694
9695         posix_openpt: new module
9696         * modules/posix_openpt: New module.
9697         * m4/posix_openpt.m4: New file.
9698         * lib/posix_openpt.c: Likewise.
9699         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
9700         (gl_STDLIB_H_DEFAULTS): Set defaults.
9701         * modules/stdlib (Makefile.am): Substitute macros.
9702         * lib/stdlib.in.h (posix_openpt): Declare.
9703         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
9704         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
9705         * modules/posix_openpt-tests: New test module.
9706         * tests/test-posix_openpt.c: New test.
9707
9708 2011-10-15  Bruno Haible  <bruno@clisp.org>
9709
9710         xstrtoll: Fix compilation failure.
9711         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
9712         from lib/strtol.c.
9713         * doc/posix-headers/limits.texi: Mention missing numerical limits on
9714         some platforms.
9715         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9716
9717 2011-10-15  Bruno Haible  <bruno@clisp.org>
9718
9719         vasnprintf: Optimize bit search operation.
9720         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
9721         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
9722         gl_DOUBLE_EXPONENT_LOCATION.
9723         * modules/vasnprintf (Files): Add m4/exponentd.m4.
9724         * modules/unistdio/u8-vasnprintf (Files): Likewise.
9725         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
9726         * modules/unistdio/u16-vasnprintf (Files): Likewise.
9727         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
9728         * modules/unistdio/u32-vasnprintf (Files): Likewise.
9729         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
9730         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
9731         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
9732
9733 2011-10-15  Bruno Haible  <bruno@clisp.org>
9734
9735         vasnprintf: Fix comments.
9736         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
9737
9738 2011-10-14  Bruno Haible  <bruno@clisp.org>
9739
9740         Tests for module 'integer_length_ll'.
9741         * modules/integer_length_ll-tests: New file.
9742         * tests/test-integer_length_ll.c: New file.
9743
9744         New module 'integer_length_ll'.
9745         * lib/integer_length_ll.c: New file.
9746         * modules/integer_length_ll: New file.
9747
9748 2011-10-14  Bruno Haible  <bruno@clisp.org>
9749
9750         Tests for module 'integer_length_l'.
9751         * modules/integer_length_l-tests: New file.
9752         * tests/test-integer_length_l.c: New file.
9753
9754         New module 'integer_length_l'.
9755         * lib/integer_length_l.c: New file.
9756         * modules/integer_length_l: New file.
9757
9758 2011-10-14  Bruno Haible  <bruno@clisp.org>
9759
9760         Tests for module 'integer_length'.
9761         * modules/integer_length-tests: New file.
9762         * tests/test-integer_length.c: New file.
9763
9764         New module 'integer_length'.
9765         * lib/integer_length.h: New file.
9766         * lib/integer_length.c: New file.
9767         * modules/integer_length: New file.
9768
9769 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
9770
9771         popen: Fix dependency conditions.
9772         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
9773
9774 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
9775
9776         perror: Fix autoconf test.
9777         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
9778         <stdlib.h> and <string.h>.
9779
9780 2011-10-14  Bruno Haible  <bruno@clisp.org>
9781
9782         ffsl: Optimize on 64-bit platforms.
9783         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
9784         unrolling.
9785
9786 2011-10-13  Bruno Haible  <bruno@clisp.org>
9787
9788         ffsl: Optimize on 32-bit platforms.
9789         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
9790         use ffs() without a loop.
9791
9792         ffsl, ffsll: Optimize for GCC.
9793         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
9794         * lib/ffsl.c (GCC_BUILTIN): New macro.
9795         * lib/ffsll.c (GCC_BUILTIN): Likewise.
9796
9797 2011-10-13  Bruno Haible  <bruno@clisp.org>
9798
9799         ffs, bcopy, memset: Support symbol renaming via config.h.
9800         * lib/ffs.c: Include <config.h>.
9801         * lib/bcopy.c: Likewise.
9802         * lib/memset.c: Likewise.
9803
9804 2011-10-10  Bruno Haible  <bruno@clisp.org>
9805
9806         atanl: Simplify for platforms where 'long double' == 'double'.
9807         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
9808         alternative implementation.
9809         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9810         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9811         * modules/atanl (Depends-on): Add atan. Update conditions.
9812
9813 2011-10-10  Bruno Haible  <bruno@clisp.org>
9814
9815         acosl: Simplify for platforms where 'long double' == 'double'.
9816         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
9817         alternative implementation.
9818         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9819         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9820         * modules/acosl (Depends-on): Add acos. Update conditions.
9821
9822 2011-10-10  Bruno Haible  <bruno@clisp.org>
9823
9824         asinl: Simplify for platforms where 'long double' == 'double'.
9825         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
9826         alternative implementation.
9827         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9828         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9829         * modules/asinl (Depends-on): Add asin. Update conditions.
9830
9831 2011-10-10  Bruno Haible  <bruno@clisp.org>
9832
9833         tanl: Simplify for platforms where 'long double' == 'double'.
9834         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
9835         implementation.
9836         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9837         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9838         * modules/tanl (Depends-on): Add tan. Update conditions.
9839         (configure.ac): Don't compile trigl.c if
9840         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9841
9842 2011-10-10  Bruno Haible  <bruno@clisp.org>
9843
9844         cosl: Simplify for platforms where 'long double' == 'double'.
9845         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
9846         implementation.
9847         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9848         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9849         * modules/cosl (Depends-on): Add cos. Update conditions.
9850         (configure.ac): Don't compile sincosl.c and trigl.c if
9851         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9852
9853 2011-10-10  Bruno Haible  <bruno@clisp.org>
9854
9855         sinl: Simplify for platforms where 'long double' == 'double'.
9856         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
9857         implementation.
9858         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9859         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9860         * modules/sinl (Depends-on): Add sin. Update conditions.
9861         (configure.ac): Don't compile sincosl.c and trigl.c if
9862         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9863
9864 2011-10-10  Bruno Haible  <bruno@clisp.org>
9865
9866         logl: Simplify for platforms where 'long double' == 'double'.
9867         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
9868         implementation.
9869         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9870         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9871         * modules/logl (Depends-on): Add log. Update conditions.
9872
9873 2011-10-10  Bruno Haible  <bruno@clisp.org>
9874
9875         expl: Simplify for platforms where 'long double' == 'double'.
9876         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
9877         implementation.
9878         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9879         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9880         * modules/expl (Depends-on): Add exp. Update conditions.
9881
9882 2011-10-10  Bruno Haible  <bruno@clisp.org>
9883
9884         sqrtl: Simplify for platforms where 'long double' == 'double'.
9885         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
9886         alternative implementation.
9887         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9888         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9889         * modules/sqrtl (Depends-on): Update conditions.
9890
9891 2011-10-10  Bruno Haible  <bruno@clisp.org>
9892
9893         ldexpl: Simplify for platforms where 'long double' == 'double'.
9894         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
9895         alternative implementation.
9896         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9897         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9898         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
9899
9900 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
9901
9902         ffsll: set correct witness
9903         * modules/ffsll (configure.ac): Fix typo.
9904
9905 2011-10-10  Bruno Haible  <bruno@clisp.org>
9906
9907         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
9908         * lib/printf-frexpl.c: Include <config.h>.
9909         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
9910         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
9911         second time.
9912         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
9913         gl_LONG_DOUBLE_VS_DOUBLE.
9914         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
9915         conditions.
9916
9917 2011-10-10  Bruno Haible  <bruno@clisp.org>
9918
9919         frexpl: Simplify for platforms where 'long double' == 'double'.
9920         * lib/frexpl.c: Include <config.h>.
9921         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
9922         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
9923         time.
9924         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9925         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9926         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
9927         * modules/frexpl (Depends-on): Add frexp. Update conditions.
9928         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
9929         conditions.
9930
9931 2011-10-10  Jim Meyering  <meyering@redhat.com>
9932
9933         test-renameat: don't leave behind a temporary file
9934         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
9935           ERROR: files left in build directory after distclean:
9936           ./gltests/test-renameat.too
9937           make[1]: *** [distcleancheck] Error 1
9938         Reported by Tom G. Christensen.
9939
9940 2011-10-09  Bruno Haible  <bruno@clisp.org>
9941
9942         rint: Determine RINT_LIBM correctly on AIX 7.
9943         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
9944         directly, not only through a function pointer. Also accept an optional
9945         4th argument with extra code.
9946         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
9947         rintf() call by gcc when optimizing.
9948
9949         mathfunc.m4: Refactor.
9950         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
9951         m4 variable.
9952
9953 2011-10-09  Bruno Haible  <bruno@clisp.org>
9954
9955         rintl: Simplify for platforms where 'long double' == 'double'.
9956         * lib/rintl.c: Include <config.h>.
9957         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
9958         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
9959         time.
9960         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9961         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9962         * modules/rintl (Depends-on): Add rint. Update conditions.
9963
9964 2011-10-09  Bruno Haible  <bruno@clisp.org>
9965
9966         roundl: Simplify for platforms where 'long double' == 'double'.
9967         * lib/roundl.c: Include <config.h>.
9968         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
9969         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
9970         time.
9971         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9972         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9973         * modules/roundl (Depends-on): Add round. Update conditions.
9974
9975 2011-10-09  Bruno Haible  <bruno@clisp.org>
9976
9977         truncl: Simplify for platforms where 'long double' == 'double'.
9978         * lib/truncl.c: Include <config.h>.
9979         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
9980         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
9981         time.
9982         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9983         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9984         * modules/truncl (Depends-on): Add trunc. Update conditions.
9985
9986 2011-10-09  Bruno Haible  <bruno@clisp.org>
9987
9988         ceill: Simplify for platforms where 'long double' == 'double'.
9989         * lib/ceill.c: Include <config.h>.
9990         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
9991         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
9992         time.
9993         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9994         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9995         * modules/ceill (Depends-on): Add ceil. Update conditions.
9996
9997 2011-10-09  Bruno Haible  <bruno@clisp.org>
9998
9999         floorl: Simplify for platforms where 'long double' == 'double'.
10000         * lib/floorl.c: Include <config.h>.
10001         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
10002         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
10003         time.
10004         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10005         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10006         * modules/floorl (Depends-on): Add floor. Update conditions.
10007
10008 2011-10-09  Bruno Haible  <bruno@clisp.org>
10009
10010         rint: Fix ordering constraints.
10011         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
10012         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
10013         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
10014
10015 2011-10-09  Bruno Haible  <bruno@clisp.org>
10016
10017         copysignl: Simplify for platforms where 'long double' == 'double'.
10018         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
10019         alternative.
10020         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10021         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10022         * modules/copysignl (Depends-on): Add copysign. Update conditions.
10023
10024 2011-10-09  Bruno Haible  <bruno@clisp.org>
10025
10026         Tests for module 'rintl'.
10027         * modules/rintl-tests: New file.
10028         * tests/test-rintl.c: New file.
10029
10030         New module 'rintl'.
10031         * lib/math.in.h (rintl): New declaration.
10032         * lib/rintl.c: New file.
10033         * m4/rintl.m4: New file.
10034         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
10035         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
10036         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
10037         * modules/rintl: New file.
10038         * tests/test-math-c++.cc: Check the declaration of rintl.
10039         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
10040         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
10041         * doc/posix-functions/rintl.texi: Mention the new module.
10042
10043 2011-10-09  Bruno Haible  <bruno@clisp.org>
10044
10045         Tests for module 'rintf'.
10046         * modules/rintf-tests: New file.
10047         * tests/test-rintf.c: New file.
10048
10049         New module 'rintf'.
10050         * lib/math.in.h (rintf): New declaration.
10051         * lib/rintf.c: New file.
10052         * m4/rintf.m4: New file.
10053         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
10054         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
10055         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
10056         * modules/rintf: New file.
10057         * tests/test-math-c++.cc: Check the declaration of rintf.
10058         * doc/posix-functions/rintf.texi: Mention the new module.
10059
10060 2011-10-09  Bruno Haible  <bruno@clisp.org>
10061
10062         rint: Support for MSVC.
10063         * lib/math.in.h (rint): New declaration.
10064         * lib/rint.c: New file.
10065         * m4/rint.m4: New file.
10066         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
10067         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
10068         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
10069         * modules/rint (Description): Fix.
10070         (Files): Add lib/rint.c, m4/rint.m4.
10071         (Depends-on): Add math.
10072         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
10073         gl_MATH_MODULE_INDICATOR.
10074         * tests/test-math-c++.cc: Check the declaration of rint.
10075         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
10076         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
10077         * doc/posix-functions/rint.texi: Mention the replacement provided by
10078         the module.
10079
10080         rint tests: More tests.
10081         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
10082         minus-zero.h, infinity.h, nan.h.
10083         (main): Skip the test if the current rounding mode is not standard. Add
10084         tests for negative numbers, minus zero, infinity, NaN.
10085         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
10086         tests/nan.h.
10087         (Depends-on): Add isnand-nolibm.
10088
10089 2011-10-09  Bruno Haible  <bruno@clisp.org>
10090
10091         Tests for module 'copysignl'.
10092         * modules/copysignl-tests: New file.
10093         * tests/test-copysignl.c: New file.
10094
10095         New module 'copysignl'.
10096         * lib/math.in.h (copysignl): New declaration.
10097         * lib/copysignl.c: New file.
10098         * m4/copysignl.m4: New file.
10099         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
10100         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
10101         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
10102         HAVE_COPYSIGNL.
10103         * modules/copysignl: New file.
10104         * tests/test-math-c++.cc: Check the declaration of copysignl.
10105         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
10106         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
10107         * doc/posix-functions/copysignl.texi: Mention the new module.
10108
10109 2011-10-09  Bruno Haible  <bruno@clisp.org>
10110
10111         Tests for module 'copysignf'.
10112         * modules/copysignf-tests: New file.
10113         * tests/test-copysignf.c: New file.
10114
10115         New module 'copysignf'.
10116         * lib/math.in.h (copysignf): New declaration.
10117         * lib/copysignf.c: New file.
10118         * m4/copysignf.m4: New file.
10119         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
10120         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
10121         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
10122         HAVE_COPYSIGNF.
10123         * modules/copysignf: New file.
10124         * tests/test-math-c++.cc: Check the declaration of copysignf.
10125         * doc/posix-functions/copysignf.texi: Mention the new module.
10126
10127 2011-10-09  Bruno Haible  <bruno@clisp.org>
10128
10129         Ensure that HAVE_* variables are set to 1 before they are set to 0.
10130         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
10131         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
10132         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
10133         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
10134         gl_SIGNAL_H_DEFAULTS.
10135
10136 2011-10-09  Bruno Haible  <bruno@clisp.org>
10137
10138         poll: Make macro safer.
10139         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
10140         ac_cv_header_poll_h is not set.
10141
10142 2011-10-09  Bruno Haible  <bruno@clisp.org>
10143
10144         copysign: Provide replacement.
10145         * lib/math.in.h (copysign): New declaration.
10146         * lib/copysign.c: New file.
10147         * m4/copysign.m4: New file.
10148         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
10149         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
10150         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
10151         HAVE_COPYSIGN.
10152         * modules/copysign (Description): Clarify.
10153         (Files): Add lib/copysign.c, m4/copysign.m4.
10154         (Depends-on): Add math, signbit.
10155         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
10156         gl_MATH_MODULE_INDICATOR.
10157         * tests/test-math-c++.cc: Check the declaration of copysign.
10158         * doc/posix-functions/copysign.texi: Mention the effects of the module
10159         on Minix and MSVC.
10160
10161 2011-10-09  Bruno Haible  <bruno@clisp.org>
10162
10163         isinf: Ensure macro on AIX 5.1.
10164         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
10165         macro.
10166         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
10167
10168 2011-10-09  Bruno Haible  <bruno@clisp.org>
10169
10170         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
10171         * modules/snprintf-posix-tests (configure.ac): Require
10172         gl_LONG_DOUBLE_VS_DOUBLE.
10173         * modules/sprintf-posix-tests (configure.ac): Likewise.
10174         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
10175         * modules/vasprintf-posix-tests (configure.ac): Likewise.
10176         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
10177         * modules/vsprintf-posix-tests (configure.ac): Likewise.
10178         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
10179         tests on platforms where 'long double' is the same as 'double'.
10180         * tests/test-sprintf-posix.h (test_function): Likewise.
10181         * tests/test-vasnprintf-posix.c (test_function): Likewise.
10182         * tests/test-vasprintf-posix.c (test_function): Likewise.
10183
10184         *printf: Fix for platforms where 'long double' == 'double'.
10185         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
10186         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
10187         * modules/dprintf-posix (Files): Add m4/math_h.m4.
10188         * modules/fprintf-posix (Files): Likewise.
10189         * modules/obstack-printf-posix (Files): Likewise.
10190         * modules/snprintf-posix (Files): Likewise.
10191         * modules/sprintf-posix (Files): Likewise.
10192         * modules/vasnprintf (Files): Likewise.
10193         * modules/vasnprintf-posix (Files): Likewise.
10194         * modules/vasprintf-posix (Files): Likewise.
10195         * modules/vdprintf-posix (Files): Likewise.
10196         * modules/vfprintf-posix (Files): Likewise.
10197         * modules/vsnprintf-posix (Files): Likewise.
10198         * modules/vsprintf-posix (Files): Likewise.
10199         * modules/unistdio/u8-vasnprintf (Files): Likewise.
10200         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
10201         * modules/unistdio/u16-vasnprintf (Files): Likewise.
10202         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
10203         * modules/unistdio/u32-vasnprintf (Files): Likewise.
10204         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
10205         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
10206
10207         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
10208         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
10209         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10210         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
10211         'long double'.
10212         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
10213
10214         isinf: Fix for platforms where 'long double' == 'double'.
10215         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
10216         Don't blindly assume 80-bit 'long double'.
10217
10218         isfinite: Fix for platforms where 'long double' == 'double'.
10219         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
10220         Don't blindly assume 80-bit 'long double'.
10221
10222         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
10223         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
10224         * modules/isfinite-tests (configure.ac): Require
10225         gl_LONG_DOUBLE_VS_DOUBLE.
10226         * modules/isinf-tests (configure.ac): Likewise.
10227         * modules/isnan-tests (configure.ac): Likewise.
10228         * modules/isnanl-tests (configure.ac): Likewise.
10229         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
10230         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
10231         tests on platforms where 'long double' is the same as 'double'.
10232         * tests/test-isinf.c (test_isinfl): Likewise.
10233         * tests/test-isnan.c (test_long_double): Likewise.
10234         * tests/test-isnanl.h (main): Likewise.
10235
10236 2011-10-08  Bruno Haible  <bruno@clisp.org>
10237
10238         Tests for module 'tanhf'.
10239         * modules/tanhf-tests: New file.
10240         * tests/test-tanhf.c: New file.
10241
10242         New module 'tanhf'.
10243         * lib/math.in.h (tanhf): New declaration.
10244         * lib/tanhf.c: New file.
10245         * m4/tanhf.m4: New file.
10246         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
10247         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
10248         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
10249         * modules/tanhf: New file.
10250         * tests/test-math-c++.cc: Check the declaration of tanhf.
10251         * doc/posix-functions/tanhf.texi: Mention the new module.
10252
10253         tanh: Use a .m4 file.
10254         * m4/tanh.m4: New file.
10255         * modules/tanh (Files): Add it.
10256         (configure.ac): Just invoke gl_FUNC_TANH.
10257
10258 2011-10-08  Bruno Haible  <bruno@clisp.org>
10259
10260         Tests for module 'coshf'.
10261         * modules/coshf-tests: New file.
10262         * tests/test-coshf.c: New file.
10263
10264         New module 'coshf'.
10265         * lib/math.in.h (coshf): New declaration.
10266         * lib/coshf.c: New file.
10267         * m4/coshf.m4: New file.
10268         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
10269         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
10270         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
10271         * modules/coshf: New file.
10272         * tests/test-math-c++.cc: Check the declaration of coshf.
10273         * doc/posix-functions/coshf.texi: Mention the new module.
10274
10275         cosh: Use a .m4 file.
10276         * m4/cosh.m4: New file.
10277         * modules/cosh (Files): Add it.
10278         (configure.ac): Just invoke gl_FUNC_COSH.
10279
10280 2011-10-08  Bruno Haible  <bruno@clisp.org>
10281
10282         Tests for module 'sinhf'.
10283         * modules/sinhf-tests: New file.
10284         * tests/test-sinhf.c: New file.
10285
10286         New module 'sinhf'.
10287         * lib/math.in.h (sinhf): New declaration.
10288         * lib/sinhf.c: New file.
10289         * m4/sinhf.m4: New file.
10290         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
10291         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
10292         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
10293         * modules/sinhf: New file.
10294         * tests/test-math-c++.cc: Check the declaration of sinhf.
10295         * doc/posix-functions/sinhf.texi: Mention the new module.
10296
10297         sinh: Use a .m4 file.
10298         * m4/sinh.m4: New file.
10299         * modules/sinh (Files): Add it.
10300         (configure.ac): Just invoke gl_FUNC_SINH.
10301
10302 2011-10-08  Bruno Haible  <bruno@clisp.org>
10303
10304         Tests for module 'atan2f'.
10305         * modules/atan2f-tests: New file.
10306         * tests/test-atan2f.c: New file.
10307
10308         New module 'atan2f'.
10309         * lib/math.in.h (atan2f): New declaration.
10310         * lib/atan2f.c: New file.
10311         * m4/atan2f.m4: New file.
10312         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
10313         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
10314         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
10315         * modules/atan2f: New file.
10316         * tests/test-math-c++.cc: Check the declaration of atan2f.
10317         * doc/posix-functions/atan2f.texi: Mention the new module.
10318
10319         atan2: Use a .m4 file.
10320         * m4/atan2.m4: New file.
10321         * modules/atan2 (Files): Add it.
10322         (configure.ac): Just invoke gl_FUNC_ATAN2.
10323
10324 2011-10-08  Bruno Haible  <bruno@clisp.org>
10325
10326         Tests for module 'atanf'.
10327         * modules/atanf-tests: New file.
10328         * tests/test-atanf.c: New file.
10329
10330         New module 'atanf'.
10331         * lib/math.in.h (atanf): New declaration.
10332         * lib/atanf.c: New file.
10333         * m4/atanf.m4: New file.
10334         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
10335         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
10336         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
10337         * modules/atanf: New file.
10338         * tests/test-math-c++.cc: Check the declaration of atanf.
10339         * doc/posix-functions/atanf.texi: Mention the new module.
10340
10341         atan: Use a .m4 file.
10342         * m4/atan.m4: New file.
10343         * modules/atan (Files): Add it.
10344         (configure.ac): Just invoke gl_FUNC_ATAN.
10345
10346 2011-10-08  Bruno Haible  <bruno@clisp.org>
10347
10348         Tests for module 'acosf'.
10349         * modules/acosf-tests: New file.
10350         * tests/test-acosf.c: New file.
10351
10352         New module 'acosf'.
10353         * lib/math.in.h (acosf): New declaration.
10354         * lib/acosf.c: New file.
10355         * m4/acosf.m4: New file.
10356         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
10357         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
10358         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
10359         * modules/acosf: New file.
10360         * tests/test-math-c++.cc: Check the declaration of acosf.
10361         * doc/posix-functions/acosf.texi: Mention the new module.
10362
10363         acos: Use a .m4 file.
10364         * m4/acos.m4: New file.
10365         * modules/acos (Files): Add it.
10366         (configure.ac): Just invoke gl_FUNC_ACOS.
10367
10368 2011-10-08  Bruno Haible  <bruno@clisp.org>
10369
10370         Tests for module 'asinf'.
10371         * modules/asinf-tests: New file.
10372         * tests/test-asinf.c: New file.
10373
10374         New module 'asinf'.
10375         * lib/math.in.h (asinf): New declaration.
10376         * lib/asinf.c: New file.
10377         * m4/asinf.m4: New file.
10378         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
10379         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
10380         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
10381         * modules/asinf: New file.
10382         * tests/test-math-c++.cc: Check the declaration of asinf.
10383         * doc/posix-functions/asinf.texi: Mention the new module.
10384
10385         asin: Use a .m4 file.
10386         * m4/asin.m4: New file.
10387         * modules/asin (Files): Add it.
10388         (configure.ac): Just invoke gl_FUNC_ASIN.
10389
10390 2011-10-08  Bruno Haible  <bruno@clisp.org>
10391
10392         Tests for module 'tanf'.
10393         * modules/tanf-tests: New file.
10394         * tests/test-tanf.c: New file.
10395
10396         New module 'tanf'.
10397         * lib/math.in.h (tanf): New declaration.
10398         * lib/tanf.c: New file.
10399         * m4/tanf.m4: New file.
10400         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
10401         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
10402         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
10403         * modules/tanf: New file.
10404         * tests/test-math-c++.cc: Check the declaration of tanf.
10405         * doc/posix-functions/tanf.texi: Mention the new module.
10406
10407         tan: Use a .m4 file.
10408         * m4/tan.m4: New file.
10409         * modules/tan (Files): Add it.
10410         (configure.ac): Just invoke gl_FUNC_TAN.
10411
10412 2011-10-08  Bruno Haible  <bruno@clisp.org>
10413
10414         Tests for module 'cosf'.
10415         * modules/cosf-tests: New file.
10416         * tests/test-cosf.c: New file.
10417
10418         New module 'cosf'.
10419         * lib/math.in.h (cosf): New declaration.
10420         * lib/cosf.c: New file.
10421         * m4/cosf.m4: New file.
10422         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
10423         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
10424         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
10425         * modules/cosf: New file.
10426         * tests/test-math-c++.cc: Check the declaration of cosf.
10427         * doc/posix-functions/cosf.texi: Mention the new module.
10428
10429         cos: Use a .m4 file.
10430         * m4/cos.m4: New file.
10431         * modules/cos (Files): Add it.
10432         (configure.ac): Just invoke gl_FUNC_COS.
10433
10434 2011-10-08  Bruno Haible  <bruno@clisp.org>
10435
10436         Tests for module 'sinf'.
10437         * modules/sinf-tests: New file.
10438         * tests/test-sinf.c: New file.
10439
10440         New module 'sinf'.
10441         * lib/math.in.h (sinf): New declaration.
10442         * lib/sinf.c: New file.
10443         * m4/sinf.m4: New file.
10444         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
10445         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
10446         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
10447         * modules/sinf: New file.
10448         * tests/test-math-c++.cc: Check the declaration of sinf.
10449         * doc/posix-functions/sinf.texi: Mention the new module.
10450
10451         sin: Use a .m4 file.
10452         * m4/sin.m4: New file.
10453         * modules/sin (Files): Add it.
10454         (configure.ac): Just invoke gl_FUNC_SIN.
10455
10456 2011-10-08  Bruno Haible  <bruno@clisp.org>
10457
10458         Tests for module 'powf'.
10459         * modules/powf-tests: New file.
10460         * tests/test-powf.c: New file.
10461
10462         New module 'powf'.
10463         * lib/math.in.h (powf): New declaration.
10464         * lib/powf.c: New file.
10465         * m4/powf.m4: New file.
10466         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
10467         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
10468         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
10469         * modules/powf: New file.
10470         * tests/test-math-c++.cc: Check the declaration of powf.
10471         * doc/posix-functions/powf.texi: Mention the new module.
10472
10473         pow: Use a .m4 file.
10474         * m4/pow.m4: New file.
10475         * modules/pow (Files): Add it.
10476         (configure.ac): Just invoke gl_FUNC_POW.
10477
10478 2011-10-08  Bruno Haible  <bruno@clisp.org>
10479
10480         Tests for module 'log10f'.
10481         * modules/log10f-tests: New file.
10482         * tests/test-log10f.c: New file.
10483
10484         New module 'log10f'.
10485         * lib/math.in.h (log10f): New declaration.
10486         * lib/log10f.c: New file.
10487         * m4/log10f.m4: New file.
10488         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
10489         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
10490         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
10491         * modules/log10f: New file.
10492         * tests/test-math-c++.cc: Check the declaration of log10f.
10493         * doc/posix-functions/log10f.texi: Mention the new module.
10494
10495         log10: Use a .m4 file.
10496         * m4/log10.m4: New file.
10497         * modules/log10 (Files): Add it.
10498         (configure.ac): Just invoke gl_FUNC_LOG10.
10499
10500 2011-10-08  Bruno Haible  <bruno@clisp.org>
10501
10502         Tests for module 'logf'.
10503         * modules/logf-tests: New file.
10504         * tests/test-logf.c: New file.
10505
10506         New module 'logf'.
10507         * lib/math.in.h (logf): New declaration.
10508         * lib/logf.c: New file.
10509         * m4/logf.m4: New file.
10510         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
10511         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
10512         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
10513         * modules/logf: New file.
10514         * tests/test-math-c++.cc: Check the declaration of logf.
10515         * doc/posix-functions/logf.texi: Mention the new module.
10516
10517         log: Use a .m4 file.
10518         * m4/log.m4: New file.
10519         * modules/log (Files): Add it.
10520         (configure.ac): Just invoke gl_FUNC_LOG.
10521
10522 2011-10-08  Bruno Haible  <bruno@clisp.org>
10523
10524         Tests for module 'expf'.
10525         * modules/expf-tests: New file.
10526         * tests/test-expf.c: New file.
10527
10528         New module 'expf'.
10529         * lib/math.in.h (expf): New declaration.
10530         * lib/expf.c: New file.
10531         * m4/expf.m4: New file.
10532         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
10533         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
10534         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
10535         * modules/expf: New file.
10536         * tests/test-math-c++.cc: Check the declaration of expf.
10537         * doc/posix-functions/expf.texi: Mention the new module.
10538
10539         exp: Use a .m4 file.
10540         * m4/exp.m4: New file.
10541         * modules/exp (Files): Add it.
10542         (configure.ac): Just invoke gl_FUNC_EXP.
10543
10544 2011-10-08  Bruno Haible  <bruno@clisp.org>
10545
10546         Tests for module 'sqrtf'.
10547         * modules/sqrtf-tests: New file.
10548         * tests/test-sqrtf.c: New file.
10549
10550         New module 'sqrtf'.
10551         * lib/math.in.h (sqrtf): New declaration.
10552         * lib/sqrtf.c: New file.
10553         * m4/sqrtf.m4: New file.
10554         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
10555         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
10556         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
10557         * modules/sqrtf: New file.
10558         * tests/test-math-c++.cc: Check the declaration of sqrtf.
10559         * doc/posix-functions/sqrtf.texi: Mention the new module.
10560
10561 2011-10-08  Bruno Haible  <bruno@clisp.org>
10562
10563         Tests: Avoid link failures w.r.t. libintl.
10564         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
10565         $(LIBINTL).
10566         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
10567         $(LIBINTL).
10568         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
10569         against $(LIBINTL).
10570         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
10571         $(LIBINTL).
10572         * modules/openat-tests (Makefile.am): Link test-fchmodat against
10573         $(LIBINTL).
10574         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
10575
10576 2011-10-08  Bruno Haible  <bruno@clisp.org>
10577
10578         pow tests: Defeat compiler optimizations.
10579         * tests/test-pow.c (main): Assign arguments to x and y before use.
10580
10581 2011-10-08  Bruno Haible  <bruno@clisp.org>
10582
10583         gnulib-tool: Improve last commit.
10584         * gnulib-tool (func_modules_transitive_closure): Simplify code.
10585         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
10586         ignore dependencies that are not among the modules list.
10587
10588 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
10589
10590         gnulib-tool: don't follow dependencies to avoided modules
10591         This fixes a bug that is related to the previous one.
10592         * gnulib-tool (func_modules_transitive_closure)
10593         (func_emit_autoconf_snippets):
10594         Check whether a dependency is acceptable before using it.
10595         (--extract-dependencies): Report an error if --avoid is also used,
10596         since this combination of options is not yet supported.
10597
10598         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
10599         Problem reported by Peter Dyballa in
10600         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
10601         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
10602         when echoing "$condition".
10603
10604 2011-10-07  Bruno Haible  <bruno@clisp.org>
10605
10606         Fix documentation about math functions on MacOS X.
10607         * doc/posix-functions/exp2.texi: Don't say the function is missing on
10608         MacOS X 10.5.
10609         * doc/posix-functions/fdim.texi: Likewise.
10610         * doc/posix-functions/feclearexcept.texi: Likewise.
10611         * doc/posix-functions/fegetenv.texi: Likewise.
10612         * doc/posix-functions/fegetround.texi: Likewise.
10613         * doc/posix-functions/feholdexcept.texi: Likewise.
10614         * doc/posix-functions/feraiseexcept.texi: Likewise.
10615         * doc/posix-functions/fesetenv.texi: Likewise.
10616         * doc/posix-functions/fesetround.texi: Likewise.
10617         * doc/posix-functions/fetestexcept.texi: Likewise.
10618         * doc/posix-functions/feupdateenv.texi: Likewise.
10619         * doc/posix-functions/fmax.texi: Likewise.
10620         * doc/posix-functions/fmin.texi: Likewise.
10621         * doc/posix-functions/log2.texi: Likewise.
10622         * doc/posix-functions/modff.texi: Likewise.
10623         * doc/posix-functions/nan.texi: Likewise.
10624         * doc/posix-functions/nanf.texi: Likewise.
10625         * doc/posix-functions/nextafterf.texi: Likewise.
10626         * doc/posix-functions/remquo.texi: Likewise.
10627
10628 2011-10-07  Bruno Haible  <bruno@clisp.org>
10629
10630         modff: Drop assumption about library that defines modff.
10631         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
10632         AC_CHECK_FUNCS.
10633         * modules/modff (Files): Add m4/mathfunc.m4.
10634
10635 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
10636
10637         raise tests: Avoid a GCC warning.
10638         * tests/test-raise.c (handler): Use _Noreturn.
10639
10640 2011-10-07  Bruno Haible  <bruno@clisp.org>
10641
10642         Tests for module 'ldexpf'.
10643         * modules/ldexpf-tests: New file.
10644         * tests/test-ldexpf.c: New file.
10645
10646         New module 'ldexpf'.
10647         * lib/math.in.h (ldexpf): New declaration.
10648         * lib/ldexpf.c: New file.
10649         * m4/ldexpf.m4: New file.
10650         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
10651         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
10652         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
10653         * modules/ldexpf: New file.
10654         * tests/test-math-c++.cc: Check the declaration of ldexpf.
10655         * doc/posix-functions/ldexpf.texi: Mention the new module.
10656
10657 2011-10-06  Bruno Haible  <bruno@clisp.org>
10658
10659         frexpf: Work around problems on IRIX and mingw.
10660         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
10661         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
10662         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
10663         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
10664         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
10665         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
10666         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
10667
10668 2011-10-06  Bruno Haible  <bruno@clisp.org>
10669
10670         fabsf: Drop assumption about library that defines fabsf.
10671         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
10672         AC_CHECK_FUNCS.
10673         * modules/fabsf (Files): Add m4/mathfunc.m4.
10674
10675 2011-10-06  Bruno Haible  <bruno@clisp.org>
10676
10677         frexpf: Drop assumption about library that defines frexpf.
10678         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
10679         'int *', 'float *', 'long double *', 'float', 'long double'.
10680         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
10681         AC_CHECK_FUNCS.
10682         * modules/frexpf (Files): Add m4/mathfunc.m4.
10683
10684         Tests for module 'frexpf'.
10685         * modules/frexpf-tests: New file.
10686         * tests/test-frexpf.c: New file.
10687
10688         New module 'frexpf'.
10689         * lib/math.in.h (frexpf): New declaration.
10690         * lib/frexpf.c: New file.
10691         * m4/frexpf.m4: New file.
10692         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
10693         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
10694         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
10695         * modules/frexpf: New file.
10696         * tests/test-math-c++.cc: Check the declaration of frexpf.
10697         * doc/posix-functions/frexpf.texi: Mention the new module.
10698
10699 2011-10-06  Bruno Haible  <bruno@clisp.org>
10700
10701         math: Sort function declarations of math.in.h.
10702         * lib/math.in.h (frexp, logb): Move declarations.
10703
10704 2011-10-05  Bruno Haible  <bruno@clisp.org>
10705
10706         Tests for module 'modff'.
10707         * modules/modff-tests: New file.
10708         * tests/test-modff.c: New file.
10709
10710         New module 'modff'.
10711         * lib/math.in.h (modff): New declaration.
10712         * lib/modff.c: New file.
10713         * m4/modff.m4: New file.
10714         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
10715         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
10716         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
10717         * modules/modff: New file.
10718         * tests/test-math-c++.cc: Check the declaration of modff.
10719         * doc/posix-functions/modff.texi: Mention the new module.
10720
10721         modf tests: Make test sharper.
10722         * tests/test-modf.c (main): Strengthen upper bound.
10723
10724         modf: Use a .m4 file.
10725         * m4/modf.m4: New file.
10726         * modules/modf (Files): Add it.
10727         (configure.ac): Just invoke gl_FUNC_MODF.
10728
10729 2011-10-05  Bruno Haible  <bruno@clisp.org>
10730
10731         Tests for module 'fmodf'.
10732         * modules/fmodf-tests: New file.
10733         * tests/test-fmodf.c: New file.
10734
10735         New module 'fmodf'.
10736         * lib/math.in.h (fmodf): New declaration.
10737         * lib/fmodf.c: New file.
10738         * m4/fmodf.m4: New file.
10739         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
10740         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
10741         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
10742         * modules/fmodf: New file.
10743         * tests/test-math-c++.cc: Check the declaration of fmodf.
10744         * doc/posix-functions/fmodf.texi: Mention the new module.
10745
10746         fmod: Use a .m4 file.
10747         * m4/fmod.m4: New file.
10748         * modules/fmod (Files): Add it.
10749         (configure.ac): Just invoke gl_FUNC_FMOD.
10750
10751 2011-10-05  Bruno Haible  <bruno@clisp.org>
10752
10753         Tests for module 'fabsf'.
10754         * modules/fabsf-tests: New file.
10755         * tests/test-fabsf.c: New file.
10756
10757         New module 'fabsf'.
10758         * lib/math.in.h (fabsf): New declaration.
10759         * lib/fabsf.c: New file.
10760         * m4/fabsf.m4: New file.
10761         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
10762         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
10763         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
10764         * modules/fabsf: New file.
10765         * tests/test-math-c++.cc: Check the declaration of fabsf.
10766         * doc/posix-functions/fabsf.texi: Mention the new module.
10767
10768         fabs: Use a .m4 file.
10769         * m4/fabs.m4: New file.
10770         * modules/fabs (Files): Add it.
10771         (configure.ac): Just invoke gl_FUNC_FABS.
10772
10773 2011-10-05  Jim Meyering  <meyering@redhat.com>
10774
10775         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
10776         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
10777         ls -lL regression introduced in coreutils-8.12, it does so at the
10778         cost of an additional stat call in the common case.  Besides, now
10779         that the kernel change that prompted commit 95f7c57f has been reverted
10780         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
10781         we have no use for commit 95f7c57f, "file-has-acl: use
10782         acl_extended_file_nofollow if available".
10783
10784 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
10785
10786         file-has-acl: revert unintended change in behavior of ls -L
10787         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
10788         derived from...
10789         (file_has_acl): ...code here.  Call it.
10790         This problem was introduced with 2011-07-22 commit 95f7c57f,
10791         "file-has-acl: use acl_extended_file_nofollow if available".
10792         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
10793
10794 2011-10-03  Bruno Haible  <bruno@clisp.org>
10795
10796         poll: Avoid link errors on MSVC.
10797         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
10798         * modules/poll (Depends-on): Add sockets.
10799         (Link): New section.
10800         * NEWS: Mention the change.
10801         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
10802         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
10803         $(LIB_POLL) instead of $(LIBSOCKET).
10804
10805 2011-10-03  Bruno Haible  <bruno@clisp.org>
10806
10807         sys_select tests: Fix link error on MSVC 9.
10808         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
10809         with $(LIB_SELECT) instead of $(LIBSOCKET).
10810
10811 2011-10-03  Bruno Haible  <bruno@clisp.org>
10812
10813         sys_select: Fix compilation error on mingw.
10814         * lib/sys_select.in.h: On native Windows, include <io.h>.
10815
10816 2011-10-03  Bruno Haible  <bruno@clisp.org>
10817
10818         wmemset: Support for MSVC.
10819         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
10820         whether wmemset() exists.
10821
10822 2011-10-03  Bruno Haible  <bruno@clisp.org>
10823
10824         wmemmove: Support for MSVC.
10825         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
10826         whether wmemmove() exists.
10827
10828 2011-10-03  Bruno Haible  <bruno@clisp.org>
10829
10830         wmemcpy: Support for MSVC.
10831         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
10832         whether wmemcpy() exists.
10833
10834 2011-10-03  Bruno Haible  <bruno@clisp.org>
10835
10836         wmemcmp: Support for MSVC.
10837         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
10838         whether wmemcmp() exists.
10839
10840 2011-10-03  Bruno Haible  <bruno@clisp.org>
10841
10842         wmemchr: Support for MSVC.
10843         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
10844         whether wmemchr() exists.
10845
10846 2011-10-03  Bruno Haible  <bruno@clisp.org>
10847
10848         glthread/*, strsignal: Support for MSVC.
10849         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
10850         including <winsock.h> on MSVC 9.
10851         * lib/glthread/lock.h: Likewise.
10852         * lib/glthread/thread.h: Likewise.
10853         * lib/glthread/tls.h: Likewise.
10854         * lib/glthread/yield.h: Likewise.
10855         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
10856         if HAVE_UNISTD_H is false.
10857         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
10858
10859 2011-10-03  Bruno Haible  <bruno@clisp.org>
10860
10861         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
10862         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
10863         Set to 100000.
10864
10865 2011-10-03  Bruno Haible  <bruno@clisp.org>
10866
10867         acl: Fix specification.
10868         * lib/file-has-acl.c (file_has_acl): Fix specification.
10869
10870 2011-10-03  Bruno Haible  <bruno@clisp.org>
10871
10872         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
10873         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
10874         (compute_curr_prefix, shared_library_fullname,
10875         find_shared_library_fullname, get_shared_library_fullname, relocate):
10876         Use it together with PIC && INSTALLDIR.
10877         Reported by <jojelino@gmail.com>
10878         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
10879
10880 2011-10-01  Jim Meyering  <meyering@redhat.com>
10881
10882         maint.mk: adjust a release-related rule not to require use of gzip
10883         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
10884         Instead, check each file in $(DIST_ARCHIVES).  This is better for
10885         projects that build only .tar.xz files.  Also fix an erroneous test.
10886
10887         test-linkat: don't leave behind a temporary file
10888         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
10889         Otherwise, coreutils' "make distcheck" would fail with this:
10890           Only in /c/cu/tests/torture/coreutils/test/\
10891             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
10892           make[2]: *** [my-distcheck] Error 1
10893
10894         float, math: add omitted file
10895         * lib/itold.c: Add file, required for yesterday's float change.
10896
10897 2011-10-01  Bruno Haible  <bruno@clisp.org>
10898
10899         isinf: Fix for OpenBSD/x86.
10900         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
10901         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
10902         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
10903
10904 2011-10-01  Bruno Haible  <bruno@clisp.org>
10905
10906         isfinite: Fix syntax error in configure test.
10907         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
10908
10909         isfinite: Fix typo.
10910         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
10911         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
10912
10913 2011-10-01  Bruno Haible  <bruno@clisp.org>
10914
10915         nonblocking tests: Fix test failure on Linux/IA-64.
10916         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
10917         Set to 270000.
10918
10919 2011-10-01  Bruno Haible  <bruno@clisp.org>
10920
10921         mkfifoat tests: Fix a test failure on mingw.
10922         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
10923         with error ENOSYS.
10924
10925 2011-09-30  Bruno Haible  <bruno@clisp.org>
10926
10927         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
10928         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
10929         'long double'. Set REPLACE_ITOLD.
10930         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
10931         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
10932         * lib/itold.c: New file.
10933         * modules/float (Files): Add lib/itold.c.
10934         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
10935         (Makefile.am): Substitute REPLACE_ITOLD.
10936         * modules/math (Depends-on): Add float.
10937         (Makefile.am): Substitute REPLACE_ITOLD.
10938         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
10939         * doc/posix-headers/math.texi: Likewise.
10940         * doc/posix-functions/logl.texi: Likewise.
10941
10942 2011-09-30  Bruno Haible  <bruno@clisp.org>
10943
10944         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
10945         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
10946         Set to 140000.
10947
10948 2011-09-30  Bruno Haible  <bruno@clisp.org>
10949
10950         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
10951         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
10952         invocation, say "right after AC_PROG_CC_STDC", not "right after
10953         AC_PROG_CC".
10954         Reported by Gary V. Vaughan <gary@gnu.org>.
10955
10956 2011-09-30  Bruno Haible  <bruno@clisp.org>
10957
10958         Centralize C99 requirement.
10959         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
10960         * modules/stdarg (configure.ac-early): Invoke it instead of
10961         AC_PROG_CC_STDC.
10962         Reported by Gary V. Vaughan and Paul Eggert.
10963
10964 2011-09-29  Bruno Haible  <bruno@clisp.org>
10965
10966         float: Fix LDBL_MAX value on Linux/PowerPC.
10967         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
10968         on Linux/PowerPC.
10969         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
10970         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
10971         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
10972         platform.
10973         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
10974
10975 2011-09-29  Bruno Haible  <bruno@clisp.org>
10976
10977         doc: Improve doc about gl_EARLY.
10978         * doc/gnulib-tool.texi (Initial import): Mention where to place an
10979         AC_PROG_CC_STDC invocation.
10980         Reported by Gary V. Vaughan <gary@gnu.org>.
10981
10982 2011-09-28  Bruno Haible  <bruno@clisp.org>
10983
10984         fgetc, fputc, fread, fwrite tests: Fix link error.
10985         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
10986         on non-MSVC platforms.
10987         * tests/test-fputc.c (main): Likewise.
10988         * tests/test-fread.c (main): Likewise.
10989         * tests/test-fwrite.c (main): Likewise.
10990         Reported by Jim Meyering.
10991
10992 2011-09-27  Bruno Haible  <bruno@clisp.org>
10993
10994         fputc, fwrite tests: Avoid test failure on MSVC.
10995         * tests/test-fgetc.c: Include msvc-inval.h.
10996         (main): Invoke gl_msvc_inval_ensure_handler.
10997         * tests/test-fputc.c: Include msvc-inval.h.
10998         (main): Invoke gl_msvc_inval_ensure_handler.
10999         * tests/test-fread.c: Include msvc-inval.h.
11000         (main): Invoke gl_msvc_inval_ensure_handler.
11001         * tests/test-fwrite.c: Include msvc-inval.h.
11002         (main): Invoke gl_msvc_inval_ensure_handler.
11003         * modules/fgetc-tests (Depends-on): Add msvc-inval.
11004         * modules/fputc-tests (Depends-on): Likewise.
11005         * modules/fread-tests (Depends-on): Likewise.
11006         * modules/fwrite-tests (Depends-on): Likewise.
11007
11008 2011-09-27  Bruno Haible  <bruno@clisp.org>
11009
11010         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
11011         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
11012         (raise): Remove older, duplicated declaration.
11013         (_gl_raise_SIGPIPE): New declaration.
11014         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
11015         (rpl_raise): Remove function.
11016         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
11017         a gnulib-defined SIGPIPE here.
11018         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
11019         'sigprocmask' has detected missing signal-blocking and the module
11020         'sigpipe' is enabled.
11021         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
11022
11023 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
11024
11025         base64-tests: avoid memory leak
11026         * tests/test-base64.c (main): Plug memory leak.
11027
11028         base32: new module
11029         * modules/base32: New module.
11030         * lib/base32.c: New file.
11031         * lib/base32.h: Likewise.
11032         * m4/base32.m4: Likewise.
11033         * modules/base32-tests: New test.
11034         * tests/test-base32.c: Likewise.
11035         * MODULES.html.sh (Misc): Mention it.
11036
11037 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
11038
11039         gnulib: use more-standard license notice wording
11040         * gnulib-tool (func_emit_copyright_notice): When emitting a
11041         license notice into a file, use the standard wording as suggested
11042         by the current information for GNU maintainers, except say "file"
11043         rather than "program".  The new wording gives a license version
11044         number, which addresses an issue raised by Glenn Morris in
11045         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
11046         * m4/onceonly.m4: Use that same wording here, too.
11047
11048         dup2: minor simplification
11049         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
11050         as lib/dup2.c no longer uses 'inline'.
11051
11052 2011-09-25  Bruno Haible  <bruno@clisp.org>
11053
11054         strings: Fix compilation error on MSVC.
11055         * lib/strings.in.h: Include <stddef.h> for size_t.
11056
11057 2011-09-25  Bruno Haible  <bruno@clisp.org>
11058
11059         fflush et al.: Document limitation on MSVC.
11060         * doc/posix-functions/fflush.texi: Document possible crash in handling
11061         mode other than DEFAULT_HANDLING.
11062         * doc/posix-functions/fgetc.texi: Likewise.
11063         * doc/posix-functions/fputc.texi: Likewise.
11064         * doc/posix-functions/fread.texi: Likewise.
11065         * doc/posix-functions/fwrite.texi: Likewise.
11066
11067 2011-09-25  Bruno Haible  <bruno@clisp.org>
11068
11069         msvc-inval: Allow three invalid parameter handling modes.
11070         * lib/msvc-inval.h: Don't include <stdlib.h> here.
11071         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
11072         macros.
11073         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
11074         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
11075         SANE_LIBRARY_HANDLING as a no-op.
11076         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
11077         <stdlib.h>.
11078         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
11079
11080 2011-09-25  Bruno Haible  <bruno@clisp.org>
11081
11082         msvc-inval: Make handler multithread-safe.
11083         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
11084         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
11085         declarations.
11086         (gl_msvc_inval_current): New declaration.
11087         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
11088         Operate on the structure returned by gl_msvc_inval_current().
11089         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
11090         Remove varaiables.
11091         (tls_index, tls_initialized): New variables.
11092         (not_per_thread): New variable.
11093         (gl_msvc_inval_current): New function.
11094         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
11095         returned by gl_msvc_inval_current().
11096
11097 2011-09-25  Bruno Haible  <bruno@clisp.org>
11098
11099         msvc-inval: Install handler globally.
11100         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
11101         !_MSC_VER.
11102         (gl_msvc_invalid_parameter_handler): Remove declaration.
11103         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
11104         declarations.
11105         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
11106         Install the handler globally, don't uninstall it.
11107         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
11108         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
11109         currently valid, call RaiseException instead.
11110         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
11111         for !_MSC_VER.
11112
11113 2011-09-25  Bruno Haible  <bruno@clisp.org>
11114
11115         strerror_r-posix: Fix for MSVC 9.
11116         * lib/strerror_r.c (local_snprintf): New function.
11117         (snprintf): Define to local_snprintf, not to _snprintf.
11118
11119 2011-09-25  Bruno Haible  <bruno@clisp.org>
11120
11121         ftruncate: Support for MSVC 9.
11122         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
11123         (chsize_nothrow): New function.
11124         (chsize): Redefine as a macro.
11125         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
11126         * modules/ftruncate (Depends-on): Add msvc-inval.
11127
11128 2011-09-25  Bruno Haible  <bruno@clisp.org>
11129
11130         New module 'fstat'.
11131         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
11132         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
11133         * lib/fchdir.c (rpl_fstat): Remove function.
11134         * m4/fstat.m4: New file.
11135         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
11136         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
11137         declared.
11138         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
11139         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
11140         * modules/fstat: New file.
11141         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
11142         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
11143         is set.
11144         * doc/posix-functions/fstat.texi: Mention the new module and the
11145         problem on MSVC.
11146         * NEWS: Mention the change.
11147         * modules/acl (Depends-on): Add fstat.
11148         * modules/chdir-safer (Depends-on): Likewise.
11149         * modules/chown (Depends-on): Likewise.
11150         * modules/copy-file (Depends-on): Likewise.
11151         * modules/fchdir (Depends-on): Likewise.
11152         * modules/fdopendir (Depends-on): Likewise.
11153         * modules/fopen (Depends-on): Likewise.
11154         * modules/fts (Depends-on): Likewise.
11155         * modules/getcwd (Depends-on): Likewise.
11156         * modules/isapipe (Depends-on): Likewise.
11157         * modules/linkat (Depends-on): Likewise.
11158         * modules/lseek (Depends-on): Likewise.
11159         * modules/mkdir-p (Depends-on): Likewise.
11160         * modules/open (Depends-on): Likewise.
11161         * modules/openat (Depends-on): Likewise.
11162         * modules/read-file (Depends-on): Likewise.
11163         * modules/renameat (Depends-on): Likewise.
11164         * modules/utimens (Depends-on): Likewise.
11165
11166 2011-09-25  Bruno Haible  <bruno@clisp.org>
11167
11168         linkat: Fix compilation on MSVC 9.
11169         * lib/linkat.c: Don't include <stdint.h>.
11170
11171 2011-09-25  Bruno Haible  <bruno@clisp.org>
11172
11173         fclose: Support for MSVC 9.
11174         * lib/fclose.c: Include msvc-inval.h.
11175         (fclose_nothrow): New function.
11176         (rpl_fclose): Use it.
11177         * modules/fclose (Depends-on): Add msvc-inval.
11178         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
11179
11180 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
11181
11182         dup2: minor simplifications
11183         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
11184         that it's a performance win.
11185         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
11186         ! defined __CYGWIN__)" to "ifdef F_GETFL".
11187
11188 2011-09-24  Jim Meyering  <meyering@redhat.com>
11189
11190         test-futimens: avoid a warning from gcc -Wshadow
11191         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
11192         to avoid a shadowing warning.
11193
11194 2011-09-24  Bruno Haible  <bruno@clisp.org>
11195
11196         fdopen: Support for MSVC 9.
11197         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
11198         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
11199         * lib/fdopen.c: Include msvc-inval.h.
11200         (fdopen_nothrow): New function.
11201         (rpl_fdopen): Use it.
11202         * modules/fdopen (Depends-on): Add msvc-inval.
11203         * modules/fclose-tests (Depends-on): Add fdopen.
11204         * modules/fflush-tests (Depends-on): Likewise.
11205         * modules/fgetc-tests (Depends-on): Likewise.
11206         * modules/fputc-tests (Depends-on): Likewise.
11207         * modules/fread-tests (Depends-on): Likewise.
11208         * modules/freopen-tests (Depends-on): Likewise.
11209         * modules/fseeko-tests (Depends-on): Likewise.
11210         * modules/ftello-tests (Depends-on): Likewise.
11211         * modules/fwrite-tests  (Depends-on): Likewise.
11212         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
11213
11214 2011-09-24  Bruno Haible  <bruno@clisp.org>
11215
11216         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
11217         * modules/fgetc-tests (Depends-on): Add unistd.
11218         * modules/fputc-tests (Depends-on): Likewise.
11219         * modules/fread-tests (Depends-on): Likewise.
11220         * modules/fwrite-tests (Depends-on): Likewise.
11221
11222 2011-09-24  Bruno Haible  <bruno@clisp.org>
11223
11224         dup: Simplify autoconf test.
11225         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
11226         on gl_MSVC_INVAL's result.
11227
11228 2011-09-24  Bruno Haible  <bruno@clisp.org>
11229
11230         Tests for function fwrite().
11231         * modules/fwrite-tests: New file.
11232         * tests/test-fwrite.c: New file.
11233         * modules/stdio-tests (Depends-on): Add fwrite-tests.
11234
11235         Tests for function fread().
11236         * modules/fread-tests: New file.
11237         * tests/test-fread.c: New file.
11238         * modules/stdio-tests (Depends-on): Add fread-tests.
11239
11240         Activate fputc tests.
11241         * modules/stdio-tests (Depends-on): Add fputc-tests.
11242
11243         Enhance fgetc, fputc tests.
11244         * tests/test-fgetc.c (main): Also test the stream's error indicator.
11245         * tests/test-fputc.c (main): Likewise.
11246
11247 2011-09-24  Bruno Haible  <bruno@clisp.org>
11248
11249         write: Support for MSVC 9.
11250         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
11251         is not 1.
11252         * lib/write.c (write_nothrow): New function.
11253         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
11254         not 1. Use write_nothrow.
11255         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
11256         invalid parameter handler.
11257         (gl_PREREQ_WRITE): New macro.
11258         * modules/write (Depends-on): Add msvc-inval.
11259         (configure.ac): Invoke gl_PREREQ_WRITE.
11260         * doc/posix-functions/write.texi: Mention the problem on MSVC.
11261
11262 2011-09-24  Bruno Haible  <bruno@clisp.org>
11263
11264         read: Fix last commit.
11265         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
11266
11267 2011-09-24  Bruno Haible  <bruno@clisp.org>
11268
11269         dup2: Fix last commit.
11270         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
11271         (rpl_dup2): Disable fcntl workaround on native Windows.
11272
11273         sigprocmask: Make code safer.
11274         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
11275         section that changes macro definitions for this compilation unit.
11276
11277 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
11278
11279         dup2: clarify by coalescing Windows-specific material
11280         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
11281         "msvc-nothrow.h"' to the Windows-specific section, so that the
11282         Emacs source need not contain these include files.
11283         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
11284         Windows-specific fixes into this function rather than just the
11285         nothrow fix, as this shortens and clarifies the code.  Always
11286         define as a function, as that's a bit cleaner than having it be
11287         sometimes a function and sometimes a macro.
11288         (rpl_dup2): Move the Windows-specific stuff out of here and into
11289         ms_windows_dup2.  Don't protect the Haiku-related fix with
11290         "#if !defined __linux__", as the same code also works around
11291         a Linux kernel bug, and it doesn't add any system calls on any
11292         platform.  Add comment about FreeBSD 6.1.
11293
11294         sigprocmask: move #include directive
11295         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
11296         Windows-specific section, so that the Emacs source need not
11297         contain msvc-inval.h.
11298
11299 2011-09-23  Bruno Haible  <bruno@clisp.org>
11300
11301         read: Support for MSVC 9.
11302         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
11303         is not 1.
11304         * lib/read.c (read_nothrow): New function.
11305         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
11306         read_nothrow.
11307         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
11308         invalid parameter handler.
11309         (gl_PREREQ_READ): New macro.
11310         * modules/read (Depends-on): Add msvc-inval.
11311         (configure.ac): Invoke gl_PREREQ_READ.
11312         * doc/posix-functions/read.texi: Mention the problem on MSVC.
11313
11314 2011-09-23  Bruno Haible  <bruno@clisp.org>
11315
11316         close: Support for MSVC 9.
11317         * lib/close.c: Include <errno.h>, msvc-inval.h.
11318         (close_nothrow): New function.
11319         (rpl_close): Use it.
11320         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
11321         invalid parameter handler.
11322         * modules/close (Depends-on): Add msvc-inval.
11323         * modules/dup2-tests (Depends-on): Add close.
11324         * modules/dup3-tests (Depends-on): Likewise.
11325         * modules/fcntl-tests (Depends-on): Likewise.
11326         * modules/spawn-pipe-tests (Depends-on): Likewise.
11327         * modules/unistd-safer-tests (Depends-on): Likewise.
11328         * doc/posix-functions/close.texi: Mention the problem on MSVC.
11329
11330 2011-09-23  Bruno Haible  <bruno@clisp.org>
11331
11332         New module 'dup'.
11333         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
11334         Allow replacement.
11335         * lib/dup.c: New file.
11336         * lib/fchdir.c (rpl_dup): Remove function.
11337         * m4/dup.m4: New file.
11338         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
11339         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
11340         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
11341         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
11342         * modules/dup: New file.
11343         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
11344         'dup' module is in use.
11345         * modules/fdopendir (Depends-on): Add dup.
11346         * modules/fdutimensat-tests (Depends-on): Likewise.
11347         * modules/fts (Depends-on): Likewise.
11348         * modules/futimens-tests (Depends-on): Likewise.
11349         * modules/posix_spawnp-tests (Depends-on): Likewise.
11350         * modules/unistd-safer-tests (Depends-on): Likewise.
11351         * modules/utimens-tests (Depends-on): Likewise.
11352         * doc/posix-functions/dup.texi: Mention the new module and the problem
11353         on MSVC.
11354
11355 2011-09-23  Bruno Haible  <bruno@clisp.org>
11356
11357         getdtablesize: Support for MSVC 9.
11358         * lib/getdtablesize.c: Include msvc-inval.h.
11359         (_setmaxstdio_nothrow): New function.
11360         (_setmaxstdio): Redefine it.
11361         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
11362         * modules/getdtablesize (Depends-on): Add msvc-inval.
11363         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
11364
11365 2011-09-23  Bruno Haible  <bruno@clisp.org>
11366
11367         signal-h: Rename from signal.
11368         * modules/signal-h: Renamed from modules/signal.
11369         * modules/pthread_sigmask (Depends-on): Update.
11370         * modules/raise (Depends-on): Likewise.
11371         * modules/sigaction (Depends-on): Likewise.
11372         * modules/sigpipe (Depends-on): Likewise.
11373         * modules/sigprocmask (Depends-on): Likewise.
11374         * modules/sys_select (Depends-on): Likewise.
11375         * modules/signal-h-tests: Renamed from modules/signal-tests.
11376         (Files, Depends-on, Makefile.am): Update.
11377         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
11378         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
11379         (Files, Makefile.am): Update.
11380         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
11381         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
11382         * modules/signal: New placeholder file.
11383         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
11384         * doc/posix-headers/signal.texi: Update.
11385         * NEWS: Mention the change.
11386
11387 2011-09-23  Bruno Haible  <bruno@clisp.org>
11388
11389         sigprocmask: Avoid crashes through signal() on MSVC 9.
11390         * lib/sigprocmask.c: Include msvc-inval.h.
11391         (signal_nothrow): New function.
11392         (signal): Redefine it.
11393         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
11394         * modules/sigprocmask (Depends-on): Add msvc-inval.
11395         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
11396
11397 2011-09-23  Bruno Haible  <bruno@clisp.org>
11398
11399         Tests for module 'raise'.
11400         * modules/raise-tests: New file.
11401         * tests/test-raise.c: New file.
11402
11403         raise: Support for MSVC.
11404         * lib/signal.in.h (raise): New declaration.
11405         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
11406         for native Windows platforms.
11407         * m4/raise.m4: New file.
11408         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
11409         HAVE_RAISE, REPLACE_RAISE.
11410         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
11411         REPLACE_RAISE.
11412         * modules/raise (Status, Notice): Remove fields.
11413         (Files): Add m4/raise.m4.
11414         (Depends-on): Add signal, msvc-inval.
11415         (configure.ac): Use the common idioms.
11416         (Maintainer): Add me.
11417         * tests/test-signal-c++.cc: Check the signature of raise.
11418         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
11419
11420 2011-09-23  Bruno Haible  <bruno@clisp.org>
11421
11422         pipe2: Fix compilation on pre-C99 compilers.
11423         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
11424
11425 2011-09-23  Bruno Haible  <bruno@clisp.org>
11426
11427         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
11428         * lib/msvc-nothrow.h: New file.
11429         * lib/msvc-nothrow.c: New file.
11430         * m4/msvc-nothrow.m4: New file.
11431         * modules/msvc-nothrow: New file.
11432         * lib/dup2.c: Include msvc-nothrow.h.
11433         (rpl_dup2): No need to protect _get_osfhandle call here.
11434         * lib/accept4.c: Include msvc-nothrow.h.
11435         * lib/error.c: Likewise.
11436         * lib/fcntl.c: Likewise.
11437         * lib/lseek.c: Likewise.
11438         * lib/nonblocking.c: Likewise.
11439         * lib/poll.c: Likewise.
11440         * lib/read.c: Likewise.
11441         * lib/select.c: Likewise.
11442         * lib/sockets.h: Likewise.
11443         * lib/sockets.c: Likewise.
11444         * lib/stdio-read.c: Likewise.
11445         * lib/stdio-write.c: Likewise.
11446         * lib/write.c: Likewise.
11447         * lib/w32sock.h: Likewise.
11448         * lib/w32spawn.h: Likewise.
11449         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
11450         * lib/fsync.c: Likewise.
11451         * lib/isapipe.c: Likewise.
11452         * modules/dup2 (Depends-on): Add msvc-nothrow.
11453         * modules/accept4 (Depends-on): Likewise.
11454         * modules/error (Depends-on): Likewise.
11455         * modules/fcntl (Depends-on): Likewise.
11456         * modules/lseek (Depends-on): Likewise.
11457         * modules/nonblocking (Depends-on): Likewise.
11458         * modules/poll (Depends-on): Likewise.
11459         * modules/read (Depends-on): Likewise.
11460         * modules/select (Depends-on): Likewise.
11461         * modules/sockets (Depends-on): Likewise.
11462         * modules/sigpipe (Depends-on): Likewise.
11463         * modules/write (Depends-on): Likewise.
11464         * modules/accept (Depends-on): Likewise.
11465         * modules/bind (Depends-on): Likewise.
11466         * modules/connect (Depends-on): Likewise.
11467         * modules/gethostname (Depends-on): Likewise.
11468         * modules/getpeername (Depends-on): Likewise.
11469         * modules/getsockname (Depends-on): Likewise.
11470         * modules/getsockopt (Depends-on): Likewise.
11471         * modules/ioctl (Depends-on): Likewise.
11472         * modules/listen (Depends-on): Likewise.
11473         * modules/recv (Depends-on): Likewise.
11474         * modules/recvfrom (Depends-on): Likewise.
11475         * modules/send (Depends-on): Likewise.
11476         * modules/sendto (Depends-on): Likewise.
11477         * modules/setsockopt (Depends-on): Likewise.
11478         * modules/shutdown (Depends-on): Likewise.
11479         * modules/socket (Depends-on): Likewise.
11480         * modules/execute (Depends-on): Likewise.
11481         * modules/spawn-pipe (Depends-on): Likewise.
11482         * modules/flock (Depends-on): Likewise.
11483         * modules/fsync (Depends-on): Likewise.
11484         * modules/isapipe (Depends-on): Likewise.
11485         * tests/test-cloexec.c: Include msvc-nothrow.h.
11486         * tests/test-dup-safer.c: Likewise.
11487         * tests/test-dup2.c: Likewise.
11488         * tests/test-dup3.c: Likewise.
11489         * tests/test-fcntl.c: Likewise.
11490         * tests/test-pipe.c: Likewise.
11491         * tests/test-pipe2.c: Likewise.
11492         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
11493         * modules/unistd-safer-tests (Depends-on): Likewise.
11494         * modules/dup2-tests (Depends-on): Likewise.
11495         * modules/dup3-tests (Depends-on): Likewise.
11496         * modules/fcntl-tests (Depends-on): Likewise.
11497         * modules/pipe-posix-tests (Depends-on): Likewise.
11498         * modules/pipe2-tests (Depends-on): Likewise.
11499
11500 2011-09-23  Bruno Haible  <bruno@clisp.org>
11501
11502         dup2: Make code more maintainable.
11503         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
11504         (rpl_dup2): Use it.
11505         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
11506         * modules/dup2 (configure.ac): Invoke it.
11507         Reported by Paul Eggert.
11508
11509 2011-09-23  Bruno Haible  <bruno@clisp.org>
11510
11511         msvc-inval: Fix compilation error.
11512         * lib/msvc-inval.h: Include <excpt.h>.
11513
11514 2011-09-23  Bruno Haible  <bruno@clisp.org>
11515
11516         mkdir: Tweak for MSVC 9.
11517         * lib/sys_stat.in.h: Update comments.
11518         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
11519
11520         Tests for module 'chdir'.
11521         * modules/chdir-tests: New file.
11522         * tests/test-chdir.c: New file.
11523
11524         New module 'chdir'.
11525         * modules/chdir: New file.
11526         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
11527         (chdir): New declaration.
11528         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
11529         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
11530         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
11531         * tests/test-unistd-c++.cc: Check signature of chdir.
11532         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
11533         * modules/chdir-long (Depends-on): Add chdir.
11534         * modules/fchdir (Depends-on): Likewise.
11535         * modules/rename (Depends-on): Likewise.
11536         * modules/savewd (Depends-on): Likewise.
11537
11538         rmdir: Support for mingw, MSVC 9.
11539         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
11540         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
11541
11542         getcwd: Tweak for MSVC 9.
11543         * lib/unistd.in.h: Update comments.
11544         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
11545
11546 2011-09-22  Bruno Haible  <bruno@clisp.org>
11547
11548         strerror_r-posix: Avoid a link error on MSVC.
11549         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
11550         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
11551
11552 2011-09-22  Bruno Haible  <bruno@clisp.org>
11553
11554         select: Avoid link errors on MSVC.
11555         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
11556         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
11557         * modules/pselect (Link): Likewise.
11558         * NEWS: Mention the change.
11559         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
11560         test-select-stdin against $(LIB_SELECT).
11561         * modules/pselect-tests (Makefile.am): Link test-pselect against
11562         $(LIB_SELECT).
11563
11564 2011-09-22  Bruno Haible  <bruno@clisp.org>
11565
11566         select: Avoid compilation error on MSVC.
11567         * lib/select.c: Don't include <stdbool.h>.
11568
11569 2011-09-21  Bruno Haible  <bruno@clisp.org>
11570
11571         Consolidate all uses of PATH_MAX in *.m4 files.
11572         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
11573         macros.
11574         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
11575         and gl_PATHMAX_SNIPPET.
11576         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
11577         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
11578         * modules/chdir-long (Files): Add m4/pathmax.m4.
11579         * modules/getcwd (Files): Likewise.
11580
11581 2011-09-21  Bruno Haible  <bruno@clisp.org>
11582
11583         ftruncate: Un-deprecate, concentrate on Win32 support.
11584         * modules/ftruncate (Status, Notice): Remove sections.
11585         (Depends-on): Add largefile.
11586         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
11587         non-mingw platforms.
11588         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
11589         include <io.h>.
11590         * modules/perror-tests (Depends-on): Add ftruncate.
11591         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
11592         'ftruncate' module.
11593
11594 2011-09-21  Bruno Haible  <bruno@clisp.org>
11595
11596         Add dependencies to new dirent related modules.
11597         * modules/opendir (Depends-on): Add closedir.
11598         * modules/getcwd (Depends-on): Add opendir, closedir.
11599         * modules/dirent-safer-tests (Depends-on): Likewise.
11600         * modules/fdopendir-tests (Depends-on): Likewise.
11601         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
11602         * modules/renameat-tests (Depends-on): Likewise.
11603
11604 2011-09-21  Bruno Haible  <bruno@clisp.org>
11605
11606         opendir: Avoid compilation error on mingw.
11607         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
11608         * modules/opendir (Depends-on): Add unistd.
11609
11610 2011-09-21  Bruno Haible  <bruno@clisp.org>
11611
11612         ftruncate tests: Avoid a test failure on mingw.
11613         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
11614
11615 2011-09-21  Bruno Haible  <bruno@clisp.org>
11616
11617         select tests: Avoid test failures on OSF/1 5.1 and mingw.
11618         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
11619         native Windows.
11620
11621 2011-09-21  Bruno Haible  <bruno@clisp.org>
11622
11623         New module 'fdopen'.
11624         * lib/stdio.in.h (fdopen): New declaration.
11625         * lib/fdopen.c: New file.
11626         * m4/fdopen.m4: New file.
11627         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
11628         REPLACE_FDOPEN.
11629         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
11630         REPLACE_FDOPEN.
11631         * modules/fdopen: New file.
11632         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
11633         * tests/test-stdio-c++.cc: Check signature of fdopen.
11634         * doc/posix-functions/fdopen.texi: Mention the new module.
11635
11636 2011-09-21  Bruno Haible  <bruno@clisp.org>
11637
11638         unlockpt tests: Avoid test failure on NetBSD 5.1.
11639         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
11640         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
11641
11642 2011-09-21  Bruno Haible  <bruno@clisp.org>
11643
11644         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
11645         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
11646         * tests/test-getlogin_r.c (main): Likewise.
11647
11648 2011-09-20  Bruno Haible  <bruno@clisp.org>
11649
11650         time tests: Don't require pid_t.
11651         * doc/posix-headers/time.texi: Revert last change.
11652         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
11653         * tests/test-time.c: Comment out the check for pid_t.
11654
11655 2011-09-20  Bruno Haible  <bruno@clisp.org>
11656
11657         fsync tests: Avoid a test failure on mingw.
11658         * tests/test-fsync.c (main): Allow a failure with EIO.
11659
11660 2011-09-20  Bruno Haible  <bruno@clisp.org>
11661
11662         euidaccess: Update comments.
11663         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
11664
11665 2011-09-20  Bruno Haible  <bruno@clisp.org>
11666
11667         Ensure EBADF returns for socket functions on mingw.
11668         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
11669         descriptor is invalid.
11670         * lib/bind.c (rpl_bind): Likewise.
11671         * lib/connect.c (rpl_connect): Likewise.
11672         * lib/getpeername.c (rpl_getpeername): Likewise.
11673         * lib/getsockname.c (rpl_getsockname): Likewise.
11674         * lib/getsockopt.c (rpl_getsockopt): Likewise.
11675         * lib/listen.c (rpl_listen): Likewise.
11676         * lib/recv.c (rpl_recv): Likewise.
11677         * lib/recvfrom.c (rpl_recvfrom): Likewise.
11678         * lib/send.c (rpl_send): Likewise.
11679         * lib/sendto.c (rpl_sendto): Likewise.
11680         * lib/setsockopt.c (rpl_setsockopt): Likewise.
11681         * lib/shutdown.c (rpl_shutdown): Likewise.
11682
11683 2011-09-20  Bruno Haible  <bruno@clisp.org>
11684
11685         select tests: EBADF tests.
11686         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
11687         test_bad_fd): New functions.
11688         (test_function): Invoke also test_bad_fd.
11689
11690 2011-09-20  Bruno Haible  <bruno@clisp.org>
11691
11692         Tests for module 'posix_spawn_file_actions_addopen.
11693         * modules/posix_spawn_file_actions_addopen-tests: New file.
11694         * tests/test-posix_spawn_file_actions_addopen.c: New file.
11695
11696         Tests for module 'posix_spawn_file_actions_adddup2'.
11697         * modules/posix_spawn_file_actions_adddup2-tests: New file.
11698         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
11699
11700         Tests for module 'posix_spawn_file_actions_addclose'.
11701         * modules/posix_spawn_file_actions_addclose-tests: New file.
11702         * tests/test-posix_spawn_file_actions_addclose.c: New file.
11703
11704 2011-09-20  Bruno Haible  <bruno@clisp.org>
11705
11706         Tests for module 'unlockpt'.
11707         * modules/unlockpt-tests: New file.
11708         * tests/test-unlockpt.c: New file.
11709         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
11710
11711         Tests for module 'grantpt'.
11712         * modules/grantpt-tests: New file.
11713         * tests/test-grantpt.c: New file.
11714         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
11715
11716 2011-09-20  Bruno Haible  <bruno@clisp.org>
11717
11718         freopen tests: EBADF tests.
11719         * tests/test-freopen.c: Include errno.h, unistd.h.
11720         (main): Add tests for EBADF, commented out for the moment.
11721
11722         fclose tests: EBADF tests.
11723         * tests/test-fclose.c (main): Add tests for EBADF.
11724
11725         fflush tests: EBADF tests.
11726         * tests/test-fflush.c: Include errno.h, macros.h.
11727         (main): Add tests for EBADF.
11728
11729         ftello tests: EBADF tests.
11730         * tests/test-ftello4.sh: New file.
11731         * tests/test-ftello4.c: New file.
11732         * modules/ftello-tests (Files): Add them.
11733         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
11734
11735         fseeko tests: EBADF tests.
11736         * tests/test-fseeko4.sh: New file.
11737         * tests/test-fseeko4.c: New file.
11738         * modules/fseeko-tests (Files): Add them.
11739         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
11740
11741         Tests for function fputc().
11742         * modules/fputc-tests: New file.
11743         * tests/test-fputc.c: New file.
11744         * modules/stdio-tests (Depends-on): Add fputc-tests.
11745
11746         Tests for function fgetc().
11747         * modules/fgetc-tests: New file.
11748         * tests/test-fgetc.c: New file.
11749         * modules/stdio-tests (Depends-on): Add fgetc-tests.
11750
11751         Tests for function fdopen().
11752         * modules/fdopen-tests: New file.
11753         * tests/test-fdopen.c: New file.
11754         * modules/stdio-tests (Depends-on): Add fdopen-tests.
11755
11756         Tests for module 'vdprintf'.
11757         * modules/vdprintf-tests: New file.
11758         * tests/test-vdprintf.c: New file.
11759
11760         Tests for module 'dprintf'.
11761         * modules/dprintf-tests: New file.
11762         * tests/test-dprintf.c: New file.
11763
11764 2011-09-20  Bruno Haible  <bruno@clisp.org>
11765
11766         Tests for module 'ioctl'.
11767         * modules/ioctl-tests: New file.
11768         * tests/test-ioctl.c: New file.
11769
11770 2011-09-20  Bruno Haible  <bruno@clisp.org>
11771
11772         fcntl tests: EBADF tests.
11773         * tests/test-fcntl.c (main): Add more tests for EBADF.
11774
11775 2011-09-20  Bruno Haible  <bruno@clisp.org>
11776
11777         utimensat tests: EBADF tests.
11778         * tests/test-utimensat.c (main): Add tests for EBADF.
11779
11780         renameat tests: EBADF tests.
11781         * tests/test-renameat.c (main): Add tests for EBADF.
11782
11783         mkfifoat tests: EBADF tests.
11784         * tests/test-mkfifoat.c (main): Add tests for EBADF.
11785
11786         readlinkat tests: EBADF tests.
11787         * tests/test-readlinkat.c (main): Add tests for EBADF.
11788
11789         symlinkat tests: EBADF tests.
11790         * tests/test-symlinkat.c (main): Add tests for EBADF.
11791
11792         linkat tests: EBADF tests.
11793         * tests/test-linkat.c (main): Add tests for EBADF.
11794
11795         Tests for module 'faccessat'.
11796         * modules/faccessat-tests: New file.
11797         * tests/test-faccessat.c: New file.
11798
11799         fdopendir tests: EBADF tests.
11800         * tests/test-fdopendir.c (main): Add more tests for EBADF.
11801
11802         openat tests: EBADF tests.
11803         * tests/test-fchownat.c (main): Add tests for EBADF.
11804         * tests/test-fstatat.c (main): Likewise.
11805         * tests/test-mkdirat.c (main): Likewise.
11806         * tests/test-openat.c (main): Likewise.
11807         * tests/test-unlinkat.c (main): Likewise.
11808         * tests/test-fchmodat.c: New file.
11809         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
11810         (Makefile.am): Also run 'test-fchmodat'.
11811
11812 2011-09-20  Bruno Haible  <bruno@clisp.org>
11813
11814         utimens, futimens, fdutimensat tests: EBADF tests.
11815         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
11816
11817         Tests for function fstat().
11818         * modules/fstat-tests: New file.
11819         * tests/test-fstat.c: New file.
11820         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
11821
11822 2011-09-20  Bruno Haible  <bruno@clisp.org>
11823
11824         test-ttyname_r tests: EBADF tests.
11825         * tests/test-ttyname_r.c (main): Add tests for EBADF.
11826
11827         Tests for module 'isatty'.
11828         * modules/isatty-tests: New file.
11829         * tests/test-isatty.c: New file.
11830
11831         Tests for module 'write'.
11832         * modules/write-tests: New file.
11833         * tests/test-write.c: New file.
11834
11835         Tests for module 'read'.
11836         * modules/read-tests: New file.
11837         * tests/test-read.c: New file.
11838
11839         pwrite tests: EBADF tests.
11840         * tests/test-pwrite.c (main): Add tests for EBADF.
11841
11842         pread tests: EBADF tests.
11843         * tests/test-pread.c (main): Add tests for EBADF.
11844
11845         lseek tests: EBADF tests.
11846         * tests/test-lseek.c (main): Add more tests for EBADF.
11847
11848         Tests for module 'ftruncate'.
11849         * modules/ftruncate-tests: New file.
11850         * tests/test-ftruncate.sh: New file.
11851         * tests/test-ftruncate.c: New file.
11852
11853         fsync tests: EBADF tests.
11854         * tests/test-fsync.c (main): Add more tests for EBADF.
11855
11856         fdatasync tests: EBADF tests.
11857         * tests/test-fdatasync.c (main): Add more tests for EBADF.
11858
11859         Tests for module 'fchown'.
11860         * modules/fchown-tests: New file.
11861         * tests/test-fchown.c: New file.
11862
11863         Tests for module 'fchmod'.
11864         * modules/fchmod-tests: New file.
11865         * tests/test-fchmod.c: New file.
11866
11867         fchdir tests: EBADF tests.
11868         * tests/test-fchdir.c (main): Add more tests for EBADF.
11869
11870         dup2 tests: EBADF tests.
11871         * tests/test-dup2.c (main): Add more tests for EBADF.
11872
11873         Tests for module 'dup'.
11874         * modules/dup-tests: New file.
11875         * tests/test-dup.c: New file.
11876
11877         Tests for module 'close'.
11878         * modules/close-tests: New file.
11879         * tests/test-close.c: New file.
11880
11881 2011-09-20  Bruno Haible  <bruno@clisp.org>
11882
11883         Tests for module 'shutdown'.
11884         * modules/shutdown-tests: New file.
11885         * tests/test-shutdown.c: New file.
11886
11887         Tests for module 'setsockopt'.
11888         * modules/setsockopt-tests: New file.
11889         * tests/test-setsockopt.c: New file.
11890
11891         Tests for module 'sendto'.
11892         * modules/sendto-tests: New file.
11893         * tests/test-sendto.c: New file.
11894
11895         Tests for module 'send'.
11896         * modules/send-tests: New file.
11897         * tests/test-send.c: New file.
11898
11899         Tests for module 'recvfrom'.
11900         * modules/recvfrom-tests: New file.
11901         * tests/test-recvfrom.c: New file.
11902
11903         Tests for module 'recv'.
11904         * modules/recv-tests: New file.
11905         * tests/test-recv.c: New file.
11906
11907         Tests for module 'listen'.
11908         * modules/listen-tests: New file.
11909         * tests/test-listen.c: New file.
11910
11911         Tests for module 'getsockopt'.
11912         * modules/getsockopt-tests: New file.
11913         * tests/test-getsockopt.c: New file.
11914
11915         Tests for module 'getsockname'.
11916         * modules/getsockname-tests: New file.
11917         * tests/test-getsockname.c: New file.
11918
11919         Tests for module 'getpeername'.
11920         * modules/getpeername-tests: New file.
11921         * tests/test-getpeername.c: New file.
11922
11923         Tests for module 'connect'.
11924         * modules/connect-tests: New file.
11925         * tests/test-connect.c: New file.
11926
11927         Tests for module 'bind'.
11928         * modules/bind-tests: New file.
11929         * tests/test-bind.c: New file.
11930
11931         accept4 tests: Fix for native Windows.
11932         * tests/test-accept4.c: Include sockets.h.
11933         (main): Invoke gl_sockets_startup.
11934         * modules/accept4-tests (Depends-on): Add sockets.
11935
11936         accept tests: Fix for native Windows.
11937         * tests/test-accept.c: Include sockets.h.
11938         (main): Invoke gl_sockets_startup.
11939         * modules/accept-tests (Depends-on): Add sockets.
11940
11941 2011-09-19  Bruno Haible  <bruno@clisp.org>
11942
11943         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
11944         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
11945         do...while(0).
11946         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
11947         Suggested by Paul Eggert.
11948
11949 2011-09-19  Bruno Haible  <bruno@clisp.org>
11950
11951         sched: Ensure pid_t is defined.
11952         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
11953         not define pid_t.
11954         * lib/sched.in.h: Include <sys/types.h>.
11955         * doc/posix-headers/sched.texi: Mention the pid_t problem.
11956         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11957
11958 2011-09-19  Bruno Haible  <bruno@clisp.org>
11959
11960         msvc-inval: Ensure the entire expansion is a single statement.
11961         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
11962         of braces.
11963
11964 2011-09-19  Jim Meyering  <meyering@redhat.com>
11965
11966         tests: use printf, not echo in init.sh's warn_ function
11967         * tests/init.sh (warn_): Use printf, not echo.  The latter would
11968         misbehave when given strings containing a backslash or starting
11969         with e.g., -n.  James Youngman suggested setting IFS.
11970
11971 2011-09-19  Eric Blake  <eblake@redhat.com>
11972
11973         futimens: enhance test
11974         * tests/test-futimens.h (test_futimens): Also check for EBADF on
11975         closed non-negative fd.
11976
11977         date: accept 'hence' as opposite of 'ago'
11978         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
11979         * tests/test-parse-datetime.c (main): Enhance test.
11980         Suggested by Jesse Wilson.
11981
11982 2011-09-19  Jim Meyering  <meyering@redhat.com>
11983
11984         getcwd: don't fail in a deep directory on a system without openat
11985         Before this change, getcwd would fail when called from a directory
11986         of depth PATH_MAX / 3 or greater.  That was due to the fact that
11987         the non-openat implementation used "..", "../..", "../../..", etc.
11988         to access ancestor directories.  With too many, that string would
11989         be longer than PATH_MAX.
11990         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
11991         using gnulib's openat replacement.
11992         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
11993         we're using the replacement function.
11994
11995 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
11996
11997         maint.mk: avoid warnings from perl about missing files
11998         * top/maint.mk (def_sym_regex): Ignore files listed in
11999         $(gl_other_headers_) that do not exist, say because a project
12000         does not use a corresponding module.
12001
12002 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
12003
12004         stat: use pathmax.h only if needed
12005         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
12006         This is better for Emacs, which does not have a mingw port and
12007         therefore can avoid the pathmax module.
12008
12009         utimens: remove dependency on dup2
12010         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
12011         to work around the Linux kernel bug.
12012         * modules/utimens (Depends-on): Remove dup2.
12013
12014 2011-09-18  Bruno Haible  <bruno@clisp.org>
12015
12016         inet_ntop, inet_pton: Look for it also in libresolv.
12017         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
12018         libnsl, search for it in libresolv.
12019         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
12020         Needed on Solaris 7.
12021
12022 2011-09-18  Bruno Haible  <bruno@clisp.org>
12023
12024         accept, accept4 tests: Avoid link error on Solaris.
12025         * modules/accept-tests (Makefile.am): Link test-accept against
12026         $(LIBSOCKET).
12027         * modules/accept4-tests (Makefile.am): Link test-accept4 against
12028         $(LIBSOCKET).
12029
12030         accept4: Avoid link error on Solaris.
12031         * modules/accept4 (Link): New section.
12032
12033         socket functions: Avoid link errors on Solaris.
12034         * modules/accept (Depends-on): Add socketlib.
12035         (Link): New section.
12036         * modules/bind (Depends-on): Add socketlib.
12037         (Link): New section.
12038         * modules/connect (Depends-on): Add socketlib.
12039         (Link): New section.
12040         * modules/getpeername (Depends-on): Add socketlib.
12041         (Link): New section.
12042         * modules/getsockname (Depends-on): Add socketlib.
12043         (Link): New section.
12044         * modules/getsockopt (Depends-on): Add socketlib.
12045         (Link): New section.
12046         * modules/listen (Depends-on): Add socketlib.
12047         (Link): New section.
12048         * modules/recv (Depends-on): Add socketlib.
12049         (Link): New section.
12050         * modules/recvfrom (Depends-on): Add socketlib.
12051         (Link): New section.
12052         * modules/send (Depends-on): Add socketlib.
12053         (Link): New section.
12054         * modules/sendto (Depends-on): Add socketlib.
12055         (Link): New section.
12056         * modules/setsockopt (Depends-on): Add socketlib.
12057         (Link): New section.
12058         * modules/shutdown (Depends-on): Add socketlib.
12059         (Link): New section.
12060         * modules/socket (Depends-on): Add socketlib.
12061         (Link): New section.
12062
12063 2011-09-18  Bruno Haible  <bruno@clisp.org>
12064
12065         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
12066         * tests/test-ptsname.c (main): Terminate the test if it takes longer
12067         than 5 seconds.
12068         * modules/ptsname-tests (configure.ac): Test for alarm.
12069
12070 2011-09-18  Bruno Haible  <bruno@clisp.org>
12071
12072         posix_spawn_file_actions_add*: Fix module dependencies.
12073         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
12074         posix_spawn_file_actions_init.
12075         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
12076         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
12077
12078 2011-09-18  Bruno Haible  <bruno@clisp.org>
12079
12080         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
12081         * tests/test-rename.h (test_rename): Allow error code EEXIST.
12082         * tests/test-renameat.c (main): Likewise.
12083
12084 2011-09-18  Bruno Haible  <bruno@clisp.org>
12085
12086         Tests for module 'accept4'.
12087         * modules/accept4-tests: New file.
12088         * tests/test-accept4.c: New file.
12089
12090 2011-09-18  Bruno Haible  <bruno@clisp.org>
12091
12092         Tests for module 'accept'.
12093         * modules/accept-tests: New file.
12094         * tests/test-accept.c: New file.
12095
12096 2011-09-18  Bruno Haible  <bruno@clisp.org>
12097
12098         dup2: Support for MSVC.
12099         * lib/dup2.c: Include msvc-inval.h.
12100         (rpl_dup2): Handle invalid parameter notifications during dup2 and
12101         _get_osfhandle calls.
12102         * modules/dup2 (Depends-on): Add msvc-inval.
12103         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
12104
12105         New module 'msvc-inval'.
12106         * lib/msvc-inval.h: New file.
12107         * lib/msvc-inval.c: New file.
12108         * m4/msvc-inval.m4: New file.
12109         * modules/msvc-inval: New file.
12110
12111 2011-09-17  Bruno Haible  <bruno@clisp.org>
12112
12113         Tests for module 'pclose'.
12114         * modules/pclose-tests: New file.
12115
12116         New module 'pclose'.
12117         * lib/stdio.in.h (pclose): New declaration.
12118         * lib/pclose.c: New file.
12119         * m4/pclose.m4: New file.
12120         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
12121         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
12122         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
12123         * modules/pclose: New file.
12124         * modules/popen-tests (Depends-on): Add pclose.
12125         * modules/popen-safer-tests (Depends-on): Likewise.
12126         * doc/posix-functions/pclose.texi: Mention the new module.
12127
12128 2011-09-17  Bruno Haible  <bruno@clisp.org>
12129
12130         popen: Support for MSVC.
12131         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
12132         * lib/popen.c (popen): Provide alternate definition for native Windows.
12133         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
12134         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
12135         * modules/popen (Depends-on, configure.ac): Update condition.
12136         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
12137         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
12138         fixed.
12139
12140 2011-09-17  Bruno Haible  <bruno@clisp.org>
12141
12142         isnanl, isnand, isnanf: Work around MSVC bug.
12143         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
12144
12145 2011-09-17  Bruno Haible  <bruno@clisp.org>
12146
12147         sys_socket tests: Fix recent mistake.
12148         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
12149
12150 2011-09-17  Bruno Haible  <bruno@clisp.org>
12151
12152         putenv: Support for MSVC.
12153         * modules/putenv (Depends-on): Add environ.
12154         * lib/putenv.c (environ): Disable declaration.
12155         * lib/unistd.in.h: Update comment.
12156
12157 2011-09-17  Bruno Haible  <bruno@clisp.org>
12158
12159         math: Avoid macro redefinition warnings on MSVC.
12160         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
12161         Undefine before redefining.
12162
12163 2011-09-17  Bruno Haible  <bruno@clisp.org>
12164
12165         doc: Mention functions which are declared as macros.
12166         * doc/posix-functions/*[fl].texi: Mention that some functions are
12167         defined as macros with arguments only.
12168
12169 2011-09-17  Bruno Haible  <bruno@clisp.org>
12170
12171         Add dependencies to new dirent related modules.
12172         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
12173         * modules/fts (Depends-on): Likewise.
12174         * modules/glob (Depends-on): Likewise.
12175         * modules/savedir (Depends-on): Likewise.
12176         * modules/scandir (Depends-on): Likewise.
12177         * modules/dirent-safer (Depends-on): Add opendir, closedir.
12178         * modules/fdopendir (Depends-on): Add opendir.
12179
12180 2011-09-17  Bruno Haible  <bruno@clisp.org>
12181
12182         inet_pton: Support for MSVC on Windows Vista or newer.
12183         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
12184         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
12185         HAVE_DECL_INET_PTON is defined.
12186         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
12187         On platforms with <winsock2.h>, test whether inet_pton is declared in
12188         <ws2tcpip.h>. If so, arrange to replace it.
12189         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
12190         REPLACE_INET_PTON.
12191         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
12192         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
12193         (Depends-on, configure.ac): Update condition.
12194         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
12195
12196 2011-09-17  Bruno Haible  <bruno@clisp.org>
12197
12198         inet_ntop: Support for MSVC on Windows Vista or newer.
12199         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
12200         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
12201         HAVE_DECL_INET_NTOP is defined.
12202         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
12203         On platforms with <winsock2.h>, test whether inet_ntop is declared in
12204         <ws2tcpip.h>. If so, arrange to replace it.
12205         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
12206         REPLACE_INET_NTOP.
12207         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
12208         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
12209         (Depends-on, configure.ac): Update condition.
12210         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
12211
12212 2011-09-16  Eric Blake  <eblake@redhat.com>
12213
12214         test-fsync: yet another enhancement
12215         * tests/test-fsync.c (main): Also test behavior on read-only text
12216         file.
12217
12218 2011-09-16  Bruno Haible  <bruno@clisp.org>
12219
12220         Enhance fsync, fdatasync tests.
12221         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
12222         * tests/test-fdatasync.c (main): Likewise.
12223
12224 2011-09-16  Bruno Haible  <bruno@clisp.org>
12225
12226         Support for MSVC compiler: Ensure mode_t gets defined.
12227         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
12228         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
12229         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
12230         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
12231         * tests/test-fcntl-h.c: Check that mode_t is defined.
12232         * tests/test-sys_stat.c: Likewise.
12233         * tests/test-sys_types.c: Likewise.
12234         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
12235         * doc/posix-headers/sys_stat.texi: Likewise.
12236         * doc/posix-headers/sys_types.texi: Likewise.
12237
12238 2011-09-16  Bruno Haible  <bruno@clisp.org>
12239
12240         sys_stat: Support for MSVC.
12241         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
12242         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
12243         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
12244         MSVC.
12245
12246 2011-09-16  Bruno Haible  <bruno@clisp.org>
12247
12248         Support for MSVC compiler: Ensure off_t gets defined.
12249         * lib/unistd.in.h: Include <sys/types.h>.
12250         * tests/test-fcntl-h.c: Check that off_t is defined.
12251         * tests/test-sys_stat.c: Likewise.
12252         * tests/test-sys_types.c: Likewise.
12253
12254 2011-09-16  Eric Blake  <eblake@redhat.com>
12255
12256         fdatasync: port to Solaris
12257         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
12258         * modules/fdatasync (Link): Document it.
12259         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
12260
12261         fdatasync: port to MacOS X 10.7
12262         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
12263         declared.
12264         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
12265         * modules/unistd (Makefile.am): Substitute it.
12266         * lib/unistd.in.h (fdatasync): Declare on MacOS.
12267         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
12268
12269         fdatasync: minor improvements
12270         * modules/fdatasync (Depends-on): Add condition for fsync.
12271         * lib/fdatasync.c (fdatasync): Add comment.
12272         * tests/test-unistd-c++.cc: Test fdatasync.
12273
12274         unistd: update refs to newer POSIX
12275         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
12276         Suggested by Bruno Haible.
12277
12278         fdatasync: new module
12279         * modules/fsync (Description): Document difference to fdatasync.
12280         * modules/fdatasync: New module.
12281         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
12282         * lib/fdatasync.c (fdatasync): Likewise.
12283         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
12284         defaults.
12285         * modules/unistd (Makefile.am): Set witnesses.
12286         * lib/unistd.in.h (fdatasync): Declare.
12287         * MODULES.html.sh: Document it.
12288         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
12289         * modules/fdatasync-tests: New test.
12290         * tests/test-fdatasync.c: Likewise.
12291
12292 2011-09-16  Eric Blake  <eblake@redhat.com>
12293
12294         test-fsync: enhance tests
12295         * modules/fsync-tests (Depends-on): Add errno, for mingw.
12296         * tests/test-fsync.c (main): Enhance test.
12297
12298 2011-09-15  Bruno Haible  <bruno@clisp.org>
12299
12300         Support for MSVC compiler: Ensure ssize_t gets defined.
12301         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
12302         * doc/posix-headers/stdio.texi: Likewise.
12303         * modules/stdio (Depends-on): Add ssize_t.
12304         * modules/sys_socket (Depends-on): Likewise.
12305         * modules/sys_types (Depends-on): Likewise.
12306         * modules/sys_uio (Depends-on): Likewise.
12307         * modules/unistd (Depends-on): Likewise.
12308         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
12309         * tests/test-sys_types.c: Check that ssize_t is defined.
12310
12311 2011-09-14  Bruno Haible  <bruno@clisp.org>
12312
12313         Avoid using #, the m4 comment starter character, near brackets.
12314         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
12315         delimiter character in sed expressions.
12316         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
12317         Suggested by Eric Blake.
12318
12319         Properly quote AC_CHECK_DECLS' 4th argument.
12320         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
12321         argument.
12322         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
12323         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
12324         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
12325         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
12326         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
12327         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
12328         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
12329         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
12330         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
12331         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
12332         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
12333         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
12334         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
12335         * m4/isinf.m4 (gl_ISINF): Likewise.
12336         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
12337         * m4/readutmp.m4 (gl_READUTMP): Likewise.
12338         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
12339         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
12340         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
12341         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
12342         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
12343         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
12344         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
12345         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
12346         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
12347         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
12348         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
12349         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
12350         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
12351         Reported by Eric Blake.
12352
12353         Properly quote AC_CHECK_DECL's 4th argument.
12354         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
12355         argument.
12356         * m4/argp.m4 (gl_ARGP): Likewise.
12357         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
12358         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
12359         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
12360         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
12361         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
12362         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
12363         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
12364         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
12365         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
12366         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
12367         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
12368         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
12369         Reported by Eric Blake.
12370
12371 2011-09-14  Eric Blake  <eblake@redhat.com>
12372
12373         opendir: avoid compile warning
12374         * lib/opendir.c (includes): Always include errno.h.
12375         Reported by Tatsuro MATSUOKA.
12376
12377 2011-09-14  Jim Meyering  <meyering@redhat.com>
12378
12379         maint.mk: sc_tight_scope: propagate failure from sub-make
12380         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
12381         Reported by Martin von Gagern.
12382
12383 2011-09-13  Bruno Haible  <bruno@clisp.org>
12384
12385         tempname: Support for MSVC.
12386         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
12387         MSVC.
12388         * modules/tempname (Depends-on): Add fcntl-h.
12389
12390 2011-09-13  Bruno Haible  <bruno@clisp.org>
12391
12392         sys_time: Support for MSVC.
12393         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
12394         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
12395         include <winsock2.h>.
12396         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
12397         function declarations that collide with POSIX.
12398         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
12399         (Makefile.am): Substitute HAVE_WINSOCK2_H.
12400
12401 2011-09-13  Bruno Haible  <bruno@clisp.org>
12402
12403         stat: Support for MSVC.
12404         * lib/stat.c: Include pathmax.h.
12405         * modules/stat (Depends-on): Add pathmax.
12406
12407         pathmax: Support for native Windows.
12408         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
12409
12410 2011-09-12  Bruno Haible  <bruno@clisp.org>
12411
12412         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
12413         * lib/dirent.in.h (struct dirent): New type.
12414         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
12415         DT_WHT): New macros.
12416         (DIR): New type.
12417         (opendir, closedir): Declare only if the module 'opendir' is enabled.
12418         (readdir, rewinddir): New declarations.
12419         * lib/dirent-private.h: New file.
12420         * lib/opendir.c: New file.
12421         * lib/readdir.c: New file.
12422         * lib/rewinddir.c: New file.
12423         * lib/closedir.c: New file.
12424         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
12425         * m4/opendir.m4: New file.
12426         * m4/readdir.m4: New file.
12427         * m4/rewinddir.m4: New file.
12428         * m4/closedir.m4: New file.
12429         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
12430         REPLACE_CLOSEDIR here.
12431         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
12432         readdir, rewinddir are declared.
12433         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
12434         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
12435         HAVE_REWINDDIR, HAVE_CLOSEDIR.
12436         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
12437         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
12438         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
12439         * modules/opendir: New file.
12440         * modules/readdir: New file.
12441         * modules/rewinddir: New file.
12442         * modules/closedir: New file.
12443         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
12444         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
12445         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
12446         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
12447         * NEWS: Mention the 'fchdir' change.
12448
12449 2011-09-11  Bruno Haible  <bruno@clisp.org>
12450
12451         asm-underscore.m4: Support for MSVC.
12452         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
12453         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
12454
12455 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
12456
12457         Doc about crypt functions.
12458         * doc/posix-functions/crypt.texi: Expand range of glibc versions
12459         needing for _GNU_SOURCE to get crypt.
12460         * doc/posix-functions/encrypt.texi: Likewise.
12461         * doc/posix-functions/setkey.texi: Likewise.
12462
12463 2011-09-11  Bruno Haible  <bruno@clisp.org>
12464
12465         doc: Update regarding MSVC 9.
12466         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
12467         tested".
12468         * doc/posix-functions/*.texi: Update with info about MSVC 9.
12469         * doc/posix-headers/*.texi: Likewise.
12470         * doc/pastposix-functions/*.texi: Likewise.
12471         * doc/glibc-functions/*.texi: Likewise.
12472         * doc/glibc-headers/*.texi: Likewise.
12473
12474 2011-09-11  Bruno Haible  <bruno@clisp.org>
12475
12476         unistd et al.: Don't assume <unistd.h> exists.
12477         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
12478         does not exist.
12479         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
12480         exist. But include <stdlib.h>.
12481         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
12482         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
12483         symlink() does not exist.
12484         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
12485         include <io.h> instead.
12486         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
12487         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
12488         include <direct.h> instead.
12489         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
12490         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
12491         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
12492         <io.h> instead.
12493         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
12494         correctly if the system does not have hard links.
12495         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
12496         <direct.h> instead.
12497         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
12498         it when looking for function declarations.
12499         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
12500         <direct.h> and <io.h> instead.
12501         * doc/posix-headers/unistd.texi: More details about MSVC problem.
12502
12503 2011-09-11  Bruno Haible  <bruno@clisp.org>
12504
12505         strcase: Support for MSVC.
12506         * modules/strcase (Status, Notice): Remove obsoletion mark.
12507         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
12508         * doc/posix-functions/strncasecmp.texi: Likewise.
12509
12510         strings: Don't assume <strings.h> exists.
12511         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
12512         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
12513         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
12514         * doc/posix-headers/strings.texi: Mention the MSVC problem.
12515
12516 2011-09-11  Bruno Haible  <bruno@clisp.org>
12517
12518         dirent: Don't assume <dirent.h> exists.
12519         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
12520         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
12521         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
12522         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
12523
12524 2011-09-11  Bruno Haible  <bruno@clisp.org>
12525
12526         Fix wint_t on MSVC.
12527         * lib/wchar.in.h (wint_t): On MSVC, override it.
12528         * lib/wctype.in.h (wint_t): Likewise.
12529         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
12530         MSVC.
12531         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
12532         * doc/posix-headers/wctype.texi: Likewise.
12533
12534 2011-09-11  Bruno Haible  <bruno@clisp.org>
12535
12536         sys_types: Fix typo.
12537         * lib/sys_types.in.h: Fix typo in comment.
12538         Reported by Paul Eggert.
12539
12540         Support for MSVC compiler: Ensure size_t gets defined.
12541         * modules/strings (Depends-on): Add 'sys_types'.
12542         * modules/sys_uio (Depends-on): Likewise.
12543         * lib/sys_uio.in.h: Update comment.
12544
12545         C++ tests for module 'sys_types'.
12546         * modules/sys_types-c++-tests: New file.
12547         * tests/test-sys_types-c++.cc: New file.
12548
12549         Tests for module 'sys_types'.
12550         * modules/sys_types-tests: New file.
12551         * tests/test-sys_types.c: New file.
12552
12553         New module 'sys_types'.
12554         * lib/sys_types.in.h: New file.
12555         * m4/sys_types_h.m4: New file.
12556         * modules/sys_types: New file.
12557         * doc/posix-headers/sys_types.texi: Mention the new module and the
12558         size_t problem on MSVC 9.
12559
12560 2011-09-11  Bruno Haible  <bruno@clisp.org>
12561
12562         Support for MSVC compiler: Avoid division by a literal 0.
12563         * lib/math.in.h (NAN): Define through a function call also on MSVC.
12564         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
12565         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
12566         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
12567         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
12568         * tests/infinity.h: New file.
12569         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
12570         on MSVC.
12571         * tests/test-ceilf1.c: Include infinity.h.
12572         (main): Use Infinityf.
12573         * tests/test-ceil1.c: Include infinity.h.
12574         (main): Use Infinityd.
12575         * tests/test-ceill.c: Include infinity.h.
12576         (main): Use Infinityl.
12577         * tests/test-dprintf-posix.c: Include infinity.h.
12578         (test_function): Use Infinityd.
12579         * tests/test-floorf1.c: Include infinity.h.
12580         (main): Use Infinityf.
12581         * tests/test-floor1.c: Include infinity.h.
12582         (main): Use Infinityd.
12583         * tests/test-floorl.c: Include infinity.h.
12584         (main): Use Infinityl.
12585         * tests/test-fprintf-posix.c: Include infinity.h.
12586         (test_function): Use Infinityd.
12587         * tests/test-frexp.c: Include infinity.h.
12588         (main): Use Infinityd.
12589         * tests/test-frexpl.c: Include infinity.h.
12590         (main): Use Infinityl.
12591         * tests/test-isfinite.c: Include infinity.h.
12592         (test_isfinitef): Use Infinityf.
12593         (test_isfinited): Use Infinityd.
12594         (test_isfinitel): Use Infinityl.
12595         * tests/test-isinf.c: Include infinity.h.
12596         (test_isinff): Use Infinityf.
12597         (test_isinfd): Use Infinityd.
12598         (test_isinfl): Use Infinityl.
12599         * tests/test-isnan.c: Include infinity.h.
12600         (test_float): Use Infinityf.
12601         (test_double): Use Infinityd.
12602         (test_long_double): Use Infinityl.
12603         * tests/test-isnanf.h: Include infinity.h.
12604         (main): Use Infinityf.
12605         * tests/test-isnand.h: Include infinity.h.
12606         (main): Use Infinityd.
12607         * tests/test-isnanl.h: Include infinity.h.
12608         (main): Use Infinityl.
12609         * tests/test-ldexpl.c: Include infinity.h.
12610         (main): Use Infinityl.
12611         * tests/test-printf-posix.h: Include infinity.h.
12612         (test_function): Use Infinityd.
12613         * tests/test-roundf1.c: Include infinity.h.
12614         (main): Use Infinityf.
12615         * tests/test-round1.c: Include infinity.h.
12616         (main): Use Infinityd.
12617         * tests/test-roundl.c: Include infinity.h.
12618         (main): Use Infinityl.
12619         * tests/test-signbit.c: Include infinity.h.
12620         (test_signbitf): Use Infinityf.
12621         (test_signbitd): Use Infinityd.
12622         (test_signbitl): Use Infinityl.
12623         * tests/test-snprintf-posix.h: Include infinity.h.
12624         (test_function): Use Infinityd, Infinityl.
12625         * tests/test-sprintf-posix.h: Include infinity.h.
12626         (test_function): Use Infinityd, Infinityl.
12627         * tests/test-truncf1.c: Include infinity.h.
12628         (main): Use Infinityf.
12629         * tests/test-trunc1.c: Include infinity.h.
12630         (main): Use Infinityd.
12631         * tests/test-truncl.c: Include infinity.h.
12632         (main): Use Infinityl.
12633         * tests/test-vasnprintf-posix.c: Include infinity.h.
12634         (test_function): Use Infinityd, Infinityl.
12635         * tests/test-vasprintf-posix.c: Include infinity.h.
12636         (test_function): Use Infinityd, Infinityl.
12637         * modules/ceilf-tests (Files): Add tests/infinity.h.
12638         * modules/ceil-tests (Files): Likewise.
12639         * modules/ceill-tests (Files): Likewise.
12640         * modules/dprintf-posix-tests (Files): Likewise.
12641         * modules/floorf-tests (Files): Likewise.
12642         * modules/floor-tests (Files): Likewise.
12643         * modules/floorl-tests (Files): Likewise.
12644         * modules/fprintf-posix-tests (Files): Likewise.
12645         * modules/frexp-tests (Files): Likewise.
12646         * modules/frexp-nolibm-tests (Files): Likewise.
12647         * modules/frexpl-tests (Files): Likewise.
12648         * modules/frexpl-nolibm-tests (Files): Likewise.
12649         * modules/isfinite-tests (Files): Likewise.
12650         * modules/isinf-tests (Files): Likewise.
12651         * modules/isnan-tests (Files): Likewise.
12652         * modules/isnanf-tests (Files): Likewise.
12653         * modules/isnanf-nolibm-tests (Files): Likewise.
12654         * modules/isnand-tests (Files): Likewise.
12655         * modules/isnand-nolibm-tests (Files): Likewise.
12656         * modules/isnanl-tests (Files): Likewise.
12657         * modules/isnanl-nolibm-tests (Files): Likewise.
12658         * modules/ldexpl-tests (Files): Likewise.
12659         * modules/printf-posix-tests (Files): Likewise.
12660         * modules/roundf-tests (Files): Likewise.
12661         * modules/round-tests (Files): Likewise.
12662         * modules/roundl-tests (Files): Likewise.
12663         * modules/signbit-tests (Files): Likewise.
12664         * modules/snprintf-posix-tests (Files): Likewise.
12665         * modules/sprintf-posix-tests (Files): Likewise.
12666         * modules/truncf-tests (Files): Likewise.
12667         * modules/trunc-tests (Files): Likewise.
12668         * modules/truncl-tests (Files): Likewise.
12669         * modules/vasnprintf-posix-tests (Files): Likewise.
12670         * modules/vasprintf-posix-tests (Files): Likewise.
12671         * modules/vdprintf-posix-tests (Files): Likewise.
12672         * modules/vfprintf-posix-tests (Files): Likewise.
12673         * modules/vprintf-posix-tests (Files): Likewise.
12674         * modules/vsnprintf-posix-tests (Files): Likewise.
12675         * modules/vsprintf-posix-tests (Files): Likewise.
12676         * modules/xprintf-posix-tests (Files): Likewise.
12677
12678 2011-09-11  Bruno Haible  <bruno@clisp.org>
12679
12680         Ensure pid_t gets defined.
12681         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
12682         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
12683         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
12684         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
12685         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
12686         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
12687         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
12688         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
12689         * tests/test-fcntl-h.c: Check that pid_t is defined.
12690         * tests/test-sched.c: Likewise.
12691         * tests/test-termios.c: Likewise.
12692         * tests/test-time.c: Likewise.
12693         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
12694         * doc/posix-headers/signal.texi: Likewise.
12695         * doc/posix-headers/sys_types.texi: Likewise.
12696         * doc/posix-headers/time.texi: Likewise.
12697
12698 2011-09-11  Bruno Haible  <bruno@clisp.org>
12699
12700         acl: Fix compilation on Solaris 10 (older version).
12701         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
12702         of ACE_EVERYONE.
12703         * lib/set-mode-acl.c (qset_acl): Likewise.
12704         Reported by Christian Jullien <eligis@orange.fr>.
12705
12706 2011-09-10  Bruno Haible  <bruno@clisp.org>
12707
12708         iconv, unsetenv: Add support for MSVC compiler.
12709         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
12710         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
12711
12712 2011-09-10  Bruno Haible  <bruno@clisp.org>
12713
12714         *printf: Add support for MSVC compiler.
12715         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
12716         handles the exception caused by the %n directive. When cross-compiling,
12717         guess no on native Windows.
12718         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
12719         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
12720         emulate it through vsnprintf.
12721         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
12722         * doc/posix-functions/dprintf.texi: Update documentation regarding
12723         MSVC 9.
12724         * doc/posix-functions/fprintf.texi: Likewise.
12725         * doc/posix-functions/printf.texi: Likewise.
12726         * doc/posix-functions/snprintf.texi: Likewise.
12727         * doc/posix-functions/sprintf.texi: Likewise.
12728         * doc/posix-functions/swprintf.texi: Likewise.
12729         * doc/posix-functions/vdprintf.texi: Likewise.
12730         * doc/posix-functions/vfprintf.texi: Likewise.
12731         * doc/posix-functions/vprintf.texi: Likewise.
12732         * doc/posix-functions/vsnprintf.texi: Likewise.
12733         * doc/posix-functions/vsprintf.texi: Likewise.
12734         * doc/glibc-functions/asprintf.texi: Likewise.
12735         * doc/glibc-functions/obstack_printf.texi: Likewise.
12736         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
12737         * doc/glibc-functions/vasprintf.texi: Likewise.
12738
12739 2011-09-10  Bruno Haible  <bruno@clisp.org>
12740
12741         nocrash: Add support for native Windows.
12742         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
12743
12744 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
12745             Bruno Haible  <bruno@clisp.org>
12746
12747         absolute-header, include-next: Add support for MSVC compiler.
12748         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
12749         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
12750         directory separator in #line directives.
12751         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
12752         recognize also backslash as directory separator in #line directives.
12753
12754 2011-09-08  Jim Meyering  <meyering@redhat.com>
12755
12756         maint.mk: mark the post-release commit log with "maint: " prefix
12757         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
12758         one-line commit-log summary.
12759
12760 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
12761             Bruno Haible  <bruno@clisp.org>
12762
12763         Doc about crypt functions.
12764         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
12765         systems.
12766         * doc/posix-functions/encrypt.texi: Likewise.
12767         * doc/posix-functions/setkey.texi: Likewise.
12768
12769 2011-09-08  Simon Josefsson  <simon@josefsson.org>
12770
12771         * lib/gc.h: Fix copyright header.
12772
12773 2011-09-07  Bruno Haible  <bruno@clisp.org>
12774
12775         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
12776         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
12777         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
12778
12779 2011-09-07  Bruno Haible  <bruno@clisp.org>
12780
12781         openat: Work around compilation error with OSF/1 5.1 DTK cc.
12782         * lib/fopen.c: Use different syntax for include of <stdio.h>.
12783         * lib/freopen.c: Likewise.
12784         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
12785         * lib/lstat.c: Likewise.
12786         * lib/stat.c: Likewise.
12787         * lib/open.c: Use different syntax for include of <fcntl.h>.
12788         * lib/openat.c: Include fcntl.h again, explicitly.
12789
12790 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
12791
12792         parse-datetime: document the newly accepted format
12793         * doc/parse-datetime.texi (Combined date and time of day items):
12794         New section.
12795
12796 2011-09-06  Bruno Haible  <bruno@clisp.org>
12797
12798         acl: Fix a test failure on newer Solaris 10 with ZFS.
12799         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
12800         ENOSYS as no ACL.
12801         Reported by Jim Meyering.
12802
12803 2011-09-06  Bruno Haible  <bruno@clisp.org>
12804
12805         acl: Update for AIX >= 5.3 with NFS.
12806         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
12807         ENOSYS as no ACL.
12808
12809         acl: Fix a test failure on AIX >= 5.3 with NFS.
12810         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
12811         as no ACL.
12812
12813 2011-09-06  Bruno Haible  <bruno@clisp.org>
12814
12815         acl: Fix a test failure on IRIX 6.5 with NFS.
12816         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
12817         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
12818         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
12819         * lib/copy-acl.c (qcopy_acl): Likewise.
12820
12821 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
12822
12823         openat: port to AIX 7.1 with large files
12824         AIX 7.1 does a "#define openat open64at" if large files are in use,
12825         so we can't simply #undef openat.  Use the orig_openat trick (similar
12826         to orig_open in lib/open.c) to work around the problem.  Problem
12827         reported by Kevin Brott for GNU tar, in the thread containing
12828         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
12829         * lib/openat.c (__need_system_fcntl_h): Define first.
12830         Include <fcntl.h> and <sys/types.h> before undefining.
12831         (orig_openat) [HAVE_OPENAT]: New inline function.
12832         (openat) [HAVE_OPENAT]: Do not undef.
12833         (rpl_openat): Use orig_openat, not openat.
12834
12835 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
12836             Bruno Haible  <bruno@clisp.org>
12837
12838         acl: Avoid errors on NonStop Kernel.
12839         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
12840         ENOTSUP errors.
12841
12842 2011-09-05  Bruno Haible  <bruno@clisp.org>
12843
12844         acl: Clean up Solaris code.
12845         * lib/acl-internal.h: Remove no-op #if.
12846         * lib/file-has-acl.c: Likewise.
12847         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
12848         * lib/copy-acl.c (qcopy_acl): Likewise.
12849
12850 2011-09-05  Bruno Haible  <bruno@clisp.org>
12851
12852         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
12853         binaries built on the original Solaris 10.
12854         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
12855         trivial.
12856
12857 2011-09-05  Bruno Haible  <bruno@clisp.org>
12858
12859         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
12860         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
12861         10.
12862         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
12863         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
12864         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
12865         instead of acl_get, facl_get, acl_set, facl_set.
12866
12867 2011-09-05  Bruno Haible  <bruno@clisp.org>
12868
12869         copy-file: Try unit tests on more file systems.
12870         * tests/test-copy-file-1.sh: New file.
12871         * tests/test-copy-file-2.sh: New file.
12872         * modules/copy-file-tests (Files): Add them.
12873         (Makefile.am): Add them to TESTS.
12874
12875         acl: Try unit tests on more file systems.
12876         * tests/test-file-has-acl-1.sh: New file.
12877         * tests/test-file-has-acl-2.sh: New file.
12878         * tests/test-set-mode-acl-1.sh: New file.
12879         * tests/test-set-mode-acl-2.sh: New file.
12880         * tests/test-copy-acl-1.sh: New file.
12881         * tests/test-copy-acl-2.sh: New file.
12882         * modules/acl-tests (Files): Add them.
12883         (Makefile.am): Add them to TESTS.
12884
12885 2011-09-04  Bruno Haible  <bruno@clisp.org>
12886
12887         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
12888         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
12889         10.
12890         (OLD_ALLOW, OLD_DENY): New macros.
12891         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
12892         ACE_ACCESS_ALLOWED_ACE_TYPE.
12893         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
12894         ACE_ACCESS_DENIED_ACE_TYPE.
12895         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
12896         (NEW_ACE_EXECUTE): Fix value.
12897         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
12898         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
12899         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
12900         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
12901         NEW_ACE_SYNCHRONIZE): New macros.
12902         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
12903         instead of acl_fromtext, acl_set, facl_set.
12904         Fixes a coreutils/tests/cp/perm failure.
12905
12906 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
12907
12908         openat: test for fstatat (..., 0) bug
12909         Further testing with tar suggests that fstatat (..., 0)
12910         does not work in general, on AIX 7.1; see
12911         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
12912         So, give up entirely on AIX 7.1's fstatat, and fall back on our
12913         replacement fstatat (which is what older AIX releases were using
12914         anyway).
12915         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
12916         use is now changed to orig_fstatat.  This was probably the right
12917         thing to do anyway.
12918         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
12919         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
12920         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
12921         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
12922         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
12923         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
12924         if the bug is found.
12925
12926         openat: test for fstatat (AT_FDCWD, ..., 0) bug
12927         This tests for another fstatat bug on AIX 7.1:
12928         fstatat (AT_FDCWD, ..., 0) does not work.  See
12929         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
12930         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
12931         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
12932         (rpl_fstatat): Adjust so that it works around either (or both)
12933         bugs if present.
12934         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
12935
12936 2011-09-03  Karl Berry  <karl@gnu.org>
12937
12938         * doc/regex.texi (Character Class Operators): Avoid literal ":"
12939         in index entries.
12940
12941 2011-09-02  Bruno Haible  <bruno@clisp.org>
12942
12943         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
12944         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
12945         values of AR, ARFLAGS, RANLIB.
12946         Reported by John W. Eaton <jwe@gnu.org> for Octave.
12947
12948 2011-09-02  Bruno Haible  <bruno@clisp.org>
12949
12950         Find 'ar' program that fits with --host argument.
12951         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
12952
12953 2011-09-02  Bruno Haible  <bruno@clisp.org>
12954
12955         tests: init.sh: Support any non-GNU diff.
12956         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
12957         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
12958         Solaris 8.
12959
12960 2011-09-02  Bruno Haible  <bruno@clisp.org>
12961
12962         tests: init.sh: work also with any non-GNU diff that supports -u
12963         * tests/init.sh: Relax check for diff -u support.
12964         Rather than checking for GNU diff via --version, simply check
12965         for support for -u itself.  Useful at least on OpenBSD 4.9,
12966         AIX 7.1, IRIX 6.5, and Solaris 10.
12967
12968 2011-09-01  Bruno Haible  <bruno@clisp.org>
12969
12970         strtoimax, strtoumax: Document problem on HP-UX 11.
12971         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
12972         * doc/posix-functions/strtoumax.texi: Likewise.
12973
12974 2011-09-01  Bruno Haible  <bruno@clisp.org>
12975
12976         strtoumax: Avoid link error on OSF/1 with DTK cc.
12977         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
12978         defined as a function.
12979         * modules/strtoumax (Depends-on, configure.ac): Test only whether
12980         strtoumax is defined, not whether it is declared.
12981
12982 2011-09-01  Bruno Haible  <bruno@clisp.org>
12983
12984         strtoimax: Avoid link error on OSF/1 with DTK cc.
12985         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
12986         defined as a function.
12987         * modules/strtoimax (Depends-on, configure.ac): Test only whether
12988         strtoimax is defined, not whether it is declared.
12989
12990 2011-09-01  Bruno Haible  <bruno@clisp.org>
12991
12992         imaxdiv: Avoid link error on OSF/1 with DTK cc.
12993         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
12994         as a function.
12995         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
12996         whether it is declared.
12997
12998 2011-09-01  Bruno Haible  <bruno@clisp.org>
12999
13000         imaxabs: Avoid link error on OSF/1 with DTK cc.
13001         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
13002         as a function.
13003         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
13004         whether it is declared.
13005
13006 2011-09-01  Bruno Haible  <bruno@clisp.org>
13007
13008         Tests for module 'strtoumax'.
13009         * modules/strtoumax-tests: New file.
13010         * tests/test-strtoumax.c: New file.
13011
13012         Tests for module 'strtoimax'.
13013         * modules/strtoimax-tests: New file.
13014         * tests/test-strtoimax.c: New file.
13015
13016         Tests for module 'imaxdiv'.
13017         * modules/imaxdiv-tests: New file.
13018         * tests/test-imaxdiv.c: New file.
13019
13020         Tests for module 'imaxabs'.
13021         * modules/imaxabs-tests: New file.
13022         * tests/test-imaxabs.c: New file.
13023
13024 2011-09-01  Bruno Haible  <bruno@clisp.org>
13025
13026         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
13027         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
13028         pthread_create.
13029
13030 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
13031
13032         openat: work around AIX 7.1 fstatat issue
13033         This should fix the problem that was not properly fixed
13034         in the previous change, dated 2011-08-30.
13035         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
13036         __need_system_stat_h defined.
13037         (orig_fstatat) [HAVE_FSTATAT]: New function.
13038         (rpl_fstatat): Go back to the old way of doing things,
13039         except call orig_fstatat instead of fstatat.
13040         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
13041         Remove unnecessary check whether fstatat fills in st_size etc.
13042
13043 2011-09-01  Bruno Haible  <bruno@clisp.org>
13044
13045         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
13046         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
13047         just include the system's header.
13048
13049 2011-08-31  Jim Meyering  <meyering@redhat.com>
13050
13051         tests: avoid spurious assertion failure in test-float.c on ppc64
13052         * tests/test-float.c (test_long_double): Comment out an assertion,
13053         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
13054         with gcc-4.4.4.
13055
13056         maint: indent with spaces, not TABs
13057         I need to get in the habit of running gnulib's "make check".
13058         Both of these would have been caught.
13059         * m4/largefile.m4: Indent with spaces, not TABs.
13060         * lib/parse-datetime.y (iso_8601_time): Likewise.
13061         Spotted by Pádraig Brady.
13062
13063         test-parse-datetime.c: accommodate a relatively strict gcc warning
13064         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
13065         to avoid a warning from gcc's -Werror=missing-declarations.
13066         Insert a few spaces-before-funcall-parenthesis.
13067
13068 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
13069
13070         parse-datetime: accept ISO 8601 date and time rep with "T" separator
13071         The parser now accepts ISO 8601 date-time strings with "T" as the
13072         separator.  It has long parsed dates like "2004-02-29 16:21:42"
13073         with a space between the date and time strings.  Now it also parses
13074         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
13075         variants like "2004-02-29T16:21:42.333-07:00"
13076         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
13077         of day representation using the 'T' separator character.
13078         * doc/parse-datetime.texi (General date syntax): replace use of
13079         deprecated --iso-8601 option with --rfc-3339 in example of date
13080         command output formats that can be parsed.
13081         * tests/test-parse-datetime.c (tm_diff): New function, taken from
13082         lib/parse-datetime.y.
13083         (gmt_offset): New function.
13084         (main): Add additional test cases to validate ISO8601 extended
13085         date and time of day parsing.
13086
13087 2011-08-31  Bruno Haible  <bruno@clisp.org>
13088
13089         freopen: Documentation.
13090         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
13091         name.
13092         Reported by Claudio Bley <claudio.bley@gmail.com>.
13093
13094 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
13095
13096         freopen: Don't crash if the filename argument is NULL.
13097         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
13098         NULL.
13099
13100 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
13101
13102         openat: work around AIX 7.1 fstatat bug
13103         Problem reported by Kevin Brott for GNU tar, in the thread containing
13104         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
13105         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
13106         FSTATAT_ST_SIZE_ETC_BROKEN.
13107         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
13108         rpl_fstatat.
13109         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
13110         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
13111         AC_CHECK_FUNCS_ONCE for fstatat.
13112         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
13113         fchmodat, mkdirat, openat and unlinkat.
13114
13115 2011-08-30  Bruno Haible  <bruno@clisp.org>
13116
13117         Avoid endless recursions if config.h includes some header files.
13118         * lib/fopen.c (__need_FILE): Define already before including config.h.
13119         * lib/freopen.c (__need_FILE): Likewise.
13120         * lib/open.c (__need_system_fcntl_h): Likewise.
13121         * lib/stat.c (__need_system_sys_stat_h): Likewise.
13122         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
13123         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
13124
13125 2011-08-25  Karl Berry  <karl@gnu.org>
13126
13127         * config/srclist.txt (ylwrap): new try.
13128         * build-aux/ylwrap: new file.
13129
13130 2011-08-23  Bruno Haible  <bruno@clisp.org>
13131
13132         tmpdir: Use a good default directory on native Windows.
13133         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
13134         (P_tmpdir): Default to _P_tmpdir on native Windows.
13135         (path_search): On native Windows, try the value returned by GetTempPath
13136         before trying P_tmpdir.
13137         * modules/tmpdir (Depends-on): Add pathmax.
13138         Suggested by John Darrington <john@darrington.wattle.id.au>.
13139
13140 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
13141
13142         doc: fix typo in README-release
13143         * top/README-release: Capitalize first word of a sentence.
13144
13145 2011-08-19  Jim Meyering  <meyering@redhat.com>
13146
13147         fts: do not exhaust memory when processing million-entry directories
13148         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
13149         directory would require about 256*N bytes of memory.  Thus, it was
13150         easy to construct a directory too large to be processed by any of
13151         those tools.  With this change, fts' maximum memory utilization is
13152         now limited to around 30MB.
13153         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
13154         (fts_read): When we've processed the final entry (i.e., when
13155         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
13156         using the parent entry to read any remaining entries.  Dispatch
13157         depending on what fts_build returns:
13158         - NULL+stop, aka failure: stop
13159         - NULL otherwise: move up in the dir hierarchy
13160         - non-NULL: handle this new entry
13161         (fts_build): Declare and use new local, continue_readdir.
13162         Prepare to be called from fts_read, when the entries
13163         from a partially-read directory have just been exhausted.
13164         In that case, we'll skip the opendir and instead use the parent's
13165         fts_dirp and derive dir_fd from that.
13166         Finally, in the readdir loop, if we read max_entries entries,
13167         exit the loop ensuring *not* to call closedir.  This is required
13168         so that fts_dirp can be reused on a subsequent call.
13169         Prompted by Ben England's report of memory exhaustion in find
13170         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
13171
13172         maint: fts: move decl of `dp' down into while loop; split a long line
13173         * lib/fts.c (fts_build): No semantic change.
13174
13175         fts: add/use new struct member, fts_dirp
13176         We are about to use this to manage any directory with
13177         too many entries to read all of them into memory at once.
13178         To do that, we'll need to save the DIR* pointer in each
13179         affected FTSENT struct.
13180         * lib/fts_.h: Include <dirent.h>.
13181         (struct FTSENT) [fts_dirp]: New member.
13182         * lib/fts.c (closedir_and_clear): Define.
13183         Use it in place of closedir so that we are sure to
13184         clear the new fts_dirp member when done with it.
13185         (fts_alloc): Initialize the new member.
13186         (fts_lfree): Free, if needed.
13187
13188         maint: fts: give __opendir2 a new parameter and rename
13189         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
13190         than surreptitiously using sole caller's "dir_fd".
13191         (fts_opendir): Rename from __opendir2.
13192
13193         maint: fts.c: remove __opendir2's now-unused parameter, oflag
13194         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
13195
13196         maint: fts.c: correct off-by-one indentation
13197         * lib/fts.c (fts_build): Correct indentation, change style
13198         of a couple of block comments, and bracing style.
13199
13200         maint: fts.c: move __opendir2 #define "up" out of function body
13201         * lib/fts.c (__opendir2): Move "up".  No semantic change.
13202
13203         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
13204         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
13205         out for a long time and besides was useful only on BSD systems.
13206
13207 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
13208
13209         regex: port to Stratus OpenVOS
13210         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
13211         define to empty, rather than attempting nonportable optimizations.
13212         Problem reported by Paul Green in:
13213         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
13214         and fix suggested by Eric Blake in:
13215         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
13216
13217 2011-08-17  Eric Blake  <eblake@redhat.com>
13218
13219         getcwd: fix test failures on mingw
13220         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
13221         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
13222         test if long directory cannot be created, and allow mingw errno.
13223
13224         getcwd-lgpl: fix m4 to match relaxed test for BSD
13225         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
13226         (gl_FUNC_GETCWD_SIGNATURE): New macro.
13227         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
13228         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
13229         signature problem.
13230
13231         getcwd: fix compilation on mingw64
13232         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
13233         getcwd.
13234         Reported by Marc-André Lureau.
13235
13236         pipe2: silence compiler warning
13237         * lib/pipe2.c (pipe2): Hide label if it is not used.
13238
13239 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
13240
13241         relocatable-prog: fix link error
13242         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
13243         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
13244         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
13245         into modules/relocatable-lib without noticing that
13246         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
13247         also needs to build relocatable.c.
13248
13249 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
13250
13251         getaddrinfo: fix sh typo in gai_strerrorA decl checking
13252         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
13253         shell code: it contained a 'break' that was not in a loop.
13254         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
13255         via a shell-language loop; this may have been true in old Autoconf
13256         versions, but it's not true in Autoconf 2.68.  I found this bug
13257         when testing coreutils git on Solaris 8, whose shell complains
13258         about the syntax error.
13259
13260 2011-08-12  Simon Josefsson  <simon@josefsson.org>
13261
13262         * lib/base64.c: Fix comment to reference RFC 4648.
13263         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
13264         <gvtulder@gmail.com>.
13265
13266 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
13267
13268         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
13269
13270         po/Makefile.in.in: fix make -q problem
13271         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
13272         rule, since there's no file named 'check-macro-version' and its
13273         use as a file breaks make -q.
13274         (all): Don't depend on check-macro-version.
13275         (CHECK_MACRO_VERSION): New macro.
13276         (stamp-po): Use it.
13277
13278         configmake: fix make -q problem
13279         * modules/configmake (configmake.h): Update configmake.h's time stamp
13280         even if the file does not change.  Otherwise, 'make -q' fails.
13281         Problem reported by Simon Josefsson in
13282         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
13283
13284 2011-08-11  Jim Meyering  <meyering@redhat.com>
13285
13286         git-version-gen: correct the advice in a comment
13287         * build-aux/git-version-gen: Correct comment.
13288         Don't recommend to list .tarball-version in .gitignore.
13289
13290 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
13291
13292         base64: fix off-by-one buffer size bug
13293         Problem and (trivial) fix reported by Gijs van Tulder in
13294         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
13295         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
13296         * tests/test-base64.c (main): Catch the bug.
13297
13298 2011-08-10  Eric Blake  <eblake@redhat.com>
13299
13300         closein: correct comments
13301         * lib/closein.c (close_stdin): Improve comments.
13302
13303 2011-08-09  Bruno Haible  <bruno@clisp.org>
13304
13305         More tests for 'fseeko'.
13306         * tests/test-fseeko3.c: New file, from Eric Blake.
13307         * tests/test-fseeko3.sh: New file.
13308         * modules/fseeko-tests (Files): Add them.
13309         (TESTS): Add test-fseeko3.sh.
13310         (check_PROGRAMS): Add test-fseeko3.
13311
13312 2011-08-09  Eric Blake  <eblake@redhat.com>
13313
13314         fseeko: remove unneeded hack
13315         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
13316
13317         fseeko: fix bug on glibc
13318         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
13319         Reported by John W. Eaton.
13320
13321 2011-08-08  Bruno Haible  <bruno@clisp.org>
13322
13323         unictype/base: Fix interoperability with preinstalled libunistring.
13324         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
13325         Reported by Simon Josefsson.
13326
13327 2011-08-08  Bruno Haible  <bruno@clisp.org>
13328
13329         iswblank: Detect declaration correctly.
13330         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
13331         AC_CHECK_DECLS invocation.
13332
13333 2011-08-08  Bruno Haible  <bruno@clisp.org>
13334
13335         tcgetsid: Detect declaration correctly.
13336         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
13337         AC_CHECK_DECLS invocation.
13338         Reported by Simon Josefsson.
13339
13340 2011-08-08  Eric Blake  <eblake@redhat.com>
13341
13342         largefile: fix typo that regressed large file support
13343         * modules/largefile (configure.ac-early): Fix section name.
13344
13345 2011-08-06  Karl Berry  <karl@gnu.org>
13346
13347         * MODULES.html.sh (func_all_files): _Noreturn is no longer
13348         a separate module.
13349
13350 2011-08-05  Simon Josefsson  <simon@josefsson.org>
13351
13352         openat: Fix warnings and commens when building unlinkat.c on Hurd.
13353         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
13354         get prototype for free.
13355
13356 2011-08-04  Bruno Haible  <bruno@clisp.org>
13357
13358         Tests for module 'pathmax'.
13359         * modules/pathmax-tests: New file.
13360         * tests/test-pathmax.c: New file.
13361
13362         canonicalize-lgpl: Support larger filenames on the Hurd.
13363         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
13364         Reported by Paul Eggert.
13365
13366         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
13367         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
13368         * lib/chdir-long.h: Include pathmax.h.
13369         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
13370         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
13371         (PATH_MAX): Remove code that is done by pathmax.h.
13372         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
13373         * lib/tmpfile.c: Add a comment.
13374         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
13375         * modules/chdir-long (Depends-on): Add pathmax.
13376         * modules/getcwd (Depends-on): Add pathmax.
13377         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
13378         is not defined.
13379         * doc/posix-headers/limits.texi: Mention the pathmax module.
13380         * NEWS: Mention the change.
13381
13382 2011-08-02  Bruno Haible  <bruno@clisp.org>
13383
13384         pthread_sigmask: Actually use results of gl_THREADLIB.
13385         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
13386         gl_THREADLIB, not gl_[]THREADLIB.
13387         Reported by Eric Blake.
13388
13389 2011-08-02  Jim Meyering  <meyering@redhat.com>
13390
13391         maint.mk: relax the default _gl_TS_function_match regexp
13392         * top/maint.mk (_gl_TS_function_match): Don't require at least one
13393         space between function name and "(" in an "extern" declaration.
13394         That would fail to match a decl with no space there: extern void foo();
13395
13396 2011-07-31  Iain Nicol  <iain@thenicols.net>
13397
13398         git-version-gen: document that EXTRA_DIST must include .version
13399         * build-aux/git-version-gen: In the how-to-use comment, document
13400         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
13401         will fail when run from an unpacked distribution tarball.
13402
13403 2011-08-01  Bruno Haible  <bruno@clisp.org>
13404
13405         wctype-h: Fix last change.
13406         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
13407         REPLACE_TOWLOWER to 0.
13408         Reported by Sam Steingold <sds@gnu.org>.
13409
13410 2011-07-31  Bruno Haible  <bruno@clisp.org>
13411
13412         frexpl: Update autoconf test.
13413         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
13414         according to changes of 2011-06-20.
13415
13416 2011-07-31  Bruno Haible  <bruno@clisp.org>
13417
13418         sys_utsname: Add support for Minix.
13419         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
13420         <sys/utsname.h>.
13421         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
13422         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
13423
13424 2011-07-31  Bruno Haible  <bruno@clisp.org>
13425
13426         strings: Add support for Minix.
13427         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
13428         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
13429         * doc/posix-headers/strings.texi: Document the Minix problem.
13430
13431 2011-07-31  Bruno Haible  <bruno@clisp.org>
13432
13433         wctype-h: Add support for Minix.
13434         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
13435         REPLACE_TOWLOWER.
13436         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
13437         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
13438         REPLACE_ISWCNTRL.
13439
13440 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
13441
13442         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
13443         This is a performance improvement for 64-bit hosts: it causes the
13444         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
13445
13446 2011-07-31  Bruno Haible  <bruno@clisp.org>
13447
13448         stdioext: Add support for Minix.
13449         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
13450         * lib/fpurge.c (fpurge): Likewise.
13451         * lib/freadahead.c (freadahead): Likewise.
13452         * lib/freadable.c (freadable): Likewise.
13453         * lib/freading.c (freading): Likewise.
13454         * lib/freadptr.c (freadptr): Likewise.
13455         * lib/freadseek.c (freadptrinc): Likewise.
13456         * lib/fseeko.c (rpl_fseeko): Likewise.
13457         * lib/fseterr.c (fseterr): Likewise.
13458         * lib/fwritable.c (fwritable): Likewise.
13459         * lib/fwriting.c (fwriting): Likewise.
13460         * lib/fflush.c (clear_ungetc_buffer): Update comment.
13461         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
13462
13463 2011-07-31  Bruno Haible  <bruno@clisp.org>
13464
13465         errno: Port to Minix.
13466         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
13467         ECONNABORTED are defined.
13468         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
13469         GNULIB_defined_ECONNABORTED): New macros.
13470         * lib/strerror-override.h (strerror_override): Test also
13471         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
13472         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
13473         ECONNABORTED.
13474         * doc/posix-headers/errno.texi: Mention the Minix problem.
13475
13476 2011-07-31  Bruno Haible  <bruno@clisp.org>
13477
13478         Work around declaration collisions on Minix.
13479         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
13480         defined, set REPLACE_MBSINIT.
13481         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
13482         defined, set REPLACE_MBRTOWC.
13483         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
13484         set REPLACE_MBRLEN.
13485         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
13486         defined, set REPLACE_MBSRTOWCS.
13487         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
13488         defined, set REPLACE_WCRTOMB.
13489         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
13490         defined, set REPLACE_WCSRTOMBS.
13491
13492 2011-07-31  Bruno Haible  <bruno@clisp.org>
13493
13494         Add support for Minix with ACK compiler.
13495         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
13496         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
13497         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
13498
13499 2011-07-31  Bruno Haible  <bruno@clisp.org>
13500
13501         Documentation about Minix.
13502         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
13503         * doc/glibc-headers/*.texi: Likewise.
13504         * doc/posix-functions/*.texi: Likewise.
13505         * doc/glibc-functions/*.texi: Likewise.
13506
13507 2011-07-31  Bruno Haible  <bruno@clisp.org>
13508
13509         snippet/warn-on-use: Fix indentation.
13510         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
13511
13512 2011-07-25  Jim Meyering  <meyering@redhat.com>
13513
13514         tests: test-update-copyright.sh: remove unnecessary "rm" commands
13515         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
13516         commands.
13517
13518 2011-07-27  Jim Meyering  <meyering@redhat.com>
13519
13520         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
13521         * top/maint.mk (gl_extract_significant_defines_): Now that
13522         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
13523         gnulib/lib/signal.in.h, and now that we recommend to
13524         define-if-undefined those two symbols in application code,
13525         we must filter them out of the "significant" list.
13526         This avoids a "make syntax-check" failure in coreutils.
13527
13528 2011-07-26  Eric Blake  <eblake@redhat.com>
13529
13530         warnings: add comments about previous patch
13531         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
13532         * m4/include_next.m4: Likewise.
13533         * m4/warn-on-use.m4: Likewise.
13534         * m4/warnings.m4: Likewise, and simplify use.
13535         Suggested by Stefano Lattarini.
13536
13537         include-next, warnings: support older autoconf
13538         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
13539         AS_VAR_PUSHDEF in a way that works with older autoconf.
13540         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
13541         Reported by Daniel P. Berrange.
13542
13543 2011-07-25  Bruno Haible  <bruno@clisp.org>
13544
13545         fseek, ftell: Fix doc.
13546         * doc/posix-functions/fseek.texi: Reword statement about
13547         AC_SYS_LARGEFILE.
13548         * doc/posix-functions/ftell.texi: Likewise.
13549
13550 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
13551             Bruno Haible  <bruno@clisp.org>
13552
13553         Add dependencies to the 'largefile' module.
13554         * modules/fopen (Depends-on): Add 'largefile'.
13555         * modules/freopen (Depends-on): Likewise.
13556         * modules/fseeko (Depends-on): Likewise.
13557         * modules/ftello (Depends-on): Likewise.
13558         * modules/glob (Depends-on): Likewise.
13559         * modules/lseek (Depends-on): Likewise.
13560         * modules/lstat (Depends-on): Likewise.
13561         * modules/mkostemp (Depends-on): Likewise.
13562         * modules/mkostemps (Depends-on): Likewise.
13563         * modules/mkstemp (Depends-on): Likewise.
13564         * modules/mkstemps (Depends-on): Likewise.
13565         * modules/open (Depends-on): Likewise.
13566         * modules/openat (Depends-on): Likewise.
13567         * modules/pread (Depends-on): Likewise.
13568         * modules/pwrite (Depends-on): Likewise.
13569         * modules/scandir (Depends-on): Likewise.
13570         * modules/stat (Depends-on): Likewise.
13571         * modules/tmpfile (Depends-on): Likewise.
13572         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
13573         since the containing module now depends on the largefile module.
13574         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
13575         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
13576         off_t is fixed by gnulib.
13577         * doc/posix-functions/freopen.texi: Likewise.
13578         * doc/posix-functions/fseeko.texi: Likewise.
13579         * doc/posix-functions/fstatat.texi: Likewise.
13580         * doc/posix-functions/ftello.texi: Likewise.
13581         * doc/posix-functions/glob.texi: Likewise.
13582         * doc/posix-functions/lseek.texi: Likewise.
13583         * doc/posix-functions/lstat.texi: Likewise.
13584         * doc/posix-functions/mkstemp.texi: Likewise.
13585         * doc/posix-functions/open.texi: Likewise.
13586         * doc/posix-functions/openat.texi: Likewise.
13587         * doc/posix-functions/pread.texi: Likewise.
13588         * doc/posix-functions/pwrite.texi: Likewise.
13589         * doc/posix-functions/scandir.texi: Likewise.
13590         * doc/posix-functions/stat.texi: Likewise.
13591         * doc/posix-functions/tmpfile.texi: Likewise.
13592         * doc/glibc-functions/mkostemp.texi: Likewise.
13593         * doc/glibc-functions/mkostemps.texi: Likewise.
13594         * doc/glibc-functions/mkstemps.texi: Likewise.
13595
13596 2011-07-25  Bruno Haible  <bruno@clisp.org>
13597
13598         fcntl: Move AC_LIBOBJ invocation to module description.
13599         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
13600         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
13601
13602         fcntl: Remove call-in from fchdir.m4.
13603         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
13604         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
13605
13606         dup3: Remove potential call-in from fchdir.m4.
13607         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
13608         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
13609
13610         dup2: Move AC_LIBOBJ invocation to module description.
13611         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
13612         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
13613         Don't invoke AC_LIBOBJ.
13614         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
13615
13616         dup2: Remove call-in from fchdir.m4.
13617         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
13618         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
13619
13620         fclose: Move AC_LIBOBJ invocation to module description.
13621         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
13622         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
13623         to 1.
13624         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
13625
13626         fclose: Remove call-in from close.m4.
13627         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
13628         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
13629
13630         close: Move AC_LIBOBJ invocation to module description.
13631         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
13632         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
13633         1.
13634         * modules/close (configure.ac): Invoke AC_LIBOBJ.
13635
13636         close: Remove call-in from fchdir.m4.
13637         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
13638         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
13639
13640         open: Move AC_LIBOBJ invocation to module description.
13641         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
13642         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
13643         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
13644
13645         open: Remove call-in from fchdir.m4.
13646         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
13647         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
13648
13649         fchdir: Start to remove gl_REPLACE_* idiom.
13650         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
13651         (gl_FUNC_FCHDIR): Invoke it.
13652
13653 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
13654
13655         * lib/ftell.c (ftell): Comment out cast.
13656
13657         close: use gl_REPLACE_FCLOSE only if defined
13658         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
13659         is defined.  The close module doesn't depend on the fclose module
13660         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
13661         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
13662         I reproduced the problem with "./gnulib-tool --test close sys_socket".
13663
13664 2011-07-24  Jim Meyering  <meyering@redhat.com>
13665
13666         test-select.h: avoid warning when using gcc's -Wmissing-declarations
13667         * tests/test-select.h (test_function): Declare as "static".
13668
13669 2011-07-24  Bruno Haible  <bruno@clisp.org>
13670
13671         doc: Mention the effects of AC_SYS_LARGEFILE.
13672         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
13673         on this function.
13674         * doc/posix-functions/aio_error.texi: Likewise.
13675         * doc/posix-functions/aio_fsync.texi: Likewise.
13676         * doc/posix-functions/aio_read.texi: Likewise.
13677         * doc/posix-functions/aio_return.texi: Likewise.
13678         * doc/posix-functions/aio_suspend.texi: Likewise.
13679         * doc/posix-functions/aio_write.texi: Likewise.
13680         * doc/posix-functions/fgetpos.texi: Likewise.
13681         * doc/posix-functions/fopen.texi: Likewise.
13682         * doc/posix-functions/freopen.texi: Likewise.
13683         * doc/posix-functions/fsetpos.texi: Likewise.
13684         * doc/posix-functions/fstatvfs.texi: Likewise.
13685         * doc/posix-functions/ftruncate.texi: Likewise.
13686         * doc/posix-functions/ftw.texi: Likewise.
13687         * doc/posix-functions/getrlimit.texi: Likewise.
13688         * doc/posix-functions/glob.texi: Likewise.
13689         * doc/posix-functions/lio_listio.texi: Likewise.
13690         * doc/posix-functions/lockf.texi: Likewise.
13691         * doc/posix-functions/mkstemp.texi: Likewise.
13692         * doc/posix-functions/mmap.texi: Likewise.
13693         * doc/posix-functions/nftw.texi: Likewise.
13694         * doc/posix-functions/openat.texi: Likewise.
13695         * doc/posix-functions/opendir.texi: Likewise.
13696         * doc/posix-functions/posix_fadvise.texi: Likewise.
13697         * doc/posix-functions/posix_fallocate.texi: Likewise.
13698         * doc/posix-functions/pread.texi: Likewise.
13699         * doc/posix-functions/pwrite.texi: Likewise.
13700         * doc/posix-functions/readdir.texi: Likewise.
13701         * doc/posix-functions/readdir_r.texi: Likewise.
13702         * doc/posix-functions/rewinddir.texi: Likewise.
13703         * doc/posix-functions/scandir.texi: Likewise.
13704         * doc/posix-functions/seekdir.texi: Likewise.
13705         * doc/posix-functions/setrlimit.texi: Likewise.
13706         * doc/posix-functions/statvfs.texi: Likewise.
13707         * doc/posix-functions/telldir.texi: Likewise.
13708         * doc/posix-functions/tmpfile.texi: Likewise.
13709         * doc/posix-functions/truncate.texi: Likewise.
13710         * doc/glibc-functions/fallocate.texi: Likewise.
13711         * doc/glibc-functions/fstatfs.texi: Likewise.
13712         * doc/glibc-functions/fts_children.texi: Likewise.
13713         * doc/glibc-functions/fts_read.texi: Likewise.
13714         * doc/glibc-functions/getdirentries.texi: Likewise.
13715         * doc/glibc-functions/mkostemp.texi: Likewise.
13716         * doc/glibc-functions/mkostemps.texi: Likewise.
13717         * doc/glibc-functions/mkstemps.texi: Likewise.
13718         * doc/glibc-functions/preadv.texi: Likewise.
13719         * doc/glibc-functions/pwritev.texi: Likewise.
13720         * doc/glibc-functions/sendfile.texi: Likewise.
13721         * doc/glibc-functions/statfs.texi: Likewise.
13722
13723 2011-07-24  Bruno Haible  <bruno@clisp.org>
13724
13725         doc: Fix typo.
13726         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
13727
13728 2011-07-24  Bruno Haible  <bruno@clisp.org>
13729
13730         doc: Mention fsusage.
13731         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
13732
13733 2011-07-24  Bruno Haible  <bruno@clisp.org>
13734
13735         doc: Mention new glibc headers and functions.
13736         * doc/glibc-headers/gshadow.texi: New file.
13737         * doc/glibc-functions/endsgent.texi: New file.
13738         * doc/glibc-functions/fgetsgent.texi: New file.
13739         * doc/glibc-functions/fgetsgent_r.texi: New file.
13740         * doc/glibc-functions/getsgent.texi: New file.
13741         * doc/glibc-functions/getsgent_r.texi: New file.
13742         * doc/glibc-functions/getsgnam.texi: New file.
13743         * doc/glibc-functions/getsgnam_r.texi: New file.
13744         * doc/glibc-functions/putsgent.texi: New file.
13745         * doc/glibc-functions/setsgent.texi: New file.
13746         * doc/glibc-functions/sgetsgent.texi: New file.
13747         * doc/glibc-functions/sgetsgent_r.texi: New file.
13748         * doc/glibc-functions/malloc_info.texi: New file.
13749         * doc/glibc-functions/preadv.texi: New file.
13750         * doc/glibc-functions/pwritev.texi: New file.
13751         * doc/glibc-functions/register_printf_modifier.texi: New file.
13752         * doc/glibc-functions/register_printf_specifier.texi: New file.
13753         * doc/glibc-functions/register_printf_type.texi: New file.
13754         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
13755         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
13756         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
13757         * doc/glibc-functions/pthread_getname_np.texi: New file.
13758         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
13759         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
13760         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
13761         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
13762         * doc/glibc-functions/pthread_setname_np.texi: New file.
13763         * doc/glibc-functions/pthread_sigqueue.texi: New file.
13764         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
13765         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
13766         * doc/glibc-functions/qsort_r.texi: New file.
13767         * doc/glibc-functions/quick_exit.texi: New file.
13768         * doc/glibc-functions/syncfs.texi: New file.
13769         * doc/gnulib.texi: Include them.
13770         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
13771         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
13772         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
13773         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
13774         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
13775         * doc/glibc-functions/execvpe.texi: Likewise.
13776
13777 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
13778
13779         ftell: don't include <unistd.h>
13780         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
13781         guaranteed to define off_t, and the ftell module depends on the
13782         stdio module.
13783
13784         ftell: do not assume wraparound signed arithmetic
13785         * lib/ftell.c: Include <limits.h>.
13786         (ftell): Don't assume wraparound signed arithmetic.
13787
13788 2011-07-24  Bruno Haible  <bruno@clisp.org>
13789
13790         close: No longer depend on module 'fclose'.
13791         * modules/close (Depends-on): Remove fclose.
13792         * NEWS: Mention the change.
13793         Suggested by Sam Steingold <sds@gnu.org>.
13794
13795 2011-07-24  Bruno Haible  <bruno@clisp.org>
13796
13797         fsusage: Enable large volume support on AIX >= 5.2.
13798         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
13799         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
13800         instead of STAT_STATVFS.
13801         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
13802
13803         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
13804         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
13805         f_blocks field only on MacOS X.
13806
13807         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
13808         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
13809         * modules/fsusage (Depends-on): Add largefile.
13810
13811 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
13812
13813         * README: Modernize discussion of signed integers.
13814         Assuming overflow wraparound is no longer safe.
13815         Mention ones' complement and signed magnitude.
13816
13817 2011-07-22  Bruno Haible  <bruno@clisp.org>
13818
13819         select tests, pselect tests: Refactor.
13820         * tests/test-select.h: New file, extracted from tests/test-select.c.
13821         (select_fn): New type.
13822         (test, do_select, do_select_nowait, do_select_wait, test_tty,
13823         test_connect_first, test_accept_first, test_pair, test_socket_pair,
13824         test_pipe): Add my_select argument.
13825         (test_function): Renamed from main. Add my_select argument.
13826         * tests/test-select.c: Move most code to tests/test-select.h. Include
13827         test-select.h.
13828         * modules/select-tests (Files): Add tests/test-select.h.
13829         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
13830         (my_select, main): New functions.
13831         * modules/pselect-tests (Files): Add tests/test-select.h,
13832         tests/macros.h, tests/signature.h.
13833         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
13834         (configure.ac): Check for <sys/wait.h>.
13835
13836 2011-07-22  Bruno Haible  <bruno@clisp.org>
13837
13838         sys_select tests: Check the signature of FD_*.
13839         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
13840         signature tests from here...
13841         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
13842         here.
13843         * modules/sys_select-tests (Files): Add tests/signature.h.
13844
13845 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
13846
13847         largefile: new module, replacing large-inode
13848         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
13849         * MODULES.html.sh: Add largefile, remove large-inode.
13850         * modules/largefile, m4/largefile.m4: New files.
13851         * modules/large-inode, m4/large-inode.m4: Remove.
13852
13853         fsusage: port to MacOS X 10.7 with 4 TiB file systems
13854         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
13855         implementations that use only 32 bits to count blocks.
13856         On typical hosts with 1024-byte blocks, this fails with file
13857         systems as small as 4 TiB.  Problem reported by Herb Wartens
13858         <http://debbugs.gnu.org/9140> and this should also fix a similar
13859         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
13860
13861         large-inode: New module
13862         * MODULES.html.sh: Add it.
13863         * modules/large-inode, m4/large-inode.m4: New files.
13864
13865         extensions: Enable extensions on MacOS X 10.5 and later.
13866         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
13867
13868 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
13869
13870         file-has-acl: use acl_extended_file_nofollow if available
13871         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
13872         (acl_extended_file): New macro.
13873         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
13874         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
13875
13876 2011-07-21  Bruno Haible  <bruno@clisp.org>
13877
13878         Declare system functions in a way that works with C++.
13879         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
13880         declare fdopendir as extern "C".
13881         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
13882         declare frexpl as extern "C".
13883         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
13884         declare gai_strerror as extern "C".
13885         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
13886         programs, declare gai_strerror as extern "C".
13887         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
13888         declare getlogin_r as extern "C".
13889         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
13890         as extern "C".
13891         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
13892         declare ldexpl as extern "C".
13893         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
13894         as extern "C".
13895         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
13896         program, declare getmntinfo as extern "C".
13897         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
13898         stpncpy as extern "C".
13899         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
13900         program, declare __xpg_strerror_r as extern "C".
13901         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
13902         strndup as extern "C".
13903         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
13904         declare memset and bzero as extern "C".
13905         Reported by Sam Steingold <sds@gnu.org>.
13906
13907 2011-07-12  Jim Meyering  <meyering@redhat.com>
13908
13909         maint.mk: prohibit inclusion of "verify.h" without use
13910         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
13911
13912 2011-07-19  Pádraig Brady  <P@draigBrady.com>
13913
13914         timer-time: A new module to check for timer_settime()
13915         * m4/timer_time.m4: Check for the posix function.
13916         * modules/timer-time: Add the new module.
13917         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
13918         Mention it.
13919
13920 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
13921             Bruno Haible  <bruno@clisp.org>
13922
13923         pthread_sigmask: assume POSIX threads if --avoid=threadlib
13924         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
13925         not defined, assume POSIX threads and look for pthread_sigmask in
13926         $LIBS, without changing $CPPFLAGS.
13927
13928 2011-07-19  Bruno Haible  <bruno@clisp.org>
13929
13930         strstr: Update cross-compilation guess.
13931         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
13932         CPUs, guess no, in view of glibc
13933         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
13934         Suggested by Eric Blake. Reported by Reuben Thomas.
13935
13936 2011-07-19  Pádraig Brady  <P@draigBrady.com>
13937
13938         getopt-gnu: suppress core dumps from detection code
13939         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
13940         to suppress core dumps that may well occur on glibc systems.
13941         * modules/getopt-gnu: Depend on nocrash.
13942
13943 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
13944
13945         pthread_sigmask: ensure usleep is declared
13946         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
13947         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
13948
13949 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
13950
13951         doc: Document NonStop portability issues.
13952         * doc/posix-functions/sigaction.texi (sigaction):
13953         * doc/posix-headers/signal.texi (signal.h):
13954         Document NonStop.  See Joachim Schmitz in
13955         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
13956
13957 2011-07-15  Bruno Haible  <bruno@clisp.org>
13958
13959         ffsl, ffsll: Avoid unportable behaviour.
13960         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
13961
13962 2011-07-15  Bruno Haible  <bruno@clisp.org>
13963
13964         ffs: More tests.
13965         * tests/test-ffs.c (NBITS): New macro.
13966         (main): Add more tests.
13967         * tests/test-ffsl.c (NBITS): New macro.
13968         (main): Add more tests.
13969         * tests/test-ffsll.c (NBITS): New macro.
13970         (main): Add more tests.
13971
13972 2011-07-15  Eric Blake  <eblake@redhat.com>
13973
13974         ffsl, ffsll: new modules
13975         * modules/ffsl: New file.
13976         * modules/ffsll: Likewise.
13977         * m4/ffsl.m4: Likewise.
13978         * m4/ffsll.m4: Likewise.
13979         * lib/ffsl.c: Likewise.
13980         * lib/ffsl.h: Likewise.
13981         * lib/ffsll.c: Likewise.
13982         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
13983         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
13984         * modules/string (Makefile.am): Substitute witnesses.
13985         * lib/strings.in.h (ffsl, ffsll): Declare.
13986         * modules/ffsl-tests: New test file.
13987         * modules/ffsll-tests: Likewise.
13988         * tests/test-ffsl.c: Likewise.
13989         * tests/test-ffsll.c: Likewise.
13990         * MODULES.html.sh (Integer arithmetic functions): Mention it.
13991         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
13992         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
13993
13994         ffs: fix m4 prerequisite
13995         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
13996
13997         ffs: avoid undefined behavior
13998         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
13999         * tests/test-ffs.c (naive, main): Avoid signed shifts.
14000         Reported by Bruno Haible.
14001
14002 2011-07-12  Bruno Haible  <bruno@clisp.org>
14003
14004         pthread_sigmask: Rely on module 'threadlib'.
14005         * modules/pthread_sigmask (Depends-on): Add threadlib.
14006         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
14007         is defined.
14008
14009 2011-07-12  Bruno Haible  <bruno@clisp.org>
14010
14011         regex: Depend on module 'strcase'.
14012         * modules/regex (Depends-on): Add strcase, for strcasecmp().
14013
14014 2011-07-12  Jim Meyering  <meyering@redhat.com>
14015
14016         warn-on-use: fix typo in file name
14017         * modules/snippet/warn-on-use (Files): Correct file name:
14018         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
14019
14020 2011-07-12  Bruno Haible  <bruno@clisp.org>
14021
14022         strings: Document module.
14023         * doc/posix-headers/strings.texi: Mention module 'strings'.
14024
14025 2011-07-12  Bruno Haible  <bruno@clisp.org>
14026
14027         Rename module '_Noreturn' to 'snippet/_Noreturn'.
14028         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
14029         (Files, Makefile.am): Update.
14030         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
14031         * modules/stdlib (Depends-on): Update.
14032
14033 2011-07-12  Bruno Haible  <bruno@clisp.org>
14034
14035         * NEWS: Mention the changes.
14036
14037         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
14038         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
14039         (Files, Makefile.am): Update.
14040         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
14041         * modules/arpa_inet (Depends-on): Update.
14042         * modules/ctype (Depends-on): Update.
14043         * modules/dirent (Depends-on): Update.
14044         * modules/fcntl-h (Depends-on): Update.
14045         * modules/glob (Depends-on): Update.
14046         * modules/iconv-h (Depends-on): Update.
14047         * modules/inttypes-incomplete (Depends-on): Update.
14048         * modules/langinfo (Depends-on): Update.
14049         * modules/locale (Depends-on): Update.
14050         * modules/math (Depends-on): Update.
14051         * modules/netdb (Depends-on): Update.
14052         * modules/poll-h (Depends-on): Update.
14053         * modules/pty (Depends-on): Update.
14054         * modules/search (Depends-on): Update.
14055         * modules/signal (Depends-on): Update.
14056         * modules/spawn (Depends-on): Update.
14057         * modules/stdio (Depends-on): Update.
14058         * modules/stdlib (Depends-on): Update.
14059         * modules/string (Depends-on): Update.
14060         * modules/strings (Depends-on): Update.
14061         * modules/sys_file (Depends-on): Update.
14062         * modules/sys_ioctl (Depends-on): Update.
14063         * modules/sys_select (Depends-on): Update.
14064         * modules/sys_socket (Depends-on): Update.
14065         * modules/sys_stat (Depends-on): Update.
14066         * modules/sys_time (Depends-on): Update.
14067         * modules/sys_times (Depends-on): Update.
14068         * modules/sys_utsname (Depends-on): Update.
14069         * modules/sys_wait (Depends-on): Update.
14070         * modules/termios (Depends-on): Update.
14071         * modules/time (Depends-on): Update.
14072         * modules/unistd (Depends-on): Update.
14073         * modules/wchar (Depends-on): Update.
14074         * modules/wctype-h (Depends-on): Update.
14075         * MODULES.html.sh (Support for building libraries and executables):
14076         Update.
14077
14078         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
14079         * modules/snippet/unused-parameter: Renamed from
14080         modules/unused-parameter.
14081         (Files, Makefile.am): Update.
14082         * build-aux/snippet/unused-parameter.h: Renamed from
14083         build-aux/unused-parameter.h.
14084         * modules/selinux-h (Depends-on): Update.
14085         * modules/unistr/base (Depends-on): Update.
14086         * MODULES.html.sh (Core language properties): Update.
14087
14088         Rename module 'link-warning' to 'snippet/link-warning'.
14089         * modules/snippet/link-warning: Renamed from modules/link-warning.
14090         (Files, Makefile.am): Update.
14091         * build-aux/snippet/link-warning.h: Renamed from
14092         build-aux/link-warning.h.
14093         * MODULES.html.sh (Support for building libraries and executables):
14094         Update.
14095
14096         Rename module 'c++defs' to 'snippet/c++defs'.
14097         * modules/snippet/c++defs: Renamed from modules/c++defs.
14098         (Files, Makefile.am): Update.
14099         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
14100         * modules/arpa_inet (Depends-on): Update.
14101         * modules/ctype (Depends-on): Update.
14102         * modules/dirent (Depends-on): Update.
14103         * modules/fcntl-h (Depends-on): Update.
14104         * modules/glob (Depends-on): Update.
14105         * modules/iconv-h (Depends-on): Update.
14106         * modules/langinfo (Depends-on): Update.
14107         * modules/locale (Depends-on): Update.
14108         * modules/math (Depends-on): Update.
14109         * modules/netdb (Depends-on): Update.
14110         * modules/poll-h (Depends-on): Update.
14111         * modules/pty (Depends-on): Update.
14112         * modules/search (Depends-on): Update.
14113         * modules/signal (Depends-on): Update.
14114         * modules/spawn (Depends-on): Update.
14115         * modules/stdio (Depends-on): Update.
14116         * modules/stdlib (Depends-on): Update.
14117         * modules/string (Depends-on): Update.
14118         * modules/strings (Depends-on): Update.
14119         * modules/sys_ioctl (Depends-on): Update.
14120         * modules/sys_select (Depends-on): Update.
14121         * modules/sys_socket (Depends-on): Update.
14122         * modules/sys_stat (Depends-on): Update.
14123         * modules/sys_time (Depends-on): Update.
14124         * modules/sys_wait (Depends-on): Update.
14125         * modules/termios (Depends-on): Update.
14126         * modules/time (Depends-on): Update.
14127         * modules/unistd (Depends-on): Update.
14128         * modules/wchar (Depends-on): Update.
14129         * modules/wctype-h (Depends-on): Update.
14130
14131         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
14132         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
14133         (Files, Makefile.am): Update.
14134         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
14135         * modules/argv-iter (Depends-on): Update.
14136         * modules/arpa_inet (Depends-on): Update.
14137         * modules/dirent (Depends-on): Update.
14138         * modules/fcntl-h (Depends-on): Update.
14139         * modules/fnmatch (Depends-on): Update.
14140         * modules/getopt-posix (Depends-on): Update.
14141         * modules/glob (Depends-on): Update.
14142         * modules/iconv-h (Depends-on): Update.
14143         * modules/inttypes-incomplete (Depends-on): Update.
14144         * modules/locale (Depends-on): Update.
14145         * modules/math (Depends-on): Update.
14146         * modules/netdb (Depends-on): Update.
14147         * modules/search (Depends-on): Update.
14148         * modules/signal (Depends-on): Update.
14149         * modules/spawn (Depends-on): Update.
14150         * modules/stdio (Depends-on): Update.
14151         * modules/stdlib (Depends-on): Update.
14152         * modules/string (Depends-on): Update.
14153         * modules/strings (Depends-on): Update.
14154         * modules/sys_socket (Depends-on): Update.
14155         * modules/sys_stat (Depends-on): Update.
14156         * modules/sys_time (Depends-on): Update.
14157         * modules/sys_times (Depends-on): Update.
14158         * modules/sys_utsname (Depends-on): Update.
14159         * modules/time (Depends-on): Update.
14160         * modules/unistd (Depends-on): Update.
14161         * modules/wchar (Depends-on): Update.
14162         * MODULES.html.sh (Support for building libraries and executables):
14163         Update.
14164
14165 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
14166
14167         Improvements on _Noreturn and related modules.
14168
14169         modules/_Exit-tests: test _Noreturn too
14170         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
14171         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
14172         (main): Use them.
14173
14174         stdnoreturn, stdnoreturn-tests: remove modules
14175         They're not needed here and a bit premature for use elsewhere.  See
14176         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
14177         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
14178         * tests/test-stdnoreturn.c: Remove files.
14179         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
14180         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
14181         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
14182         and using noreturn.
14183         * modules/openat, modules/sigpipe-die, modules/xalloc:
14184         * modules/xmemdup0, modules/xstrtol:
14185         Remove dependency on stdnoreturn.
14186
14187         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
14188         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
14189         Reparenthesize to avoid GCC warning.
14190         Support Microsoft's syntax.
14191         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
14192
14193         _Noreturn-tests: remove module
14194         * modules/_Noreturn-tests: Remove.
14195         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
14196         * tests/test-_Noreturn.c: Remove.
14197         * tests/test-stdnoreturn.c: Merge from the old
14198         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
14199
14200 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
14201
14202         _Noreturn, stdnoreturn, and related modules.
14203
14204         * top/maint.mk: Adjust to new noreturn support.
14205         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
14206         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
14207
14208         xalloc: use stdnoreturn.h
14209         * lib/xalloc.h: Include <stdnoreturn.h>.
14210         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
14211         * modules/xalloc (Depends-on): Add stdnoreturn.
14212
14213         xstrtol: use stdnoreturn.h
14214         * lib/xstrtol.h: Include <stdnoreturn.h>.
14215         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
14216         * modules/xstrtol (Depends-on): Add stdnoreturn.
14217
14218         xmemdup0: use stdnoreturn.h
14219         * lib/xmemdup0.h: Include <stdnoreturn.h>.
14220         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
14221         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
14222
14223         sigpipe-die: use stdnoreturn.h
14224         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
14225         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
14226         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
14227
14228         openat: use stdnoreturn.h
14229         * lib/openat.h: Include <stdnoreturn.h>.
14230         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
14231         * modules/openat (Depends-on): Add stdnoreturn.
14232
14233         * lib/openat-die.c (openat_save_fail): Modernize comment.
14234
14235         * lib/xalloc-die.c (xalloc_die): Modernize comment.
14236
14237         * lib/glthread/thread.h: Modernize comment.
14238
14239         obstack: use _Noreturn
14240         * lib/obstack.c (__attribute__): Remove macro.
14241         (print_and_abort): Use _Noreturn.
14242
14243         c-stack: use _Noreturn
14244         * lib/c-stack.c (die, overflow_handler, segv_handler):
14245         Use _Noreturn rather than __attribute__((noreturn)).
14246
14247         argmatch-tests, exclude_tests: use _Noreturn
14248         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
14249         Remove.
14250         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
14251
14252         stdlib: use _Noreturn
14253         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
14254         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
14255         * modules/stdlib (Depends-on): Add _Noreturn.
14256         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
14257
14258         stdnoreturn-tests: new module
14259         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
14260
14261         stdnoreturn: new module
14262         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
14263         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
14264
14265         _Noreturn-tests: new module
14266         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
14267
14268         _Noreturn: new module
14269         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
14270         New section, mentioning it.
14271         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
14272
14273         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
14274
14275 2011-07-11  Eric Blake  <eblake@redhat.com>
14276
14277         ffs: new module
14278         * modules/ffs: New file.
14279         * m4/ffs.m4: Likewise.
14280         * lib/ffs.c: Likewise.
14281         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
14282         * modules/strings (Makefile.am): Substitute witness.
14283         (Depends-on): Add c++defs.
14284         * lib/strings.in.h (ffs): Declare.
14285         * modules/ffs-tests: New test file.
14286         * tests/test-ffs.c: Test new module.
14287         * MODULES.html.sh (Integer arithmetic functions): Mention it.
14288         * doc/posix-functions/ffs.texi (ffs): Likewise.
14289
14290         regex: avoid compiler warning
14291         * lib/regex.c (includes): Include <strings.h>, for use of
14292         strcasecmp in regcomp.c.
14293         Reported by Joachim Schmitz.
14294
14295 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
14296
14297         stdint: respect system's intmax_t if INTMAX_MAX
14298         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
14299         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
14300         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
14301         long but int64_t is long long, and where we will clash with the
14302         system intmax_t if we override it.  See
14303         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
14304         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
14305         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
14306         similarly for UINTMAX_C.
14307
14308 2011-07-08  Bruno Haible  <bruno@clisp.org>
14309
14310         pthread_sigmask tests: Avoid a compiler warning.
14311         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
14312         non-zero.
14313
14314         sigprocmask tests: A better way to avoid a compiler warning.
14315         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
14316         (main): Complain if system() returns non-zero.
14317         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
14318
14319 2011-07-08  Bruno Haible  <bruno@clisp.org>
14320
14321         pthread_sigmask: Work around IRIX bug.
14322         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
14323         bug.
14324         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
14325         there may be unblocked pending signals.
14326         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
14327
14328 2011-07-08  Bruno Haible  <bruno@clisp.org>
14329
14330         pthread_sigmask: Work around Cygwin bug.
14331         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
14332         bug.
14333         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
14334         the system's pthread_sigmask function.
14335         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
14336
14337 2011-07-08  Bruno Haible  <bruno@clisp.org>
14338
14339         pthread_sigmask: Work around bug in single-threaded implementation.
14340         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
14341         FreeBSD, HP-UX, Solaris bug.
14342         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
14343         * lib/pthread_sigmask.c: Include <stddef.h>.
14344         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
14345         the system's pthread_sigmask function.
14346         * modules/pthread_sigmask (configure.ac): Invoke
14347         gl_PREREQ_PTHREAD_SIGMASK.
14348         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
14349         HP-UX, Solaris.
14350
14351 2011-07-08  Eric Blake  <eblake@redhat.com>
14352
14353         test-sigprocmask: avoid compiler warning
14354         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
14355         * tests/test-sigprocmask.c (main): Use it to silence warning.
14356         Reported by Jim Meyering.
14357
14358         test-snprintf: avoid compiler warning
14359         * tests/test-snprintf.c (main): Avoid shadowed declaration.
14360         * tests/test-vsnprintf.c (main): Likewise.
14361         Reported by Jim Meyering.
14362
14363 2011-07-08  Bruno Haible  <bruno@clisp.org>
14364
14365         Tests for module 'pthread_sigmask'.
14366         * modules/pthread_sigmask-tests: New file.
14367         * tests/test-pthread_sigmask1.c: New file, based on
14368         tests/test-sigprocmask.c.
14369         * tests/test-pthread_sigmask2.c: New file.
14370
14371 2011-07-08  Jim Meyering  <meyering@redhat.com>
14372
14373         test-getopt.h: avoid warning about an unused variable
14374         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
14375
14376 2011-07-07  Jim Meyering  <meyering@redhat.com>
14377
14378         maint: reduce list of files exempt from sc_prohibit_leading_TABs
14379         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
14380         now that it no longer contains leading TABs.
14381         Remove unused "url=FIXME" statement.
14382
14383 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
14384
14385         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
14386         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
14387         When gl_THREADLIB is not in use, assume that the POSIX sematics
14388         are desired.  This is better for Emacs, which uses POSIX semantics
14389         on GNUish and/or POSIXish platforms, and does not use threads at
14390         all otherwise.
14391
14392         pthread_sigmask: fix typo when testing for libraries
14393         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
14394         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
14395
14396 2011-07-08  Eric Blake  <eblake@redhat.com>
14397
14398         fts: introduce FTS_NOATIME
14399         * lib/fts_.h (FTS_NOATIME): New bit flag.
14400         (FTS_OPTIONMASK): Adjust.
14401         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
14402         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
14403
14404 2011-07-08  Bruno Haible  <bruno@clisp.org>
14405
14406         Tests for module 'thread'.
14407         * modules/thread-tests: New file.
14408         * tests/test-thread_self.c: New file.
14409         * tests/test-thread_create.cc: New file.
14410
14411 2011-07-08  Bruno Haible  <bruno@clisp.org>
14412
14413         thread: Avoid gcc warnings when using gl_thread_self().
14414         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
14415         'void *'.
14416         (gl_thread_self_pointer): Update.
14417
14418 2011-07-07  Bruno Haible  <bruno@clisp.org>
14419
14420         signal-c++-tests: Check declaration of pthread_sigmask.
14421         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
14422         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
14423         $(LIB_PTHREAD_SIGMASK).
14424
14425 2011-07-07  Bruno Haible  <bruno@clisp.org>
14426
14427         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
14428         * lib/signal.in.h (pthread_sigmask): Override if
14429         REPLACE_PTHREAD_SIGMASK is 1.
14430         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
14431         REPLACE_PTHREAD_SIGMASK.
14432         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
14433         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
14434         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
14435         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
14436         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
14437
14438 2011-07-07  Bruno Haible  <bruno@clisp.org>
14439
14440         pthread_sigmask: Ensure declaration in <signal.h>.
14441         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
14442         include <pthread.h>.
14443         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
14444         problem.
14445
14446 2011-07-07  Bruno Haible  <bruno@clisp.org>
14447
14448         pthread_sigmask: Document the module.
14449         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
14450
14451 2011-07-07  Bruno Haible  <bruno@clisp.org>
14452
14453         pthread_sigmask: Follow gnulib conventions.
14454         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
14455         gl_PTHREAD_SIGMASK.
14456         * modules/pthread_sigmask (configure.ac): Update.
14457
14458 2011-07-07  Bruno Haible  <bruno@clisp.org>
14459
14460         pthread_sigmask: Make declaration C++ safe.
14461         * lib/signal.in.h: In two special conditions, just do an #include_next.
14462         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
14463         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
14464         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
14465         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
14466         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
14467         not REPLACE_PTHREAD_MASK.
14468         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
14469         not REPLACE_PTHREAD_MASK.
14470         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
14471
14472 2011-07-07  Bruno Haible  <bruno@clisp.org>
14473
14474         pthread_sigmask: Fix return value.
14475         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
14476         * lib/pthread_sigmask.c: New file.
14477         * modules/pthread_sigmask (Files): Add it.
14478         (configure.ac): Invoke AC_LIBOBJ.
14479
14480 2011-07-07  Eric Blake  <eblake@redhat.com>
14481
14482         getopt: more portable argv creation
14483         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
14484         const, use char arrays rather than strings.
14485         Suggested by Paul Eggert.
14486
14487 2011-07-07  Bruno Haible  <bruno@clisp.org>
14488
14489         Tests for module 'sigprocmask'.
14490         * modules/sigprocmask-tests: New file.
14491         * tests/test-sigprocmask.c: New file.
14492
14493 2011-07-07  Bruno Haible  <bruno@clisp.org>
14494
14495         float tests: Tweak.
14496         * tests/test-float.c (main): Tweak skip message.
14497
14498 2011-07-07  Eric Blake  <eblake@redhat.com>
14499
14500         getopt: avoid compiler warning during configure
14501         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
14502         assigning string literals to non-const pointer.
14503
14504         getopt-gnu: avoid crash in glibc getopt
14505         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
14506         * tests/test-getopt.h (test_getopt): Enhance test.
14507         * tests/test-getopt_long.h (test_getopt_long): Likewise.
14508         * doc/posix-functions/getopt.texi (getopt): Document it.
14509         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
14510         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
14511         Likewise.
14512
14513 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
14514
14515         getopt: handle W; without long options in getopt [BZ #12922]
14516         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
14517         but no long options are defined, just return 'W'.
14518
14519 2011-07-07  Bruno Haible  <bruno@clisp.org>
14520
14521         Avoid literal tabs.
14522         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
14523         variable containing a tab instead of a literal tab.
14524         Reported by Jim Meyering.
14525
14526 2011-07-07  Bruno Haible  <bruno@clisp.org>
14527
14528         Comments.
14529         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
14530
14531 2011-07-06  Bruno Haible  <bruno@clisp.org>
14532
14533         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
14534         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
14535         <winsock2.h>.
14536         (rpl_fd_isset, FD_ISSET): New definitions, copied from
14537         lib/sys_socket.in.h.
14538         (close, gethostname): Hide declarations from <winsock2.h>.
14539         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
14540         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
14541         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
14542         (select): Don't override if gnulib's <sys/select.h> was already
14543         included.
14544         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
14545         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
14546         setsockopt, shutdown, select): Tweak indentation.
14547
14548 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
14549
14550         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
14551         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
14552         in an application that does not use the sys_select module.
14553
14554 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
14555
14556         poll: do not return 0 on timeout=-1
14557         * lib/poll.c: Loop with yield if no events occured
14558
14559 2011-07-06  Eric Blake  <eblake@redhat.com>
14560
14561         pthread_sigmask: always replace when not using pthread
14562         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
14563         replacement when using some threading other than pthread.  Fix
14564         logic bug.
14565
14566 2011-07-06  Bruno Haible  <bruno@clisp.org>
14567
14568         Comments.
14569         * m4/printf.m4: Update comments about mingw.
14570
14571 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
14572
14573         sys_select: define sigset_t more portably
14574         * lib/sys_select.in.h: Always include <sys/types.h>, since
14575         we now need sigset_t and mingw defines it there.
14576         Include <signal.h> before split inclusion guard, to avoid
14577         mishaps on Solaris, whose <signal.h> eventually includes us.
14578         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
14579         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
14580         which come from ...
14581         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
14582         gl_CHECK_TYPE_SIGSET_T.
14583         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
14584         does the real work.
14585         * modules/sys_select (Depends-on): Add 'signal'.
14586
14587         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
14588         Suggested by Bruno Haible.
14589
14590         pselect: Use pthread_sigmask, not sigprocmask.
14591         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
14592         multithreaded apps better than sigprocmask does.
14593         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
14594         sigprocmask directly.
14595
14596 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
14597
14598         * lib/pselect.c (pselect): Use plain name, without "rpl_".
14599         Don't #undef,  since we don't need any underlying pselect.
14600         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
14601         (Depends-on): Add select.
14602         (Link): Add $(LIBSOCKET).
14603         These changes suggested by Bruno Haible.
14604
14605         pselect: document better
14606         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
14607         * doc/posix-functions/pselect.texi (pselect): Document new module.
14608
14609         pthread_sigmask: new module
14610         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
14611         * doc/posix-functions/pthread_sigmask.texi: Document new module.
14612         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
14613         This is done only as a macro; I don't know how well that'll
14614         work for C++.  Move <sys/types.h> include before the include_next,
14615         to avoid mishap on Solaris.
14616         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
14617         * modules/signal (Makefile.am): Substitute the check's results.
14618         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
14619
14620         test-pselect: new module
14621         * modules/pselect-tests, tests/test-pselect.c: New files.
14622         * tests/test-select.c, tests/test-sys_select-c++.cc:
14623         If TEST_PSELECT is defined, test pselect instead of testing select.
14624
14625         * tests/test-sys_select.c (sigset_t): Test for it, too.
14626         Suggested by Bruno Haible.
14627
14628 2011-07-05  Eric Blake  <eblake@redhat.com>
14629
14630         snprintf: guarantee %1$d, for libintl
14631         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
14632         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
14633         * doc/posix-functions/snprintf.texi (snprintf): Update.
14634         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
14635         * tests/test-snprintf.c (main): Enhance test.
14636         * tests/test-vsnprintf.c (main): Likewise.
14637
14638 2011-07-05  Jim Meyering  <meyering@redhat.com>
14639
14640         maint: exempt stdio-read.c and stdio-write.c from the cppi check
14641         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
14642         per Bruno's request, to accommodate this idiom (no space after "#")
14643         even when the function is inside an #if block:
14644         char *
14645         gets (char *s)
14646         #undef gets
14647         {
14648           ...
14649         }
14650
14651 2011-07-04  Jim Meyering  <meyering@redhat.com>
14652
14653         maint: indent with spaces, not TABs, and add a rule to check this
14654         * tests/test-userspec.c: Indent with spaces, not TABs.
14655         * tests/test-argp.c: Likewise.
14656         * tests/test-c-stack2.sh: Likewise.
14657         * tests/test-parse-duration.sh: Likewise
14658         * m4/strtod.m4: Likewise.
14659         * m4/alloca.m4: Likewise.
14660         * m4/pselect.m4: Likewise.
14661         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
14662
14663 2011-07-03  Jim Meyering  <meyering@redhat.com>
14664
14665         maint.mk: correct omissions in prohibit_argmatch_without_use check
14666         This rule would mistakenly report that argmatch.h is included without
14667         use even when both the argmatch and invalid_arg macro were used.
14668         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
14669         of argmatch and invalid_arg.
14670
14671 2011-07-03  Bruno Haible  <bruno@clisp.org>
14672
14673         Comments about EINTR.
14674         * lib/safe-read.h: Explain the purpose of this module.
14675         * lib/safe-write.h: Likewise.
14676         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
14677         module.
14678         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
14679         module.
14680         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
14681
14682 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
14683
14684         xnanosleep: Rewrite to use new dtotimespec module.
14685         It has the conversion code that used to be in xnanosleep.
14686         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
14687         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
14688         (TIME_T_MAX): Remove.
14689         (xnanosleep): Rewrite in terms of dtotimespec.
14690         * modules/xnanosleep (Depends-on): Add dtotimespec.
14691         Remove intprops, stdbool.
14692
14693         timespec-add, timespec-sub: new modules
14694         * lib/timespec.h (timespec_add, timespec_sub): New decls.
14695         * lib/timespec-add.c, lib/timespec-sub.c:
14696         * modules/timespec-add, modules/timespec-sub: New files.
14697
14698         dtotimespec: new module
14699         * lib/timespec.h (dtotimespec): New decl.
14700         * lib/dtotimespec.c, modules/dtotimespec: New files.
14701
14702         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
14703
14704         pselect: new module
14705         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
14706         (pselect): New decls.
14707         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
14708         since the standard pselect decl uses 'restrict'.
14709         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
14710         HAVE_PSELECT, REPLACE_PSELECT.
14711         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
14712         HAVE_PSELECT, REPLACE_PSELECT.
14713         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
14714
14715         sys_select: don't depend on sys_socket
14716         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
14717         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
14718         This fix works on GNU and GNU-like platforms, but has not been tested
14719         on native Windows.
14720         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
14721         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
14722         gl_HEADER_SYS_SOCKET.
14723         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
14724         gl_PREREQ_SYS_H_WINSOCK2.
14725
14726 2011-06-29  Eric Blake  <eblake@redhat.com>
14727
14728         pipe2: fix C89 compile problem
14729         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
14730         Reported by Bruno Haible.
14731
14732         pipe, pipe2: don't corrupt fd on error
14733         * lib/pipe.c (pipe): Leave fd unchanged on error.
14734         * lib/pipe2.c (pipe2): Likewise.
14735         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
14736         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
14737
14738 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
14739
14740         mmap-anon: do not use regular expressions inadvertently
14741         * m4/mmap-anon.m4: Remove trailing period from strings sought
14742         in the output.
14743
14744 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
14745
14746         nanosleep: fix integer overflow problem
14747         * lib/nanosleep.c (my_usleep): Don't assume signed integer
14748         arithmetic wraps around on overflow.
14749
14750         nanosleep: simplify carrying
14751         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
14752         first call to the underyling nanosleep, not for the last one.
14753         This doesn't fix any bugs, but it simplifies the computation of
14754         the remaining delay.  Found while auditing integer overflow issues.
14755
14756         dup2: remove test for existence of fcntl
14757         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
14758         "#if HAVE_FCNTL", in the configure-time test program.
14759         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
14760         and therefore speeds up "configure" a bit.  Found while
14761         adding the dup2 module to Emacs.
14762
14763 2011-06-24  Eric Blake  <eblake@redhat.com>
14764
14765         maint.mk: enhance useless header checks
14766         * top/maint.mk (_sc_header_without_use): Check both include
14767         styles.
14768         (sc_prohibit_assert_without_use)
14769         (sc_prohibit_close_stream_without_use)
14770         (sc_prohibit_getopt_without_use)
14771         (sc_prohibit_quotearg_without_use)
14772         (sc_prohibit_quote_without_use)
14773         (sc_prohibit_long_options_without_use)
14774         (sc_prohibit_inttostr_without_use)
14775         (sc_prohibit_ignore_value_without_use)
14776         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
14777         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
14778         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
14779         (sc_prohibit_hash_pjw_without_use)
14780         (sc_prohibit_safe_read_without_use)
14781         (sc_prohibit_argmatch_without_use)
14782         (sc_prohibit_canonicalize_without_use)
14783         (sc_prohibit_root_dev_ino_without_use)
14784         (sc_prohibit_openat_without_use)
14785         (sc_prohibit_c_ctype_without_use)
14786         (sc_prohibit_signal_without_use)
14787         (sc_prohibit_stdio--_without_use)
14788         (sc_prohibit_stdio-safer_without_use)
14789         (sc_prohibit_strings_without_use)
14790         (sc_prohibit_intprops_without_use)
14791         (sc_prohibit_stddef_without_use)
14792         (sc_prohibit_xfreopen_without_use): Update clients.
14793
14794 2011-06-24  Jim Meyering  <meyering@redhat.com>
14795
14796         syntax-check: keep one maint.mk rule in sync with its header
14797         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
14798         of the bug Eric has just fixed, with today's commit 25e4c2ec.
14799         I prefer to avoid temporary files here, so use <(...), but that
14800         is not supported by /bin/sh, so...
14801         (SHELL): Define to /bin/bash.
14802
14803 2011-06-24  Eric Blake  <eblake@redhat.com>
14804
14805         maint.mk: update sc_prohibit_intprops_without_use
14806         * top/maint.mk (_intprops_names): Match recent changes.
14807
14808 2011-06-24  Bruno Haible  <bruno@clisp.org>
14809
14810         strerror-override: No-op tweak.
14811         * lib/strerror-override.h (strerror_override): Reorder conditions,
14812         for consistency with lib/strerror-override.c.
14813
14814 2011-06-23  Eric Blake  <eblake@redhat.com>
14815
14816         maint.mk: test further PATH_MAX issues
14817         * top/maint.mk (sc_prohibit_path_max_array): Rename...
14818         (sc_prohibit_path_max_allocation): ...and also test alloca.
14819         Suggested by Jim Meyering.
14820
14821 2011-06-22  Eric Blake  <eblake@redhat.com>
14822
14823         maint.mk: add syntax-check to avoid char[PATH_MAX]
14824         * top/maint.mk (sc_prohibit_path_max_array): New rule.
14825
14826         stat: be robust to PATH_MAX definition
14827         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
14828         * modules/stat (Depends-on): Add verify.
14829
14830         link: work around IRIX bug
14831         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
14832         * lib/link.c (rpl_link): Work around it.
14833         * tests/test-link.h (test_link): Enhance test.
14834         * doc/posix-functions/link.texi (link): Document the bug.
14835
14836         getopt: silence clang warning
14837         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
14838         dereference.
14839         Reported by Gustavo Martin Domato.
14840
14841 2011-06-22  Jim Meyering  <meyering@redhat.com>
14842
14843         bootstrap: do not insert a blank line into each .gitignore file
14844         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
14845
14846 2011-06-21  Eric Blake  <eblake@redhat.com>
14847
14848         perror: test for output mismatch
14849         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
14850         perror on IRIX.
14851
14852         strerror_r: fix OpenBSD behavior on out-of-range
14853         * lib/strerror_r.c (strerror_r): Always use maximal string.
14854         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
14855
14856         strerror_r: fix OpenBSD behavior on 0
14857         * lib/strerror-override.c (strerror_override): Also override 0
14858         when needed.
14859         * lib/strerror-override.h (strerror_override): Likewise.
14860         * lib/strerror.c (strerror): Simplify, now that 0 override is done
14861         earlier.
14862         * lib/strerror_r.c (strerror_r): Likewise.
14863         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
14864         behavior...
14865         (gl_FUNC_STRERROR_0): ...into new macro.
14866         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
14867         is overridden.
14868         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
14869         * modules/strerror-override (Files): Add strerror.m4.
14870         (configure.ac): Also provide override for 0 when needed.
14871         * doc/posix-functions/strerror.texi (strerror): Document this.
14872         * doc/posix-functions/perror.texi (perror): Likewise.
14873
14874         perror: adjust array size
14875         * modules/perror (Depends-on): Add strerror-override.
14876         * lib/perror.c (perror): Use it to avoid magic number.
14877
14878         strerror-override: reduce size
14879         * lib/strerror-override.c (strerror_override): Use fewer lines.
14880
14881 2011-06-20  Bruno Haible  <bruno@clisp.org>
14882
14883         pathmax: Ensure correct value for PATH_MAX on HP-UX.
14884         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
14885
14886 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
14887
14888         alloca: port to compilers that can optimize like GCC 4.6.0
14889         * lib/alloca.c (find_stack_direction): New signature, taken from
14890         Autoconf git.  This works with GCC 4.6.0.  This code should never
14891         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
14892         be used with other compilers that optimize as well as GCC 4.6.0 does.
14893         (alloca): Adjust to new signature.
14894         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
14895         New macro, which patches Autoconf in a similar way.
14896
14897         c-stack: stop worrying about stack direction
14898         * lib/c-stack.c (find_stack_direction): Remove.
14899         (segv_handler): Don't worry about stack direction growth, as it's
14900         too much of a pain to configure this correctly, given how compilers
14901         are optimizing-away our stack-growth detection code.  Instead, assume
14902         that any access to just before or just after the stack is OK.
14903         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
14904         Don't require AC_FUNC_ALLOCA; no longer needed.
14905
14906 2011-06-20  Eric Blake  <eblake@redhat.com>
14907
14908         test-stat: don't allocate PATH_MAX bytes
14909         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
14910         PATH_MAX-sized buffer.
14911         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
14912         * modules/stat-tests (Depends-on): Likewise.
14913         * tests/test-fstatat.c (includes): Drop pathmax.h.
14914         * tests/test-stat.c (includes): Likewise.
14915         Reported by Bruno Haible.
14916
14917 2011-06-20  Bruno Haible  <bruno@clisp.org>
14918
14919         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
14920         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
14921         * lib/float.c: New file.
14922         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
14923         REPLACE_FLOAT_LDBL.
14924         * modules/float (Files): Add lib/float.c.
14925         (configure.ac): Invoke AC_LIBOBJ.
14926         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
14927
14928 2011-06-20  Bruno Haible  <bruno@clisp.org>
14929
14930         Tests for module 'float'.
14931         * modules/float-tests: New file.
14932         * tests/test-float.c: New file.
14933
14934 2011-06-19  Bruno Haible  <bruno@clisp.org>
14935
14936         isinf: Coding style.
14937         * lib/isinf.c: Use GNU coding style.
14938
14939 2011-06-19  Bruno Haible  <bruno@clisp.org>
14940
14941         linkat test: Avoid test failure on AIX 7.1.
14942         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
14943         * tests/test-link.h (test_link): Likewise.
14944
14945 2011-06-19  Bruno Haible  <bruno@clisp.org>
14946
14947         pread test: Avoid test failure on OpenBSD 4.9.
14948         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
14949
14950 2011-06-19  Bruno Haible  <bruno@clisp.org>
14951
14952         sprintf-posix: Fix test failure on AIX 7.1.
14953         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
14954         * doc/posix-functions/dprintf.texi: Mention limited precision problem
14955         on AIX.
14956         * doc/posix-functions/fprintf.texi: Likewise.
14957         * doc/posix-functions/printf.texi: Likewise.
14958         * doc/posix-functions/snprintf.texi: Likewise.
14959         * doc/posix-functions/sprintf.texi: Likewise.
14960         * doc/posix-functions/vdprintf.texi: Likewise.
14961         * doc/posix-functions/vfprintf.texi: Likewise.
14962         * doc/posix-functions/vprintf.texi: Likewise.
14963         * doc/posix-functions/vsnprintf.texi: Likewise.
14964         * doc/posix-functions/vsprintf.texi: Likewise.
14965
14966 2011-06-19  Bruno Haible  <bruno@clisp.org>
14967
14968         roundl-ieee: Fix test failure on AIX 7.1.
14969         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
14970         * doc/posix-functions/roundl.texi: Mention problem with negative
14971         arguments.
14972
14973 2011-06-19  Bruno Haible  <bruno@clisp.org>
14974
14975         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
14976         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
14977         * doc/posix-functions/round.texi: Mention problem with negative
14978         arguments.
14979         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
14980
14981 2011-06-19  Bruno Haible  <bruno@clisp.org>
14982
14983         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
14984         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
14985         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
14986         * doc/posix-functions/roundf.texi: Mention problem with negative
14987         arguments.
14988         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
14989
14990 2011-06-19  Bruno Haible  <bruno@clisp.org>
14991
14992         ceilf-ieee: Work around bug on MacOS X 10.5.
14993         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
14994
14995         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
14996         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
14997         IEEE compliant, avoid compiler optimizations.
14998         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
14999         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
15000         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
15001         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
15002         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
15003         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
15004         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
15005         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
15006         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
15007         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
15008
15009 2011-06-19  Bruno Haible  <bruno@clisp.org>
15010
15011         ceilf-ieee: Work around bug on AIX 7.1.
15012         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
15013         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
15014
15015 2011-06-19  Bruno Haible  <bruno@clisp.org>
15016
15017         ceil-ieee: Work around bug on AIX 7.1.
15018         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
15019         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
15020
15021 2011-06-18  Bruno Haible  <bruno@clisp.org>
15022
15023         fsync test: Avoid test failure on MacOS X and AIX.
15024         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
15025         EINVAL.
15026
15027 2011-06-18  Bruno Haible  <bruno@clisp.org>
15028
15029         openat, fdopendir tests: Fix link errors.
15030         * modules/openat-tests (Depends-on): Add progname.
15031         * modules/fdopendir-tests (Depends-on): Likewise.
15032         * tests/test-fchownat.c: Include progname.h.
15033         (main): Call set_program_name.
15034         * tests/test-fstatat.c: Include progname.h.
15035         (main): Call set_program_name.
15036         * tests/test-mkdirat.c: Include progname.h.
15037         (main): Call set_program_name.
15038         * tests/test-openat.c: Include progname.h.
15039         (main): Call set_program_name.
15040         * tests/test-unlinkat.c: Include progname.h.
15041         (main): Call set_program_name.
15042         * tests/test-fdopendir.c: Include progname.h.
15043         (main): Call set_program_name.
15044
15045 2011-06-18  Bruno Haible  <bruno@clisp.org>
15046
15047         Doc update.
15048         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
15049         HP-UX.
15050         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
15051
15052 2011-06-18  Bruno Haible  <bruno@clisp.org>
15053
15054         getcwd tests: Avoid compilation error on HP-UX 11.31.
15055         * modules/getcwd-tests (Depends-on): Add pathmax.
15056         * tests/test-getcwd.c: Include pathmax.h.
15057
15058 2011-06-18  Bruno Haible  <bruno@clisp.org>
15059
15060         isfinite, isinf: Fix link error on AIX 6 and 7.
15061         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
15062         needed, also test the macro with a 'float' argument.
15063         * m4/isinf.m4 (gl_ISINF): Likewise.
15064
15065 2011-06-18  Bruno Haible  <bruno@clisp.org>
15066
15067         getloadavg: Don't clobber LIBS. Regression from previous commit.
15068         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
15069         AC_CHECK_LIB from here...
15070         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
15071         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
15072         gl_func_getloadavg_done.
15073         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15074
15075 2011-06-18  Bruno Haible  <bruno@clisp.org>
15076
15077         clean-temp: Improve documentation.
15078         * lib/clean-temp.h: Explain better how to use this module.
15079         Reported by John Darrington <john@darrington.wattle.id.au>.
15080
15081 2011-06-17  Bruno Haible  <bruno@clisp.org>
15082
15083         pread, pwrite: Avoid cc warning on AIX.
15084         * lib/unistd.in.h (pread): Undefine before defining as a macro.
15085         (pwrite): Likewise.
15086
15087 2011-06-17  Bruno Haible  <bruno@clisp.org>
15088
15089         spawn-pipe tests: Fix link error.
15090         * tests/test-spawn-pipe-child.c: Undefine fprintf.
15091         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15092
15093 2011-06-17  Bruno Haible  <bruno@clisp.org>
15094
15095         Tests: Remove unnecessary dependency.
15096         * modules/canonicalize-tests (Depends-on): Remove progname.
15097         * modules/chown-tests (Depends-on): Likewise.
15098         * modules/dirname-tests (Depends-on): Likewise.
15099         * modules/fdopendir-tests (Depends-on): Likewise.
15100         * modules/fdutimensat-tests (Depends-on): Likewise.
15101         * modules/hash-tests (Depends-on): Likewise.
15102         * modules/lchown-tests (Depends-on): Likewise.
15103         * modules/linkat-tests (Depends-on): Likewise.
15104         * modules/renameat-tests (Depends-on): Likewise.
15105         * modules/spawn-pipe-tests (Depends-on): Likewise.
15106         * modules/utimensat-tests (Depends-on): Likewise.
15107
15108 2011-06-17  Bruno Haible  <bruno@clisp.org>
15109
15110         spawn-pipe tests: Fix link error.
15111         * tests/test-spawn-pipe-child.c: Undefine fflush.
15112
15113 2011-06-17  Bruno Haible  <bruno@clisp.org>
15114
15115         Fix tests link errors.
15116         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
15117         * modules/chown-tests (Makefile.am): Don't link test-chown with
15118         LIBINTL.
15119         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
15120         LIBINTL.
15121         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
15122         LIBINTL.
15123         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
15124         LIBINTL.
15125
15126 2011-06-16  Bruno Haible  <bruno@clisp.org>
15127
15128         crypto/gc-sha1: Fix recent regression.
15129         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
15130         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
15131
15132         crypto/gc-md5: Fix recent regression.
15133         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
15134
15135         crypto/gc-md4: Fix recent regression.
15136         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
15137         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
15138
15139         crypto/gc-arctwo: Fix recent regression.
15140         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
15141         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
15142
15143         crypto/gc-rijndael: Fix recent regression.
15144         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
15145         (configure.ac): Invoke AC_LIBOBJ here.
15146         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
15147         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15148
15149         crypto/gc-hmac-sha1: Fix recent regression.
15150         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
15151         (configure.ac): Invoke AC_LIBOBJ here.
15152         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
15153         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15154
15155         crypto/gc-hmac-md5: Fix recent regression.
15156         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
15157         (configure.ac): Invoke AC_LIBOBJ here.
15158         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
15159         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15160
15161         crypto/gc-des: Fix recent regression.
15162         * modules/crypto/gc-des (Files): Remove m4/des.m4.
15163         (configure.ac): Invoke AC_LIBOBJ here.
15164         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
15165         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15166
15167         crypto/gc-arcfour: Fix recent regression.
15168         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
15169         (configure.ac): Invoke AC_LIBOBJ here.
15170         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
15171         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15172
15173 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
15174
15175         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
15176         After the 2011-05-21 change, this macro requires
15177         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
15178         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
15179
15180 2011-06-16  Bruno Haible  <bruno@clisp.org>
15181
15182         fprintftime: Move AC_LIBOBJ invocations to module description.
15183         * m4/fprintftime.m4: Remove file.
15184         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
15185         (configure.ac): Remove gl_FPRINTFTIME call.
15186         (Makefile.am): Augment lib_SOURCES.
15187         Reported by Jim Meyering.
15188
15189 2011-06-16  Bruno Haible  <bruno@clisp.org>
15190
15191         tmpfile-safer: Finish 2011-05-23 commit.
15192         * m4/stdio-safer.m4: Really remove file.
15193         Reported by Jim Meyering.
15194
15195 2011-06-16  Bruno Haible  <bruno@clisp.org>
15196
15197         syntax-check: Fix typo.
15198         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
15199         printf-posix.m4.
15200         Reported by Jim Meyering.
15201
15202 2011-06-13  Jim Meyering  <meyering@redhat.com>
15203
15204         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
15205         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
15206
15207 2011-05-23  Bruno Haible  <bruno@clisp.org>
15208
15209         yesno: Move AC_LIBOBJ invocations to module description.
15210         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
15211         * modules/yesno (Makefile.am): Augment lib_SOURCES.
15212
15213 2011-05-23  Bruno Haible  <bruno@clisp.org>
15214
15215         xstrtol: Move AC_LIBOBJ invocations to module description.
15216         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
15217         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
15218
15219 2011-05-23  Bruno Haible  <bruno@clisp.org>
15220
15221         xstrtold: Move AC_LIBOBJ invocations to module description.
15222         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
15223         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
15224
15225 2011-05-23  Bruno Haible  <bruno@clisp.org>
15226
15227         xstrtod: Move AC_LIBOBJ invocations to module description.
15228         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
15229         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
15230
15231 2011-05-23  Bruno Haible  <bruno@clisp.org>
15232
15233         xnanosleep: Move AC_LIBOBJ invocations to module description.
15234         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
15235         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
15236
15237 2011-05-23  Bruno Haible  <bruno@clisp.org>
15238
15239         xgetcwd: Move AC_LIBOBJ invocations to module description.
15240         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
15241         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
15242
15243 2011-05-23  Bruno Haible  <bruno@clisp.org>
15244
15245         xalloc: Move AC_LIBOBJ invocations to module description.
15246         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
15247         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
15248
15249 2011-05-23  Bruno Haible  <bruno@clisp.org>
15250
15251         write-any-file: Move AC_LIBOBJ invocations to module description.
15252         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
15253         invocation.
15254         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
15255
15256 2011-05-23  Bruno Haible  <bruno@clisp.org>
15257
15258         utimens: Move AC_LIBOBJ invocations to module description.
15259         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
15260         * modules/utimens (Makefile.am): Augment lib_SOURCES.
15261
15262 2011-05-23  Bruno Haible  <bruno@clisp.org>
15263
15264         utimecmp: Move AC_LIBOBJ invocations to module description.
15265         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
15266         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
15267
15268 2011-05-23  Bruno Haible  <bruno@clisp.org>
15269
15270         userspec: Move AC_LIBOBJ invocations to module description.
15271         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
15272         * modules/userspec (Makefile.am): Augment lib_SOURCES.
15273
15274 2011-05-23  Bruno Haible  <bruno@clisp.org>
15275
15276         unlinkdir: Move AC_LIBOBJ invocations to module description.
15277         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
15278         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
15279
15280 2011-05-23  Bruno Haible  <bruno@clisp.org>
15281
15282         unistd-safer: Move AC_LIBOBJ invocations to module description.
15283         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
15284         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
15285
15286 2011-05-23  Bruno Haible  <bruno@clisp.org>
15287
15288         tempname: Move AC_LIBOBJ invocations to module description.
15289         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
15290         * modules/tempname (Makefile.am): Augment lib_SOURCES.
15291
15292 2011-05-23  Bruno Haible  <bruno@clisp.org>
15293
15294         strftime: Move AC_LIBOBJ invocations to module description.
15295         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
15296         * modules/strftime (Makefile.am): Augment lib_SOURCES.
15297
15298 2011-05-23  Bruno Haible  <bruno@clisp.org>
15299
15300         stdlib-safer: Move AC_LIBOBJ invocations to module description.
15301         * m4/stdlib-safer.m4: Remove file.
15302         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
15303         (configure.ac): Remove gl_STDLIB_SAFER call.
15304         (Makefile.am): Augment lib_SOURCES.
15305
15306 2011-05-23  Bruno Haible  <bruno@clisp.org>
15307
15308         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
15309         * m4/stdio-safer.m4: Remove file.
15310         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
15311         (configure.ac): Remove gl_TMPFILE_SAFER call.
15312         (Makefile.am): Augment lib_SOURCES.
15313
15314 2011-05-23  Bruno Haible  <bruno@clisp.org>
15315
15316         popen-safer: Move AC_LIBOBJ invocations to module description.
15317         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
15318         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
15319         (configure.ac): Remove gl_POPEN_SAFER call.
15320         (Makefile.am): Augment lib_SOURCES.
15321
15322 2011-05-23  Bruno Haible  <bruno@clisp.org>
15323
15324         freopen-safer: Move AC_LIBOBJ invocations to module description.
15325         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
15326         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
15327         (configure.ac): Remove gl_FREOPEN_SAFER call.
15328         (Makefile.am): Augment lib_SOURCES.
15329
15330 2011-05-23  Bruno Haible  <bruno@clisp.org>
15331
15332         fopen-safer: Move AC_LIBOBJ invocations to module description.
15333         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
15334         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
15335         (configure.ac): Remove gl_FOPEN_SAFER call.
15336         (Makefile.am): Augment lib_SOURCES.
15337
15338 2011-05-23  Bruno Haible  <bruno@clisp.org>
15339
15340         crypto/sha512: Move AC_LIBOBJ invocations to module description.
15341         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
15342         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
15343
15344 2011-05-23  Bruno Haible  <bruno@clisp.org>
15345
15346         crypto/sha256: Move AC_LIBOBJ invocations to module description.
15347         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
15348         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
15349
15350 2011-05-23  Bruno Haible  <bruno@clisp.org>
15351
15352         crypto/sha1: Move AC_LIBOBJ invocations to module description.
15353         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
15354         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
15355
15356 2011-05-23  Bruno Haible  <bruno@clisp.org>
15357
15358         settime: Move AC_LIBOBJ invocations to module description.
15359         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
15360         * modules/settime (Makefile.am): Augment lib_SOURCES.
15361
15362 2011-05-23  Bruno Haible  <bruno@clisp.org>
15363
15364         savedir: Move AC_LIBOBJ invocations to module description.
15365         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
15366         * modules/savedir (Makefile.am): Augment lib_SOURCES.
15367
15368 2011-05-23  Bruno Haible  <bruno@clisp.org>
15369
15370         save-cwd: Move AC_LIBOBJ invocations to module description.
15371         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
15372         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
15373
15374 2011-05-23  Bruno Haible  <bruno@clisp.org>
15375
15376         same: Move AC_LIBOBJ invocations to module description.
15377         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
15378         * modules/same (Makefile.am): Augment lib_SOURCES.
15379
15380 2011-05-23  Bruno Haible  <bruno@clisp.org>
15381
15382         safe-write: Move AC_LIBOBJ invocations to module description.
15383         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
15384         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
15385         instead of gl_SAFE_WRITE.
15386         (Makefile.am): Augment lib_SOURCES.
15387
15388 2011-05-23  Bruno Haible  <bruno@clisp.org>
15389
15390         safe-read: Move AC_LIBOBJ invocations to module description.
15391         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
15392         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
15393         of gl_SAFE_READ.
15394         (Makefile.am): Augment lib_SOURCES.
15395
15396 2011-05-23  Bruno Haible  <bruno@clisp.org>
15397
15398         safe-alloc: Move AC_LIBOBJ invocations to module description.
15399         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
15400         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
15401
15402 2011-05-23  Bruno Haible  <bruno@clisp.org>
15403
15404         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
15405         * m4/rijndael.m4: Remove file.
15406         * modules/crypto/rijndael (Files): Remove it.
15407         (configure.ac): Remove gl_RIJNDAEL call.
15408         (Makefile.am): Augment lib_SOURCES.
15409
15410 2011-05-23  Bruno Haible  <bruno@clisp.org>
15411
15412         readtokens: Move AC_LIBOBJ invocations to module description.
15413         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
15414         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
15415
15416 2011-05-23  Bruno Haible  <bruno@clisp.org>
15417
15418         read-file: Move AC_LIBOBJ invocations to module description.
15419         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
15420         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
15421         of gl_FUNC_READ_FILE.
15422         (Makefile.am): Augment lib_SOURCES.
15423
15424 2011-05-23  Bruno Haible  <bruno@clisp.org>
15425
15426         quotearg: Move AC_LIBOBJ invocations to module description.
15427         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
15428         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
15429
15430 2011-05-23  Bruno Haible  <bruno@clisp.org>
15431
15432         quote: Move AC_LIBOBJ invocations to module description.
15433         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
15434         * modules/quote (Makefile.am): Augment lib_SOURCES.
15435
15436 2011-05-23  Bruno Haible  <bruno@clisp.org>
15437
15438         posixver: Move AC_LIBOBJ invocations to module description.
15439         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
15440         * modules/posixver (Makefile.am): Augment lib_SOURCES.
15441
15442 2011-05-23  Bruno Haible  <bruno@clisp.org>
15443
15444         posixtm: Move AC_LIBOBJ invocations to module description.
15445         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
15446         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
15447
15448 2011-05-23  Bruno Haible  <bruno@clisp.org>
15449
15450         physmem: Move AC_LIBOBJ invocations to module description.
15451         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
15452         * modules/physmem (Makefile.am): Augment lib_SOURCES.
15453
15454 2011-05-23  Bruno Haible  <bruno@clisp.org>
15455
15456         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
15457         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
15458         invocation.
15459         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
15460
15461 2011-05-23  Bruno Haible  <bruno@clisp.org>
15462
15463         mpsort: Move AC_LIBOBJ invocations to module description.
15464         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
15465         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
15466
15467 2011-05-23  Bruno Haible  <bruno@clisp.org>
15468
15469         modechange: Move AC_LIBOBJ invocations to module description.
15470         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
15471         * modules/modechange (Makefile.am): Augment lib_SOURCES.
15472
15473 2011-05-23  Bruno Haible  <bruno@clisp.org>
15474
15475         mkdir-p: Move AC_LIBOBJ invocations to module description.
15476         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
15477         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
15478
15479 2011-05-23  Bruno Haible  <bruno@clisp.org>
15480
15481         mkancesdirs: Move AC_LIBOBJ invocations to module description.
15482         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
15483         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
15484
15485 2011-05-23  Bruno Haible  <bruno@clisp.org>
15486
15487         mgetgroups: Move AC_LIBOBJ invocations to module description.
15488         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
15489         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
15490
15491 2011-05-23  Bruno Haible  <bruno@clisp.org>
15492
15493         memxor: Move AC_LIBOBJ invocations to module description.
15494         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
15495         * modules/memxor (Makefile.am): Augment lib_SOURCES.
15496
15497 2011-05-23  Bruno Haible  <bruno@clisp.org>
15498
15499         memcoll: Move AC_LIBOBJ invocations to module description.
15500         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
15501         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
15502
15503 2011-05-23  Bruno Haible  <bruno@clisp.org>
15504
15505         memcasecmp: Move AC_LIBOBJ invocations to module description.
15506         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
15507         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
15508
15509 2011-05-23  Bruno Haible  <bruno@clisp.org>
15510
15511         crypto/md5: Move AC_LIBOBJ invocations to module description.
15512         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
15513         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
15514
15515 2011-05-23  Bruno Haible  <bruno@clisp.org>
15516
15517         crypto/md4: Move AC_LIBOBJ invocations to module description.
15518         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
15519         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
15520
15521 2011-05-23  Bruno Haible  <bruno@clisp.org>
15522
15523         crypto/md2: Move AC_LIBOBJ invocations to module description.
15524         * m4/md2.m4: Remove file.
15525         * modules/crypto/md2 (Files): Remove it.
15526         (configure.ac): Remove gl_MD2 call.
15527         (Makefile.am): Augment lib_SOURCES.
15528
15529 2011-05-23  Bruno Haible  <bruno@clisp.org>
15530
15531         long-options: Move AC_LIBOBJ invocations to module description.
15532         * m4/long-options.m4: Remove file.
15533         * modules/long-options (Files): Remove it.
15534         (configure.ac): Remove gl_LONG_OPTIONS call.
15535         (Makefile.am): Augment lib_SOURCES.
15536
15537 2011-05-23  Bruno Haible  <bruno@clisp.org>
15538
15539         i-ring: Move AC_LIBOBJ invocations to module description.
15540         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
15541         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
15542
15543 2011-05-23  Bruno Haible  <bruno@clisp.org>
15544
15545         idcache: Move AC_LIBOBJ invocations to module description.
15546         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
15547         * modules/idcache (Makefile.am): Augment lib_SOURCES.
15548
15549 2011-05-23  Bruno Haible  <bruno@clisp.org>
15550
15551         human: Move AC_LIBOBJ invocations to module description.
15552         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
15553         * modules/human (Makefile.am): Augment lib_SOURCES.
15554
15555 2011-05-23  Bruno Haible  <bruno@clisp.org>
15556
15557         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
15558         * m4/hmac-sha1.m4: Remove file.
15559         * modules/crypto/hmac-sha1 (Files): Remove it.
15560         (configure.ac): Remove gl_HMAC_SHA1 call.
15561         (Makefile.am): Augment lib_SOURCES.
15562
15563 2011-05-23  Bruno Haible  <bruno@clisp.org>
15564
15565         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
15566         * m4/hmac-md5.m4: Remove file.
15567         * modules/crypto/hmac-md5 (Files): Remove it.
15568         (configure.ac): Remove gl_HMAC_MD5 call.
15569         (Makefile.am): Augment lib_SOURCES.
15570
15571 2011-05-23  Bruno Haible  <bruno@clisp.org>
15572
15573         hash: Move AC_LIBOBJ invocations to module description.
15574         * m4/hash.m4: Remove file.
15575         * modules/hash (Files): Remove it.
15576         (configure.ac): Remove gl_HASH call.
15577         (Makefile.am): Augment lib_SOURCES.
15578
15579 2011-05-23  Bruno Haible  <bruno@clisp.org>
15580
15581         hard-locale: Move AC_LIBOBJ invocations to module description.
15582         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
15583         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
15584
15585 2011-05-23  Bruno Haible  <bruno@clisp.org>
15586
15587         getugroups: Move AC_LIBOBJ invocations to module description.
15588         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
15589         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
15590
15591 2011-05-23  Bruno Haible  <bruno@clisp.org>
15592
15593         gettime: Move AC_LIBOBJ invocations to module description.
15594         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
15595         * modules/gettime (Makefile.am): Augment lib_SOURCES.
15596
15597 2011-05-23  Bruno Haible  <bruno@clisp.org>
15598
15599         getndelim2: Move AC_LIBOBJ invocations to module description.
15600         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
15601         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
15602
15603 2011-05-23  Bruno Haible  <bruno@clisp.org>
15604
15605         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
15606         * m4/gc-pbkdf2-sha1.m4: Remove file.
15607         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
15608         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
15609         (Makefile.am): Augment lib_SOURCES.
15610
15611 2011-05-23  Bruno Haible  <bruno@clisp.org>
15612
15613         fts: Move AC_LIBOBJ invocations to module description.
15614         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
15615         * modules/fts (configure.ac): ... to here.
15616
15617 2011-05-23  Bruno Haible  <bruno@clisp.org>
15618
15619         file-type: Move AC_LIBOBJ invocations to module description.
15620         * m4/file-type.m4: Remove file.
15621         * modules/file-type (Files): Remove it.
15622         (configure.ac): Remove gl_FILE_TYPE call.
15623         (Makefile.am): Augment lib_SOURCES.
15624
15625 2011-05-23  Bruno Haible  <bruno@clisp.org>
15626
15627         filenamecat*: Respect rules for use of AC_LIBOBJ.
15628         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
15629         Remove AC_LIBOBJ invocation.
15630         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
15631         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
15632
15633 2011-05-23  Bruno Haible  <bruno@clisp.org>
15634
15635         filemode: Move AC_LIBOBJ invocations to module description.
15636         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
15637         * modules/filemode (Makefile.am): Augment lib_SOURCES.
15638
15639 2011-05-23  Bruno Haible  <bruno@clisp.org>
15640
15641         openat-safer: Move AC_LIBOBJ invocations to module description.
15642         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
15643         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
15644
15645 2011-05-23  Bruno Haible  <bruno@clisp.org>
15646
15647         fcntl-safer: Move AC_LIBOBJ invocations to module description.
15648         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
15649         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
15650
15651 2011-05-23  Bruno Haible  <bruno@clisp.org>
15652
15653         exclude: Move AC_LIBOBJ invocations to module description.
15654         * m4/exclude.m4: Remove file.
15655         * modules/exclude (Files): Remove it.
15656         (configure.ac): Remove gl_EXCLUDE call.
15657         (Makefile.am): Augment lib_SOURCES.
15658
15659 2011-05-23  Bruno Haible  <bruno@clisp.org>
15660
15661         dirname*: Respect rules for use of AC_LIBOBJ.
15662         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
15663         invocations.
15664         * modules/dirname (Makefile.am): Augment lib_SOURCES.
15665         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
15666
15667 2011-05-23  Bruno Haible  <bruno@clisp.org>
15668
15669         dirent-safer: Move AC_LIBOBJ invocations to module description.
15670         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
15671         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
15672
15673 2011-05-23  Bruno Haible  <bruno@clisp.org>
15674
15675         crypto/des: Move AC_LIBOBJ invocations to module description.
15676         * m4/des.m4: Remove file.
15677         * modules/crypto/des (Files): Remove it.
15678         (configure.ac): Remove gl_DES call.
15679         (Makefile.am): Augment lib_SOURCES.
15680
15681 2011-05-23  Bruno Haible  <bruno@clisp.org>
15682
15683         cycle-check: Move AC_LIBOBJ invocations to module description.
15684         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
15685         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
15686
15687 2011-05-23  Bruno Haible  <bruno@clisp.org>
15688
15689         c-strtold: Move AC_LIBOBJ invocations to module description.
15690         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
15691         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
15692
15693 2011-05-23  Bruno Haible  <bruno@clisp.org>
15694
15695         c-strtod: Move AC_LIBOBJ invocations to module description.
15696         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
15697         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
15698
15699 2011-05-23  Bruno Haible  <bruno@clisp.org>
15700
15701         crc: Move AC_LIBOBJ invocations to module description.
15702         * m4/crc.m4: Remove file.
15703         * modules/crc (Files): Remove it.
15704         (configure.ac): Remove gl_CRC call.
15705         (Makefile.am): Augment lib_SOURCES.
15706
15707 2011-05-23  Bruno Haible  <bruno@clisp.org>
15708
15709         close-stream: Move AC_LIBOBJ invocations to module description.
15710         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
15711         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
15712
15713 2011-05-23  Bruno Haible  <bruno@clisp.org>
15714
15715         closeout: Move AC_LIBOBJ invocations to module description.
15716         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
15717         * modules/closeout (Makefile.am): Augment lib_SOURCES.
15718
15719 2011-05-23  Bruno Haible  <bruno@clisp.org>
15720
15721         closein: Move AC_LIBOBJ invocations to module description.
15722         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
15723         * modules/closein (Makefile.am): Augment lib_SOURCES.
15724
15725 2011-05-23  Bruno Haible  <bruno@clisp.org>
15726
15727         cloexec: Move AC_LIBOBJ invocations to module description.
15728         * m4/cloexec.m4: Remove file.
15729         * modules/cloexec (Files): Remove it.
15730         (configure.ac): Remove gl_CLOEXEC call.
15731         (Makefile.am): Augment lib_SOURCES.
15732
15733 2011-05-23  Bruno Haible  <bruno@clisp.org>
15734
15735         check-version: Move AC_LIBOBJ invocations to module description.
15736         * m4/check-version.m4: Remove file.
15737         * modules/check-version (Files): Remove it.
15738         (configure.ac): Remove gl_CHECK_VERSION call.
15739         (Makefile.am): Augment lib_SOURCES.
15740
15741 2011-05-23  Bruno Haible  <bruno@clisp.org>
15742
15743         chdir-safer: Move AC_LIBOBJ invocations to module description.
15744         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
15745         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
15746
15747 2011-05-23  Bruno Haible  <bruno@clisp.org>
15748
15749         canonicalize: Move AC_LIBOBJ invocations to module description.
15750         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
15751         AC_LIBOBJ invocation.
15752         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
15753
15754 2011-05-23  Bruno Haible  <bruno@clisp.org>
15755
15756         canon-host: Move AC_LIBOBJ invocations to module description.
15757         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
15758         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
15759         instead of gl_CANON_HOST.
15760         (Makefile.am): Augment lib_SOURCES.
15761
15762 2011-05-23  Bruno Haible  <bruno@clisp.org>
15763
15764         backupfile: Move AC_LIBOBJ invocations to module description.
15765         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
15766         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
15767
15768 2011-05-23  Bruno Haible  <bruno@clisp.org>
15769
15770         argmatch: Move AC_LIBOBJ invocations to module description.
15771         * m4/argmatch.m4: Remove file.
15772         * modules/argmatch (Files): Remove it.
15773         (configure.ac): Remove gl_ARGMATCH call.
15774         (Makefile.am): Augment lib_SOURCES.
15775
15776 2011-05-23  Bruno Haible  <bruno@clisp.org>
15777
15778         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
15779         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
15780         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
15781
15782 2011-05-23  Bruno Haible  <bruno@clisp.org>
15783
15784         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
15785         * m4/arcfour.m4: Remove file.
15786         * modules/crypto/arcfour (Files): Remove it.
15787         (configure.ac): Remove gl_ARCFOUR call.
15788         (Makefile.am): Augment lib_SOURCES.
15789
15790 2011-05-22  Bruno Haible  <bruno@clisp.org>
15791
15792         write: Move AC_LIBOBJ invocations to module description.
15793         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
15794         * modules/write (configure.ac): ... to here.
15795
15796 2011-05-22  Bruno Haible  <bruno@clisp.org>
15797
15798         wmemset: Move AC_LIBOBJ invocations to module description.
15799         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
15800         here...
15801         * modules/wmemset (configure.ac): ... to here.
15802
15803 2011-05-22  Bruno Haible  <bruno@clisp.org>
15804
15805         wmemmove: Move AC_LIBOBJ invocations to module description.
15806         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
15807         here...
15808         * modules/wmemmove (configure.ac): ... to here.
15809
15810 2011-05-22  Bruno Haible  <bruno@clisp.org>
15811
15812         wmemcpy: Move AC_LIBOBJ invocations to module description.
15813         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
15814         here...
15815         * modules/wmemcpy (configure.ac): ... to here.
15816
15817 2011-05-22  Bruno Haible  <bruno@clisp.org>
15818
15819         wmemcmp: Move AC_LIBOBJ invocations to module description.
15820         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
15821         here...
15822         * modules/wmemcmp (configure.ac): ... to here.
15823
15824 2011-05-22  Bruno Haible  <bruno@clisp.org>
15825
15826         wmemchr: Move AC_LIBOBJ invocations to module description.
15827         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
15828         here...
15829         * modules/wmemchr (configure.ac): ... to here.
15830
15831 2011-05-22  Bruno Haible  <bruno@clisp.org>
15832
15833         wcswidth: Move AC_LIBOBJ invocations to module description.
15834         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
15835         here...
15836         * modules/wcswidth (configure.ac): ... to here.
15837
15838 2011-05-22  Bruno Haible  <bruno@clisp.org>
15839
15840         wcwidth: Respect rules for use of AC_LIBOBJ.
15841         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
15842         invocation from here...
15843         * modules/wcwidth (configure.ac): ... to here.
15844         (Depends-on): Update conditions.
15845
15846 2011-05-22  Bruno Haible  <bruno@clisp.org>
15847
15848         wctype: Move AC_LIBOBJ invocations to module description.
15849         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
15850         invocation from here...
15851         * modules/wctype (configure.ac): ... to here.
15852         (Depends-on): Update conditions.
15853
15854 2011-05-22  Bruno Haible  <bruno@clisp.org>
15855
15856         wctrans: Move AC_LIBOBJ invocations to module description.
15857         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
15858         invocation from here...
15859         * modules/wctrans (configure.ac): ... to here.
15860
15861 2011-05-22  Bruno Haible  <bruno@clisp.org>
15862
15863         wctomb: Move AC_LIBOBJ invocations to module description.
15864         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
15865         invocations from here...
15866         * modules/wctomb (configure.ac): ... to here.
15867
15868 2011-05-22  Bruno Haible  <bruno@clisp.org>
15869
15870         wctob: Move AC_LIBOBJ invocations to module description.
15871         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
15872         gl_PREREQ_WCTOB invocations from here...
15873         * modules/wctob (configure.ac): ... to here.
15874         (Depends-on): Update conditions.
15875
15876 2011-05-22  Bruno Haible  <bruno@clisp.org>
15877
15878         wcsxfrm: Move AC_LIBOBJ invocations to module description.
15879         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
15880         here...
15881         * modules/wcsxfrm (configure.ac): ... to here.
15882
15883 2011-05-22  Bruno Haible  <bruno@clisp.org>
15884
15885         wcstok: Move AC_LIBOBJ invocations to module description.
15886         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
15887         * modules/wcstok (configure.ac): ... to here.
15888
15889 2011-05-22  Bruno Haible  <bruno@clisp.org>
15890
15891         wcsstr: Move AC_LIBOBJ invocations to module description.
15892         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
15893         * modules/wcsstr (configure.ac): ... to here.
15894
15895 2011-05-22  Bruno Haible  <bruno@clisp.org>
15896
15897         wcsspn: Move AC_LIBOBJ invocations to module description.
15898         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
15899         * modules/wcsspn (configure.ac): ... to here.
15900
15901 2011-05-22  Bruno Haible  <bruno@clisp.org>
15902
15903         wcsrtombs: Move AC_LIBOBJ invocations to module description.
15904         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
15905         gl_PREREQ_WCSRTOMBS invocations from here...
15906         * modules/wcsrtombs (configure.ac): ... to here.
15907
15908 2011-05-22  Bruno Haible  <bruno@clisp.org>
15909
15910         wcsrchr: Move AC_LIBOBJ invocations to module description.
15911         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
15912         here...
15913         * modules/wcsrchr (configure.ac): ... to here.
15914
15915 2011-05-22  Bruno Haible  <bruno@clisp.org>
15916
15917         wcspbrk: Move AC_LIBOBJ invocations to module description.
15918         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
15919         here...
15920         * modules/wcspbrk (configure.ac): ... to here.
15921
15922 2011-05-22  Bruno Haible  <bruno@clisp.org>
15923
15924         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
15925         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
15926         gl_PREREQ_WCSNRTOMBS invocations from here...
15927         * modules/wcsnrtombs (configure.ac): ... to here.
15928
15929 2011-05-22  Bruno Haible  <bruno@clisp.org>
15930
15931         wcsnlen: Move AC_LIBOBJ invocations to module description.
15932         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
15933         here...
15934         * modules/wcsnlen (configure.ac): ... to here.
15935
15936 2011-05-22  Bruno Haible  <bruno@clisp.org>
15937
15938         wcsncpy: Move AC_LIBOBJ invocations to module description.
15939         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
15940         here...
15941         * modules/wcsncpy (configure.ac): ... to here.
15942
15943 2011-05-22  Bruno Haible  <bruno@clisp.org>
15944
15945         wcsncmp: Move AC_LIBOBJ invocations to module description.
15946         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
15947         here...
15948         * modules/wcsncmp (configure.ac): ... to here.
15949
15950 2011-05-22  Bruno Haible  <bruno@clisp.org>
15951
15952         wcsncat: Move AC_LIBOBJ invocations to module description.
15953         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
15954         here...
15955         * modules/wcsncat (configure.ac): ... to here.
15956
15957 2011-05-22  Bruno Haible  <bruno@clisp.org>
15958
15959         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
15960         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
15961         from here...
15962         * modules/wcsncasecmp (configure.ac): ... to here.
15963
15964 2011-05-22  Bruno Haible  <bruno@clisp.org>
15965
15966         wcslen: Move AC_LIBOBJ invocations to module description.
15967         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
15968         * modules/wcslen (configure.ac): ... to here.
15969
15970 2011-05-22  Bruno Haible  <bruno@clisp.org>
15971
15972         wcsdup: Move AC_LIBOBJ invocations to module description.
15973         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
15974         * modules/wcsdup (configure.ac): ... to here.
15975
15976 2011-05-22  Bruno Haible  <bruno@clisp.org>
15977
15978         wcscspn: Move AC_LIBOBJ invocations to module description.
15979         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
15980         here...
15981         * modules/wcscspn (configure.ac): ... to here.
15982
15983 2011-05-22  Bruno Haible  <bruno@clisp.org>
15984
15985         wcscpy: Move AC_LIBOBJ invocations to module description.
15986         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
15987         * modules/wcscpy (configure.ac): ... to here.
15988
15989 2011-05-22  Bruno Haible  <bruno@clisp.org>
15990
15991         wcscoll: Move AC_LIBOBJ invocations to module description.
15992         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
15993         here...
15994         * modules/wcscoll (configure.ac): ... to here.
15995
15996 2011-05-22  Bruno Haible  <bruno@clisp.org>
15997
15998         wcscmp: Move AC_LIBOBJ invocations to module description.
15999         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
16000         * modules/wcscmp (configure.ac): ... to here.
16001
16002 2011-05-22  Bruno Haible  <bruno@clisp.org>
16003
16004         wcschr: Move AC_LIBOBJ invocations to module description.
16005         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
16006         * modules/wcschr (configure.ac): ... to here.
16007
16008 2011-05-22  Bruno Haible  <bruno@clisp.org>
16009
16010         wcscat: Move AC_LIBOBJ invocations to module description.
16011         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
16012         * modules/wcscat (configure.ac): ... to here.
16013
16014 2011-05-22  Bruno Haible  <bruno@clisp.org>
16015
16016         wcscasecmp: Move AC_LIBOBJ invocations to module description.
16017         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
16018         here...
16019         * modules/wcscasecmp (configure.ac): ... to here.
16020
16021 2011-05-22  Bruno Haible  <bruno@clisp.org>
16022
16023         wcrtomb: Move AC_LIBOBJ invocations to module description.
16024         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
16025         invocations from here...
16026         * modules/wcrtomb (configure.ac): ... to here.
16027
16028 2011-05-22  Bruno Haible  <bruno@clisp.org>
16029
16030         wcpncpy: Move AC_LIBOBJ invocations to module description.
16031         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
16032         here...
16033         * modules/wcpncpy (configure.ac): ... to here.
16034
16035 2011-05-22  Bruno Haible  <bruno@clisp.org>
16036
16037         wcpcpy: Move AC_LIBOBJ invocations to module description.
16038         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
16039         * modules/wcpcpy (configure.ac): ... to here.
16040
16041 2011-05-22  Bruno Haible  <bruno@clisp.org>
16042
16043         waitpid: Move AC_LIBOBJ invocations to module description.
16044         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
16045         invocation from here...
16046         * modules/waitpid (configure.ac): ... to here.
16047
16048 2011-05-22  Bruno Haible  <bruno@clisp.org>
16049
16050         utimensat: Move AC_LIBOBJ invocations to module description.
16051         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
16052         here...
16053         * modules/utimensat (configure.ac): ... to here.
16054
16055 2011-05-22  Bruno Haible  <bruno@clisp.org>
16056
16057         usleep: Move AC_LIBOBJ invocations to module description.
16058         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
16059         here...
16060         * modules/usleep (configure.ac): ... to here.
16061
16062 2011-05-22  Bruno Haible  <bruno@clisp.org>
16063
16064         unlockpt: Move AC_LIBOBJ invocations to module description.
16065         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
16066         gl_PREREQ_UNLOCKPT invocations from here...
16067         * modules/unlockpt (configure.ac): ... to here.
16068
16069 2011-05-22  Bruno Haible  <bruno@clisp.org>
16070
16071         unlink: Respect rules for use of AC_LIBOBJ.
16072         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
16073         * modules/unlink (configure.ac): ... to here.
16074
16075 2011-05-22  Bruno Haible  <bruno@clisp.org>
16076
16077         uname: Move AC_LIBOBJ invocations to module description.
16078         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
16079         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
16080         here...
16081         * modules/uname (configure.ac): ... to here.
16082
16083 2011-05-22  Bruno Haible  <bruno@clisp.org>
16084
16085         ttyname_r: Move AC_LIBOBJ invocations to module description.
16086         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
16087         gl_PREREQ_TTYNAME_R invocations from here...
16088         * modules/ttyname_r (configure.ac): ... to here.
16089
16090 2011-05-22  Bruno Haible  <bruno@clisp.org>
16091
16092         tsearch: Move AC_LIBOBJ invocations to module description.
16093         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
16094         invocations from here...
16095         * modules/tsearch (configure.ac): ... to here.
16096
16097 2011-05-22  Bruno Haible  <bruno@clisp.org>
16098
16099         towctrans: Move AC_LIBOBJ invocations to module description.
16100         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
16101         AC_LIBOBJ invocation from here...
16102         * modules/towctrans (configure.ac): ... to here.
16103
16104 2011-05-22  Bruno Haible  <bruno@clisp.org>
16105
16106         tmpfile: Move AC_LIBOBJ invocations to module description.
16107         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
16108         invocations from here...
16109         * modules/tmpfile (configure.ac): ... to here.
16110
16111 2011-05-22  Bruno Haible  <bruno@clisp.org>
16112
16113         times: Move AC_LIBOBJ invocations to module description.
16114         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
16115         * modules/times (configure.ac): ... to here.
16116
16117 2011-05-22  Bruno Haible  <bruno@clisp.org>
16118
16119         time_r: Move AC_LIBOBJ invocations to module description.
16120         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
16121         invocations from here...
16122         * modules/time_r (configure.ac): ... to here.
16123
16124 2011-05-22  Bruno Haible  <bruno@clisp.org>
16125
16126         timegm: Move AC_LIBOBJ invocations to module description.
16127         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
16128         invocations from here...
16129         * modules/timegm (configure.ac): ... to here.
16130
16131 2011-05-22  Bruno Haible  <bruno@clisp.org>
16132
16133         tcgetsid: Move AC_LIBOBJ invocations to module description.
16134         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
16135         and gl_PREREQ_TCGETSID invocations from here...
16136         * modules/tcgetsid (configure.ac): ... to here.
16137         (Depends-on): Update conditions.
16138
16139 2011-05-22  Bruno Haible  <bruno@clisp.org>
16140
16141         symlinkat: Move AC_LIBOBJ invocations to module description.
16142         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
16143         here...
16144         * modules/symlinkat (configure.ac): ... to here.
16145
16146 2011-05-22  Bruno Haible  <bruno@clisp.org>
16147
16148         symlink: Move AC_LIBOBJ invocations to module description.
16149         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
16150         here...
16151         * modules/symlink (configure.ac): ... to here.
16152
16153 2011-05-22  Bruno Haible  <bruno@clisp.org>
16154
16155         strverscmp: Move AC_LIBOBJ invocations to module description.
16156         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
16157         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
16158         from here...
16159         * modules/strverscmp (configure.ac): ... to here.
16160
16161 2011-05-22  Bruno Haible  <bruno@clisp.org>
16162
16163         strtok_r: Move AC_LIBOBJ invocations to module description.
16164         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
16165         and gl_PREREQ_STRTOK_R invocations from here...
16166         * modules/strtok_r (configure.ac): ... to here.
16167         (Depends-on): Update conditions.
16168
16169 2011-05-22  Bruno Haible  <bruno@clisp.org>
16170
16171         strtoumax: Move AC_LIBOBJ invocations to module description.
16172         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
16173         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
16174         from here...
16175         * modules/strtoumax (configure.ac): ... to here.
16176
16177 2011-05-22  Bruno Haible  <bruno@clisp.org>
16178
16179         strtoimax: Move AC_LIBOBJ invocations to module description.
16180         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
16181         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
16182         from here...
16183         * modules/strtoimax (configure.ac): ... to here.
16184
16185 2011-05-22  Bruno Haible  <bruno@clisp.org>
16186
16187         strtoull: Move AC_LIBOBJ invocations to module description.
16188         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
16189         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
16190         from here...
16191         * modules/strtoull (configure.ac): ... to here.
16192
16193 2011-05-22  Bruno Haible  <bruno@clisp.org>
16194
16195         strtoll: Move AC_LIBOBJ invocations to module description.
16196         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
16197         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
16198         here...
16199         * modules/strtoll (configure.ac): ... to here.
16200
16201 2011-05-22  Bruno Haible  <bruno@clisp.org>
16202
16203         strtoul: Move AC_LIBOBJ invocations to module description.
16204         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
16205         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
16206         * modules/strtoul (configure.ac): ... to here.
16207
16208 2011-05-22  Bruno Haible  <bruno@clisp.org>
16209
16210         strtol: Move AC_LIBOBJ invocations to module description.
16211         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
16212         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
16213         * modules/strtol (configure.ac): ... to here.
16214
16215 2011-05-22  Bruno Haible  <bruno@clisp.org>
16216
16217         strtod: Move AC_LIBOBJ invocations to module description.
16218         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
16219         invocations from here...
16220         * modules/strtod (configure.ac): ... to here.
16221
16222 2011-05-22  Bruno Haible  <bruno@clisp.org>
16223
16224         strstr*: Move AC_LIBOBJ invocations to module description.
16225         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
16226         invocations from here...
16227         * modules/strstr-simple (configure.ac): ... to here.
16228         * modules/strstr (configure.ac): ... and here.
16229
16230 2011-05-22  Bruno Haible  <bruno@clisp.org>
16231
16232         strsignal: Move AC_LIBOBJ invocations to module description.
16233         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
16234         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
16235         * modules/strsignal (configure.ac): ... to here.
16236         (Depends-on): Update conditions.
16237
16238 2011-05-22  Bruno Haible  <bruno@clisp.org>
16239
16240         strsep: Move AC_LIBOBJ invocations to module description.
16241         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
16242         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
16243         here...
16244         * modules/strsep (configure.ac): ... to here.
16245
16246 2011-05-22  Bruno Haible  <bruno@clisp.org>
16247
16248         strptime: Move AC_LIBOBJ invocations to module description.
16249         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
16250         gl_PREREQ_STRPTIME invocations from here...
16251         * modules/strptime (configure.ac): ... to here.
16252
16253 2011-05-22  Bruno Haible  <bruno@clisp.org>
16254
16255         strpbrk: Move AC_LIBOBJ invocations to module description.
16256         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
16257         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
16258         here...
16259         * modules/strpbrk (configure.ac): ... to here.
16260
16261 2011-05-22  Bruno Haible  <bruno@clisp.org>
16262
16263         strnlen: Move AC_LIBOBJ invocations to module description.
16264         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
16265         invocations from here...
16266         * modules/strnlen (configure.ac): ... to here.
16267
16268 2011-05-22  Bruno Haible  <bruno@clisp.org>
16269
16270         strndup: Move AC_LIBOBJ invocations to module description.
16271         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
16272         invocations from here...
16273         * modules/strndup (configure.ac): ... to here.
16274         (Depends-on): Update conditions.
16275
16276 2011-05-22  Bruno Haible  <bruno@clisp.org>
16277
16278         strncat: Move AC_LIBOBJ invocations to module description.
16279         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
16280         invocations from here...
16281         * modules/strncat (configure.ac): ... to here.
16282
16283 2011-05-22  Bruno Haible  <bruno@clisp.org>
16284
16285         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
16286         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
16287         invocations from here...
16288         * modules/strdup (configure.ac): ... to here.
16289         * modules/strdup-posix (configure.ac): ... and here.
16290
16291 2011-05-22  Bruno Haible  <bruno@clisp.org>
16292
16293         strcspn: Move AC_LIBOBJ invocations to module description.
16294         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
16295         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
16296         here...
16297         * modules/strcspn (configure.ac): ... to here.
16298
16299 2011-05-22  Bruno Haible  <bruno@clisp.org>
16300
16301         strchrnul: Move AC_LIBOBJ invocations to module description.
16302         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
16303         gl_PREREQ_STRCHRNUL invocations from here...
16304         * modules/strchrnul (configure.ac): ... to here.
16305
16306 2011-05-22  Bruno Haible  <bruno@clisp.org>
16307
16308         strcasestr*: Move AC_LIBOBJ invocations to module description.
16309         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
16310         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
16311         * modules/strcasestr-simple (configure.ac): ... to here.
16312         * modules/strcasestr (configure.ac): ... and here.
16313
16314 2011-05-22  Bruno Haible  <bruno@clisp.org>
16315
16316         strcase: Move AC_LIBOBJ invocations to module description.
16317         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
16318         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
16319         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
16320         gl_PREREQ_STRNCASECMP invocations from here...
16321         * modules/strcase (configure.ac): ... to here.
16322
16323 2011-05-22  Bruno Haible  <bruno@clisp.org>
16324
16325         stpncpy: Move AC_LIBOBJ invocations to module description.
16326         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
16327         here...
16328         * modules/stpncpy (configure.ac): ... to here.
16329
16330 2011-05-22  Bruno Haible  <bruno@clisp.org>
16331
16332         stpcpy: Move AC_LIBOBJ invocations to module description.
16333         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
16334         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
16335         here...
16336         * modules/stpcpy (configure.ac): ... to here.
16337
16338 2011-05-21  Bruno Haible  <bruno@clisp.org>
16339
16340         stat: Move AC_LIBOBJ invocations to module description.
16341         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
16342         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
16343         here...
16344         * modules/stat (configure.ac): ... to here.
16345
16346 2011-05-21  Bruno Haible  <bruno@clisp.org>
16347
16348         sleep: Move AC_LIBOBJ invocations to module description.
16349         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
16350         * modules/sleep (configure.ac): ... to here.
16351
16352 2011-05-21  Bruno Haible  <bruno@clisp.org>
16353
16354         signbit: Move AC_LIBOBJ invocations to module description.
16355         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
16356         * modules/signbit (configure.ac): ... to here.
16357
16358 2011-05-21  Bruno Haible  <bruno@clisp.org>
16359
16360         sigprocmask: Move AC_LIBOBJ invocations to module description.
16361         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
16362         gl_PREREQ_SIGPROMASK invocations from here...
16363         * modules/sigprocmask (configure.ac): ... to here.
16364
16365 2011-05-21  Bruno Haible  <bruno@clisp.org>
16366
16367         sigaction: Move AC_LIBOBJ invocations to module description.
16368         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
16369         gl_PREREQ_SIGACTION invocations from here...
16370         * modules/sigaction (configure.ac): ... to here.
16371
16372 2011-05-21  Bruno Haible  <bruno@clisp.org>
16373
16374         sig2str: Move AC_LIBOBJ invocations to module description.
16375         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
16376         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
16377         here...
16378         * modules/sig2str (configure.ac): ... to here.
16379
16380 2011-05-21  Bruno Haible  <bruno@clisp.org>
16381
16382         setlocale: Move AC_LIBOBJ invocations to module description.
16383         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
16384         gl_PREREQ_SETLOCALE invocations from here...
16385         * modules/setlocale (configure.ac): ... to here.
16386
16387 2011-05-21  Bruno Haible  <bruno@clisp.org>
16388
16389         unsetenv: Move AC_LIBOBJ invocations to module description.
16390         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
16391         and gl_PREREQ_UNSETENV invocations from here...
16392         * modules/unsetenv (configure.ac): ... to here.
16393         (Depends-on): Update.
16394
16395 2011-05-21  Bruno Haible  <bruno@clisp.org>
16396
16397         setenv: Move AC_LIBOBJ invocations to module description.
16398         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
16399         here...
16400         * modules/setenv (configure.ac): ... to here.
16401
16402 2011-05-21  Bruno Haible  <bruno@clisp.org>
16403
16404         selinux-h: Move AC_LIBOBJ invocations to module description.
16405         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
16406         AC_LIBOBJ invocation from here...
16407         * modules/selinux-h (configure.ac): ... to here.
16408
16409 2011-05-21  Bruno Haible  <bruno@clisp.org>
16410
16411         select: Respect rules for use of AC_LIBOBJ.
16412         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
16413         here...
16414         * modules/select (configure.ac): ... to here.
16415
16416 2011-05-21  Bruno Haible  <bruno@clisp.org>
16417
16418         scandir: Move AC_LIBOBJ invocations to module description.
16419         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
16420         invocations from here...
16421         * modules/scandir (configure.ac): ... to here.
16422
16423 2011-05-21  Bruno Haible  <bruno@clisp.org>
16424
16425         rpmatch: Move AC_LIBOBJ invocations to module description.
16426         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
16427         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
16428         here...
16429         * modules/rpmatch (configure.ac): ... to here.
16430
16431 2011-05-21  Bruno Haible  <bruno@clisp.org>
16432
16433         rmdir: Respect rules for use of AC_LIBOBJ.
16434         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
16435         * modules/rmdir (configure.ac): ... to here.
16436
16437 2011-05-21  Bruno Haible  <bruno@clisp.org>
16438
16439         renameat: Move AC_LIBOBJ invocations to module description.
16440         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
16441         here...
16442         * modules/renameat (configure.ac): ... to here.
16443
16444 2011-05-21  Bruno Haible  <bruno@clisp.org>
16445
16446         rename: Respect rules for use of AC_LIBOBJ.
16447         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
16448         here...
16449         * modules/rename (configure.ac): ... to here.
16450
16451 2011-05-21  Bruno Haible  <bruno@clisp.org>
16452
16453         remove: Move AC_LIBOBJ invocations to module description.
16454         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
16455         here...
16456         * modules/remove (configure.ac): ... to here.
16457
16458 2011-05-21  Bruno Haible  <bruno@clisp.org>
16459
16460         relocatable-lib: Move AC_LIBOBJ invocations to module description.
16461         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
16462         macro.
16463         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
16464         * modules/relocatable-lib (configure.ac): ... to here.
16465         * modules/relocatable-prog-wrapper (configure.ac): Invoke
16466         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
16467
16468 2011-05-21  Bruno Haible  <bruno@clisp.org>
16469
16470         relocatable-prog: Move AC_LIBOBJ invocations to module description.
16471         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
16472         here...
16473         * modules/relocatable-prog (configure.ac): ... to here.
16474
16475 2011-05-21  Bruno Haible  <bruno@clisp.org>
16476
16477         regex: Move AC_LIBOBJ invocations to module description.
16478         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
16479         invocations from here...
16480         * modules/regex (configure.ac): ... to here.
16481
16482 2011-05-21  Bruno Haible  <bruno@clisp.org>
16483
16484         realloc-*: Move AC_LIBOBJ invocations to module description.
16485         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
16486         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
16487         AC_LIBOBJ invocations from here...
16488         * modules/realloc-gnu (configure.ac): ... to here.
16489         * modules/realloc-posix (configure.ac): ... and here.
16490
16491 2011-05-21  Bruno Haible  <bruno@clisp.org>
16492
16493         readutmp: Move AC_LIBOBJ invocations to module description.
16494         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
16495         * modules/readutmp (configure.ac): ... to here.
16496
16497 2011-05-21  Bruno Haible  <bruno@clisp.org>
16498
16499         readlinkat: Move AC_LIBOBJ invocations to module description.
16500         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
16501         here...
16502         * modules/readlinkat (configure.ac): ... to here.
16503
16504 2011-05-21  Bruno Haible  <bruno@clisp.org>
16505
16506         readlink: Move AC_LIBOBJ invocations to module description.
16507         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
16508         gl_PREREQ_READLINK invocations from here...
16509         * modules/readlink (configure.ac): ... to here.
16510
16511 2011-05-21  Bruno Haible  <bruno@clisp.org>
16512
16513         readline: Move AC_LIBOBJ invocations to module description.
16514         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
16515         gl_PREREQ_READLINE invocations from here...
16516         * modules/readline (configure.ac): ... to here.
16517
16518 2011-05-21  Bruno Haible  <bruno@clisp.org>
16519
16520         read: Move AC_LIBOBJ invocations to module description.
16521         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
16522         * modules/read (configure.ac): ... to here.
16523
16524 2011-05-21  Bruno Haible  <bruno@clisp.org>
16525
16526         rawmemchr: Move AC_LIBOBJ invocations to module description.
16527         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
16528         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
16529         from here...
16530         * modules/rawmemchr (configure.ac): ... to here.
16531
16532 2011-05-21  Bruno Haible  <bruno@clisp.org>
16533
16534         random_r: Move AC_LIBOBJ invocations to module description.
16535         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
16536         gl_PREREQ_RANDOM_R invocations from here...
16537         * modules/random_r (configure.ac): ... to here.
16538
16539 2011-05-21  Bruno Haible  <bruno@clisp.org>
16540
16541         pwrite: Move AC_LIBOBJ invocations to module description.
16542         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
16543         * modules/pwrite (configure.ac): ... to here.
16544
16545 2011-05-21  Bruno Haible  <bruno@clisp.org>
16546
16547         putenv: Move AC_LIBOBJ invocations to module description.
16548         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
16549         * modules/putenv (configure.ac): ... to here.
16550
16551 2011-05-21  Bruno Haible  <bruno@clisp.org>
16552
16553         login_tty: Move AC_LIBOBJ invocations to module description.
16554         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
16555         * modules/login_tty (configure.ac): ... to here.
16556
16557 2011-05-21  Bruno Haible  <bruno@clisp.org>
16558
16559         openpty: Move AC_LIBOBJ invocations to module description.
16560         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
16561         * modules/openpty (configure.ac): ... to here.
16562
16563 2011-05-21  Bruno Haible  <bruno@clisp.org>
16564
16565         forkpty: Move AC_LIBOBJ invocations to module description.
16566         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
16567         * modules/forkpty (configure.ac): ... to here.
16568
16569 2011-05-21  Bruno Haible  <bruno@clisp.org>
16570
16571         ptsname: Move AC_LIBOBJ invocations to module description.
16572         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
16573         invocations from here...
16574         * modules/ptsname (configure.ac): ... to here.
16575
16576 2011-05-21  Bruno Haible  <bruno@clisp.org>
16577
16578         pread: Move AC_LIBOBJ invocations to module description.
16579         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
16580         * modules/pread (configure.ac): ... to here.
16581
16582 2011-05-21  Bruno Haible  <bruno@clisp.org>
16583
16584         posix_spawn*: Move AC_LIBOBJ invocations to module description.
16585         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
16586         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
16587         * modules/posix_spawn (configure.ac): ... to here.
16588         * modules/posix_spawnp (configure.ac): ... and here.
16589
16590 2011-05-21  Bruno Haible  <bruno@clisp.org>
16591
16592         popen: Move AC_LIBOBJ invocations to module description.
16593         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
16594         invocations from here...
16595         * modules/popen (configure.ac): ... to here.
16596
16597 2011-05-21  Bruno Haible  <bruno@clisp.org>
16598
16599         poll: Move AC_LIBOBJ invocations to module description.
16600         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
16601         invocations from here...
16602         * modules/poll (configure.ac): ... to here.
16603
16604 2011-05-21  Bruno Haible  <bruno@clisp.org>
16605
16606         pipe-posix: Move AC_LIBOBJ invocations to module description.
16607         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
16608         * modules/pipe-posix (configure.ac): ... to here.
16609
16610 2011-05-21  Bruno Haible  <bruno@clisp.org>
16611
16612         openat: Respect rules for use of AC_LIBOBJ.
16613         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
16614         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
16615         * modules/openat (configure.ac): ... to here.
16616
16617 2011-05-21  Bruno Haible  <bruno@clisp.org>
16618
16619         obstack-printf*: Move AC_LIBOBJ invocations to module description.
16620         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
16621         invocation from here...
16622         * modules/obstack-printf (configure.ac): ... to here.
16623         * modules/obstack-printf-posix (configure.ac): ... and here.
16624
16625 2011-05-21  Bruno Haible  <bruno@clisp.org>
16626
16627         nl_langinfo: Move AC_LIBOBJ invocations to module description.
16628         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
16629         from here...
16630         * modules/nl_langinfo (configure.ac): ... to here.
16631
16632 2011-05-21  Bruno Haible  <bruno@clisp.org>
16633
16634         nanosleep: Move AC_LIBOBJ invocations to module description.
16635         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
16636         gl_PREREQ_NANOSLEEP invocations from here...
16637         * modules/nanosleep (configure.ac): ... to here.
16638
16639 2011-05-21  Bruno Haible  <bruno@clisp.org>
16640
16641         mountlist: Move AC_LIBOBJ invocations to module description.
16642         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
16643         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
16644         * modules/mountlist (configure.ac): ... to here.
16645
16646 2011-05-21  Bruno Haible  <bruno@clisp.org>
16647
16648         mktime: Respect rules for use of AC_LIBOBJ.
16649         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
16650         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
16651         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
16652         (gl_FUNC_MKTIME_INTERNAL): ... and here...
16653         * modules/mktime (configure.ac): ... to here.
16654         * modules/mktime-internal (configure.ac): ... and here.
16655         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
16656
16657 2011-05-21  Bruno Haible  <bruno@clisp.org>
16658
16659         mkstemps: Move AC_LIBOBJ invocations to module description.
16660         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
16661         here...
16662         * modules/mkstemps (configure.ac): ... to here.
16663
16664 2011-05-21  Bruno Haible  <bruno@clisp.org>
16665
16666         mkstemp: Move AC_LIBOBJ invocations to module description.
16667         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
16668         gl_PREREQ_MKSTEMP invocations from here...
16669         * modules/mkstemp (configure.ac): ... to here.
16670
16671 2011-05-21  Bruno Haible  <bruno@clisp.org>
16672
16673         mkostemps: Move AC_LIBOBJ invocations to module description.
16674         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
16675         here...
16676         * modules/mkostemps (configure.ac): ... to here.
16677
16678 2011-05-21  Bruno Haible  <bruno@clisp.org>
16679
16680         mkostemp: Move AC_LIBOBJ invocations to module description.
16681         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
16682         gl_PREREQ_MKOSTEMP invocations from here...
16683         * modules/mkostemp (configure.ac): ... to here.
16684
16685 2011-05-21  Bruno Haible  <bruno@clisp.org>
16686
16687         mknod: Move AC_LIBOBJ invocations to module description.
16688         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
16689         * modules/mknod (configure.ac): ... to here.
16690
16691 2011-05-21  Bruno Haible  <bruno@clisp.org>
16692
16693         mkfifoat: Move AC_LIBOBJ invocations to module description.
16694         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
16695         here...
16696         * modules/mkfifoat (configure.ac): ... to here.
16697
16698 2011-05-21  Bruno Haible  <bruno@clisp.org>
16699
16700         mkfifo: Respect rules for use of AC_LIBOBJ.
16701         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
16702         here...
16703         * modules/mkfifo (configure.ac): ... to here.
16704
16705 2011-05-21  Bruno Haible  <bruno@clisp.org>
16706
16707         mkdtemp: Move AC_LIBOBJ invocations to module description.
16708         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
16709         invocations from here...
16710         * modules/mkdtemp (configure.ac): ... to here.
16711
16712 2011-05-21  Bruno Haible  <bruno@clisp.org>
16713
16714         mkdir: Move AC_LIBOBJ invocations to module description.
16715         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
16716         * modules/mkdir (configure.ac): ... to here.
16717
16718 2011-05-21  Bruno Haible  <bruno@clisp.org>
16719
16720         memset: Move AC_LIBOBJ invocations to module description.
16721         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
16722         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
16723         here...
16724         * modules/memset (configure.ac): ... to here.
16725
16726 2011-05-21  Bruno Haible  <bruno@clisp.org>
16727
16728         memrchr: Move AC_LIBOBJ invocations to module description.
16729         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
16730         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
16731         here...
16732         * modules/memrchr (configure.ac): ... to here.
16733
16734 2011-05-21  Bruno Haible  <bruno@clisp.org>
16735
16736         mempcpy: Move AC_LIBOBJ invocations to module description.
16737         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
16738         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
16739         here...
16740         * modules/mempcpy (configure.ac): ... to here.
16741
16742 2011-05-21  Bruno Haible  <bruno@clisp.org>
16743
16744         memmove: Move AC_LIBOBJ invocations to module description.
16745         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
16746         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
16747         here...
16748         * modules/memmove (configure.ac): ... to here.
16749
16750 2011-05-21  Bruno Haible  <bruno@clisp.org>
16751
16752         memmem*: Move AC_LIBOBJ invocations to module description.
16753         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
16754         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
16755         here...
16756         (gl_FUNC_MEMMEM): ... and here...
16757         * modules/memmem-simple (configure.ac): ... to here.
16758         * modules/memmem (configure.ac): ... and here.
16759
16760 2011-05-21  Bruno Haible  <bruno@clisp.org>
16761
16762         memcpy: Move AC_LIBOBJ invocations to module description.
16763         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
16764         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
16765         here...
16766         * modules/memcpy (configure.ac): ... to here.
16767
16768 2011-05-21  Bruno Haible  <bruno@clisp.org>
16769
16770         memcmp: Simplify autoconf macro.
16771         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
16772         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
16773         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
16774
16775 2011-05-21  Bruno Haible  <bruno@clisp.org>
16776
16777         memcmp: Move AC_LIBOBJ invocations to module description.
16778         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
16779         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
16780         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
16781         * modules/memcmp (configure.ac): ... to here.
16782         (Depends-on): Update conditions.
16783
16784 2011-05-21  Bruno Haible  <bruno@clisp.org>
16785
16786         memchr: Respect rules for use of AC_LIBOBJ.
16787         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
16788         invocations from here...
16789         * modules/memchr (configure.ac): ... to here.
16790
16791 2011-05-21  Bruno Haible  <bruno@clisp.org>
16792
16793         mbtowc: Move AC_LIBOBJ invocations to module description.
16794         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
16795         invocations from here...
16796         * modules/mbtowc (configure.ac): ... to here.
16797
16798 2011-05-21  Bruno Haible  <bruno@clisp.org>
16799
16800         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
16801         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
16802         gl_PREREQ_MBSRTOWCS invocations from here...
16803         * modules/mbsrtowcs (configure.ac): ... to here.
16804
16805 2011-05-21  Bruno Haible  <bruno@clisp.org>
16806
16807         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
16808         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
16809         gl_PREREQ_MBSNRTOWCS invocations from here...
16810         * modules/mbsnrtowcs (configure.ac): ... to here.
16811
16812 2011-05-21  Bruno Haible  <bruno@clisp.org>
16813
16814         mbsinit: Move AC_LIBOBJ invocations to module description.
16815         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
16816         invocations from here...
16817         * modules/mbsinit (configure.ac): ... to here.
16818
16819 2011-05-21  Bruno Haible  <bruno@clisp.org>
16820
16821         mbrlen: Move AC_LIBOBJ invocations to module description.
16822         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
16823         invocations from here...
16824         * modules/mbrlen (configure.ac): ... to here.
16825
16826 2011-05-21  Bruno Haible  <bruno@clisp.org>
16827
16828         mbrtowc: Respect rules for use of AC_LIBOBJ.
16829         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
16830         invocations from here...
16831         * modules/mbrtowc (configure.ac): ... to here.
16832
16833 2011-05-21  Bruno Haible  <bruno@clisp.org>
16834
16835         malloc-*: Move AC_LIBOBJ invocations to module description.
16836         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
16837         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
16838         AC_LIBOBJ invocations from here...
16839         * modules/malloc-gnu (configure.ac): ... to here.
16840         * modules/malloc-posix (configure.ac): ... and here.
16841
16842 2011-05-21  Bruno Haible  <bruno@clisp.org>
16843
16844         lstat, openat: Respect rules for use of AC_LIBOBJ.
16845         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
16846         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
16847         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
16848         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
16849         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
16850         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
16851         here.
16852         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
16853
16854 2011-05-21  Bruno Haible  <bruno@clisp.org>
16855
16856         lseek: Move AC_LIBOBJ invocations to module description.
16857         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
16858         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
16859         * modules/lseek (configure.ac): ... to here.
16860
16861 2011-05-21  Bruno Haible  <bruno@clisp.org>
16862
16863         linkat: Move AC_LIBOBJ invocations to module description.
16864         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
16865         here...
16866         * modules/linkat (configure.ac): ... to here.
16867
16868 2011-05-21  Bruno Haible  <bruno@clisp.org>
16869
16870         link: Respect rules for use of AC_LIBOBJ.
16871         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
16872         * modules/link (configure.ac): ... to here.
16873
16874 2011-05-21  Bruno Haible  <bruno@clisp.org>
16875
16876         lchown: Move AC_LIBOBJ invocations to module description.
16877         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
16878         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
16879         * modules/lchown (configure.ac): ... to here.
16880
16881 2011-05-21  Bruno Haible  <bruno@clisp.org>
16882
16883         iswctype: Move AC_LIBOBJ invocations to module description.
16884         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
16885         here...
16886         * modules/iswctype (configure.ac): ... to here.
16887
16888 2011-05-21  Bruno Haible  <bruno@clisp.org>
16889
16890         iswblank: Move AC_LIBOBJ invocations to module description.
16891         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
16892         here...
16893         * modules/iswblank (configure.ac): ... to here.
16894
16895 2011-05-21  Bruno Haible  <bruno@clisp.org>
16896
16897         atanl: Move AC_LIBOBJ invocations to module description.
16898         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
16899         * modules/atanl (configure.ac): ... to here.
16900
16901 2011-05-21  Bruno Haible  <bruno@clisp.org>
16902
16903         acosl: Move AC_LIBOBJ invocations to module description.
16904         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
16905         * modules/acosl (configure.ac): ... to here.
16906
16907 2011-05-21  Bruno Haible  <bruno@clisp.org>
16908
16909         asinl: Respect rules for use of AC_LIBOBJ.
16910         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
16911         * modules/asinl (configure.ac): ... to here.
16912
16913 2011-05-21  Bruno Haible  <bruno@clisp.org>
16914
16915         tanl: Move AC_LIBOBJ invocations to module description.
16916         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
16917         * modules/tanl (configure.ac): ... to here.
16918
16919 2011-05-21  Bruno Haible  <bruno@clisp.org>
16920
16921         cosl: Move AC_LIBOBJ invocations to module description.
16922         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
16923         * modules/cosl (configure.ac): ... to here.
16924
16925 2011-05-21  Bruno Haible  <bruno@clisp.org>
16926
16927         sinl: Move AC_LIBOBJ invocations to module description.
16928         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
16929         * modules/sinl (configure.ac): ... to here.
16930
16931 2011-05-21  Bruno Haible  <bruno@clisp.org>
16932
16933         logl: Move AC_LIBOBJ invocations to module description.
16934         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
16935         * modules/logl (configure.ac): ... to here.
16936
16937 2011-05-21  Bruno Haible  <bruno@clisp.org>
16938
16939         expl: Move AC_LIBOBJ invocations to module description.
16940         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
16941         * modules/expl (configure.ac): ... to here.
16942
16943 2011-05-21  Bruno Haible  <bruno@clisp.org>
16944
16945         roundl: Move AC_LIBOBJ invocations to module description.
16946         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
16947         * modules/roundl (configure.ac): ... to here.
16948
16949 2011-05-21  Bruno Haible  <bruno@clisp.org>
16950
16951         round: Move AC_LIBOBJ invocations to module description.
16952         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
16953         * modules/round (configure.ac): ... to here.
16954
16955 2011-05-21  Bruno Haible  <bruno@clisp.org>
16956
16957         roundf: Move AC_LIBOBJ invocations to module description.
16958         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
16959         * modules/roundf (configure.ac): ... to here.
16960
16961 2011-05-21  Bruno Haible  <bruno@clisp.org>
16962
16963         truncl: Move AC_LIBOBJ invocations to module description.
16964         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
16965         * modules/truncl (configure.ac): ... to here.
16966
16967 2011-05-21  Bruno Haible  <bruno@clisp.org>
16968
16969         trunc: Move AC_LIBOBJ invocations to module description.
16970         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
16971         * modules/trunc (configure.ac): ... to here.
16972
16973 2011-05-21  Bruno Haible  <bruno@clisp.org>
16974
16975         truncf: Move AC_LIBOBJ invocations to module description.
16976         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
16977         * modules/truncf (configure.ac): ... to here.
16978
16979 2011-05-21  Bruno Haible  <bruno@clisp.org>
16980
16981         ceill: Move AC_LIBOBJ invocations to module description.
16982         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
16983         * modules/ceill (configure.ac): ... to here.
16984
16985 2011-05-21  Bruno Haible  <bruno@clisp.org>
16986
16987         ceil: Move AC_LIBOBJ invocations to module description.
16988         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
16989         * modules/ceil (configure.ac): ... to here.
16990
16991 2011-05-21  Bruno Haible  <bruno@clisp.org>
16992
16993         ceilf: Move AC_LIBOBJ invocations to module description.
16994         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
16995         * modules/ceilf (configure.ac): ... to here.
16996
16997 2011-05-21  Bruno Haible  <bruno@clisp.org>
16998
16999         floorl: Respect rules for use of AC_LIBOBJ.
17000         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
17001         * modules/floorl (configure.ac): ... to here.
17002
17003 2011-05-21  Bruno Haible  <bruno@clisp.org>
17004
17005         floor: Respect rules for use of AC_LIBOBJ.
17006         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
17007         * modules/floor (configure.ac): ... to here.
17008
17009 2011-05-21  Bruno Haible  <bruno@clisp.org>
17010
17011         floorf: Move AC_LIBOBJ invocations to module description.
17012         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
17013         * modules/floorf (configure.ac): ... to here.
17014
17015 2011-05-20  Bruno Haible  <bruno@clisp.org>
17016
17017         sqrtl: Respect rules for use of AC_LIBOBJ.
17018         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
17019         * modules/sqrtl (configure.ac): ... to here.
17020
17021 2011-05-20  Bruno Haible  <bruno@clisp.org>
17022
17023         ldexpl: Respect rules for use of AC_LIBOBJ.
17024         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
17025         * modules/ldexpl (configure.ac): ... to here.
17026
17027 2011-05-20  Bruno Haible  <bruno@clisp.org>
17028
17029         frexpl*: Respect rules for use of AC_LIBOBJ.
17030         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
17031         invocation from here...
17032         * modules/frexpl (configure.ac): ... to here.
17033         * modules/frexpl-nolibm (configure.ac): ... and here.
17034
17035 2011-05-20  Bruno Haible  <bruno@clisp.org>
17036
17037         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
17038         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
17039         invocation from here...
17040         * modules/frexp (configure.ac): ... to here.
17041         * modules/frexp-nolibm (configure.ac): ... and here.
17042
17043 2011-05-20  Bruno Haible  <bruno@clisp.org>
17044
17045         isnan: Respect rules for use of AC_LIBOBJ.
17046         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
17047         invocations here.
17048         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
17049         REPLACE_ISNAN.
17050         * modules/isnand (configure.ac): Likewise.
17051         * modules/isnanl (configure.ac): Likewise.
17052
17053 2011-05-20  Bruno Haible  <bruno@clisp.org>
17054
17055         isnanl*: Respect rules for use of AC_LIBOBJ.
17056         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
17057         invocation from here...
17058         * modules/isnanl (configure.ac): ... to here.
17059         * modules/isnanl-nolibm (configure.ac): ... and here.
17060
17061 2011-05-20  Bruno Haible  <bruno@clisp.org>
17062
17063         isnand*: Move AC_LIBOBJ invocations to module description.
17064         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
17065         invocation from here...
17066         * modules/isnand (configure.ac): ... to here.
17067         * modules/isnand-nolibm (configure.ac): ... and here.
17068
17069 2011-05-20  Bruno Haible  <bruno@clisp.org>
17070
17071         isnanf*: Move AC_LIBOBJ invocations to module description.
17072         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
17073         invocation from here...
17074         * modules/isnanf (configure.ac): ... to here.
17075         * modules/isnanf-nolibm (configure.ac): ... and here.
17076
17077 2011-05-20  Bruno Haible  <bruno@clisp.org>
17078
17079         isnan*: Separate the AC_LIBOBJ invocations.
17080         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
17081         AC_LIBOBJ invocation.
17082         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
17083         here.
17084         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
17085         AC_LIBOBJ invocation.
17086         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
17087         here.
17088         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
17089         AC_LIBOBJ invocation.
17090         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
17091         here.
17092         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
17093
17094 2011-05-08  Bruno Haible  <bruno@clisp.org>
17095
17096         isinf: Move AC_LIBOBJ invocations to module description.
17097         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
17098         * modules/isinf (configure.ac): ... to here.
17099
17100 2011-05-08  Bruno Haible  <bruno@clisp.org>
17101
17102         isfinite: Move AC_LIBOBJ invocations to module description.
17103         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
17104         * modules/isfinite (configure.ac): ... to here.
17105
17106 2011-05-08  Bruno Haible  <bruno@clisp.org>
17107
17108         isblank: Move AC_LIBOBJ invocations to module description.
17109         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
17110         here...
17111         * modules/isblank (configure.ac): ... to here.
17112
17113 2011-05-08  Bruno Haible  <bruno@clisp.org>
17114
17115         isapipe: Move AC_LIBOBJ invocations to module description.
17116         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
17117         gl_PREREQ_ISAPIPE invocations from here...
17118         * modules/isapipe (configure.ac): ... to here.
17119         (Depends-on): Update condition.
17120
17121 2011-05-08  Bruno Haible  <bruno@clisp.org>
17122
17123         ioctl: Move AC_LIBOBJ invocations to module description.
17124         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
17125         invocations from here...
17126         * modules/ioctl (configure.ac): ... to here.
17127         (Depends-on): Update condition.
17128
17129 2011-05-08  Bruno Haible  <bruno@clisp.org>
17130
17131         imaxdiv: Move AC_LIBOBJ invocations to module description.
17132         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
17133         invocations from here...
17134         * modules/imaxdiv (configure.ac): ... to here.
17135
17136 2011-05-08  Bruno Haible  <bruno@clisp.org>
17137
17138         imaxabs: Move AC_LIBOBJ invocations to module description.
17139         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
17140         invocations from here...
17141         * modules/imaxabs (configure.ac): ... to here.
17142
17143 2011-05-08  Bruno Haible  <bruno@clisp.org>
17144
17145         getaddrinfo: Move AC_LIBOBJ invocations to module description.
17146         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
17147         AC_LIBOBJ invocations from here...
17148         * modules/getaddrinfo (configure.ac): ... to here.
17149         (Depends-on): Add conditions.
17150
17151 2011-05-08  Bruno Haible  <bruno@clisp.org>
17152
17153         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
17154         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
17155         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
17156         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
17157         (gl_PREREQ_INET_PTON): ... from here.
17158         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
17159         gl_PREREQ_INET_PTON here.
17160         (Depends-on): Update condition.
17161
17162 2011-05-08  Bruno Haible  <bruno@clisp.org>
17163
17164         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
17165         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
17166         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
17167         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
17168         (gl_PREREQ_INET_NTOP): ... from here.
17169         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
17170         gl_PREREQ_INET_NTOP here.
17171         (Depends-on): Update condition.
17172
17173 2011-05-08  Bruno Haible  <bruno@clisp.org>
17174
17175         iconv_open: Move AC_LIBOBJ invocations to module description.
17176         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
17177         AC_LIBOBJ invocations from here...
17178         * modules/iconv_open (configure.ac): ... to here.
17179
17180 2011-05-08  Bruno Haible  <bruno@clisp.org>
17181
17182         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
17183         If module 'iconv_open' is among the main modules and module
17184         'iconv_open-utf' is among the tests dependencies, then
17185         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
17186         return the special iconv_t values. Therefore iconv() and iconv_close()
17187         must support these special iconv_t values, already in lib, not only in
17188         tests.
17189         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
17190         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
17191         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
17192         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
17193         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
17194         (Depends-on): Add the dependencies of iconv_open-utf.
17195         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
17196         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
17197         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
17198
17199 2011-05-08  Bruno Haible  <bruno@clisp.org>
17200
17201         group-member: Move AC_LIBOBJ invocations to module description.
17202         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
17203         gl_PREREQ_GROUP_MEMBER invocations from here...
17204         * modules/group-member (configure.ac): ... to here.
17205
17206 2011-05-08  Bruno Haible  <bruno@clisp.org>
17207
17208         grantpt: Move AC_LIBOBJ invocations to module description.
17209         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
17210         invocations from here...
17211         * modules/grantpt (configure.ac): ... to here.
17212
17213 2011-05-08  Bruno Haible  <bruno@clisp.org>
17214
17215         glob: Move AC_LIBOBJ invocations to module description.
17216         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
17217         from here...
17218         * modules/glob (configure.ac): ... to here.
17219
17220 2011-05-08  Bruno Haible  <bruno@clisp.org>
17221
17222         getusershell: Move AC_LIBOBJ invocations to module description.
17223         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
17224         Move AC_LIBOBJ invocation from here...
17225         * modules/getusershell (configure.ac): ... to here.
17226         (Depends-on): Update condition.
17227
17228 2011-05-08  Bruno Haible  <bruno@clisp.org>
17229
17230         gettimeofday: Move AC_LIBOBJ invocations to module description.
17231         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
17232         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
17233         gl_PREREQ_GETTIMEOFDAY invocations from here...
17234         * modules/gettimeofday (configure.ac): ... to here.
17235
17236 2011-05-08  Bruno Haible  <bruno@clisp.org>
17237
17238         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
17239         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
17240         just gl_FUNC_TZSET.
17241         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
17242         (gl_FUNC_TZSET_CLOBBER): Remove actions.
17243         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
17244         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
17245
17246 2011-05-08  Bruno Haible  <bruno@clisp.org>
17247
17248         getsubopt: Move AC_LIBOBJ invocations to module description.
17249         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
17250         gl_PREREQ_GETSUBOPT invocations from here...
17251         * modules/getsubopt (configure.ac): ... to here.
17252
17253 2011-05-08  Bruno Haible  <bruno@clisp.org>
17254
17255         getpass-gnu: Move AC_LIBOBJ invocations to module description.
17256         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
17257         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
17258         * modules/getpass-gnu (configure.ac): ... to here.
17259
17260 2011-05-08  Bruno Haible  <bruno@clisp.org>
17261
17262         getpass: Move AC_LIBOBJ invocations to module description.
17263         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
17264         gl_PREREQ_GETPASS invocations from here...
17265         * modules/getpass (configure.ac): ... to here.
17266
17267 2011-05-08  Bruno Haible  <bruno@clisp.org>
17268
17269         getpagesize: Move AC_LIBOBJ invocations to module description.
17270         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
17271         from here...
17272         * modules/getpagesize (configure.ac): ... to here.
17273
17274 2011-05-08  Bruno Haible  <bruno@clisp.org>
17275
17276         getopt: Move AC_LIBOBJ invocations to module description.
17277         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
17278         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
17279         invocations from here...
17280         * modules/getopt-gnu (configure.ac): ... to here.
17281         * modules/getopt-posix (configure.ac): ... and here.
17282         (Depends-on): Update condition.
17283
17284 2011-05-08  Bruno Haible  <bruno@clisp.org>
17285
17286         getopt, argp: Respect rules for use of AC_LIBOBJ.
17287         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
17288         (gl_REPLACE_GETOPT_ALWAYS): New macro.
17289         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
17290         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
17291
17292 2011-05-08  Bruno Haible  <bruno@clisp.org>
17293
17294         getlogin_r: Move AC_LIBOBJ invocations to module description.
17295         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
17296         gl_PREREQ_GETLOGIN_R invocations from here...
17297         * modules/getlogin_r (configure.ac): ... to here.
17298
17299 2011-05-08  Bruno Haible  <bruno@clisp.org>
17300
17301         getlogin: Move AC_LIBOBJ invocations to module description.
17302         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
17303         here...
17304         * modules/getlogin (configure.ac): ... to here.
17305
17306 2011-05-08  Bruno Haible  <bruno@clisp.org>
17307
17308         getloadavg: Move AC_LIBOBJ invocations to module description.
17309         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
17310         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
17311         * modules/getloadavg (configure.ac): ... to here.
17312
17313 2011-05-08  Bruno Haible  <bruno@clisp.org>
17314
17315         gethrxtime: Move AC_LIBOBJ invocations to module description.
17316         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
17317         LIB_GETHRXTIME from here...
17318         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
17319         invocations from here...
17320         * modules/gethrxtime (configure.ac): ... to here.
17321
17322 2011-05-08  Bruno Haible  <bruno@clisp.org>
17323
17324         gethostname: Move AC_LIBOBJ invocations to module description.
17325         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
17326         gl_PREREQ_GETHOSTNAME invocations from here...
17327         * modules/gethostname (configure.ac): ... to here.
17328
17329 2011-05-08  Bruno Haible  <bruno@clisp.org>
17330
17331         getgroups: Move AC_LIBOBJ invocations to module description.
17332         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
17333         here...
17334         * modules/getgroups (configure.ac): ... to here.
17335
17336 2011-05-08  Bruno Haible  <bruno@clisp.org>
17337
17338         getdtablesize: Move AC_LIBOBJ invocations to module description.
17339         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
17340         invocation from here...
17341         * modules/getdtablesize (configure.ac): ... to here.
17342
17343 2011-05-08  Bruno Haible  <bruno@clisp.org>
17344
17345         getdomainname: Move AC_LIBOBJ invocations to module description.
17346         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
17347         gl_PREREQ_GETDOMAINNAME invocations from here...
17348         * modules/getdomainname (configure.ac): ... to here.
17349
17350 2011-05-08  Bruno Haible  <bruno@clisp.org>
17351
17352         getline: Move AC_LIBOBJ invocations to module description.
17353         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
17354         invocations from here...
17355         * modules/getline (configure.ac): ... to here.
17356
17357 2011-05-08  Bruno Haible  <bruno@clisp.org>
17358
17359         getline: Simplify.
17360         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
17361         It's already handled through the module dependency.
17362
17363 2011-05-08  Bruno Haible  <bruno@clisp.org>
17364
17365         getdelim: Move AC_LIBOBJ invocations to module description.
17366         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
17367         and gl_PREREQ_GETDELIM invocations from here...
17368         * modules/getdelim (configure.ac): ... to here.
17369         (Depends-on): Fix condition.
17370
17371 2011-05-08  Bruno Haible  <bruno@clisp.org>
17372
17373         getcwd: Move AC_LIBOBJ invocations to module description.
17374         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
17375         invocations from here...
17376         * modules/getcwd (configure.ac): ... to here.
17377
17378 2011-05-08  Bruno Haible  <bruno@clisp.org>
17379
17380         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
17381         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
17382         here...
17383         * modules/getcwd-lgpl (configure.ac): ... to here.
17384
17385 2011-05-07  Bruno Haible  <bruno@clisp.org>
17386
17387         crypto/gc: Move AC_LIBOBJ invocations to module description.
17388         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
17389         * modules/crypto/gc (configure.ac): ... to here.
17390
17391 2011-05-07  Bruno Haible  <bruno@clisp.org>
17392
17393         fwriting: Move AC_LIBOBJ invocations to module description.
17394         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
17395         here...
17396         * modules/fwriting (configure.ac): ... to here.
17397
17398 2011-05-07  Bruno Haible  <bruno@clisp.org>
17399
17400         fwritable: Move AC_LIBOBJ invocations to module description.
17401         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
17402         here...
17403         * modules/fwritable (configure.ac): ... to here.
17404
17405 2011-05-07  Bruno Haible  <bruno@clisp.org>
17406
17407         futimens: Move AC_LIBOBJ invocations to module description.
17408         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
17409         here...
17410         * modules/futimens (configure.ac): ... to here.
17411
17412 2011-05-07  Bruno Haible  <bruno@clisp.org>
17413
17414         ftruncate: Move AC_LIBOBJ invocations to module description.
17415         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
17416         gl_PREREQ_FTRUNCATE invocations from here...
17417         * modules/ftruncate (configure.ac): ... to here.
17418
17419 2011-05-07  Bruno Haible  <bruno@clisp.org>
17420
17421         fsync: Move AC_LIBOBJ invocations to module description.
17422         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
17423         invocations from here...
17424         * modules/fsync (configure.ac): ... to here.
17425
17426 2011-05-07  Bruno Haible  <bruno@clisp.org>
17427
17428         fsusage: Move AC_LIBOBJ invocations to module description.
17429         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
17430         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
17431         * modules/fsusage (configure.ac): ... to here.
17432
17433 2011-05-07  Bruno Haible  <bruno@clisp.org>
17434
17435         freopen: Move AC_LIBOBJ invocations to module description.
17436         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
17437         invocations from here...
17438         * modules/freopen (configure.ac): ... to here.
17439
17440 2011-05-07  Bruno Haible  <bruno@clisp.org>
17441
17442         free: Move AC_LIBOBJ invocations to module description.
17443         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
17444         invocations from here...
17445         * modules/free (configure.ac): ... to here.
17446
17447 2011-05-07  Bruno Haible  <bruno@clisp.org>
17448
17449         freadable: Move AC_LIBOBJ invocations to module description.
17450         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
17451         here...
17452         * modules/freadable (configure.ac): ... to here.
17453
17454 2011-05-07  Bruno Haible  <bruno@clisp.org>
17455
17456         fpurge: Move AC_LIBOBJ invocations to module description.
17457         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
17458         invocations from here...
17459         * modules/fpurge (configure.ac): ... to here.
17460
17461 2011-05-07  Bruno Haible  <bruno@clisp.org>
17462
17463         fpending: Move AC_LIBOBJ invocations to module description.
17464         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
17465         gl_FUNC_FPENDING.
17466         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
17467         invocations from here...
17468         * modules/fpending (configure.ac): ... to here.
17469
17470 2011-05-07  Bruno Haible  <bruno@clisp.org>
17471
17472         fopen: Move AC_LIBOBJ invocations to module description.
17473         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
17474         invocations from here...
17475         * modules/fopen (configure.ac): ... to here.
17476
17477 2011-05-07  Bruno Haible  <bruno@clisp.org>
17478
17479         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
17480         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
17481         gl_FUNC_FNMATCH_POSIX.
17482         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
17483         invocations from here...
17484         * modules/fnmatch (configure.ac): ... to here.
17485         * modules/fnmatch-gnu (configure.ac): ... and here.
17486
17487 2011-05-07  Bruno Haible  <bruno@clisp.org>
17488
17489         flock: Move AC_LIBOBJ invocations to module description.
17490         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
17491         invocations from here...
17492         * modules/flock (configure.ac): ... to here.
17493
17494 2011-05-07  Bruno Haible  <bruno@clisp.org>
17495
17496         fileblocks: Move AC_LIBOBJ invocations to module description.
17497         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
17498         gl_PREREQ_FILEBLOCKS invocations from here...
17499         * modules/fileblocks (configure.ac): ... to here.
17500
17501 2011-05-06  Bruno Haible  <bruno@clisp.org>
17502
17503         fflush: Move AC_LIBOBJ invocations to module description.
17504         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
17505         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
17506         invocations from here...
17507         * modules/fflush (configure.ac): ... to here.
17508
17509 2011-05-06  Bruno Haible  <bruno@clisp.org>
17510
17511         fdopendir: Move AC_LIBOBJ invocations to module description.
17512         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
17513         here...
17514         * modules/fdopendir (configure.ac): ... to here.
17515         (Depends-on): Improve conditions.
17516
17517 2011-05-06  Bruno Haible  <bruno@clisp.org>
17518
17519         _Exit: Move AC_LIBOBJ invocations to module description.
17520         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
17521         invocations from here...
17522         * modules/_Exit (configure.ac): ... to here.
17523
17524 2011-05-21  Bruno Haible  <bruno@clisp.org>
17525
17526         euidaccess: Respect rules for use of AC_LIBOBJ.
17527         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
17528         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
17529         from here...
17530         * modules/euidaccess (configure.ac): ... to here.
17531
17532 2011-05-06  Bruno Haible  <bruno@clisp.org>
17533
17534         error: Move AC_LIBOBJ invocations to module description.
17535         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
17536         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
17537         invocations from here...
17538         * modules/error (configure.ac): ... to here.
17539
17540 2011-05-06  Bruno Haible  <bruno@clisp.org>
17541
17542         duplocale: Move AC_LIBOBJ invocations to module description.
17543         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
17544         gl_PREREQ_DUPLOCALE invocations from here...
17545         * modules/duplocale (configure.ac): ... to here.
17546
17547 2011-05-05  Bruno Haible  <bruno@clisp.org>
17548
17549         dirfd: Move AC_LIBOBJ invocations to module description.
17550         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
17551         gl_FUNC_DIRFD.
17552         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
17553         here...
17554         * modules/dirfd (configure.ac): ... to here.
17555         (Depends-on): Fix condition.
17556
17557 2011-05-05  Bruno Haible  <bruno@clisp.org>
17558
17559         chown: Respect rules for use of AC_LIBOBJ.
17560         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
17561         * modules/chown (configure.ac): ... to here.
17562
17563 2011-05-05  Bruno Haible  <bruno@clisp.org>
17564
17565         chdir-long: Move AC_LIBOBJ invocations to module description.
17566         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
17567         gl_PREREQ_CHDIR_LONG invocations from here...
17568         * modules/chdir-long (configure.ac): ... to here.
17569
17570 2011-05-05  Bruno Haible  <bruno@clisp.org>
17571
17572         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
17573         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
17574         from here...
17575         * modules/canonicalize-lgpl (configure.ac): ... to here.
17576
17577 2011-05-05  Bruno Haible  <bruno@clisp.org>
17578
17579         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
17580         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
17581         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
17582         REPLACE_CALLOC.
17583         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
17584         * modules/calloc-gnu (configure.ac): Likewise.
17585
17586 2011-05-05  Bruno Haible  <bruno@clisp.org>
17587
17588         btowc: Move AC_LIBOBJ invocations to module description.
17589         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
17590         invocations from here...
17591         * modules/btowc (configure.ac): ... to here.
17592
17593 2011-05-21  Bruno Haible  <bruno@clisp.org>
17594
17595         atexit: Move AC_LIBOBJ invocations to module description.
17596         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
17597         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
17598         here...
17599         * modules/atexit (configure.ac): ... to here.
17600
17601 2011-05-05  Bruno Haible  <bruno@clisp.org>
17602
17603         atoll: Move AC_LIBOBJ invocations to module description.
17604         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
17605         invocations from here...
17606         * modules/atoll (configure.ac): ... to here.
17607
17608 2011-05-05  Bruno Haible  <bruno@clisp.org>
17609
17610         argz: Move AC_LIBOBJ invocations to module description.
17611         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
17612         * modules/argz (configure.ac): ... to here.
17613
17614 2011-05-05  Bruno Haible  <bruno@clisp.org>
17615
17616         alphasort: Move AC_LIBOBJ invocations to module description.
17617         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
17618         gl_PREREQ_ALPHASORT invocations from here...
17619         * modules/alphasort (configure.ac): ... to here.
17620
17621 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
17622
17623         verify: new macro verify_expr; verify_true deprecated
17624         * NEWS: Mention this.
17625         * doc/verify.texi (Compile-time Assertions): Document this.
17626         * lib/verify.h (verify_true): Deprecate.
17627         (verify_expr): New macro.
17628         * tests/test-verify.c (function): Test verify_expr.
17629
17630 2011-06-14  Jim Meyering  <meyering@redhat.com>
17631
17632         init.sh: give more portable redirection-related advice in a comment
17633         * tests/init.sh (stderr_fileno_): Update the advice in comments.
17634         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
17635         for lots of discussion.  Stefano Lattarini suggested the solution
17636         of putting "9>&2" after the command.  Reported by Bruno Haible.
17637
17638 2011-06-13  Bruno Haible  <bruno@clisp.org>
17639
17640         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
17641         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
17642         'none'.
17643
17644 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
17645
17646         ftoastr: use strtof only if HAVE_STRTOF
17647         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
17648         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
17649         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
17650         * modules/ftoastr (configure.ac): Check for strtof.
17651
17652 2011-06-13  Bruno Haible  <bruno@clisp.org>
17653
17654         gnulib-tool: Addendum to 2011-06-08 commit.
17655         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
17656         and --witness-c-macro have been given, augment AM_CPPFLAGS.
17657
17658 2011-06-13  Bruno Haible  <bruno@clisp.org>
17659
17660         fseeko: Provide a non-inline replacement of fseek().
17661         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
17662         * modules/fseeko (Depends-on): Add fseek.
17663         * modules/fseek (License): Change to LGPLv2+.
17664
17665 2011-06-13  Bruno Haible  <bruno@clisp.org>
17666
17667         ftello: Provide a non-inline replacement of ftell().
17668         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
17669         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
17670         not have ftello() (such as on mingw).
17671         * modules/ftello (Depends-on): Add ftell.
17672         * modules/ftell (License): Change to LGPLv2+.
17673
17674 2011-05-07  Bruno Haible  <bruno@clisp.org>
17675
17676         ftell: Move AC_LIBOBJ invocations to module description.
17677         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
17678         * modules/ftell (configure.ac): ... to here.
17679
17680 2011-05-07  Bruno Haible  <bruno@clisp.org>
17681
17682         ftello: Respect rules for use of AC_LIBOBJ.
17683         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
17684         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
17685         here...
17686         * modules/ftello (configure.ac): ... to here.
17687
17688 2011-05-07  Bruno Haible  <bruno@clisp.org>
17689
17690         fseeko: Simplify.
17691         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
17692         (gl_FUNC_FSEEKO): Inline it here.
17693
17694 2011-05-07  Bruno Haible  <bruno@clisp.org>
17695
17696         fseek: Move AC_LIBOBJ invocations to module description.
17697         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
17698         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
17699         * modules/fseek (configure.ac): ... to here.
17700
17701 2011-05-07  Bruno Haible  <bruno@clisp.org>
17702
17703         fseek: Respect rules for use of AC_LIBOBJ.
17704         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
17705         here...
17706         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
17707
17708 2011-05-07  Bruno Haible  <bruno@clisp.org>
17709
17710         fseeko: Respect rules for use of AC_LIBOBJ.
17711         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
17712         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
17713         here...
17714         * modules/fseeko (configure.ac): ... to here.
17715
17716 2011-06-13  Bruno Haible  <bruno@clisp.org>
17717
17718         gnulib-tool: Allow comments in the 'Depends-on' section.
17719         * doc/gnulib.texi (Module description): Mention comment syntax in the
17720         Depends-on section.
17721         * gnulib-tool (func_get_dependencies): Filter out comment lines.
17722
17723 2011-06-13  Bruno Haible  <bruno@clisp.org>
17724
17725         file-set.h: guard __attibute__ use, now that it's not always defined
17726         * lib/file-set.h (record_file): Use __attribute__ only with compiler
17727         versions that support it.  This fixes a coreutils build failure with
17728         the vendor cc on HP-UX 11.31.
17729
17730 2011-06-12  Bruno Haible  <bruno@clisp.org>
17731
17732         acl: Add support for HP-UX >= 11.11 JFS ACLs.
17733         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
17734         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
17735         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
17736         (acl, aclsort): New declarations.
17737         (aclv_nontrivial): New declaration.
17738         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
17739         (file_has_acl): Read also the second kind of HP-UX ACLs.
17740         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
17741         kind of HP-UX ACLs if the first kind fails.
17742         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
17743         second kind of HP-UX ACLs.
17744         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
17745         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
17746         agree.
17747         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
17748         hpuxjfs.
17749         Handle hpuxjfs.
17750         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
17751         hpuxjfs.
17752         Handle hpuxjfs.
17753         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
17754         (func_test_same_acls): Use both lsacl and getacl.
17755         Handle hpuxjfs.
17756         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
17757         (func_test_same_acls): Use both lsacl and getacl.
17758         Handle hpuxjfs.
17759
17760 2011-06-12  Bruno Haible  <bruno@clisp.org>
17761
17762         acl: Complete the 2010-08-10 fix.
17763         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
17764         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
17765         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
17766         explicitly.
17767         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
17768         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
17769
17770 2011-06-12  Bruno Haible  <bruno@clisp.org>
17771
17772         spawn-pipe tests: Comments.
17773         * tests/test-spawn-pipe-child.c (main): Update comment.
17774         Reported by James Youngman <jay@gnu.org>.
17775
17776 2011-06-11  James Youngman  <jay@gnu.org>
17777
17778         New module 'stat-size'.
17779         * modules/stat-size: New module.  Provides macros for accessing
17780         file size information in instances of struct stat.  Depends on the
17781         fileblocks module because it calls st_blocks.
17782         * lib/stat-size.h: New file, adapted from coreutils' system.h.
17783         * doc/gnulib.texi: Include stat-size.texi.
17784         * doc/stat-size.texi: Documentation for this module.
17785         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
17786         * m4/fileblocks.m4: Mention that stat-size depends on the call to
17787         AC_STRUCT_ST_BLOCKS.
17788
17789 2011-06-09  Bruno Haible  <bruno@clisp.org>
17790
17791         thread: Support pthreads-win32.
17792         * lib/glthread/thread.h (gl_thread_self): Define differently on
17793         pthreads-win32.
17794         (gl_null_thread): New declaration.
17795         (gl_thread_self_pointer): New macro.
17796         * lib/glthread/thread.c (gl_null_thread): New constant.
17797         * tests/test-lock.c: Use gl_thread_self_pointer instead of
17798         gl_thread_self.
17799         * tests/test-tls.c: Likewise.
17800         Suggested by Paul Eggert. Reported by Eric Blake.
17801
17802 2011-06-09  Bruno Haible  <bruno@clisp.org>
17803
17804         thread: Fix confusion between NULL and 0.
17805         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
17806         Reported by Paul Eggert.
17807
17808 2011-06-09  Bruno Haible  <bruno@clisp.org>
17809
17810         spawn-pipe tests: Avoid test failure on HP-UX 11.
17811         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
17812         is closed.
17813
17814 2011-06-09  Bruno Haible  <bruno@clisp.org>
17815
17816         acl tests: Fix compilation error on HP-UX 11.
17817         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
17818
17819 2011-06-09  Bruno Haible  <bruno@clisp.org>
17820
17821         rmdir: Avoid test failure on HP-UX 10.20.
17822         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
17823         EEXIST.
17824
17825 2011-06-08  Eric Blake  <eblake@redhat.com>
17826
17827         perror: fix test on mingw
17828         * modules/perror-tests (Depends-on): Add dup2.
17829
17830         strerror_r-posix: fix on MacOS
17831         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
17832         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
17833         logic bug.
17834         * lib/strerror_r.c (strerror_r): Fix the bug.
17835         * lib/strerror.c (strerror): Likewise.
17836         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
17837         problem.
17838         * doc/posix-functions/strerror.texi (strerror): Likewise.
17839         * doc/posix-functions/perror.texi (perror): Likewise.
17840         * tests/test-strerror.c (main): Enhance test.
17841         * tests/test-strerror_r.c (main): Likewise.
17842
17843 2011-06-08  Bruno Haible  <bruno@clisp.org>
17844
17845         gnulib-tool: Better isolation between different gnulib-tool invocations.
17846         * gnulib-tool: New option --witness-c-macro.
17847         (witness_c_macro): New variable.
17848         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
17849         AM_CPPFLAGS define it as a C macro.
17850         (func_emit_tests_Makefile_am): Likewise.
17851         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
17852         read it from there.
17853         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
17854         m4_define, not AC_DEFUN.
17855         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
17856         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
17857         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
17858         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
17859         s|...|...|, to substitute the values of the GNULIB_* module indicator
17860         variables.
17861         * modules/dirent (Makefile.am): Likewise.
17862         * modules/fcntl-h (Makefile.am): Likewise.
17863         * modules/iconv-h (Makefile.am): Likewise.
17864         * modules/langinfo (Makefile.am): Likewise.
17865         * modules/locale (Makefile.am): Likewise.
17866         * modules/math (Makefile.am): Likewise.
17867         * modules/netdb (Makefile.am): Likewise.
17868         * modules/poll-h (Makefile.am): Likewise.
17869         * modules/pty (Makefile.am): Likewise.
17870         * modules/search (Makefile.am): Likewise.
17871         * modules/signal (Makefile.am): Likewise.
17872         * modules/spawn (Makefile.am): Likewise.
17873         * modules/stdio (Makefile.am): Likewise.
17874         * modules/stdlib (Makefile.am): Likewise.
17875         * modules/string (Makefile.am): Likewise.
17876         * modules/sys_ioctl (Makefile.am): Likewise.
17877         * modules/sys_select (Makefile.am): Likewise.
17878         * modules/sys_socket (Makefile.am): Likewise.
17879         * modules/sys_stat (Makefile.am): Likewise.
17880         * modules/sys_times (Makefile.am): Likewise.
17881         * modules/sys_utsname (Makefile.am): Likewise.
17882         * modules/sys_wait (Makefile.am): Likewise.
17883         * modules/termios (Makefile.am): Likewise.
17884         * modules/time (Makefile.am): Likewise.
17885         * modules/unistd (Makefile.am): Likewise.
17886         * modules/wchar (Makefile.am): Likewise.
17887
17888 2011-06-08  Eric Blake  <eblake@redhat.com>
17889
17890         strerror: simplify replacement
17891         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
17892         * modules/strerror (configure.ac): No prereqs needed here...
17893         * modules/strerror-override (configure.ac): ...but this needs it.
17894         (Files): Add file for needed prereq macro.
17895
17896 2011-06-08  Bruno Haible  <bruno@clisp.org>
17897
17898         strerror_r-posix: Tweaks.
17899         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
17900         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
17901         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
17902         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
17903         (gl_FUNC_STRERROR_R): ... to here.
17904         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
17905
17906 2011-06-07  Eric Blake  <eblake@redhat.com>
17907
17908         perror: document fixed bugs
17909         * doc/posix-functions/perror.texi (perror): Document recent
17910         patches.
17911
17912 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
17913
17914         stat-time: get_stat_birthtime failure is better-defined
17915         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
17916         return a timestamp whose tv_sec and tv_nsec values are both -1.
17917         Previously, the spec said only that the tv_nsec value was negative.
17918         This upward-compatible change simplifies GNU tar a bit.
17919
17920 2011-06-07  Eric Blake  <eblake@redhat.com>
17921
17922         strerror_r-posix: work around cygwin 1.7.9
17923         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
17924         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
17925         bug without replacing strerror_r.
17926         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
17927         strerror_r is buggy, but without requiring strerror_r compilation.
17928         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
17929
17930         test-perror: relax test to ignore cygwin bug
17931         * tests/test-perror2.c (main): Relax test on requiring detection
17932         of stream errors, and use unbuffered stream.
17933         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
17934         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
17935         * doc/posix-functions/fputc.texi (fputc): Likewise.
17936         * doc/posix-functions/fputs.texi (fputs): Likewise.
17937         * doc/posix-functions/fputws.texi (fputws): Likewise.
17938         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
17939         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
17940         * doc/posix-functions/getopt.texi (getopt): Likewise.
17941         * doc/posix-functions/perror.texi (perror): Likewise.
17942         * doc/posix-functions/printf.texi (printf): Likewise.
17943         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
17944         * doc/posix-functions/psignal.texi (psignal): Likewise.
17945         * doc/posix-functions/putc.texi (putc): Likewise.
17946         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
17947         Likewise.
17948         * doc/posix-functions/putchar.texi (putchar): Likewise.
17949         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
17950         Likewise.
17951         * doc/posix-functions/puts.texi (puts): Likewise.
17952         * doc/posix-functions/putwc.texi (putwc): Likewise.
17953         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
17954         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
17955         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
17956         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
17957         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
17958         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
17959         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
17960         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
17961
17962 2011-05-22  Bruno Haible  <bruno@clisp.org>
17963
17964         strerror: Move AC_LIBOBJ invocations to module description.
17965         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
17966         gl_PREREQ_STRERROR invocations from here...
17967         * modules/strerror (configure.ac): ... to here.
17968
17969 2011-05-21  Bruno Haible  <bruno@clisp.org>
17970
17971         perror: Use common idiom.
17972         * modules/perror (configure.ac): Reorder statements.
17973
17974 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
17975
17976         tests: fix usage message in 'mktempd_'
17977         * tests/init.sh (mktempd_): In the usage message, use literal
17978         'mktempd_', not '$ME' (which is even undefined), as the name of
17979         the subroutine.
17980
17981 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
17982
17983         tests init: new function 'fatal_', for hard errors
17984         Before this patch, the only way offered by tests/init.sh to
17985         properly signal a hard error was the `framework_failure_'
17986         function.  But the error message issued by that function,
17987         as its name would suggest, refers to a set-up failure in the
17988         testsuite, while hard errors can obviously also be due to
17989         other reasons.  The best way to fix this inconsistency is to
17990         introduce a new function with a more general error message.
17991         * tests/init.sh (fatal_): New function.
17992
17993 2011-06-06  Eric Blake  <eblake@redhat.com>
17994
17995         canonicalize-lgpl: use common idiom
17996         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
17997         over newer POSIX -Rf.
17998         Reported by Bruno Haible.
17999
18000         canonicalize-lgpl: work around AIX realpath bug
18001         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
18002         * doc/posix-functions/realpath.texi (realpath): Document it.
18003         Reported by Bruno Haible.
18004
18005         strerror: work around FreeBSD bug
18006         * lib/strerror.c (strerror): Special case 0.
18007         Reported by Bruno Haible.
18008
18009         strerror-override: avoid bloating errno module
18010         * modules/errno (Files, configure.ac): Move replacement strings...
18011         * modules/strerror-override: ...to new module.
18012         * modules/strerror (Depends-on): Add strerror-override.
18013         * modules/strerror_r-posix (Depends-on): Likewise.
18014         * MODULES.html.sh: Document new module.
18015         Reported by Bruno Haible.
18016
18017 2011-06-06  Bruno Haible  <bruno@clisp.org>
18018
18019         spawn-pipe tests: Rename program.
18020         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
18021         * tests/test-spawn-pipe-child.c: Update comment.
18022         * tests/test-spawn-pipe.sh: Update.
18023         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
18024
18025         spawn-pipe tests: Link the child program only against libc.
18026         * tests/test-spawn-pipe-child.c: New file, extracted from
18027         tests/test-spawn-pipe.c.
18028         (main): Expect only one argument.
18029         (is_open): New function, copied from tests/test-pipe.c.
18030         * tests/test-spawn-pipe.c: Don't include <errno.h>.
18031         (child_main): Remove function.
18032         (test_pipe): Pass only one argument to the child program.
18033         (main): Remove child process code. Expect the child program's name as
18034         first argument.
18035         * tests/test-spawn-pipe.sh: Pass the child program's name as first
18036         argument.
18037         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
18038         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
18039         test-spawn-pipe-child against no libraries.
18040
18041 2011-06-06  Bruno Haible  <bruno@clisp.org>
18042
18043         careadlinkat: Avoid mismatch between ssize_t and int.
18044         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
18045         * lib/careadlinkat.c (careadlinkatcwd): Define always.
18046
18047 2011-06-06  Jim Meyering  <meyering@redhat.com>
18048
18049         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
18050         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
18051         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
18052
18053 2011-06-05  Bruno Haible  <bruno@clisp.org>
18054
18055         ansi-c++-opt: Interoperability with libtool.
18056         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
18057         set the variable to "no", not to ":".
18058         * NEWS: Mention the change.
18059
18060 2011-06-05  Bruno Haible  <bruno@clisp.org>
18061
18062         acl: Fix test failure on AIX 7.
18063         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
18064         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
18065
18066 2011-06-05  Bruno Haible  <bruno@clisp.org>
18067
18068         pipe-filter-ii: Fix test failure on AIX and IRIX.
18069         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
18070         with EAGAIN, retry with a smaller buffer size.
18071
18072 2011-06-05  Bruno Haible  <bruno@clisp.org>
18073
18074         localename: Fix link dependencies.
18075         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
18076         * modules/localename-tests (Makefile.am): Link test-localename with
18077         $(LIBTHREAD).
18078
18079 2011-06-05  Bruno Haible  <bruno@clisp.org>
18080
18081         error: Avoid gcc warning.
18082         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
18083
18084 2011-06-05  Bruno Haible  <bruno@clisp.org>
18085
18086         unsetenv: Avoid gcc warning.
18087         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
18088
18089 2011-06-05  Bruno Haible  <bruno@clisp.org>
18090
18091         setenv: Avoid gcc warning.
18092         * lib/setenv.c (setenv): Provide declaration if system lacks it.
18093
18094 2011-06-05  Bruno Haible  <bruno@clisp.org>
18095
18096         sys_select: Ensure memset is declared also on AIX 7.
18097         * lib/sys_select.in.h: Include <string.h> also on AIX.
18098         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
18099         self-contained also on AIX 7.1.
18100
18101 2011-06-04  Jim Meyering  <meyering@redhat.com>
18102
18103         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
18104         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
18105         function name, "error".
18106         (_gl_translatable_diag_func_re): New configurable variable.
18107
18108 2011-06-04  Bruno Haible  <bruno@clisp.org>
18109
18110         getopt: Avoid gcc warning.
18111         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
18112
18113 2011-06-04  Bruno Haible  <bruno@clisp.org>
18114
18115         strerror_r: Fix comments.
18116         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
18117         commit.
18118
18119 2011-06-04  Bruno Haible  <bruno@clisp.org>
18120
18121         perror: Fix compilation error.
18122         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
18123         Undefine fprintf, not sprintf.
18124         * modules/perror (Depends-on): Remove intprops, verify.
18125
18126 2011-06-04  Bruno Haible  <bruno@clisp.org>
18127
18128         setlocale: Enable replacement on Cygwin 1.5.
18129         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
18130         Cygwin 1.5.x.
18131         * doc/posix-functions/setlocale.texi: Mention that the problem with the
18132         LC_CTYPE category also exists on Cygwin 1.5.x.
18133
18134 2011-06-04  Bruno Haible  <bruno@clisp.org>
18135
18136         strerror-override: Don't disable symbol renamings.
18137         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
18138         * lib/strerror-override.c: Include config.h.
18139         (strerror_override): Don't undefine.
18140
18141 2011-06-03  Bruno Haible  <bruno@clisp.org>
18142
18143         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
18144         * lib/localename.h: Update copyright header.
18145         * lib/localename.c: Likewise.
18146         * lib/relocatable.h: Likewise.
18147         * lib/relocatable.c: Likewise.
18148
18149 2011-06-02  Bruno Haible  <bruno@clisp.org>
18150
18151         doc: Fix a module name.
18152         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
18153
18154 2011-06-02  Bruno Haible  <bruno@clisp.org>
18155
18156         pipe2: Remove dependency on 'nonblocking' module.
18157         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
18158         O_NONBLOCK is defined by gnulib.
18159         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
18160         is zero.
18161         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
18162         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
18163         defined by gnulib.
18164         (get_nonblocking_flag): New function.
18165         (main): Test O_NONBLOCK flag only if it is nonzero.
18166         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
18167
18168 2011-06-03  Jim Meyering  <meyering@redhat.com>
18169
18170         maint: three new prohibit-header-without-use rules
18171         Prohibit use of cloexec.h, posixver.h, same.h without use.
18172         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
18173         (sc_prohibit_posixver_without_use): Likewise.
18174         (sc_prohibit_same_without_use): Likewise.
18175
18176 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
18177
18178         allocator: 'die' routine is now given requested size
18179         * lib/allocator.h (struct allocator.die): New size arg.
18180         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
18181         If the actual problem is an ssize_t limitation, not a size_t or
18182         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
18183
18184 2011-06-01  Eric Blake  <eblake@redhat.com>
18185
18186         strerror: drop strerror_r dependency
18187         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
18188         * lib/strerror-override.c (strerror_override): ...to new file.
18189         * lib/strerror-override.h: Add prototype.
18190         * lib/strerror-impl.h: Delete.
18191         * lib/strerror.c (strerror): New implementation.
18192         * modules/errno (Files): Add new files.
18193         (configure.ac): Compile new file as appropriate.
18194         * modules/strerror (Files): Drop unused file.
18195         (Depends-on): Drop strerror_r-posix.
18196         * MODULES.html.sh: Document strerror_r-posix.
18197         Requested by Sam Steingold.
18198
18199         perror: call strerror_r directly
18200         * modules/perror (Files): Drop strerror-impl.h.
18201         * lib/perror.c (perror): Use our own stack buffer, rather than
18202         calling a wrapper that uses static storage.
18203         * doc/posix-functions/perror.texi (perror): Document a limitation
18204         of our replacement.
18205
18206         strerror_r: fix includes for FreeBSD
18207         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
18208         since we use abort on some platforms.
18209         Reported by Matthias Bolte.
18210
18211 2011-05-31  Bruno Haible  <bruno@clisp.org>
18212
18213         Fix link errors in tests: openat-die uses gettext-h.
18214         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
18215         against $(LIBINTL).
18216         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
18217         against $(LIBINTL).
18218         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
18219         $(LIBINTL).
18220         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
18221         against $(LIBINTL).
18222         * modules/linkat-tests (Makefile.am): Link test-linkat against
18223         $(LIBINTL).
18224         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
18225         $(LIBINTL).
18226         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
18227         against $(LIBINTL).
18228         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
18229         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
18230         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
18231         $(LIBINTL).
18232         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
18233         $(LIBINTL).
18234         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
18235         $(LIBINTL).
18236         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18237
18238 2011-05-31  Bruno Haible  <bruno@clisp.org>
18239
18240         Fix link errors in tests: wait-process uses gettext-h.
18241         * modules/nonblocking-pipe-tests (Makefile.am): Set
18242         test_nonblocking_pipe_main_LDADD.
18243         * modules/nonblocking-socket-tests (Makefile.am): Link
18244         test-nonblocking-socket-main against $(LIBINTL).
18245         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18246
18247 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
18248
18249         assert-h: work around 'verify' incompatibility
18250         * lib/verify.h: Use @...@ directives, not ifdef.
18251         * modules/assert-h (assert.h): Implement the directives.
18252         (assert.h): Substitute the symbol-prefix more consistently.
18253
18254 2011-05-29  Jim Meyering  <meyering@redhat.com>
18255
18256         trim: remove three superfluous assignments
18257         * lib/trim.c (trim2): Remove three superfluous assignments
18258         and correct brace positioning.
18259
18260 2011-05-29  Bruno Haible  <bruno@clisp.org>
18261
18262         wctype-h: Avoid namespace pollution on Solaris 2.6.
18263         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
18264         identifiers.
18265         * doc/posix-headers/wctype.texi: Mention the problem.
18266         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18267
18268 2011-05-28  Jim Meyering  <meyering@redhat.com>
18269
18270         parse-datetime.y: accommodate -Wstrict-overflow
18271         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
18272         placate -Wstrict-overflow.
18273
18274         trim: avoid a warning from -O2 -Wstrict-overflow
18275         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
18276
18277 2011-05-29  Bruno Haible  <bruno@clisp.org>
18278
18279         gnulib-tool: Fix bug in yesterday's commit.
18280         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
18281         twice.
18282
18283 2011-05-29  Bruno Haible  <bruno@clisp.org>
18284
18285         Allow multiple gnulib generated include files to be combined.
18286         * gnulib-tool (func_compute_include_guard_prefix): New function.
18287         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
18288         ${gl_include_guard_prefix} references.
18289         (func_import, func_create_testdir): Invoke
18290         func_compute_include_guard_prefix.
18291         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
18292         * lib/ctype.in.h: Likewise.
18293         * lib/dirent.in.h: Likewise.
18294         * lib/errno.in.h: Likewise.
18295         * lib/fcntl.in.h: Likewise.
18296         * lib/float.in.h: Likewise.
18297         * lib/getopt.in.h: Likewise.
18298         * lib/iconv.in.h: Likewise.
18299         * lib/langinfo.in.h: Likewise.
18300         * lib/locale.in.h: Likewise.
18301         * lib/math.in.h: Likewise.
18302         * lib/netdb.in.h: Likewise.
18303         * lib/netinet_in.in.h: Likewise.
18304         * lib/poll.in.h: Likewise.
18305         * lib/pthread.in.h: Likewise.
18306         * lib/pty.in.h: Likewise.
18307         * lib/sched.in.h: Likewise.
18308         * lib/se-selinux.in.h: Likewise.
18309         * lib/search.in.h: Likewise.
18310         * lib/signal.in.h: Likewise.
18311         * lib/spawn.in.h: Likewise.
18312         * lib/stdarg.in.h: Likewise.
18313         * lib/stddef.in.h: Likewise.
18314         * lib/stdint.in.h: Likewise.
18315         * lib/stdio.in.h: Likewise.
18316         * lib/stdlib.in.h: Likewise.
18317         * lib/string.in.h: Likewise.
18318         * lib/strings.in.h: Likewise.
18319         * lib/sys_file.in.h: Likewise.
18320         * lib/sys_ioctl.in.h: Likewise.
18321         * lib/sys_select.in.h: Likewise.
18322         * lib/sys_socket.in.h: Likewise.
18323         * lib/sys_stat.in.h: Likewise.
18324         * lib/sys_time.in.h: Likewise.
18325         * lib/sys_times.in.h: Likewise.
18326         * lib/sys_uio.in.h: Likewise.
18327         * lib/sys_utsname.in.h: Likewise.
18328         * lib/sys_wait.in.h: Likewise.
18329         * lib/sysexits.in.h: Likewise.
18330         * lib/termios.in.h: Likewise.
18331         * lib/time.in.h: Likewise.
18332         * lib/unistd.in.h: Likewise.
18333         * lib/wchar.in.h: Likewise.
18334         * lib/wctype.in.h: Likewise.
18335         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
18336         * modules/ctype (Makefile.am): Likewise.
18337         * modules/dirent (Makefile.am): Likewise.
18338         * modules/errno (Makefile.am): Likewise.
18339         * modules/fcntl-h (Makefile.am): Likewise.
18340         * modules/float (Makefile.am): Likewise.
18341         * modules/getopt-posix (Makefile.am): Likewise.
18342         * modules/iconv-h (Makefile.am): Likewise.
18343         * modules/langinfo (Makefile.am): Likewise.
18344         * modules/locale (Makefile.am): Likewise.
18345         * modules/math (Makefile.am): Likewise.
18346         * modules/netdb (Makefile.am): Likewise.
18347         * modules/netinet_in (Makefile.am): Likewise.
18348         * modules/poll-h (Makefile.am): Likewise.
18349         * modules/pthread (Makefile.am): Likewise.
18350         * modules/pty (Makefile.am): Likewise.
18351         * modules/sched (Makefile.am): Likewise.
18352         * modules/search (Makefile.am): Likewise.
18353         * modules/selinux-h (Makefile.am): Likewise.
18354         * modules/signal (Makefile.am): Likewise.
18355         * modules/spawn (Makefile.am): Likewise.
18356         * modules/stdarg (Makefile.am): Likewise.
18357         * modules/stddef (Makefile.am): Likewise.
18358         * modules/stdint (Makefile.am): Likewise.
18359         * modules/stdio (Makefile.am): Likewise.
18360         * modules/stdlib (Makefile.am): Likewise.
18361         * modules/string (Makefile.am): Likewise.
18362         * modules/strings (Makefile.am): Likewise.
18363         * modules/sys_file (Makefile.am): Likewise.
18364         * modules/sys_ioctl (Makefile.am): Likewise.
18365         * modules/sys_select (Makefile.am): Likewise.
18366         * modules/sys_socket (Makefile.am): Likewise.
18367         * modules/sys_stat (Makefile.am): Likewise.
18368         * modules/sys_time (Makefile.am): Likewise.
18369         * modules/sys_times (Makefile.am): Likewise.
18370         * modules/sys_uio (Makefile.am): Likewise.
18371         * modules/sys_utsname (Makefile.am): Likewise.
18372         * modules/sys_wait (Makefile.am): Likewise.
18373         * modules/sysexits (Makefile.am): Likewise.
18374         * modules/termios (Makefile.am): Likewise.
18375         * modules/time (Makefile.am): Likewise.
18376         * modules/unistd (Makefile.am): Likewise.
18377         * modules/wchar (Makefile.am): Likewise.
18378         * modules/wctype-h (Makefile.am): Likewise.
18379         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
18380
18381 2011-05-29  Bruno Haible  <bruno@clisp.org>
18382
18383         assert-h: Allow multiple gnulib generated replacements to coexist.
18384         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
18385
18386 2011-05-29  Bruno Haible  <bruno@clisp.org>
18387
18388         argp: Allow coexistence with strerror_r-posix module.
18389         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
18390         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
18391         by gnulib's <string.h> replacement), assume it has the POSIX signature,
18392         not the glibc signature.
18393
18394 2011-05-28  Bruno Haible  <bruno@clisp.org>
18395
18396         gnulib-tool: Alternative structure of testdirs, similar to --import.
18397         * gnulib-tool: New option --single-configure.
18398         (func_usage): Document it.
18399         (single_configure): New variable.
18400         (func_modules_transitive_closure_separately,
18401         func_modules_transitive_closure_separately,
18402         func_determine_use_libtests, func_modules_add_dummy_separately,
18403         func_modules_to_filelist_separately): New functions, extracted from
18404         func_import.
18405         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
18406         (func_import): Use the new functions.
18407         (func_create_testdir): Set final_modules. Handle $single_configure =
18408         true case.
18409
18410 2011-05-28  Bruno Haible  <bruno@clisp.org>
18411
18412         getloadavg: Remove an unreliable safety check.
18413         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
18414         getloadavg.c is in place.
18415         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
18416         Reported by Sam Steingold <sds@gnu.org>.
18417
18418 2011-05-28  Bruno Haible  <bruno@clisp.org>
18419
18420         doc: Cleanup yet another file produced by texinfo.tex.
18421         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
18422
18423 2011-05-28  Bruno Haible  <bruno@clisp.org>
18424
18425         Finish the conditional dependencies mechanism.
18426         * gnulib-tool: New option --no-conditional-dependencies.
18427         (func_usage): Document it. Don't mark --conditional-dependencies as
18428         experimental.
18429         (cond_dependencies): The possible values can now be true, false, empty.
18430         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
18431         (func_import): Store setting in gnulib-cache.m4 and read it from there.
18432         * doc/gnulib-tool.texi (Conditional dependencies): New section.
18433
18434 2011-05-28  Bruno Haible  <bruno@clisp.org>
18435
18436         doc: Use a recent texinfo.tex.
18437         * doc/Makefile (tex_opts): New variable.
18438         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
18439
18440 2011-05-28  Jim Meyering  <meyering@redhat.com>
18441
18442         intprops.h: adjust comment to match code change
18443         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
18444         only once, it *may* have side effects.  Also fix an unrelated typo.
18445         (_GL_INT_SIGNED): Likewise.
18446
18447 2011-05-26  Simon Josefsson  <simon@josefsson.org>
18448
18449         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
18450
18451 2011-05-26  Bruno Haible  <bruno@clisp.org>
18452
18453         mbsrchr: Avoid collision with system function on Interix.
18454         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
18455         Reported by Markus Duft <mduft@gentoo.org>.
18456
18457 2011-05-15  James Youngman  <jay@gnu.org>
18458
18459         getopt: for ambiguous options, enumerate the possibilities.
18460         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
18461         the ambiguous options when an ambiguous prefix is given. This was
18462         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
18463         glibc change was
18464         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
18465
18466 2011-05-25  Eric Blake  <eblake@redhat.com>
18467
18468         getcwd: work around mingw bug
18469         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
18470         * doc/posix-functions/getcwd.texi (getcwd): Document it.
18471         Reported by Matthias Bolte.
18472
18473 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
18474
18475         test-intprops: disable -Wtype-limits diagnostics
18476         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
18477         diagnostics.  Otherwise, the integer overflow macros generate many
18478         diagnostics.  Reported by Jim Meyering in
18479         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
18480
18481         intprops: shorten, to pacify gcc -Woverlength-strings
18482         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
18483         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
18484         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
18485         likely to run afoul of C compiler limits for string constant lengths.
18486         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
18487
18488 2011-05-24  Eric Blake  <eblake@redhat.com>
18489
18490         docs: document recently fixed glibc printf bug
18491         * doc/posix-functions/fprintf.texi (fprintf): Document it.
18492         * doc/posix-functions/printf.texi (printf): Likewise.
18493         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
18494         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
18495
18496         closein-tests: convert to init.sh
18497         * modules/closein-tests (Files): Add init.sh
18498         * tests/test-closein.sh Use it.
18499
18500         yesno-tests: convert to init.sh
18501         * modules/yesno-tests (Files): Add init.sh.
18502         * tests/test-yesno.sh: Use it.
18503
18504         atexit-tests: ensure reliable exit status
18505         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
18506         Reported by Bruno Haible.
18507
18508 2011-05-24  Bruno Haible  <bruno@clisp.org>
18509
18510         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
18511         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
18512         gl_PREREQ_STRERROR_R invocations from here...
18513         * modules/strerror_r-posix (configure.ac): ... to here.
18514
18515 2011-05-24  Eric Blake  <eblake@redhat.com>
18516
18517         strerror_r: fix missing header
18518         * lib/strerror_r.c: Avoid compiler warning about snprintf.
18519
18520         strerror_r: fix AIX test failures
18521         * lib/strerror_r.c (strerror_r): Convert silent truncation to
18522         ERANGE failure.
18523
18524         strerror_r: fix Solaris test failures
18525         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
18526         failures.
18527         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
18528
18529         strerror_r: enforce POSIX recommendations
18530         * lib/strerror_r.c (safe_copy): New helper method.
18531         (strerror_r): Guarantee a non-empty string.
18532         * tests/test-strerror_r.c (main): Enhance tests to incorporate
18533         recent POSIX rulings and to match our strerror guarantees.
18534         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
18535
18536 2011-05-24  Jim Meyering  <meyering@redhat.com>
18537
18538         test-perror2.c: avoid warning about unused variable
18539         * tests/test-perror2.c (main): Remove declaration of unused "fp".
18540
18541 2011-05-24  Eric Blake  <eblake@redhat.com>
18542
18543         perror: avoid spurious test failure on HP-UX
18544         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
18545
18546         tests: fix logic bug in init.sh
18547         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
18548         shell.
18549
18550 2011-05-24  Jim Meyering  <meyering@redhat.com>
18551
18552         utimensat: do not reference an out-of-scope buffer
18553         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
18554         declared in an inner scope, yet "times" would be dereferenced outside
18555         the scope in which "ts" was valid.
18556         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
18557         of ts[2] "out/up", so that the use of aliased "times" (via
18558         "times = ts;") does not end up referencing an out-of-scope "ts"
18559
18560         opendir-safer.c: don't clobber errno; don't close negative FD
18561         * lib/opendir-safer.c (opendir_safer):
18562         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
18563         file descriptor, and more importantly, don't clobber the
18564         offending errno value with EINVAL.  Before, upon failure
18565         of dup_safer, we would pass the negative file descriptor to
18566         fdopendir, which would clobber errno.
18567
18568 2011-05-23  Bruno Haible  <bruno@clisp.org>
18569
18570         idcache: Fix module description.
18571         * modules/idcache (Include): Set to "idcache.h".
18572
18573 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
18574
18575         gnulib-tool: fix portability problem with MacOS sed
18576         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
18577         before the "}".  Problem reported by Leo in
18578         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
18579         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
18580         sed_extract_condition1, sed_extract_condition2.
18581
18582 2011-05-23  Bruno Haible  <bruno@clisp.org>
18583
18584         hash: Simplify autoconf macro.
18585         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
18586
18587 2011-05-23  Bruno Haible  <bruno@clisp.org>
18588
18589         getugroups: Fix module description.
18590         * modules/getugroups (Include): Set to "getugroups.h".
18591
18592 2011-05-23  Bruno Haible  <bruno@clisp.org>
18593
18594         linkat: Simplify autoconf macro.
18595         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
18596
18597 2011-05-23  Bruno Haible  <bruno@clisp.org>
18598             Eric Blake  <eblake@redhat.com>
18599
18600         linkat, renameat: Update dependencies.
18601         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
18602         * modules/linkat (Depends-on): Likewise. Remove also readlink,
18603         symlinkat.
18604
18605 2011-05-23  Jim Meyering  <meyering@redhat.com>
18606
18607         maint.mk: more tight_scope improvements
18608         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
18609         (_gl_TS_headers): Define only in if-0'd block.
18610         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
18611         sometimes we must *not* use it.  Adjust uses accordingly.
18612         (sc_tight_scope): Use much simpler grep-based test to determine
18613         whether we skip this rule.
18614
18615         maint.mk: generalize/improve the tight-scope rule
18616         * top/maint.mk: Emit a warning when the test is skipped.
18617         (_gl_TS_dir): Add $(srcdir)/ prefix.
18618         (_gl_TS_function_match): Simplify, rather than trying
18619         to enumerate common types.  Otherwise, it would fail to match an
18620         "extern unsigned char const *" declaration in idutils.
18621         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
18622         a way to support use of that type of macro.
18623         (_gl_TS_var_match): Simplify regexp.
18624         (_gl_TS_obj_files): New configurable variable.
18625         (_gl_TS_headers): Likewise.
18626
18627 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
18628
18629         verify: fix bug when gnulib <assert.h> is also included
18630         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
18631         is defined, not if _GL_STATIC_ASSERT_H is not defined.
18632         Perhaps there's a better way, but this fixes the immediate problem.
18633         Problem reported by Bruno Haible in
18634         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
18635
18636 2011-05-22  Bruno Haible  <bruno@clisp.org>
18637
18638         xgetcwd: Simplify autoconf macro.
18639         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
18640
18641 2011-05-22  Bruno Haible  <bruno@clisp.org>
18642
18643         New module 'mktime-internal'.
18644         * modules/mktime-internal: New file.
18645         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
18646         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
18647         mktime_internal as a C macro if libc has __mktime_internal.
18648         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
18649         conditions.
18650         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
18651
18652 2011-05-22  Bruno Haible  <bruno@clisp.org>
18653
18654         timegm: Correct mktime replacement statements.
18655         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
18656         defining mktime as a C macro. This completes a 2009-07-28 commit.
18657
18658 2011-05-22  Bruno Haible  <bruno@clisp.org>
18659
18660         timegm: Simplify autoconf macro.
18661         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
18662
18663 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
18664
18665         clock-time: change to LGPLv2+.
18666         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
18667         BSD-like but we have no mark for that; this is good enough for now.
18668
18669 2011-05-21  Bruno Haible  <bruno@clisp.org>
18670
18671         strerror_r: Fix comments.
18672         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
18673
18674 2011-05-21  Bruno Haible  <bruno@clisp.org>
18675
18676         relocatable-prog-wrapper: Fix possible link error.
18677         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
18678         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
18679         (gl_FUNC_SETENV): ... to here.
18680         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
18681         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
18682
18683 2011-05-21  Bruno Haible  <bruno@clisp.org>
18684
18685         relocatable-prog-wrapper: Assume strerror() exists.
18686         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
18687         m4/strerror.m4.
18688         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
18689         * lib/relocwrapper.c: Remove mention of strerror module.
18690         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
18691         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
18692         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
18693         C macro.
18694
18695 2011-05-21  Bruno Haible  <bruno@clisp.org>
18696
18697         select: Simplify replacement idiom.
18698         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
18699         Win32 platforms.
18700         * lib/sys_select.in.h (select): Simplify accordingly.
18701         * modules/select (Depends-on): Likewise.
18702
18703 2011-05-21  Bruno Haible  <bruno@clisp.org>
18704
18705         mkdir-p: Simplify autoconf macro.
18706         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
18707         gl_FUNC_LCHOWN.
18708
18709 2011-05-21  Eric Blake  <eblake@redhat.com>
18710
18711         strerror_r: avoid clobbering strerror on cygwin
18712         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
18713         fall back instead to sys_errlist.
18714         * modules/strerror (configure.ac): Add witness.
18715         * tests/test-strerror_r.c (main): Enhance test.
18716         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
18717         * tests/test-perror2.c (main): Free memory before exit.
18718
18719 2011-05-21  Bruno Haible  <bruno@clisp.org>
18720
18721         mkdtemp: Use gnulib naming conventions.
18722         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
18723         * modules/mkdtemp (configure.ac): Update.
18724
18725 2011-05-20  Eric Blake  <eblake@redhat.com>
18726
18727         strerror_r: avoid corrupting errno on Solaris
18728         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
18729         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
18730
18731         strerror_r: avoid compiler warning
18732         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
18733
18734         strerror_r: simplify AIX code
18735         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
18736
18737         test-perror: avoid spurious failure on FreeBSD
18738         * modules/perror-tests (Depends-on): Add strerror, now that
18739         strerror_r no longer pulls it in.
18740
18741 2011-05-20  Bruno Haible  <bruno@clisp.org>
18742
18743         strerror_r-posix: Remove unused dependencies.
18744         * modules/strerror_r-posix (Depends-on): Remove strerror.
18745         Reported by Eric Blake.
18746
18747 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
18748
18749         intprops: remove assumption about A|B representation
18750         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
18751         is a valid integer if both A and B are.  Although this is true for
18752         all known practical hosts, the C standard doesn't guarantee it,
18753         and the code need not assume it.  Also, this change may work around
18754         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
18755         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
18756
18757 2011-05-20  Eric Blake  <eblake@redhat.com>
18758
18759         perror: work around FreeBSD bug
18760         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
18761         is broken.  Move AC_LIBOBJ...
18762         * modules/perror (configure.ac): Here.
18763         * doc/posix-functions/perror.texi (perror): Document this.
18764         * tests/test-perror2.c (main): Enhance test.
18765
18766         test-perror: check for strerror interactions
18767         * tests/macros.h (STREQ): Add macro.
18768         * modules/perror-tests (Files): Add second test.
18769         * tests/test-perror2.c (main): New file.
18770         * doc/posix-functions/perror.texi (perror): Document glibc bug.
18771
18772         test-perror: rewrite to use init script
18773         * modules/perror-tests (Files): Add init.sh.
18774         * tests/test-perror.sh: Use temporary directory.
18775
18776 2011-05-20  Jim Meyering  <meyering@redhat.com>
18777
18778         maint: replace misused "a" with "an"
18779         * doc/intprops.texi: "a integer"
18780         * doc/regex.texi: "a explanation"
18781         * lib/alignof.h: "a object"
18782         * lib/argmatch.h: "a explanation"
18783         * lib/argp-help.c: "a option" and "a OPTION_DOC"
18784         * lib/stdint.in.h: "a integer"
18785         * lib/userspec.c: "a owner"
18786         * doc/gnulib.texi: Fix "a idea", and reword.
18787
18788 2011-05-19  Jim Meyering  <meyering@redhat.com>
18789
18790         maint: correct misuse of "a" and "an"
18791         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
18792         * lib/argp-help.c: "an docum...": s/an/a/
18793         * lib/argp-parse.c: "An vector": s/An/A/
18794         * lib/execute.c: "an native": s/an/a/
18795         * lib/spawn-pipe.c: Likewise.
18796         * lib/gc.h: "an Gc_rc": s/an/a/
18797         * lib/unigbrk.in.h: "an grapheme": s/an/a/
18798         * lib/fts.c: "an stat.st_dev": s/an/a/
18799
18800 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
18801
18802         intprops-tests: work around HP-UX 11.23 cc bug with constants
18803         * tests/test-intprops.c (VERIFY): New macro.
18804         (main): Use it, instead of verify, to work around the compiler bug; see
18805         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
18806
18807         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
18808         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
18809         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
18810         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
18811         (_GL_REMAINDER_OVERFLOW): Use it.
18812
18813         intprops-tests: revert unsigned part of previous change
18814         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
18815         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
18816         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
18817         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
18818
18819 2011-05-19  Bruno Haible  <bruno@clisp.org>
18820
18821         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
18822         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
18823         strerror_r() returned without filling the buffer.
18824         Reported by Eric Blake.
18825
18826 2011-05-19  Eric Blake  <eblake@redhat.com>
18827
18828         strerror_r: guarantee unchanged errno
18829         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
18830         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
18831         failure.
18832         * tests/test-strerror_r.c (main): Enhance test.
18833
18834 2011-05-19  Bruno Haible  <bruno@clisp.org>
18835
18836         strerror_r: Reorder #if blocks.
18837         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
18838         for consistency with the previous commit.
18839
18840 2011-05-19  Bruno Haible  <bruno@clisp.org>
18841
18842         perror: Avoid clobbering the strerror buffer when possible.
18843         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
18844         * lib/strerror.c: Include it.
18845         * modules/strerror (Files): Add lib/strerror-impl.h.
18846         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
18847         (my_strerror): New function, defined through lib/strerror-impl.h.
18848         (perror): Use it instead of strerror.
18849         * modules/perror (Files): Add lib/strerror-impl.h.
18850         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
18851
18852 2011-05-19  Eric Blake  <eblake@redhat.com>
18853
18854         strerror_r: fix on newer cygwin
18855         * lib/strerror_r.c (strerror_r): Cygwin now has
18856         __xpg_strerror_r, use it.
18857
18858 2011-05-19  Bruno Haible  <bruno@clisp.org>
18859
18860         strerror_r: Avoid clobbering the strerror buffer when possible.
18861         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
18862         (sys_nerr, sys_errlist): New declarations.
18863         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
18864         HP-UX, native Win32, IRIX, and 32-bit Solaris.
18865         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
18866
18867 2011-05-19  Bruno Haible  <bruno@clisp.org>
18868
18869         strerror_r: Fix test failure on mingw.
18870         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
18871         EXTEND_STRERROR_R.
18872         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
18873         macros from errno.in.h instead.
18874
18875 2011-05-19  Eric Blake  <eblake@redhat.com>
18876
18877         strerror: relax test for Solaris
18878         * tests/test-strerror.c (main): Permit Solaris behavior.
18879         * tests/test-strerror_r.c (main): Likewise.
18880
18881         strerror: enforce POSIX ruling on strerror(0)
18882         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
18883         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
18884         * lib/strerror_r.c (rpl_strerror_r): Work around it.
18885         * doc/posix-functions/strerror.texi (strerror): Document it.
18886         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
18887         * tests/test-strerror.c (main): Strengthen test.
18888         * tests/test-strerror_r.c (main): Likewise.
18889
18890 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
18891
18892         intprop-tests: port to older and more-pedantic compilers
18893         * modules/intprops-tests (Files): Add tests/macros.h.
18894         * tests/test-intprops.c: Include macros.h.
18895         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
18896         it's no longer documented to expand to an integer constant expression.
18897         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
18898         argument is floating point, as it's no longer documented to expand
18899         to an integer constant expression in that case.
18900         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
18901         compiler bugs reported by Bruno Haible.  See
18902         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
18903         (U0, U1): New constants, to work around the same bugs.  Also,
18904         in tests, use e.g., "(unsigned int) 39" rather than "39u".
18905
18906         intprops: work around C compiler bugs
18907         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
18908         bug in Sun C 5.11 2010/08/13 and other compilers; see
18909         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
18910
18911         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
18912         * doc/intprops.texi (Integer Type Determination): Fix
18913         documentation for TYPE_IS_INTEGER: it returns an constant
18914         expression, not an integer constant expression.  Fix doc for
18915         TYPE_SIGNED: it returns an integer constant expression only if its
18916         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
18917         hardly worth documented that way....)
18918
18919 2011-05-18  Bruno Haible  <bruno@clisp.org>
18920
18921         strerror_r: Avoid clobbering the strerror buffer when possible.
18922         * lib/strerror_r.c (strerror_r): Merge the three implementations.
18923         Handle gnulib defined errno values here. When strerror() returns NULL
18924         or an empty string, return EINVAL.
18925         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
18926         gnulib defined errno values here.
18927         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
18928
18929 2011-05-18  Eric Blake  <eblake@redhat.com>
18930
18931         fnmatch: avoid compiler warning
18932         * lib/fnmatch_loop.c (FCT): Use correct type.
18933         Reported by Matthias Bolte.
18934
18935 2011-05-13  Jim Meyering  <meyering@redhat.com>
18936
18937         maint.mk: three new prohibit_<HDR>_without_use rules
18938         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
18939         (sc_prohibit_stdio-safer_without_use): Likewise.
18940         (sc_prohibit_xfreopen_without_use): Likewise.
18941
18942 2011-05-17  Jim Meyering  <meyering@redhat.com>
18943
18944         announce-gen: fail if the NEWS delta is empty
18945         If there's nothing noteworthy in NEWS, then either you forgot
18946         or you shouldn't be releasing.
18947         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
18948
18949 2011-05-17  Pádraig Brady <P@draigBrady.com>
18950
18951         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
18952         reserved symbols starting with double underscore from the check.
18953
18954 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
18955
18956         intprops: add doc
18957         * doc/intprops.texi: New file, documenting intprops.
18958         * doc/gnulib.texi (Particular Modules): Include it.
18959
18960         verify: add doc to gnulib manual and fix example
18961         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
18962         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
18963         (Compile-time Assertions): Fix example so it can't overflow.
18964
18965 2011-05-17  Jim Meyering  <meyering@redhat.com>
18966
18967         warnings.m4: don't usurp save_CPPFLAGS variable name
18968         * m4/warnings.m4: Prefix local temporary variable name with gl_.
18969
18970         doc: fix typo
18971         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
18972
18973 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
18974             Bruno Haible  <bruno@clisp.org>
18975
18976         doc: Tweak recent change.
18977         * README (Portability guidelines): Tweak new text.
18978         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
18979         Interix 6.1.
18980
18981 2011-05-16  Eric Blake  <eblake@redhat.com>
18982
18983         inttypes: avoid autoconf warning
18984         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
18985         * m4/stdint.m4 (gl_STDINT_H): Likewise.
18986
18987 2011-05-16  Sam Steingold <sds@gnu.org>
18988         and Eric Blake  <eblake@redhat.com>
18989
18990         vc-list-files: accept multiple directory operands
18991         * build-aux/vc-list-files: Iterate over all remaining operands.
18992
18993 2011-05-16  Bruno Haible  <bruno@clisp.org>
18994
18995         Fix confusion regarding deprecated modules.
18996         * modules/calloc (Status, Notice): Mark module as deprecated, not
18997         obsolete.
18998         * modules/fnmatch-posix (Status, Notice): Likewise.
18999         * modules/getdate (Status, Notice): Likewise.
19000         * modules/getopt (Status, Notice): Likewise.
19001         * modules/malloc (Status, Notice): Likewise.
19002         * modules/pipe (Status, Notice): Likewise.
19003         * modules/realloc (Status, Notice): Likewise.
19004         * modules/rename-dest-slash (Status, Notice): Likewise.
19005         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
19006         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
19007         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
19008         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
19009         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
19010
19011 2011-05-16  Bruno Haible  <bruno@clisp.org>
19012
19013         doc: List the target platforms.
19014         * doc/gnulib-intro.texi (Target Platforms): New section.
19015         * doc/gnulib.texi (Introduction): Update menu.
19016         * README (Portability guidelines): Refer to the new section. Update
19017         statement about oldest supported environment. Remove rationale why
19018         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
19019         unportable C89 function.
19020         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
19021         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
19022
19023 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
19024
19025         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
19026
19027 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
19028
19029         intprops-tests: new module
19030         * modules/intprops-tests, tests/test-intprops.c: New files.
19031
19032         intprops: add safe, portable integer overflow checking
19033         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
19034         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
19035         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
19036         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
19037         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
19038         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
19039         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
19040         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
19041         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
19042         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
19043         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
19044
19045 2011-05-12  James Youngman  <jay@gnu.org>
19046
19047         Add a test for glibc's Bugzilla bug #12378.
19048         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
19049         doesn't allow the literal matching of a lone "[" (which is
19050         required by POSIX).
19051         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
19052
19053 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
19054
19055         Sync glibc change fixing Bugzilla bug #12378.
19056         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
19057         beginning and fall back to matching as normal character if the
19058         string ends before the matching ']' is found.  This is what POSIX
19059         requires.
19060
19061 2011-05-13  Eric Blake  <eblake@redhat.com>
19062
19063         getcwd-lgpl: relax test for FreeBSD
19064         * doc/posix-functions/getcwd.texi (getcwd): Document portability
19065         issue.
19066         * tests/test-getcwd-lgpl.c (main): Relax test.
19067         Reported by Matthias Bolte.
19068
19069 2011-05-11  Eric Blake  <eblake@redhat.com>
19070
19071         test-fflush: silence compiler warning
19072         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
19073
19074 2011-05-11  Bruno Haible  <bruno@clisp.org>
19075
19076         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
19077         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
19078         * modules/canonicalize (Depends-on): Add 'nocrash'.
19079         * modules/canonicalize-lgpl (Depends-on): Likewise.
19080         * doc/posix-functions/realpath.texi: Update platforms list.
19081         Reported by Ryan Schmidt <ryandesign@macports.org>.
19082
19083 2011-05-11  Bruno Haible  <bruno@clisp.org>
19084
19085         group-member: Declare function in <unistd.h>.
19086         * lib/unistd.in.h (group_member): New declaration.
19087         * lib/group-member.h: Remove file.
19088         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
19089         * tests/test-unistd-c++.cc: Check signature of group_member.
19090         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
19091         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
19092         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
19093         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
19094         HAVE_GROUP_MEMBER.
19095         * modules/group-member (Files): Remove lib/group-member.h.
19096         (Depends-on): Add unistd. Specify conditions.
19097         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
19098         (Include): Change to <unistd.h>.
19099         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
19100         HAVE_GROUP_MEMBER.
19101         * NEWS: Mention the change.
19102         * lib/euidaccess.c: Don't include group-member.h.
19103
19104 2011-05-11  Bruno Haible  <bruno@clisp.org>
19105
19106         group-member: Document module.
19107         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
19108         module.
19109
19110 2011-05-11  Bruno Haible  <bruno@clisp.org>
19111
19112         fclose: Fix mistake earlier today.
19113         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
19114
19115 2011-05-11  Eric Blake  <eblake@redhat.com>
19116
19117         fclose: preserve fflush errors
19118         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
19119         Reported by Jim Meyering.
19120
19121         bootstrap: support a prereq of 'rpcgen -' on RHEL5
19122         * build-aux/bootstrap (check_versions): When no specific version
19123         is required, merely check that the app produces an exit status
19124         that indicates its existence.
19125
19126         maint.mk: drop redundant check
19127         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
19128         the same but better.
19129
19130 2011-05-11  Bruno Haible  <bruno@clisp.org>
19131
19132         fclose: Fix possible link error.
19133         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
19134         unregister_shadow_fd. Improve comments.
19135         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
19136         Eric Blake.
19137
19138 2011-05-11  Jim Meyering  <meyering@redhat.com>
19139
19140         maint.mk: improve "can not" detection and generalize rule name
19141         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
19142         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
19143         Use the same technique as in sc_prohibit_doubled_word, so that
19144         we recognize "can not" also when the words are separated by a newline.
19145         Suggested by Eric Blake.
19146         (perl_filename_lineno_text_): Define.  Factored out of...
19147         (prohibit_doubled_word_): ...here.  Use the new definition.
19148         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
19149         (prohibit_undesirable_word_seq_RE_): New overridable variable.
19150         (ignore_undesirable_word_sequence_RE_): New overridable variable.
19151
19152 2011-05-10  Eric Blake  <eblake@redhat.com>
19153
19154         fclose: avoid double close race when possible
19155         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
19156         all but WINDOWS_SOCKETS.
19157
19158 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
19159
19160         openat: correct new comment
19161         * lib/openat-proc.c (openat_proc_name): Correct the comment.
19162
19163 2011-05-10  Jim Meyering  <meyering@redhat.com>
19164
19165         openat: add comments
19166         * lib/openat-proc.c (openat_proc_name): Add comments,
19167         mostly from Eric Blake.
19168
19169 2011-05-09  Eric Blake  <eblake@redhat.com>
19170
19171         openat: reduce syscalls in first probe of /proc
19172         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
19173         be a directory.  Simplify the probe for .. bugs.
19174         * modules/openat (Depends-on): Drop same-inode.
19175         Reported by Bastien ROUCARIES.
19176
19177 2011-05-09  Jim Meyering  <meyering@redhat.com>
19178
19179         maint.mk: change semantics/name of tight_scope variables
19180         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
19181         Rename variables to align with semantics that make them more useful.
19182
19183         maint.mk: tweak new rule's name not to impinge
19184         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
19185         (sc_tight_scope): Use new rule name rather than $@-0.
19186
19187         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
19188         * top/maint.mk (sc_tight_scope): New rule.
19189         (sc_tight_scope-0): New rule, ifdef'd out.
19190         (_gl_TS_dir): Default.
19191         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
19192         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
19193
19194 2011-05-09  Simon Josefsson  <simon@josefsson.org>
19195
19196         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
19197         Haible <bruno@clisp.org>.
19198
19199 2011-05-08  Bruno Haible  <bruno@clisp.org>
19200
19201         Comments.
19202         * m4/isnanf.m4: Add comment.
19203         * m4/isnanl.m4: Likewise.
19204
19205 2011-05-08  Bruno Haible  <bruno@clisp.org>
19206
19207         glob: Remove obsolete macro.
19208         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
19209
19210 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
19211
19212         intprops: Sun C 5.11 supports __typeof__
19213         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
19214         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
19215         which is new.
19216         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
19217
19218         intprops: switch to usual gnulib indenting and naming
19219         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
19220         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
19221
19222         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
19223
19224 2011-05-08  Jim Meyering  <meyering@redhat.com>
19225
19226         maint.mk: suppress "Entering/Leaving directory" diag in announcement
19227         * top/maint.mk (release-prep): Use make's --no-print-directory
19228         option when generating the announcement.  This eliminates the
19229         pesky "make[2]: Entering/Leaving directory" diagnostics in the
19230         generated announcement template.
19231
19232 2011-05-08  Bruno Haible  <bruno@clisp.org>
19233
19234         tzset: Fix gettimeofday wrapper on Solaris 2.6.
19235         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
19236         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
19237
19238 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
19239
19240         ignore-value, verify: Omit include files from lib_SOURCES.
19241         * modules/ignore-value, modules/verify (Makefile.am):
19242         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
19243         that leads Automake to duplicate use of am__objects_... variables
19244         in Makefile.in.  See
19245         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
19246
19247 2011-05-07  Bruno Haible  <bruno@clisp.org>
19248
19249         fclose: Simplify autoconf macro.
19250         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
19251         defined.
19252
19253 2011-05-07  Bruno Haible  <bruno@clisp.org>
19254
19255         canonicalize-lgpl: Fix autoconf macro ordering bug.
19256         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
19257         gl_STDLIB_H_DEFAULTS.
19258
19259 2011-05-06  Eric Blake  <eblake@redhat.com>
19260
19261         maintainer-makefile: make sc_po_check easier to tune
19262         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
19263         to probe for strings, such as an alternate location for gnulib.
19264
19265         fclose: guarantee behavior on seekable stdin
19266         * modules/fclose (Depends-on): Add fflush.
19267         * doc/posix-functions/fclose.texi (fclose): Document this.
19268         * tests/test-fclose.c (main): Make test for this unconditional.
19269
19270 2011-05-06  Bruno Haible  <bruno@clisp.org>
19271
19272         fflush, fpurge: Relicense under LGPLv2+.
19273         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
19274         * modules/fpurge (License): Likewise.
19275         With permission from Eric Blake and Jim Meyering.
19276         Suggested by Eric Blake.
19277
19278 2011-05-06  Karl Berry  <karl@gnu.org>
19279
19280         * MODULES.html.sh (func_all_modules): remove exit.
19281
19282 2011-05-06  Jim Meyering  <meyering@redhat.com>
19283
19284         maint.mk: use info-gnu@ as the default only for a stable release
19285         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
19286         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
19287         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
19288         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
19289
19290 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
19291
19292         assert-h: new module, which supports C1X-style static_assert
19293         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
19294         * lib/verify.h: Revamp so that this can be copied into assert.h,
19295         while retaining the ability to use it standalone as before.
19296         Rename private identifiers so as not to encroach on the
19297         standard C namespace, since this is now used by assert.h.
19298         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
19299         the old verify_true.
19300         (_GL_VERIFY_TRUE): New macro, with much of the contents of
19301         the old verify_true.  Use _GL_VERIFY_TYPE.
19302         (_GL_VERIFY): New macro, with much of the contents of the old verify.
19303         (static_assert): New macro, if _GL_STATIC_ASSERT_H
19304         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
19305         defined when this file is copied into the replacement assert.h.
19306         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
19307         and _Static_assert is not built in.
19308         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
19309         defined, and use the new macros mentioned above.
19310         * doc/posix-headers/assert.texi: Document this.
19311
19312 2011-05-05  Bruno Haible  <bruno@clisp.org>
19313
19314         fclose, fflush: Respect rules for use of AC_LIBOBJ.
19315         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
19316         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
19317         gl_REPLACE_FCLOSE here.
19318         * modules/fflush (Depends-on): Remove fclose.
19319         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
19320         combination with module 'fclose'.
19321
19322 2011-05-05  Bruno Haible  <bruno@clisp.org>
19323
19324         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
19325         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
19326         gl_FUNC_FFLUSH.
19327         (gl_FUNC_FFLUSH): Use it.
19328         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
19329         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
19330         gl_REPLACE_FSEEKO here.
19331
19332 2011-05-05  Bruno Haible  <bruno@clisp.org>
19333
19334         tzset: Relicense under LGPL.
19335         * modules/tzset (License): Change to LGPL.
19336         No agreement needed; it's a no-op.
19337
19338         strtoimax, strtoumax: Relicense under LGPL.
19339         * modules/strtoimax (License): Change to LGPL.
19340         * modules/strtoumax (License): Likewise.
19341         With permission from Jim Meyering, Paul Eggert:
19342         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
19343         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
19344
19345         getgroups: Relicense under LGPL.
19346         * modules/getgroups (License): Change to LGPL.
19347         With permission from Jim Meyering, Paul Eggert, Eric Blake:
19348         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
19349         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
19350         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
19351
19352         nanosleep: Relicense under LGPL.
19353         * modules/nanosleep (License): Change to LGPL.
19354         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
19355         Haible:
19356         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
19357         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
19358         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
19359         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
19360
19361         futimens: Relicense under LGPL.
19362         * modules/futimens (License): Change to LGPL.
19363         With permission from Eric Blake:
19364         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
19365
19366         fflush: Relicense under LGPL.
19367         * modules/fflush (License): Change to LGPL.
19368         With permission from Eric Blake, Bruno Haible, Jim Meyering:
19369         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
19370         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
19371         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
19372
19373         tmpfile: Relicense under LGPL.
19374         * modules/tmpfile (License): Change to LGPL.
19375         With permission from Ben Pfaff:
19376         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
19377
19378         isfinite: Relicense under LGPL.
19379         * modules/isfinite (License): Change to LGPL.
19380         With permission from Ben Pfaff, Bruno Haible:
19381         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
19382         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
19383
19384         acosl..tanl: Relicense under LGPL.
19385         * modules/acosl (License): Change to LGPL.
19386         * modules/asinl (License): Likewise.
19387         * modules/atanl (License): Likewise.
19388         * modules/cosl (License): Likewise.
19389         * modules/expl (License): Likewise.
19390         * modules/logl (License): Likewise.
19391         * modules/sinl (License): Likewise.
19392         * modules/sqrtl (License): Likewise.
19393         * modules/tanl (License): Likewise.
19394         Source code originally from glibc and Paolo Bonzini. Agreements:
19395         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
19396         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
19397
19398 2011-05-05  Bruno Haible  <bruno@clisp.org>
19399
19400         signal: Define sighandler_t.
19401         * lib/signal.in.h (sighandler_t): New type.
19402         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
19403         whether sighandler_t is defined.
19404         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
19405         * modules/signal (Depends-on): Add extensions.
19406         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
19407         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
19408         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
19409
19410 2011-05-05  Eric Blake  <eblake@redhat.com>
19411
19412         maint: remove useless REPLACE_*_H macros
19413         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
19414         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
19415         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
19416         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
19417         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
19418         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
19419         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
19420         * m4/btowc.m4: Update callers.
19421         * m4/dirfd.m4: Likewise.
19422         * m4/duplocale.m4: Likewise.
19423         * m4/fchdir.m4: Likewise.
19424         * m4/fdopendir.m4: Likewise.
19425         * m4/inet_ntop.m4: Likewise.
19426         * m4/inet_pton.m4: Likewise.
19427         * m4/ioctl.m4: Likewise.
19428         * m4/mbrlen.m4: Likewise.
19429         * m4/mbrtowc.m4: Likewise.
19430         * m4/mbsinit.m4: Likewise.
19431         * m4/mbsnrtowcs.m4: Likewise.
19432         * m4/mbsrtowcs.m4: Likewise.
19433         * m4/poll.m4: Likewise.
19434         * m4/setlocale.m4: Likewise.
19435         * m4/wcrtomb.m4: Likewise.
19436         * m4/wcsnrtombs.m4: Likewise.
19437         * m4/wcsrtombs.m4: Likewise.
19438         * m4/wctob.m4: Likewise.
19439         * m4/wcwidth.m4: Likewise.
19440         * modules/posix_spawn: Likewise.
19441         * modules/posix_spawn_file_actions_addclose: Likewise.
19442         * modules/posix_spawn_file_actions_adddup2: Likewise.
19443         * modules/posix_spawn_file_actions_addopen: Likewise.
19444         * modules/posix_spawn_file_actions_destroy: Likewise.
19445         * modules/posix_spawn_file_actions_init: Likewise.
19446         * modules/posix_spawnattr_destroy: Likewise.
19447         * modules/posix_spawnattr_getflags: Likewise.
19448         * modules/posix_spawnattr_getpgroup: Likewise.
19449         * modules/posix_spawnattr_getschedparam: Likewise.
19450         * modules/posix_spawnattr_getschedpolicy: Likewise.
19451         * modules/posix_spawnattr_getsigdefault: Likewise.
19452         * modules/posix_spawnattr_getsigmask: Likewise.
19453         * modules/posix_spawnattr_init: Likewise.
19454         * modules/posix_spawnattr_setflags: Likewise.
19455         * modules/posix_spawnattr_setpgroup: Likewise.
19456         * modules/posix_spawnattr_setschedparam: Likewise.
19457         * modules/posix_spawnattr_setschedpolicy: Likewise.
19458         * modules/posix_spawnattr_setsigdefault: Likewise.
19459         * modules/posix_spawnattr_setsigmask: Likewise.
19460         * modules/posix_spawnp: Likewise.
19461
19462 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
19463
19464         Add option to do-release-commit-and-tag to specify branch.
19465         * build-aux/do-release-commit-and-tag: Add --branch.
19466
19467 2011-05-03  Bruno Haible  <bruno@clisp.org>
19468
19469         Avoid unnecessary compilation units, through conditional dependencies.
19470         * modules/accept (Depends-on): Add conditions to the dependencies.
19471         * modules/acosl (Depends-on): Likewise.
19472         * modules/argz (Depends-on): Likewise.
19473         * modules/asinl (Depends-on): Likewise.
19474         * modules/atanl (Depends-on): Likewise.
19475         * modules/atoll (Depends-on): Likewise.
19476         * modules/bind (Depends-on): Likewise.
19477         * modules/btowc (Depends-on): Likewise.
19478         * modules/canonicalize-lgpl (Depends-on): Likewise.
19479         * modules/ceil (Depends-on): Likewise.
19480         * modules/ceilf (Depends-on): Likewise.
19481         * modules/ceill (Depends-on): Likewise.
19482         * modules/chdir-long (Depends-on): Likewise.
19483         * modules/chown (Depends-on): Likewise.
19484         * modules/close (Depends-on): Likewise.
19485         * modules/connect (Depends-on): Likewise.
19486         * modules/cosl (Depends-on): Likewise.
19487         * modules/dirfd (Depends-on): Likewise.
19488         * modules/dprintf (Depends-on): Likewise.
19489         * modules/dprintf-posix (Depends-on): Likewise.
19490         * modules/error (Depends-on): Likewise.
19491         * modules/euidaccess (Depends-on): Likewise.
19492         * modules/expl (Depends-on): Likewise.
19493         * modules/faccessat (Depends-on): Likewise.
19494         * modules/fchdir (Depends-on): Likewise.
19495         * modules/fclose (Depends-on): Likewise.
19496         * modules/fcntl (Depends-on): Likewise.
19497         * modules/fdopendir (Depends-on): Likewise.
19498         * modules/fflush (Depends-on): Likewise.
19499         * modules/floor (Depends-on): Likewise.
19500         * modules/floorf (Depends-on): Likewise.
19501         * modules/floorl (Depends-on): Likewise.
19502         * modules/fnmatch (Depends-on): Likewise.
19503         * modules/fopen (Depends-on): Likewise.
19504         * modules/fprintf-posix (Depends-on): Likewise.
19505         * modules/frexp (Depends-on): Likewise.
19506         * modules/frexp-nolibm (Depends-on): Likewise.
19507         * modules/frexpl (Depends-on): Likewise.
19508         * modules/frexpl-nolibm (Depends-on): Likewise.
19509         * modules/fseek (Depends-on): Likewise.
19510         * modules/fsusage (Depends-on): Likewise.
19511         * modules/ftell (Depends-on): Likewise.
19512         * modules/ftello (Depends-on): Likewise.
19513         * modules/futimens (Depends-on): Likewise.
19514         * modules/getcwd (Depends-on): Likewise.
19515         * modules/getcwd-lgpl (Depends-on): Likewise.
19516         * modules/getdelim (Depends-on): Likewise.
19517         * modules/getdomainname (Depends-on): Likewise.
19518         * modules/getgroups (Depends-on): Likewise.
19519         * modules/gethostname (Depends-on): Likewise.
19520         * modules/getline (Depends-on): Likewise.
19521         * modules/getlogin_r (Depends-on): Likewise.
19522         * modules/getopt-posix (Depends-on): Likewise.
19523         * modules/getpeername (Depends-on): Likewise.
19524         * modules/getsockname (Depends-on): Likewise.
19525         * modules/getsockopt (Depends-on): Likewise.
19526         * modules/getsubopt (Depends-on): Likewise.
19527         * modules/getusershell (Depends-on): Likewise.
19528         * modules/glob (Depends-on): Likewise.
19529         * modules/grantpt (Depends-on): Likewise.
19530         * modules/iconv_open (Depends-on): Likewise.
19531         * modules/iconv_open-utf (Depends-on): Likewise.
19532         * modules/inet_ntop (Depends-on): Likewise.
19533         * modules/inet_pton (Depends-on): Likewise.
19534         * modules/ioctl (Depends-on): Likewise.
19535         * modules/isapipe (Depends-on): Likewise.
19536         * modules/isfinite (Depends-on): Likewise.
19537         * modules/isinf (Depends-on): Likewise.
19538         * modules/lchown (Depends-on): Likewise.
19539         * modules/ldexpl (Depends-on): Likewise.
19540         * modules/link (Depends-on): Likewise.
19541         * modules/linkat (Depends-on): Likewise.
19542         * modules/listen (Depends-on): Likewise.
19543         * modules/logl (Depends-on): Likewise.
19544         * modules/lstat (Depends-on): Likewise.
19545         * modules/mbrlen (Depends-on): Likewise.
19546         * modules/mbrtowc (Depends-on): Likewise.
19547         * modules/mbsinit (Depends-on): Likewise.
19548         * modules/mbsnrtowcs (Depends-on): Likewise.
19549         * modules/mbsrtowcs (Depends-on): Likewise.
19550         * modules/mbtowc (Depends-on): Likewise.
19551         * modules/memcmp (Depends-on): Likewise.
19552         * modules/mkdir (Depends-on): Likewise.
19553         * modules/mkdtemp (Depends-on): Likewise.
19554         * modules/mkfifo (Depends-on): Likewise.
19555         * modules/mkfifoat (Depends-on): Likewise.
19556         * modules/mknod (Depends-on): Likewise.
19557         * modules/mkostemp (Depends-on): Likewise.
19558         * modules/mkostemps (Depends-on): Likewise.
19559         * modules/mkstemp (Depends-on): Likewise.
19560         * modules/mkstemps (Depends-on): Likewise.
19561         * modules/mktime (Depends-on): Likewise.
19562         * modules/nanosleep (Depends-on): Likewise.
19563         * modules/open (Depends-on): Likewise.
19564         * modules/openat (Depends-on): Likewise.
19565         * modules/perror (Depends-on): Likewise.
19566         * modules/poll (Depends-on): Likewise.
19567         * modules/popen (Depends-on): Likewise.
19568         * modules/posix_spawn (Depends-on): Likewise.
19569         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
19570         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
19571         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
19572         * modules/posix_spawnp (Depends-on): Likewise.
19573         * modules/pread (Depends-on): Likewise.
19574         * modules/printf-posix (Depends-on): Likewise.
19575         * modules/ptsname (Depends-on): Likewise.
19576         * modules/putenv (Depends-on): Likewise.
19577         * modules/pwrite (Depends-on): Likewise.
19578         * modules/readline (Depends-on): Likewise.
19579         * modules/readlink (Depends-on): Likewise.
19580         * modules/readlinkat (Depends-on): Likewise.
19581         * modules/recv (Depends-on): Likewise.
19582         * modules/recvfrom (Depends-on): Likewise.
19583         * modules/regex (Depends-on): Likewise.
19584         * modules/remove (Depends-on): Likewise.
19585         * modules/rename (Depends-on): Likewise.
19586         * modules/renameat (Depends-on): Likewise.
19587         * modules/rmdir (Depends-on): Likewise.
19588         * modules/round (Depends-on): Likewise.
19589         * modules/roundf (Depends-on): Likewise.
19590         * modules/roundl (Depends-on): Likewise.
19591         * modules/rpmatch (Depends-on): Likewise.
19592         * modules/select (Depends-on): Likewise.
19593         * modules/send (Depends-on): Likewise.
19594         * modules/sendto (Depends-on): Likewise.
19595         * modules/setenv (Depends-on): Likewise.
19596         * modules/setlocale (Depends-on): Likewise.
19597         * modules/setsockopt (Depends-on): Likewise.
19598         * modules/shutdown (Depends-on): Likewise.
19599         * modules/sigaction (Depends-on): Likewise.
19600         * modules/signbit (Depends-on): Likewise.
19601         * modules/sigprocmask (Depends-on): Likewise.
19602         * modules/sinl (Depends-on): Likewise.
19603         * modules/sleep (Depends-on): Likewise.
19604         * modules/snprintf (Depends-on): Likewise.
19605         * modules/snprintf-posix (Depends-on): Likewise.
19606         * modules/socket (Depends-on): Likewise.
19607         * modules/sprintf-posix (Depends-on): Likewise.
19608         * modules/sqrtl (Depends-on): Likewise.
19609         * modules/stat (Depends-on): Likewise.
19610         * modules/strchrnul (Depends-on): Likewise.
19611         * modules/strdup-posix (Depends-on): Likewise.
19612         * modules/strerror (Depends-on): Likewise.
19613         * modules/strerror_r-posix (Depends-on): Likewise.
19614         * modules/strndup (Depends-on): Likewise.
19615         * modules/strnlen (Depends-on): Likewise.
19616         * modules/strptime (Depends-on): Likewise.
19617         * modules/strsep (Depends-on): Likewise.
19618         * modules/strsignal (Depends-on): Likewise.
19619         * modules/strstr-simple (Depends-on): Likewise.
19620         * modules/strtod (Depends-on): Likewise.
19621         * modules/strtoimax (Depends-on): Likewise.
19622         * modules/strtok_r (Depends-on): Likewise.
19623         * modules/strtoumax (Depends-on): Likewise.
19624         * modules/symlink (Depends-on): Likewise.
19625         * modules/symlinkat (Depends-on): Likewise.
19626         * modules/tanl (Depends-on): Likewise.
19627         * modules/tcgetsid (Depends-on): Likewise.
19628         * modules/tmpfile (Depends-on): Likewise.
19629         * modules/trunc (Depends-on): Likewise.
19630         * modules/truncf (Depends-on): Likewise.
19631         * modules/truncl (Depends-on): Likewise.
19632         * modules/uname (Depends-on): Likewise.
19633         * modules/unlink (Depends-on): Likewise.
19634         * modules/unlockpt (Depends-on): Likewise.
19635         * modules/unsetenv (Depends-on): Likewise.
19636         * modules/usleep (Depends-on): Likewise.
19637         * modules/utimensat (Depends-on): Likewise.
19638         * modules/vasprintf (Depends-on): Likewise.
19639         * modules/vdprintf (Depends-on): Likewise.
19640         * modules/vdprintf-posix (Depends-on): Likewise.
19641         * modules/vfprintf-posix (Depends-on): Likewise.
19642         * modules/vprintf-posix (Depends-on): Likewise.
19643         * modules/vsnprintf (Depends-on): Likewise.
19644         * modules/vsnprintf-posix (Depends-on): Likewise.
19645         * modules/vsprintf-posix (Depends-on): Likewise.
19646         * modules/wcrtomb (Depends-on): Likewise.
19647         * modules/wcscasecmp (Depends-on): Likewise.
19648         * modules/wcscspn (Depends-on): Likewise.
19649         * modules/wcsdup (Depends-on): Likewise.
19650         * modules/wcsncasecmp (Depends-on): Likewise.
19651         * modules/wcsnrtombs (Depends-on): Likewise.
19652         * modules/wcspbrk (Depends-on): Likewise.
19653         * modules/wcsrtombs (Depends-on): Likewise.
19654         * modules/wcsspn (Depends-on): Likewise.
19655         * modules/wcsstr (Depends-on): Likewise.
19656         * modules/wcstok (Depends-on): Likewise.
19657         * modules/wcswidth (Depends-on): Likewise.
19658         * modules/wctob (Depends-on): Likewise.
19659         * modules/wctomb (Depends-on): Likewise.
19660         * modules/wctype (Depends-on): Likewise.
19661         * modules/wcwidth (Depends-on): Likewise.
19662         * modules/write (Depends-on): Likewise.
19663
19664 2011-05-03  Bruno Haible  <bruno@clisp.org>
19665
19666         Support for conditional dependencies.
19667         * doc/gnulib.texi (Module description): Document the syntax of
19668         conditional dependencies.
19669         * gnulib-tool: New option --conditional-dependencies.
19670         (func_usage): Document it.
19671         (cond_dependencies): New variable.
19672         (func_get_automake_snippet_conditional,
19673         func_get_automake_snippet_unconditional): New functions, extracted from
19674         func_get_automake_snippet.
19675         (func_get_automake_snippet): Use them.
19676         (sed_first_32_chars): New variable.
19677         (func_module_shellfunc_name): New function.
19678         (func_module_shellvar_name): New function.
19679         (func_module_conditional_name): New function.
19680         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
19681         func_cond_module_condition): New functions.
19682         (func_modules_transitive_closure): Add support for conditional
19683         dependencies.
19684         (func_emit_lib_Makefile_am): For a conditional module, enclose the
19685         conditional automake snippet in an automake conditional.
19686         (func_emit_autoconf_snippets): Emit shell functions that contain the
19687         code for conditional modules.
19688         (func_import, func_create_testdir): Update specification.
19689
19690 2011-05-03  Eric Blake  <eblake@redhat.com>
19691
19692         test-getaddrinfo: report error information
19693         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
19694
19695 2011-05-03  Jim Meyering  <meyering@redhat.com>
19696
19697         bootstrap: avoid build failure when $GZIP is set
19698         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
19699         program name.  If defined at all, it is supposed to list gzip options.
19700         Reported by Alan Curry in http://debbugs.gnu.org/8609
19701
19702 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
19703
19704         readme-release: new module with release instructions
19705         * modules/readme-release: New module.
19706         * top/README-release: New file, from coreutils, grep, diffutils.
19707         * MODULES.html.sh (Support for maintaining and releasing): Add it.
19708
19709 2011-05-02  Eric Blake  <eblake@redhat.com>
19710
19711         fflush: also replace fclose when fixing fflush
19712         * modules/fflush (Depends-on): Add fclose.
19713         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
19714         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
19715         memstreams with no backing fd.
19716         * doc/posix-functions/fclose.texi (fclose): Document the use of
19717         fflush module to fix the bug.
19718         * tests/test-fclose.c (main): Relax test when fclose is used in
19719         isolation.
19720
19721         fclose: add some tests
19722         * modules/fclose-tests: New test module.
19723         * tests/test-fclose.c: New file.
19724         * doc/posix-functions/fclose.texi (fclose): Document the bug.
19725
19726         fclose: reduced dependencies
19727         * modules/fclose (Depends-on): Switch from fflush/fseeko to
19728         simpler lseek.
19729         * lib/fclose.c (rpl_fclose): Likewise.
19730         Reported by Simon Josefsson.
19731
19732         exit: drop remaining clients
19733         * modules/argmatch (Depends-on): Replace exit with stdlib.
19734         * modules/copy-file (Depends-on): Likewise.
19735         * modules/execute (Depends-on): Likewise.
19736         * modules/exitfail (Depends-on): Likewise.
19737         * modules/obstack (Depends-on): Likewise.
19738         * modules/pagealign_alloc (Depends-on): Likewise.
19739         * modules/pipe-filter-gi (Depends-on): Likewise.
19740         * modules/pipe-filter-ii (Depends-on): Likewise.
19741         * modules/savewd (Depends-on): Likewise.
19742         * modules/spawn-pipe (Depends-on): Likewise.
19743         * modules/wait-process (Depends-on): Likewise.
19744         * modules/xsetenv (Depends-on): Likewise.
19745         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
19746         * modules/git-merge-changelog (Depends-on): Likewise.
19747         * modules/long-options (Depends-on): Likewise.
19748         * modules/pt_chown (Depends-on): Likewise.
19749         * modules/sysexits (Depends-on): Likewise.
19750
19751         freading: relax license from LGPLv3+ to LGPLv2+
19752         * modules/freading (License): Relax LGPL version.
19753
19754 2011-05-02  Bruno Haible  <bruno@clisp.org>
19755
19756         fchdir: Remove unused dependencies.
19757         * modules/fchdir (Depends-on): Remove include_next.
19758
19759 2011-05-02  Bruno Haible  <bruno@clisp.org>
19760
19761         gnulib-tool: Refactor.
19762         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
19763         from func_emit_autoconf_snippets.
19764         (func_emit_autoconf_snippets): Use it.
19765
19766 2011-05-02  Simon Josefsson  <simon@josefsson.org>
19767
19768         * NEWS: Document removal of 'exit'.
19769         * modules/exit: Remove file.
19770
19771 2011-05-01  Bruno Haible  <bruno@clisp.org>
19772
19773         Update DEPENDENCIES.
19774         * DEPENDENCIES (gettext): Recommend the newest release.
19775         Reported by Simon Josefsson.
19776
19777 2011-05-01  Bruno Haible  <bruno@clisp.org>
19778
19779         gnulib-tool: Reduce code duplication.
19780         * gnulib-tool (func_emit_autoconf_snippets): New function.
19781         (func_import, func_create_testdir): Use it.
19782
19783 2011-04-30  Eric Blake  <eblake@redhat.com>
19784
19785         fclose: don't fail on non-seekable input stream
19786         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
19787         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
19788         since fflush is allowed to fail in that case.
19789
19790 2011-04-30  Bruno Haible  <bruno@clisp.org>
19791
19792         dup3: cleanup
19793         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
19794
19795 2011-04-30  Bruno Haible  <bruno@clisp.org>
19796
19797         netdb: Make it work in C++ mode.
19798         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
19799         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
19800         module.
19801         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
19802         gl_MODULE_INDICATOR_FOR_TESTS.
19803         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
19804         * modules/netdb-c++-tests: New file.
19805         * tests/test-netdb-c++.cc: New file.
19806
19807 2011-04-30  Bruno Haible  <bruno@clisp.org>
19808
19809         New modules 'vfscanf', 'vscanf'.
19810         * modules/vfscanf: New file.
19811         * modules/vscanf: New file.
19812         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
19813         here.
19814         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
19815         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
19816
19817 2011-04-30  Bruno Haible  <bruno@clisp.org>
19818
19819         passfd: Add comments.
19820         * lib/passfd.c: Add comments about platforms.
19821
19822 2011-04-30  Bruno Haible  <bruno@clisp.org>
19823
19824         sys_uio: Make <sys/uio.h> self-contained.
19825         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
19826         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
19827
19828 2011-04-30  Bruno Haible  <bruno@clisp.org>
19829
19830         sys_socket: Ensure 'struct iovec' definition.
19831         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
19832         <sys/socket.h>.
19833         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
19834
19835 2011-04-30  Bruno Haible  <bruno@clisp.org>
19836
19837         sys_uio: Protect definition of 'struct iovec'.
19838         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
19839         it as a C struct.
19840
19841 2011-04-30  Bruno Haible  <bruno@clisp.org>
19842
19843         manywarnings: fix indentation
19844         * m4/manywarnings.m4: Indent by 2 spaces consistently.
19845
19846 2011-04-30  Pádraig Brady <P@draigBrady.com>
19847
19848         manywarnings: add -Wno-missing-field-initializers if needed.
19849         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
19850         option if it's needed to allow initialization with { 0, }
19851
19852 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
19853
19854         announce-gen: cosmetic improvement
19855         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
19856
19857 2011-04-29  Jim Meyering  <meyering@redhat.com>
19858
19859         vc-list-files: indent with spaces, not TABs
19860         * build-aux/vc-list-files: Convert leading TABs to spaces,
19861         to match the style of most other files in gnulib.
19862
19863         announce-gen: indent with spaces, not TABs
19864         * build-aux/announce-gen: Convert all TABs to spaces, to match
19865         the style of most other files in gnulib.
19866
19867 2011-04-29  Eric Blake  <eblake@redhat.com>
19868
19869         quotearg: avoid uninitialized variable use
19870         * lib/quotearg.c (quoting_options_from_style): Initialize
19871         remaining fields, and ensure that custom styles are only used via
19872         quoting_options rather than quoting_style.
19873
19874 2011-04-29  Jim Meyering  <meyering@redhat.com>
19875
19876         maint.mk: remove unused VC-tag variable
19877         * top/maint.mk (VC-tag): Remove unused variable.
19878
19879 2011-04-29  Bruno Haible  <bruno@clisp.org>
19880
19881         netdb: fix gai_strerror replacements
19882         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
19883         * modules/netdb: Substitute it.
19884
19885 2011-04-29  Jim Meyering  <meyering@redhat.com>
19886
19887         test-getcwd.c: avoid new set-but-not-used warning
19888         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
19889         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
19890         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
19891         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
19892
19893         test-hash.c: avoid a new shadowing warning
19894         * tests/test-hash.c (main): Don't shadow "dup".
19895
19896 2011-04-28  Eric Blake  <eblake@redhat.com>
19897
19898         getaddrinfo: fix gai_strerror signature
19899         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
19900         and work around mingw with UNICODE defined.
19901         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
19902         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
19903         * modules/netdb (Makefile.am): Substitute it.
19904         * lib/netdb.in.h (gai_strerror): Declare replacement.
19905         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
19906         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
19907         the fix.
19908
19909         getsockopt: avoid compiler warning
19910         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
19911         Reported by Matthias Bolte.
19912
19913         tests: drop unused link dependency
19914         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
19915         * modules/dirent-safer-tests (Makefile.am): Likewise.
19916         * modules/fdopendir-tests (Makefile.am): Likewise.
19917         * modules/mkfifoat-tests (Makefile.am): Likewise.
19918         * modules/openat-safer-tests (Makefile.am): Likewise.
19919         * modules/openat-tests (Makefile.am): Likewise.
19920         * modules/readlinkat-tests (Makefile.am): Likewise.
19921         * modules/symlinkat-tests (Makefile.am): Likewise.
19922         * modules/linkat-tests (Makefile.am): Likewise.
19923         (Depends-on): Switch to filenamecat-lgpl.
19924         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
19925         LIBINTL.
19926         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
19927         * tests/test-linkat.c (main): Don't require xalloc.
19928
19929         hash, mgetgroups: drop xalloc dependency
19930         * lib/hash.c (includes): Adjust includes.
19931         * lib/mgetgroups.c (includes): Likewise.
19932         (xgetgroups): Move...
19933         * lib/xgetgroups.c: ...to new file.
19934         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
19935         * modules/xgetgroups: New file, split from...
19936         * modules/mgetgroups: ...here.
19937         (Depends-on): Add xalloc-oversized.
19938         * modules/hash (Depends-on): Likewise.
19939         * modules/hash-tests (Depends-on): Drop xalloc.
19940         (test_hash_LDADD): Drop unused library.
19941         * tests/test-hash.c (main): Break xalloc dependency.
19942         (includes): Drop unused include.
19943
19944         xalloc-oversized: new module
19945         * modules/xalloc-oversized: New module.
19946         * modules/xalloc (Depends-on): Add it.
19947         * lib/xalloc.h (xalloc_oversized): Move...
19948         * lib/xalloc-oversized.h: ...into new file.
19949
19950         utimecmp: drop dependency on xmalloc
19951         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
19952         due to memory pressure.
19953         * modules/utimecmp (Depends-on): Drop xalloc.
19954
19955 2011-04-27  Eric Blake  <eblake@redhat.com>
19956
19957         getcwd: fix mingw bugs
19958         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
19959         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
19960         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
19961
19962 2011-04-27  Bruno Haible  <bruno@clisp.org>
19963
19964         mkstemps: Ensure declaration on MacOS X 10.5.
19965         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
19966         * doc/glibc-functions/mkstemps.texi: Document header file problem on
19967         MacOS X.
19968
19969 2011-04-27  Bruno Haible  <bruno@clisp.org>
19970
19971         mkstemp: More documentation.
19972         * doc/posix-functions/mkstemp.texi: Document header file problem on
19973         MacOS X.
19974
19975 2011-04-27  Bruno Haible  <bruno@clisp.org>
19976
19977         mkstemp: Tweak configure message when cross-compiling.
19978         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
19979         result as a guess.
19980
19981 2011-04-27  Bruno Haible  <bruno@clisp.org>
19982
19983         clean-temp: Clarify what it does.
19984         * lib/clean-temp.h: Add more comments.
19985         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
19986         module.
19987         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
19988         * doc/glibc-functions/mkstemps.texi: Likewise.
19989         * doc/glibc-functions/mkostemps.texi: Likewise.
19990
19991 2011-04-27  Eric Blake  <eblake@redhat.com>
19992
19993         fchdir: avoid extra chdir and fix test
19994         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
19995         getcwd-lgpl.
19996         * lib/fchdir.c (get_name): Any absolute name will do; it does not
19997         have to be canonical.
19998         (canonicalize_file_name): Drop unused macro.
19999         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
20000
20001         filenamecat-lgpl: fix licence
20002         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
20003         when it was first created.
20004
20005         linkat, renameat: add missing dependency
20006         * modules/linkat (Depends-on): Require getcwd-lgpl.
20007         * modules/renameat (Depends-on): Likewise.
20008
20009         tests: reduce dependencies
20010         * tests/test-linkat.c (main): Use lighter-weight getcwd.
20011         * tests/test-renameat.c (main): Likewise.
20012         * modules/linkat-tests (Depends-on): Relax dependency.
20013         * modules/renameat-tests (Depends-on): Likewise.
20014         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
20015         dependency explicit.
20016
20017         save-cwd: reduce default dependency
20018         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
20019         * lib/save-cwd.c: Update comments.
20020         * NEWS: Document the semantic change.
20021
20022         getcwd: enhance tests
20023         * tests/test-getcwd-lgpl.c: New file, taken from...
20024         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
20025         repeat long path stress tests from m4 probe.
20026         * modules/getcwd-lgpl-tests: New module.
20027         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
20028         * m4/getcwd-abort-bug.m4: Update comment.
20029         * m4/getcwd-path-max.m4: Likewise.
20030
20031         getcwd-lgpl: new module
20032         * modules/getcwd-lgpl: New module.
20033         * lib/getcwd-lgpl.c: New file.
20034         * doc/posix-functions/getcwd.texi (getcwd): Document it.
20035         * MODULES.html.sh (lacking POSIX:2008): Likewise.
20036         * modules/getcwd (configure.ac): Set C witness.
20037         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
20038
20039         getcwd: tweak comments
20040         * m4/getcwd-abort-bug.m4: Fix comments.
20041         * m4/getcwd-path-max.m4: Likewise.
20042         * m4/getcwd.m4: Likewise.
20043
20044 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
20045         and Eric Blake  <eblake@redhat.com>
20046
20047         mkstemp: replace if system version uses wrong permissions
20048         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
20049         read/write mode bits set in file created by mkstemp.
20050         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
20051
20052 2011-04-27  Eric Blake  <eblake@redhat.com>
20053
20054         passfd: avoid compiler warning
20055         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
20056         Reported by Laine Stump.
20057
20058 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
20059
20060         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
20061         required by the NetBSD (and perhaps other 4.4BSD derived) join.
20062
20063 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
20064         and Eric Blake  <eblake@redhat.com>
20065
20066         mkstemp: mention clean-temp module
20067         * lib/mkstemp.c: Add comment.
20068         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
20069
20070 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
20071
20072         inttypes: also provide default values for 32-bit tests
20073         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
20074         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
20075
20076 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
20077
20078         strtoumax: remove dependency on strtoimax
20079         This is like the strtoull change of yesterday.
20080         * modules/strtoumax (Files): Add lib/strtoimax.c.
20081         (Depends-on): Remove strtoimax and add verify.
20082
20083         inttypes-incomplete: new module
20084         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
20085         all but the PRI* and SCN* parts of gl_INTTYPES_H.
20086         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
20087         of gl_INTTYPES_H.
20088         (gl_INTTYPES_H): Rewrite in terms of these new macros.
20089         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
20090         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
20091         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
20092         * modules/strtoumax, modules/xstrtol (Depends-on):
20093         Depend on inttypes-incomplete, not inttypes.
20094         * modules/inttypes-incomplete: New module, containing the contents
20095         of the old modules/inttypes module, except that the Files: section
20096         omits m4/inttypes-pri.m4, and the configure.ac section invokes
20097         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
20098         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
20099         (Depends-on): Depend only on inttypes-incomplete.
20100         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
20101
20102         inttypes: omit now-redundant strtoimax and strtoumax work
20103         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
20104         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
20105
20106         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
20107         This supports apps that need pointers to strtoimax and strtoumax,
20108         and ports to HP-UX 11.00 64.bit, which has macros that expand to
20109         nonexistent functions.  See
20110         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
20111         et seq.
20112         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
20113         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
20114         a macro.
20115         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
20116
20117 2011-04-25  Simon Josefsson  <simon@josefsson.org>
20118
20119         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
20120
20121 2011-04-25  Bruno Haible  <bruno@clisp.org>
20122
20123         strtol, strtoul: Mark modules as obsolete.
20124         * modules/strtol (Status, Notice): New sections.
20125         * modules/strtoul (Status, Notice): New sections.
20126
20127 2011-04-25  Bruno Haible  <bruno@clisp.org>
20128
20129         strtod: Remove check for strtod, unless supporting old platforms.
20130         * modules/strtod-obsolete: New file.
20131         * m4/strtod-obsolete.m4: New file.
20132         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
20133         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
20134         * modules/strtod (Depends-on): Add strtod-obsolete.
20135         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
20136
20137 2011-04-25  Bruno Haible  <bruno@clisp.org>
20138
20139         strcase: Make module obsolete.
20140         * modules/strcase (Status, Notice): New sections.
20141
20142 2011-04-25  Bruno Haible  <bruno@clisp.org>
20143
20144         dup2: Remove check for dup2, unless supporting old obsolete platforms.
20145         * modules/dup2-obsolete: New file.
20146         * m4/dup2-obsolete.m4: New file.
20147         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
20148         gl_FUNC_DUP2_OBSOLETE is not also defined.
20149         * modules/dup2 (Depends-on): Add dup2-obsolete.
20150         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
20151
20152 2011-04-25  Bruno Haible  <bruno@clisp.org>
20153
20154         strnlen: Avoid memchr related link error on old obsolete platforms.
20155         * modules/memchr-obsolete: New file.
20156         * m4/memchr-obsolete.m4: New file.
20157         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
20158         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
20159         * modules/memchr (Depends-on): Add memchr-obsolete.
20160         * modules/strnlen (Depends-on): Likewise.
20161         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
20162
20163 2011-04-25  Jim Meyering  <meyering@redhat.com>
20164
20165         maint.mk: makefile_at_at_check extend and clean up
20166         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
20167         in addition to */Makefile.am.
20168         Exempt legitimate uses of @VAR@ notation, e.g.,
20169         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
20170         Remove obsolete coreutils-specific comment.
20171         Prompted by discussion here:
20172         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
20173
20174 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
20175
20176         strtoul: remove dependency on strtol
20177         This is so that 'configure' need not check for strtol merely because
20178         the application needs strtoul.
20179         * modules/strtoul (Files): Add lib/strtol.c.
20180         (Depends-on): Remove strtol.
20181
20182         strtoull: remove dependency on strtoul
20183         This is like the strtoll change.
20184         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
20185         (Depends-on): Remove strtoul.
20186
20187         strtoll: remove dependency on strtol
20188         This is so that 'configure' need not check for strtol merely because
20189         the application needs strtoll.
20190         * modules/strtoll (Files): Add lib/strtol.c.
20191         (Depends-on): Remove strtol.
20192
20193 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
20194
20195         inttypes: Move some configure check to module 'imaxdiv'.
20196         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
20197         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
20198         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
20199
20200 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
20201
20202         inttypes: Move some configure check to module 'imaxabs'.
20203         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
20204         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
20205         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
20206
20207 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
20208
20209         inttypes: Remove configure tests that are not needed since 2009-12-31.
20210         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
20211         gl_cv_header_working_inttypes_h.
20212
20213 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
20214
20215         * modules/strnlen (Depends-on): Remove memchr.
20216         The strnlen implementation doesn't need the memchr module's fixes; see
20217         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
20218
20219         strtol: remove dependency on wchar
20220         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
20221         * modules/strtol (Depends-on): Remove wchar.
20222
20223 2011-04-21  Eric Blake  <eblake@redhat.com>
20224
20225         passfd: fix test regression on Linux
20226         * modules/passfd-tests (configure.ac): Correct socketpair check.
20227
20228         passfd: speed up configure and drop unused code
20229         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
20230         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
20231         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
20232         Instead of probing at configure for unix_scm_rights_bsd44_way,
20233         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
20234         check to a struct member probe.
20235         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
20236         (sendfd, recvfd): Update preprocessor checks.
20237         * modules/passfd (Files): Reflect rename, and drop unused file.
20238         (Depends-on): Drop unused dependency.
20239
20240         passfd: allow compilation on mingw
20241         * modules/sys_socket (Depends-on): Add sys_uio.
20242         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
20243         iovec and a minimal struct msghdr.
20244         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
20245         * tests/test-sys_socket.c (main): Enhance test.
20246         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
20247         guaranteed to provide what we need.
20248         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
20249         * modules/passfd-tests (Depends-on): Add sys_wait.
20250         * tests/test-passfd.c (main): Skip test on mingw, for now.
20251         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
20252         partial 'struct msghdr' implementation.
20253
20254         sys_uio: new module
20255         * modules/sys_uio: New module.
20256         * modules/sys_uio-tests: Likewise.
20257         * lib/sys_uio.in.h: New file.
20258         * m4/sys_uio_h.m4: Likewise.
20259         * tests/test-sys_uio.c: Likewise.
20260         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
20261         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
20262
20263 2011-04-20  Jim Meyering  <meyering@redhat.com>
20264
20265         useless-if-before-free: avoid false-positive
20266         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
20267         disjunct so that it too requires a terminating ";".  Without that,
20268         this script would identify as useless one statement from gcc that
20269         was not:
20270           if (aligned_ptr)
20271             free (((void **) aligned_ptr) [-1]);
20272
20273 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
20274
20275         doc: update users.txt.
20276         * users.txt: Add barcode.
20277
20278 2011-04-19  Bruno Haible  <bruno@clisp.org>
20279
20280         ioctl: Remove link dependency on native Windows.
20281         * lib/fd-hook.h: Renamed from lib/close-hook.h.
20282         (gl_close_fn, gl_ioctl_fn): New types.
20283         (struct fd_hook): Renamed from struct close_hook. Change type of
20284         private_close_fn field. Add private_ioctl_fn field.
20285         (close_hook_fn): Add parameter for primary close method.
20286         (execute_close_hooks, execute_all_close_hooks): Likewise.
20287         (ioctl_hook_fn): New type.
20288         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
20289         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
20290         argument.
20291         (unregister_fd_hook): Renamed from unregister_close_hook.
20292         * lib/fd-hook.c: Renamed from lib/close-hook.c.
20293         Don't include <unistd.h>.
20294         (close): Remove undef.
20295         (anchor): Update.
20296         (execute_close_hooks): Add argument for primary close method.
20297         (execute_all_close_hooks): Likewise.
20298         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
20299         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
20300         argument. Allow each argument to be NULL.
20301         (unregister_fd_hook): Renamed from unregister_close_hook.
20302         * lib/close.c (rpl_close): Pass 'close' function pointer to
20303         execute_all_close_hooks.
20304         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
20305         (primary_ioctl): New function.
20306         (ioctl): Don't call ioctlsocket here. Instead, call
20307         execute_all_ioctl_hooks.
20308         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
20309         close method.
20310         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
20311         (fd_sockets_hook): Renamed from close_sockets_hook.
20312         (gl_sockets_startup, gl_sockets_cleanup): Update.
20313         * modules/fd-hook: Renamed from modules/close-hook. Update.
20314         * modules/close (Depends-on): Add fd-hook, remove close-hook.
20315         * modules/sockets (Depends-on): Likewise.
20316         * modules/ioctl (Depends-on): Add fd-hook.
20317         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
20318         GNULIB_SOCKET.
20319
20320 2011-04-19  Bruno Haible  <bruno@clisp.org>
20321
20322         Move the support of O_NONBLOCK in open() to the 'open' module.
20323         * modules/nonblocking (Depends-on): Remove 'open'.
20324         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
20325         gl_cv_have_open_O_NONBLOCK.
20326         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
20327         O_NONBLOCK support.
20328         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
20329
20330 2011-04-17  Bruno Haible  <bruno@clisp.org>
20331
20332         pipe2: Simplify code.
20333         * lib/pipe2.c (pipe2): Reduce code duplication.
20334
20335 2011-04-17  Bruno Haible  <bruno@clisp.org>
20336
20337         nonblocking: Add comment.
20338         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
20339
20340 2011-04-17  Bruno Haible  <bruno@clisp.org>
20341
20342         nonblocking: Add tests for sockets.
20343         * tests/test-nonblocking-socket.sh: New file.
20344         * tests/test-nonblocking-socket-main.c: New file.
20345         * tests/test-nonblocking-socket-child.c: New file.
20346         * tests/test-nonblocking-socket.h: New file.
20347         * tests/socket-server.h: New file.
20348         * tests/socket-client.h: New file.
20349         * modules/nonblocking-socket-tests: New file.
20350         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
20351
20352 2011-04-17  Bruno Haible  <bruno@clisp.org>
20353
20354         nonblocking: Add tests for pipes.
20355         * tests/test-nonblocking-pipe.sh: New file.
20356         * tests/test-nonblocking-pipe-main.c: New file.
20357         * tests/test-nonblocking-pipe-child.c: New file.
20358         * tests/test-nonblocking-pipe.h: New file.
20359         * tests/test-nonblocking-writer.h: New file.
20360         * tests/test-nonblocking-reader.h: New file.
20361         * tests/test-nonblocking-misc.h: New file.
20362         * modules/nonblocking-pipe-tests: New file.
20363         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
20364
20365 2011-04-16  Bruno Haible  <bruno@clisp.org>
20366
20367         gettext: Clarify the needed programmer actions.
20368         * modules/gettext (Notice): New field.
20369         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
20370
20371 2011-04-16  Bruno Haible  <bruno@clisp.org>
20372
20373         strchrnul: Tweak last commit.
20374         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
20375         bug.
20376         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
20377         as in _GL_FUNCDECL_SYS.
20378         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
20379         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
20380
20381 2011-04-15  Eric Blake  <eblake@redhat.com>
20382
20383         strchrnul: work around cygwin bug
20384         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
20385         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
20386         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
20387         * modules/string (Makefile.am): Substitute it.
20388         * lib/string.in.h (strchrnul): Use it.
20389
20390 2011-04-15  Bruno Haible  <bruno@clisp.org>
20391
20392         Don't require lib/stdio-write.c when only module 'stdio' is used.
20393         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
20394         invocation.
20395         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
20396
20397 2011-04-14  Bruno Haible  <bruno@clisp.org>
20398
20399         Support non-blocking pipe I/O in read() on native Windows.
20400         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
20401         (read): New declaration.
20402         * lib/read.c: New file.
20403         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
20404         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
20405         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
20406         vscanf): New declarations.
20407         * lib/stdio-read.c: New file.
20408         * m4/read.m4: New file.
20409         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
20410         REPLACE_READ.
20411         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
20412         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
20413         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
20414         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
20415         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
20416         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
20417         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
20418         * modules/read: New file.
20419         * modules/nonblocking (Files): Add lib/stdio-read.c.
20420         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
20421         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
20422         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
20423         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
20424         * modules/pread (Depends-on): Add read.
20425         * modules/safe-read (Depends-on): Likewise.
20426         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
20427         gets, scanf, vfscanf, vscanf): Verify signatures.
20428         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
20429         problem with non-blocking pipes.
20430         * doc/posix-functions/fgetc.texi: Likewise.
20431         * doc/posix-functions/fgets.texi: Likewise.
20432         * doc/posix-functions/fread.texi: Likewise.
20433         * doc/posix-functions/fscanf.texi: Likewise.
20434         * doc/posix-functions/getc.texi: Likewise.
20435         * doc/posix-functions/getchar.texi: Likewise.
20436         * doc/posix-functions/gets.texi: Likewise.
20437         * doc/posix-functions/scanf.texi: Likewise.
20438         * doc/posix-functions/vfscanf.texi: Likewise.
20439         * doc/posix-functions/vscanf.texi: Likewise.
20440
20441 2011-04-14  Bruno Haible  <bruno@clisp.org>
20442
20443         Support non-blocking pipe I/O in write() on native Windows.
20444         * lib/write.c (rpl_write): Split a write request that failed merely
20445         because the byte count was larger than the pipe buffer's size.
20446         * doc/posix-functions/write.texi: Mention the problem with large byte
20447         counts.
20448
20449 2011-04-14  Bruno Haible  <bruno@clisp.org>
20450
20451         wchar: Ensure that wchar_t gets defined on uClibc.
20452         * lib/wchar.in.h: On uClibc, include <stddef.h>.
20453         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
20454
20455 2011-04-13  Bruno Haible  <bruno@clisp.org>
20456
20457         safe-write, full-read: Avoid unnecessary compilation units.
20458         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
20459         (Depends-on): Remove safe-read. Add ssize_t.
20460         * modules/full-read (Files): Add lib/full-write.c.
20461         (Depends-on): Add full-write.
20462
20463 2011-04-13  Bruno Haible  <bruno@clisp.org>
20464
20465         Support non-blocking pipe I/O and SIGPIPE in pwrite().
20466         * modules/pwrite (Depends-on): Add 'write'.
20467
20468 2011-04-13  Bruno Haible  <bruno@clisp.org>
20469
20470         Support non-blocking pipe I/O in write() on native Windows.
20471         * lib/unistd.in.h (write): Enable replacement also if
20472         GNULIB_UNISTD_H_NONBLOCKING is 1.
20473         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
20474         (rpl_write): When failing to write on a non-blocking pipe, change
20475         errno from ENOSPC to EAGAIN.
20476         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
20477         putchar, puts, vfprintf, vprintf): Enable replacement also if
20478         GNULIB_STDIO_H_NONBLOCKING is 1.
20479         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
20480         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
20481         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
20482         CALL_WITH_SIGPIPE_EMULATION.
20483         (CALL_WITH_SIGPIPE_EMULATION): Use them.
20484         * m4/nonblocking.m4: New file.
20485         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
20486         for non-blocking I/O support.
20487         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20488         GNULIB_UNISTD_H_NONBLOCKING.
20489         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
20490         required for non-blocking I/O support.
20491         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
20492         * modules/nonblocking (Files): Add m4/nonblocking.m4,
20493         lib/stdio-write.c, m4/asm-underscore.m4.
20494         (Depends-on): Add stdio, unistd.
20495         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
20496         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
20497         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
20498         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
20499         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
20500         problem with non-blocking pipes.
20501         * doc/posix-functions/fputc.texi: Likewise.
20502         * doc/posix-functions/fputs.texi: Likewise.
20503         * doc/posix-functions/fwrite.texi: Likewise.
20504         * doc/posix-functions/printf.texi: Likewise.
20505         * doc/posix-functions/putc.texi: Likewise.
20506         * doc/posix-functions/putchar.texi: Likewise.
20507         * doc/posix-functions/puts.texi: Likewise.
20508         * doc/posix-functions/vfprintf.texi: Likewise.
20509         * doc/posix-functions/vprintf.texi: Likewise.
20510         * doc/posix-functions/write.texi: Likewise.
20511
20512 2011-04-10  Jim Meyering  <meyering@redhat.com>
20513
20514         maint.mk: prohibit doubled words
20515         Detect them also when they're separated by a newline.
20516         There are 3 ways to customize it:
20517           - disable the test on a per file basis, as usual with rules using
20518             $(VC_LIST_EXCEPT)
20519           - replace the default doubled-word-selecting regexp (affects all files)
20520           - ignore a particular file-vs-doubled-word match
20521         I nearly used that last one to ignore the "is is" match in
20522         coreutils' NEWS file, since the text was "ls -is is ..."
20523         To do that, I would have added this line to cfg.mk:
20524           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
20525         but it would have ignored any "is is" match in NEWS.
20526         Low probability, but still...
20527         Instead, I changed the text, slightly:
20528           -  ls -is is now consistent with ls -lis in ignoring values returned
20529           +  "ls -is" is now consistent with ls -lis in ignoring values returned
20530         * top/maint.mk (prohibit_double_word_RE_): Provide default.
20531         (prohibit_doubled_word_): Define.
20532         (sc_prohibit_doubled_word): New rule.
20533         (sc_prohibit_the_the): Remove.  Subsumed by the above.
20534
20535 2011-04-10  Jim Meyering  <meyering@redhat.com>
20536
20537         maint: fix doubled-word typo in comment
20538         * m4/gethostname.m4: s/is is/it is/
20539         * m4/getdomainname.m4: Likewise.
20540
20541 2011-04-10  Jim Meyering  <meyering@redhat.com>
20542
20543         maint: remove doubled word: s/it it/it/
20544         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
20545
20546 2011-04-10  Jim Meyering  <meyering@redhat.com>
20547
20548         maint.mk: remove useless semicolon and backslash
20549         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
20550         semicolon and backslash.
20551
20552 2011-04-10  Bruno Haible  <bruno@clisp.org>
20553
20554         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
20555         * modules/stdint-tests (Depends-on): Add wchar.
20556
20557 2011-04-10  Jim Meyering  <meyering@redhat.com>
20558
20559         maint: remove doubled words in comments, e.g., s/a a/a/
20560         * lib/strptime.c (day_of_the_week): s/the the/the/
20561         * tests/test-chown.h (test_chown): s/a a/a/
20562
20563         test-chown.h: correct a cast
20564         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
20565         when the destination is a stat.st_gid.
20566
20567 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
20568
20569         getaddrinfo: Fix test for sa_len member.
20570         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
20571         include <sys/types.h> before <sys/socket.h>.
20572
20573 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
20574
20575         maint: change "can not" to "cannot"
20576         * doc/posix-functions/iconv.texi (iconv): This one crossed line
20577         boundaries.
20578
20579 2011-04-09  Jim Meyering  <meyering@redhat.com>
20580
20581         maint: change "a a" to "a"
20582         * tests/test-lchown.h (test_lchown): s/a a/a/
20583
20584         maint.mk: prohibit \<the the\>
20585         * top/maint.mk (sc_prohibit_the_the): New rule.
20586
20587         maint: fix "the the" in comment
20588         * lib/count-one-bits.h: s/the the/the/
20589
20590         maint: change "can not" to "cannot"
20591         But do not change the occurrences in maintain.texi or in
20592         build-aux/po/Makefile.in.in, which I presume comes from gettext.
20593         * doc/gnulib-tool.texi: s/can not/cannot/
20594         * doc/posix-functions/accept.texi (accept): Likewise.
20595         * doc/posix-functions/socket.texi (socket): Likewise.
20596         * lib/mbrtowc.c: Likewise.
20597
20598         maint.mk: prohibit use of "can not"
20599         * top/maint.mk (sc_prohibit_can_not): New rule.
20600         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
20601
20602 2011-04-09  Bruno Haible  <bruno@clisp.org>
20603
20604         careadlinkat: Guard against misuse of careadlinkatcwd.
20605         * lib/careadlinkat.c: Include <stdlib.h>.
20606         (careadlinkatcwd): Check that the fd argument is as expected.
20607
20608 2011-04-09  Bruno Haible  <bruno@clisp.org>
20609
20610         careadlinkat: Use common coding style.
20611         * lib/careadlinkat.c: Move gnulib includes after system includes.
20612
20613 2011-04-09  Bruno Haible  <bruno@clisp.org>
20614
20615         careadlinkat: Clarify specification.
20616         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
20617         (careadlinkatcwd): Add comment.
20618         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
20619
20620 2011-04-09  Bruno Haible  <bruno@clisp.org>
20621
20622         areadlinkat: Avoid link error on many platforms.
20623         * modules/areadlinkat (Depends-on): Add areadlink.
20624
20625 2011-04-09  Bruno Haible  <bruno@clisp.org>
20626
20627         allocator, careadlinkat: Fix double-inclusion guard.
20628         * lib/allocator.h: Fix double-inclusion guard.
20629         * lib/careadlinkat.h: Likewise.
20630
20631 2011-04-09  Bruno Haible  <bruno@clisp.org>
20632
20633         relocatable-prog-wrapper: Update after module 'areadlink' changed.
20634         * lib/relocwrapper.c: Update dependencies hierarchy.
20635         * build-aux/install-reloc: Update list of files to be compiled.
20636         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
20637         lib/allocator.[hc].
20638
20639 2011-04-08  Eric Blake  <eblake@redhat.com>
20640
20641         strftime: silence gnulib-tool warning
20642         * modules/strftime-tests (Depends-on): Drop automatic dependency.
20643
20644 2011-04-08  Bruno Haible  <bruno@clisp.org>
20645
20646         verify: Fix syntax error with GCC 4.6 in C++ mode.
20647         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
20648         (HAVE_STATIC_ASSERT): New macro.
20649         (verify_true, verify): Use 'static_assert' if it is supported and
20650         '_Static_assert' is not supported.
20651
20652 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
20653
20654         allocator: New module.
20655         * modules/allocator, lib/allocator.c: New files.
20656         * lib/allocator.h (stdlib_allocator): New decl.
20657         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
20658         Remove.  Do not include <stdlib.h>.
20659         (careadlinkat): Use stdlib_allocator instead of rolling our own.
20660         * modules/careadlinkat (Files): Remove lib/allocator.h.
20661         (Depends-on): Add allocator.
20662
20663         stdlib: let modules use system malloc, realloc
20664         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
20665         if !_GL_USE_STDLIB_ALLOC.
20666         (malloc, realloc): Limit this change to a smaller scope.
20667
20668         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
20669         (malloc, realloc): Don't #undef; no longer needed.
20670         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
20671         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
20672         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
20673         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
20674         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
20675         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
20676         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
20677         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
20678
20679         careadlinkat: rename members to avoid problem
20680         * lib/allocator.h (struct allocator): Rename members from
20681         malloc/realloc to allocate/reallocate, to avoid problems if malloc
20682         and realloc are #define'd.  Reported by Eric Blake in
20683         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
20684         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
20685
20686 2011-04-08  Eric Blake  <eblake@redhat.com>
20687
20688         nonblocking: reduce dependency
20689         * tests/test-nonblocking.c: Only test sockets when in use.
20690         * modules/nonblocking-tests (Depends-on): Drop socket.
20691         (Makefile.am): Link even if sockets are not present.
20692         * modules/pipe2-tests (Makefile.am): Likewise.
20693         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
20694
20695         pipe2: fix O_NONBLOCK support on mingw
20696         * modules/pipe2 (Depends-on): Add nonblocking.
20697         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
20698         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
20699         * tests/test-nonblocking.c (main): Likewise.
20700         * modules/pipe2-tests (Makefile.am): Avoid link failure.
20701
20702         fcntl-h: fix O_ACCMODE on cygwin
20703         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
20704         * lib/fcntl.in.h (O_ACCMODE): Fix it.
20705
20706         pipe-filter: drop O_NONBLOCK workarounds
20707         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
20708         * modules/pipe-filter-ii (Depends-on): Likewise.
20709         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
20710
20711         nonblocking: provide O_NONBLOCK for mingw
20712         * modules/nonblocking (Depends-on): Add open.
20713         (configure.ac): Set new witness macro.
20714         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
20715         * modules/fcntl-h (Makefile.am): Substitute it.
20716         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
20717         nonblocking module is in use.
20718         * lib/nonblocking.c: Adjust portability test.
20719         * lib/open.c (open): Don't let native open see gnulib flag.
20720         * tests/test-fcntl-h.c (main): Enhance test.
20721         * tests/test-open.h (test_open): Likewise.
20722         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
20723
20724         careadlinkat: fix compilation error on mingw
20725         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
20726         within struct allocator.
20727
20728 2011-04-06  Eric Blake  <eblake@redhat.com>
20729
20730         binary-io: relicense under LGPLv2+
20731         * modules/binary-io (License): Relax to LGPLv2+.
20732         Requested for libvirt, and required by pipe2.
20733
20734 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
20735
20736         verify: use _Static_assert if available
20737         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
20738         (verify_true, verify): Use it if available.  This generates better
20739         diagnostics with GCC 4.6.0 and later.
20740
20741 2011-04-05  Bruno Haible  <bruno@clisp.org>
20742
20743         Remove leftover generated .h files after config.status changed.
20744
20745         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
20746         GL_GENERATE_ALLOCA_H.
20747         * modules/alloca-opt (Makefile.am): Remove alloca.h if
20748         GL_GENERATE_ALLOCA_H evaluates to false.
20749
20750         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
20751         GL_GENERATE_ARGZ_H.
20752         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
20753         evaluates to false.
20754
20755         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
20756         GL_GENERATE_BYTESWAP_H.
20757         * modules/byteswap (Makefile.am): Remove byteswap.h if
20758         GL_GENERATE_BYTESWAP_H evaluates to false.
20759
20760         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
20761         GL_GENERATE_ERRNO_H.
20762         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
20763         evaluates to false.
20764
20765         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
20766         GL_GENERATE_FLOAT_H.
20767         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
20768         evaluates to false.
20769
20770         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
20771         GL_GENERATE_FNMATCH_H.
20772         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
20773         GL_GENERATE_FNMATCH_H evaluates to false.
20774
20775         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
20776         GL_GENERATE_GLOB_H.
20777         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
20778         evaluates to false.
20779
20780         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
20781         automake conditional GL_GENERATE_ICONV_H.
20782         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
20783         evaluates to false.
20784
20785         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
20786         GL_GENERATE_NETINET_IN_H.
20787         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
20788         GL_GENERATE_NETINET_IN_H evaluates to false.
20789
20790         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
20791         conditional GL_GENERATE_PTHREAD_H.
20792         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
20793         * modules/pthread (Makefile.am): Remove pthread.h if
20794         GL_GENERATE_PTHREAD_H evaluates to false.
20795
20796         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
20797         GL_GENERATE_SCHED_H.
20798         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
20799         evaluates to false.
20800
20801         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
20802         conditional GL_GENERATE_SELINUX_CONTEXT_H.
20803         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
20804         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
20805
20806         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
20807         GL_GENERATE_STDARG_H.
20808         * modules/stdarg (Makefile.am): Remove stdarg.h if
20809         GL_GENERATE_STDARG_H evaluates to false.
20810
20811         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
20812         GL_GENERATE_STDBOOL_H.
20813         * modules/stdbool (Makefile.am): Remove stdbool.h if
20814         GL_GENERATE_STDBOOL_H evaluates to false.
20815
20816         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
20817         conditional GL_GENERATE_STDDEF_H.
20818         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
20819         * modules/stddef (Makefile.am): Remove stddef.h if
20820         GL_GENERATE_STDDEF_H evaluates to false.
20821
20822         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
20823         GL_GENERATE_STDINT_H.
20824         * modules/stdint (Makefile.am): Remove stdint.h if
20825         GL_GENERATE_STDINT_H evaluates to false.
20826
20827         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
20828         GL_GENERATE_SYSEXITS_H.
20829         * modules/sysexits (Makefile.am): Remove sysexits.h if
20830         GL_GENERATE_SYSEXITS_H evaluates to false.
20831
20832         Reported by Karl Berry and Ralf Wildenhues.
20833
20834 2011-04-05  Bruno Haible  <bruno@clisp.org>
20835
20836         Ensure to rebuild generated .h files when config.status has changed.
20837         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
20838         config.status.
20839         * modules/ctype (Makefile.am): Likewise.
20840         * modules/dirent (Makefile.am): Likewise.
20841         * modules/errno (Makefile.am): Likewise.
20842         * modules/fcntl-h (Makefile.am): Likewise.
20843         * modules/float (Makefile.am): Likewise.
20844         * modules/getopt-posix (Makefile.am): Likewise.
20845         * modules/glob (Makefile.am): Likewise.
20846         * modules/iconv-h (Makefile.am): Likewise.
20847         * modules/inttypes (Makefile.am): Likewise.
20848         * modules/langinfo (Makefile.am): Likewise.
20849         * modules/locale (Makefile.am): Likewise.
20850         * modules/math (Makefile.am): Likewise.
20851         * modules/netdb (Makefile.am): Likewise.
20852         * modules/netinet_in (Makefile.am): Likewise.
20853         * modules/poll-h (Makefile.am): Likewise.
20854         * modules/pthread (Makefile.am): Likewise.
20855         * modules/pty (Makefile.am): Likewise.
20856         * modules/sched (Makefile.am): Likewise.
20857         * modules/search (Makefile.am): Likewise.
20858         * modules/selinux-h (Makefile.am): Likewise.
20859         * modules/signal (Makefile.am): Likewise.
20860         * modules/spawn (Makefile.am): Likewise.
20861         * modules/stdarg (Makefile.am): Likewise.
20862         * modules/stdbool (Makefile.am): Likewise.
20863         * modules/stddef (Makefile.am): Likewise.
20864         * modules/stdint (Makefile.am): Likewise.
20865         * modules/stdio (Makefile.am): Likewise.
20866         * modules/stdlib (Makefile.am): Likewise.
20867         * modules/string (Makefile.am): Likewise.
20868         * modules/strings (Makefile.am): Likewise.
20869         * modules/sys_file (Makefile.am): Likewise.
20870         * modules/sys_ioctl (Makefile.am): Likewise.
20871         * modules/sys_select (Makefile.am): Likewise.
20872         * modules/sys_socket (Makefile.am): Likewise.
20873         * modules/sys_stat (Makefile.am): Likewise.
20874         * modules/sys_time (Makefile.am): Likewise.
20875         * modules/sys_times (Makefile.am): Likewise.
20876         * modules/sys_utsname (Makefile.am): Likewise.
20877         * modules/sys_wait (Makefile.am): Likewise.
20878         * modules/sysexits (Makefile.am): Likewise.
20879         * modules/termios (Makefile.am): Likewise.
20880         * modules/time (Makefile.am): Likewise.
20881         * modules/unistd (Makefile.am): Likewise.
20882         * modules/wchar (Makefile.am): Likewise.
20883         * modules/wctype-h (Makefile.am): Likewise.
20884         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
20885
20886 2011-04-05  Bruno Haible  <bruno@clisp.org>
20887
20888         pipe2: Relicense under LGPLv2+.
20889         * modules/pipe2 (License): Change to LGPLv2+.
20890         Requested by Eric Blake, for libvirt.
20891
20892 2011-04-05  Bruce Korb  <bkorb@gnu.org>
20893
20894         bootstrap: compute gnulib_extra_files after updating build_aux
20895         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
20896         change build_aux or also supply gnulib_extra_files.  Handle correctly.
20897
20898 2011-04-05  Eric Blake  <eblake@redhat.com>
20899
20900         bootstrap: preserve git whitelist item sorting
20901         * build-aux/bootstrap (sort_patterns): New function.
20902         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
20903
20904 2011-04-05  Simon Josefsson  <simon@josefsson.org>
20905
20906         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
20907         sc_space_tab check.
20908
20909 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
20910
20911         areadlink, areadlinkat: rewrite in terms of careadlinkat
20912         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
20913         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
20914         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
20915         (malloc, realloc): Remove #undefs.
20916         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
20917         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
20918         readlink, ssize_t, stdint, unistd.
20919         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
20920         areadlink, stdint.
20921
20922         careadlinkat: new module
20923         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
20924         * modules/careadlinkat: New files, written by me with
20925         a review and feedback from Ben Pfaff in
20926         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
20927
20928 2011-04-01  Bruno Haible  <bruno@clisp.org>
20929
20930         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
20931         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
20932         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
20933         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
20934         Reported by Bruce Korb <bruce.korb@gmail.com>.
20935
20936 2011-04-01  Bruno Haible  <bruno@clisp.org>
20937
20938         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
20939         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
20940         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
20941         * modules/wcpcpy (Depends-on): Add extensions.
20942         * modules/wcpncpy (Depends-on): Likewise.
20943         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
20944         systems.
20945         * doc/posix-functions/wcpncpy.texi: Likewise.
20946         * doc/posix-functions/wcwidth.texi: Likewise.
20947
20948 2011-03-31  Eric Blake  <eblake@redhat.com>
20949
20950         nonblocking: fix mingw test failures
20951         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
20952         non-blocking flag on regular file.
20953         (get_nonblocking_flag): Set errno on invalid fd.
20954         * tests/test-nonblocking.c (main): Avoid test failure on
20955         directories if fchdir is not active.
20956         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
20957
20958 2011-03-31  Bruno Haible  <bruno@clisp.org>
20959
20960         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
20961         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
20962         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
20963         Reported by Simon Josefsson <simon@josefsson.org>.
20964
20965 2011-03-31  Bruno Haible  <bruno@clisp.org>
20966         and Eric Blake  <eblake@redhat.com>
20967
20968         nonblocking: new module
20969         * modules/nonblocking: New module.
20970         * modules/nonblocking-tests: Likewise.
20971         * lib/nonblocking.h: New file.
20972         * lib/nonblocking.c: Likewise.
20973         * tests/test-nonblocking.c: New test.
20974         * lib/ioctl.c (ioctl) [mingw]: Update comment.
20975
20976 2011-03-30  Bruno Haible  <bruno@clisp.org>
20977
20978         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
20979         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
20980         instead of 'printf' format for GCC >= 4.4.
20981         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
20982         (fprintf, printf, vfprintf, vprintf): Declare with
20983         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
20984         the system's vfprintf() function.
20985         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
20986
20987 2011-03-30  Eric Blake  <eblake@redhat.com>
20988
20989         passfd: fix scoping bug
20990         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
20991         before sendmsg/recvmsg.
20992
20993         passfd: standardize coding conventions
20994         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
20995         can be learned at compile time.
20996         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
20997         ifdefs.
20998         (sendfd, recvfd): Follow gnulib code conventions.
20999
21000         passfd: fix incorrect sendmsg arguments
21001         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
21002         incorrect msg_controllen value.
21003         * modules/passfd-tests (Depends-on): Check for alarm.
21004         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
21005         Reported by Bastien ROUCARIES.
21006
21007 2011-03-30  Bruno Haible  <bruno@clisp.org>
21008
21009         c-strcasestr: Relicense under LGPLv2+.
21010         * modules/c-strcasestr (License): Change to LGPLv2+.
21011         Requested by Eric Blake, for libvirt.
21012
21013 2011-03-30  Simon Josefsson  <simon@josefsson.org>
21014
21015         * users.txt: Add libidn2.  Fix libtasn1 link.
21016
21017 2011-03-30  Jim Meyering  <meyering@redhat.com>
21018
21019         tests: readlink* ("",... fails with EINVAL on newer kernels
21020         readlink and readlinkat have typically failed with ENOENT for
21021         the invalid, empty file name,  "".  However, with the advent
21022         of linux-2.6.39, they fail with EINVAL.
21023         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
21024         when operating on the empty file name.
21025         * tests/test-readlink.h (test_readlink): Likewise.
21026
21027 2011-03-29  Bruno Haible  <bruno@clisp.org>
21028
21029         Relicense some modules under LGPLv2+, for libidn2.
21030         * modules/array-mergesort (License): Change to LGPLv2+.
21031         * modules/c-strcaseeq (License): Likewise.
21032         * modules/striconveh (License): Likewise.
21033         * modules/striconveha (License): Likewise.
21034         * modules/uniconv/base (License): Likewise.
21035         * modules/uniconv/u8-conv-from-enc (License): Likewise.
21036         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
21037         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
21038         * modules/unictype/base (License): Likewise.
21039         * modules/unictype/bidiclass-of (License): Likewise.
21040         * modules/unictype/category-M (License): Likewise.
21041         * modules/unictype/category-none (License): Likewise.
21042         * modules/unictype/category-of (License): Likewise.
21043         * modules/unictype/category-test (License): Likewise.
21044         * modules/unictype/category-test-withtable (License): Likewise.
21045         * modules/unictype/combining-class (License): Likewise.
21046         * modules/unictype/joiningtype-of (License): Likewise.
21047         * modules/unictype/scripts (License): Likewise.
21048         * modules/uninorm/base (License): Likewise.
21049         * modules/uninorm/canonical-decomposition (License): Likewise.
21050         * modules/uninorm/composition (License): Likewise.
21051         * modules/uninorm/decompose-internal (License): Likewise.
21052         * modules/uninorm/decomposition-table (License): Likewise.
21053         * modules/uninorm/nfc (License): Likewise.
21054         * modules/uninorm/nfd (License): Likewise.
21055         * modules/uninorm/u32-normalize (License): Likewise.
21056         * modules/unistr/base (License): Likewise.
21057         * modules/unistr/u32-cpy (License): Likewise.
21058         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
21059         * modules/unistr/u32-to-u8 (License): Likewise.
21060         * modules/unistr/u32-uctomb (License): Likewise.
21061         * modules/unistr/u8-check (License): Likewise.
21062         * modules/unistr/u8-mblen (License): Likewise.
21063         * modules/unistr/u8-mbtouc (License): Likewise.
21064         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
21065         * modules/unistr/u8-mbtoucr (License): Likewise.
21066         * modules/unistr/u8-prev (License): Likewise.
21067         * modules/unistr/u8-strlen (License): Likewise.
21068         * modules/unistr/u8-to-u32 (License): Likewise.
21069         * modules/unistr/u8-uctomb (License): Likewise.
21070         * modules/unitypes (License): Likewise.
21071         Requested by Simon Josefsson.
21072
21073 2011-03-29  Simon Josefsson  <simon@josefsson.org>
21074
21075         lib-symbol-visibility: Add a notice.
21076         * modules/lib-symbol-visibility (Notice): New field.
21077
21078 2011-03-29  Bruno Haible  <bruno@clisp.org>
21079
21080         getaddrinfo: Doc fix.
21081         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
21082         section "fixed in Gnulib".
21083
21084 2011-03-28  Simon Josefsson  <simon@josefsson.org>
21085
21086         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
21087         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
21088
21089 2011-03-26  Bruno Haible  <bruno@clisp.org>
21090
21091         unictype/property-byname: Reduce the number of load-time relocations.
21092         * lib/unictype/pr_byname.c: Include <stdlib.h>.
21093         (UC_PROPERTY_INDEX_*): New enumeration values.
21094         (uc_property_byname): Convert an index from the lookup table to an
21095         uc_property_t.
21096         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
21097         values.
21098
21099 2011-03-26  Bruno Haible  <bruno@clisp.org>
21100
21101         unictype/property-byname: Allow omitted word separators and aliases.
21102         * lib/unictype/pr_byname.gperf: Add property names without word
21103         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
21104         for 'space'.
21105
21106 2011-03-26  Bruno Haible  <bruno@clisp.org>
21107
21108         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
21109         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
21110         also hyphens to space.
21111         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
21112         without spaces.
21113         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
21114
21115 2011-03-26  Bruno Haible  <bruno@clisp.org>
21116
21117         unictype/joiningtype-byname: Recognize long names as well.
21118         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
21119         a long name.
21120         * lib/unictype/joiningtype_byname.c: Include <string.h>,
21121         unictype/joiningtype_byname.h.
21122         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
21123         * lib/unictype/joiningtype_byname.gperf: New file.
21124         * modules/unictype/joiningtype-byname (Files): Add
21125         lib/unictype/joiningtype_byname.gperf.
21126         (Depends-on): Add gperf.
21127         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
21128         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
21129         long names.
21130
21131         Tests for module 'unictype/joiningtype-longname'.
21132         * modules/unictype/joiningtype-longname-tests: New file.
21133         * tests/unictype/test-joiningtype_longname.c: New file.
21134
21135         New module 'unictype/joiningtype-longname'.
21136         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
21137         * lib/unictype/joiningtype_longname.c: New file.
21138         * modules/unictype/joiningtype-longname: New file.
21139         * modules/unictype/joiningtype-all (Depends-on): Add
21140         unictype/joiningtype-longname.
21141
21142 2011-03-26  Bruno Haible  <bruno@clisp.org>
21143
21144         unictype/bidiclass-byname: Recognize long names as well.
21145         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
21146         name.
21147         * lib/unictype/bidi_byname.c: Include <string.h>,
21148         unictype/bidi_byname.h.
21149         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
21150         * lib/unictype/bidi_byname.gperf: New file.
21151         * modules/unictype/bidiclass-byname (Files): Add
21152         lib/unictype/bidi_byname.gperf.
21153         (Depends-on): Add gperf.
21154         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
21155         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
21156         long names.
21157
21158         Tests for module 'unictype/bidiclass-longname'.
21159         * modules/unictype/bidiclass-longname-tests: New file.
21160         * tests/unictype/test-bidi_longname.c: New file.
21161
21162         New module 'unictype/bidiclass-longname'.
21163         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
21164         * lib/unictype/bidi_longname.c: New file.
21165         * modules/unictype/bidiclass-longname: New file.
21166         * modules/unictype/bidiclass-all (Depends-on): Add
21167         unictype/bidiclass-longname.
21168
21169 2011-03-26  Bruno Haible  <bruno@clisp.org>
21170
21171         unictype/bidi*: Rename modules.
21172         * modules/unictype/bidiclass-all: Renamed from
21173         modules/unictype/bidicategory-all.
21174         * modules/unictype/bidiclass-name: Renamed from
21175         modules/unictype/bidiclass-name.
21176         (Description): Update.
21177         * modules/unictype/bidiclass-name-tests: Renamed from
21178         modules/unictype/bidicategory-name-tests.
21179         * modules/unictype/bidiclass-byname: Renamed from
21180         modules/unictype/bidicategory-byname.
21181         (Description): Update.
21182         * modules/unictype/bidiclass-byname-tests: Renamed from
21183         modules/unictype/bidicategory-byname-tests.
21184         * modules/unictype/bidiclass-of: Renamed from
21185         modules/unictype/bidicategory-of.
21186         (Description): Update.
21187         * modules/unictype/bidiclass-of-tests: Renamed from
21188         modules/unictype/bidicategory-of-tests.
21189         * modules/unictype/bidiclass-test: Renamed from
21190         modules/unictype/bidicategory-test.
21191         (Description): Update.
21192         * modules/unictype/bidiclass-test-tests: Renamed from
21193         modules/unictype/bidicategory-test-tests.
21194         * modules/unictype/bidicategory-all: New file, a simple redirection.
21195         * modules/unictype/bidicategory-name: Likewise.
21196         * modules/unictype/bidicategory-byname: Likewise.
21197         * modules/unictype/bidicategory-of: Likewise.
21198         * modules/unictype/bidicategory-test: Likewise.
21199         * modules/unictype/property-bidi-* (Dependencies): Update.
21200         * lib/unictype/bidi_*.c: Update comment.
21201
21202 2011-03-26  Bruno Haible  <bruno@clisp.org>
21203
21204         unictype/bidi*: Rename functions, part 2.
21205         * modules/unictype/bidicategory-name (configure.ac): Update required
21206         libunistring version.
21207         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
21208
21209 2011-03-25  Bruno Haible  <bruno@clisp.org>
21210
21211         New module 'unictype/combining-class-all'.
21212         * modules/unictype/combining-class-all: New file.
21213
21214         Tests for module 'unictype/combining-class-byname'.
21215         * modules/unictype/combining-class-byname-tests: New file.
21216         * tests/unictype/test-combiningclass_byname.c: New file.
21217
21218         New module 'unictype/combining-class-byname'.
21219         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
21220         * lib/unictype/combiningclass_byname.c: New file.
21221         * lib/unictype/combiningclass_byname.gperf: New file.
21222         * modules/unictype/combining-class-byname: New file.
21223
21224         Tests for module 'unictype/combining-class-longname'.
21225         * modules/unictype/combining-class-longname-tests: New file.
21226         * tests/unictype/test-combiningclass_longname.c: New file.
21227
21228         New module 'unictype/combining-class-longname'.
21229         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
21230         * lib/unictype/combiningclass_longname.c: New file.
21231         * modules/unictype/combining-class-longname: New file.
21232
21233         Tests for module 'unictype/combining-class-name'.
21234         * modules/unictype/combining-class-name-tests: New file.
21235         * tests/unictype/test-combiningclass_name.c: New file.
21236
21237         New module 'unictype/combining-class-name'.
21238         * lib/unictype.in.h (uc_combining_class_name): New declaration.
21239         * lib/unictype/combiningclass_name.c: New file.
21240         * modules/unictype/combining-class-name: New file.
21241
21242 2011-03-25  Bruno Haible  <bruno@clisp.org>
21243
21244         unictype/combining-class: Rename source files.
21245         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
21246         of unictype/combining.h.
21247         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
21248         Update.
21249         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
21250         * modules/unictype/combining-class (Description): Fix.
21251         (Files, Makefile.am): Update.
21252         * tests/unictype/test-combiningclass.c: Renamed from
21253         tests/unictype/test-combining.c.
21254         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
21255
21256 2011-03-25  Bruno Haible  <bruno@clisp.org>
21257
21258         unictype: Update list of canonical combining classes.
21259         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
21260
21261 2011-03-25  Bruno Haible  <bruno@clisp.org>
21262
21263         unictype/category-byname: Recognize long names as well.
21264         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
21265         a long name.
21266         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
21267         unictype/categ_byname.h.
21268         (UC_CATEGORY_INDEX_*): New enumeration values.
21269         (uc_general_category_byname): Use uc_general_category_lookup and
21270         convert from index to value.
21271         * lib/unictype/categ_byname.gperf: New file.
21272         * modules/unictype/category-byname (Files): Add
21273         lib/unictype/categ_byname.gperf.
21274         (Depends-on): Add gperf.
21275         (Makefile.am): Add rule for generating unictype/categ_byname.h.
21276         * tests/unictype/test-categ_byname.c (main): Test the recognition of
21277         long names.
21278
21279         Tests for module 'unictype/category-longname'.
21280         * modules/unictype/category-longname-tests: New file.
21281         * tests/unictype/test-categ_longname.c: New file.
21282
21283         New module 'unictype/category-longname'.
21284         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
21285         * lib/unictype/categ_longname.c: New file.
21286         * modules/unictype/category-longname: New file.
21287         * modules/unictype/category-all (Depends-on): Add it.
21288
21289 2011-03-25  Bruno Haible  <bruno@clisp.org>
21290
21291         Tests for module 'unictype/category-LC'.
21292         * modules/unictype/category-LC-tests: New file.
21293         * tests/unictype/test-categ_LC.c: New file, automatically generated.
21294
21295         New module 'unictype/category-LC'.
21296         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
21297         (UC_CATEGORY_LC): New declaration.
21298         (UC_CASED_LETTER): New macro.
21299         * lib/gen-uni-tables.c (is_category_LC): New function.
21300         (output_categories): Also handle category LC.
21301         (UC_CATEGORY_MASK_LC): New enumeration value.
21302         (general_category_byname): Also handle category LC.
21303         * lib/unictype/categ_LC.c: New file.
21304         * lib/unictype/categ_LC.h: New file, automatically generated.
21305         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
21306         category LC.
21307         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
21308         * modules/unictype/category-LC: New file.
21309         * modules/unictype/category-byname (Depends-on): Add
21310         unictype/category-LC.
21311         * modules/unictype/category-all (Depends-on): Likewise.
21312
21313 2011-03-25  Eric Blake  <eblake@redhat.com>
21314
21315         xmalloc: revert yesterday's regression
21316         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
21317         realloc's underlying behavior (allowing allocation of zero-size
21318         objects, especially if malloc-gnu is also in use).
21319
21320 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
21321
21322         maint.mk: add missing version to VC-tag
21323         * top/maint.mk: git tag was missing actual tag name; add it.
21324
21325         valgrind: do leak checking, and exit with code 1 on error (not 0)
21326         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
21327         to VALGRIND.
21328
21329 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
21330
21331         posix-modules: say what it does.
21332         * posix-modules: Add a line to the --help output saying what it does.
21333
21334 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
21335
21336         xmalloc: Do not leak if underlying realloc is C99 compatible.
21337         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
21338         This avoids a leak on C99-based systems.  See
21339         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
21340
21341 2011-03-24  Eric Blake  <eblake@redhat.com>
21342
21343         realloc: document portability problem
21344         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
21345         passing 0 size to realloc.
21346
21347 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
21348
21349         doc: update users.txt
21350         * users.txt: Add cvsps, tmpwatch
21351
21352 2011-03-23  Matt Rice  <ratmice@gmail.com>
21353
21354         doc: update users.txt
21355         * users.txt: Add gdb.
21356
21357 2011-03-23  Jim Meyering  <meyering@redhat.com>
21358
21359         doc: update users.txt
21360         Looking through matches up to the following URL (there are still
21361         several more pages), I found several projects that use gnulib:
21362         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
21363         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
21364         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
21365
21366 2011-03-22  Bruno Haible  <bruno@clisp.org>
21367
21368         unictype/bidi*: Rename functions.
21369         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
21370         uc_bidi_class, uc_is_bidi_class): New declarations.
21371         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
21372         uc_bidi_category_byname.
21373         (uc_bidi_category_byname): New function.
21374         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
21375         u_bidi_category_name.
21376         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
21377         (uc_bidi_category_name): New function.
21378         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
21379         uc_bidi_category.
21380         (uc_bidi_category): New function.
21381         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
21382         uc_is_bidi_category. Invoke uc_bidi_class.
21383         (uc_is_bidi_category): New function.
21384         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
21385         instead of uc_bidi_category_byname.
21386         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
21387         instead of uc_bidi_category_name.
21388         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
21389         uc_bidi_category.
21390         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
21391         instead of uc_is_bidi_category.
21392
21393 2011-03-21  Bruno Haible  <bruno@clisp.org>
21394
21395         New module 'unictype/joininggroup-all'.
21396         * modules/unictype/joininggroup-all: New file.
21397
21398         Tests for module 'unictype/joininggroup-of'.
21399         * modules/unictype/joininggroup-of-tests: New file.
21400         * tests/unictype/test-joininggroup_of.c: New file.
21401         * tests/unictype/test-joininggroup_of.h: New file, automatically
21402         generated by gen-uni-tables.
21403
21404         New module 'unictype/joininggroup-of'.
21405         * modules/unictype/joininggroup-of: New file.
21406         * lib/unictype/joininggroup_of.c: New file.
21407         * lib/unictype/joininggroup_of.h: New file, automatically generated by
21408         gen-uni-tables.
21409
21410         Tests for module 'unictype/joininggroup-byname'.
21411         * modules/unictype/joininggroup-byname-tests: New file.
21412         * tests/unictype/test-joininggroup_byname.c: New file.
21413
21414         New module 'unictype/joininggroup-byname'.
21415         * modules/unictype/joininggroup-byname: New file.
21416         * lib/unictype/joininggroup_byname.c: New file.
21417         * lib/unictype/joininggroup_byname.gperf: New file.
21418
21419         Tests for module 'unictype/joininggroup-name'.
21420         * modules/unictype/joininggroup-name-tests: New file.
21421         * tests/unictype/test-joininggroup_name.c: New file.
21422
21423         New module 'unictype/joininggroup-name'.
21424         * modules/unictype/joininggroup-name: New file.
21425         * lib/unictype/joininggroup_name.c: New file.
21426         * lib/unictype/joininggroup_name.h: New file.
21427
21428         New module 'unictype/joiningtype-all'.
21429         * modules/unictype/joiningtype-all: New file.
21430
21431         Tests for module 'unictype/joiningtype-of'.
21432         * modules/unictype/joiningtype-of-tests: New file.
21433         * tests/unictype/test-joiningtype_of.c: New file.
21434         * tests/unictype/test-joiningtype_of.h: New file, automatically
21435         generated by gen-uni-tables.
21436
21437         New module 'unictype/joiningtype-of'.
21438         * modules/unictype/joiningtype-of: New file.
21439         * lib/unictype/joiningtype_of.c: New file.
21440         * lib/unictype/joiningtype_of.h: New file, automatically generated by
21441         gen-uni-tables.
21442
21443         Tests for module 'unictype/joiningtype-byname'.
21444         * modules/unictype/joiningtype-byname-tests: New file.
21445         * tests/unictype/test-joiningtype_byname.c: New file.
21446
21447         New module 'unictype/joiningtype-byname'.
21448         * modules/unictype/joiningtype-byname: New file.
21449         * lib/unictype/joiningtype_byname.c: New file.
21450
21451         Tests for module 'unictype/joiningtype-name'.
21452         * modules/unictype/joiningtype-name-tests: New file.
21453         * tests/unictype/test-joiningtype_name.c: New file.
21454
21455         New module 'unictype/joiningtype-name'.
21456         * modules/unictype/joiningtype-name: New file.
21457         * lib/unictype/joiningtype_name.c: New file.
21458
21459         unictype: Add support for Arabic shaping properties.
21460         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
21461         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
21462         declarations.
21463         (UC_JOINING_GROUP_*): New enumeration values.
21464         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
21465         declarations.
21466         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
21467         (unicode_joining_type): New variable.
21468         (UC_JOINING_GROUP_*): New enumeration values.
21469         (unicode_joining_group): New variable.
21470         (fill_arabicshaping, joining_type_as_c_identifier,
21471         output_joining_type_test, output_joining_type,
21472         joining_group_as_c_identifier, output_joining_group_test,
21473         output_joining_group): New functions.
21474         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
21475         fill_arabicshaping and output_joining_type_test, output_joining_type,
21476         output_joining_group_test, output_joining_group.
21477         Reported by Simon Josefsson.
21478
21479 2011-03-21  Jim Meyering  <meyering@redhat.com>
21480
21481         strftime: fix a bug in yesterday's change
21482         * lib/strftime.c (add): Accommodate width's initial value of -1.
21483         Otherwise, nstrftime would copy uninitialized data into
21484         the result buffer.
21485
21486 2011-03-21  Jim Meyering  <meyering@redhat.com>
21487
21488         tests: add strftime-tests module
21489         * tests/test-strftime.c: New file.
21490         * modules/strftime-tests: New module.
21491
21492 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
21493
21494         strftime: don't assume a byte count fits in 'int'
21495         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
21496         found this problem by static analysis, using gcc -Wstrict-overflow
21497         (GCC 4.5.2, x86-64).  This reported an optimization that depended
21498         on an integer overflow having undefined behavior, but it turns out
21499         that the argument is a size, which might not fit in 'int' anyway,
21500
21501 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
21502
21503         stdio: don't require ignore_value around fwrite
21504
21505         This patch works around libc bug 11959
21506         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
21507         Without this patch, applications must often write
21508         ignore_value (fwrite (...)) even though the ignore_value is
21509         not helpful here.  It's common to write many objects, using
21510         fwrite/printf/etc., and then use ferror to detect output error.
21511
21512         I considered making this patch optional, but decided against it,
21513         because libc is obviously being inconsistent here: there is no
21514         reason libc should insist that user code must inspect fwrite
21515         return's value without also insisting that it inspect printf's,
21516         putchar's, etc.  If user code wants to have a strict style where
21517         all these functions' values are checked (so that ferror need not
21518         be checked), we could add support for that style in a new gnulib
21519         module, but in the meantime it's better to be consistent and to
21520         support common usage.
21521
21522         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
21523         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
21524         that we are compiling in checking mode, and if not C++, and
21525         if not already wrapping fwrite for some other reason.
21526         (fwrite): #define to rpl_fwrite if the latter is defined.
21527
21528 2011-03-20  Bruno Haible  <bruno@clisp.org>
21529
21530         verror: Fix compilation error introduced on 2011-02-13.
21531         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
21532         instead of __attribute__.
21533         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21534
21535 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
21536             Bruno Haible  <bruno@clisp.org>
21537
21538         socklen: do not depend on sys_socket
21539         While trying to modify Emacs to use gnulib's socklen module,
21540         I discovered a circular dependency: socklen depends on sys_socket
21541         and vice versa.  Emacs can use socklen, but it does not need
21542         sys_socket because it has its own substitute for sys/socket.h.
21543         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
21544         gl_TYPE_SOCKLEN_T.
21545         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
21546         gl_PREREQ_SYS_H_SOCKET.
21547         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
21548         gl_PREREQ_SYS_H_SOCKET.
21549         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
21550         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
21551         * modules/socklen (Depends-on): Do not depend on sys_socket.
21552         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
21553
21554 2011-03-20  Jim Meyering  <meyering@redhat.com>
21555
21556         maint.mk: sort file names *after* new transformation
21557         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
21558         prefix would have led to an unwarranted failure in GNU parted.
21559         Sort after that transformation.
21560
21561 2011-03-19  Jim Meyering  <meyering@redhat.com>
21562
21563         maint.mk: fix po-file syntax-check rule
21564         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
21565         Patch by Bruno Haible.
21566
21567 2011-03-19  Bruno Haible  <bruno@clisp.org>
21568
21569         socklen: Update comment.
21570         * m4/socklen.m4: Update comment about platforms.
21571
21572 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
21573             Bruno Haible  <bruno@clisp.org>
21574
21575         inet_ntop, inet_pton: Simplify.
21576         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
21577         documented to provide socklen_t and we already depend on sys_socket.
21578         * modules/inet_pton (Depends-on): Likewise.
21579         * lib/arpa_inet.in.h: Adjust comment.
21580
21581 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
21582             Bruno Haible  <bruno@clisp.org>
21583
21584         netdb: Simplify.
21585         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
21586         documented to provide socklen_t and we already depend on sys_socket.
21587         * lib/netdb.in.h: Adjust comment.
21588
21589 2011-03-19  Bruno Haible  <bruno@clisp.org>
21590
21591         sys_socket, netdb: Document problem with socklen_t.
21592         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
21593         platforms.
21594         * doc/posix-headers/netdb.texi: Likewise.
21595
21596 2011-03-18  Eric Blake  <eblake@redhat.com>
21597
21598         maint.mk: let po check work in VPATH build
21599         * top/maint.mk (po_file): Allow cfg.mk override.
21600         (sc_po_check): Allow VPATH use.
21601         Reported by Jiri Denemark.
21602
21603 2011-03-16  Jim Meyering  <meyering@redhat.com>
21604
21605         maint.mk: allow fine-grained syntax-check exclusion via Make variables
21606         Before, you would have had to create one .x-sc_ file per rule in order
21607         to exempt offending files.  Now, you may instead use a Make variable --
21608         usually defined in cfg.mk -- whose name identifies the affected rule.
21609         * top/maint.mk (_sc_excl): Define.
21610         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
21611         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
21612
21613 2011-03-13  Bruno Haible  <bruno@clisp.org>
21614
21615         ignore-value tests: Avoid warnings.
21616         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
21617         empty for gcc < 3.4.
21618
21619 2011-03-13  Bruno Haible  <bruno@clisp.org>
21620
21621         passfd: Fix link error on Solaris.
21622         * modules/passfd (Description): Correct.
21623         (Depends-on): Add socketlib.
21624         (Link): New section.
21625         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
21626
21627 2011-03-13  Bruno Haible  <bruno@clisp.org>
21628
21629         passfd: Fix link error on AIX 5.2.
21630         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
21631
21632 2011-03-13  Bruno Haible  <bruno@clisp.org>
21633
21634         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
21635         * lib/sys_socket.in.h: Include <stddef.h>.
21636         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
21637         CMSG_FIRSTHDR. Remove unused variable.
21638
21639 2011-03-13  Bruno Haible  <bruno@clisp.org>
21640
21641         passfd: Fix compilation error on OpenBSD.
21642         * lib/passfd.c: Include <sys/uio.h>.
21643
21644 2011-03-13  Bruno Haible  <bruno@clisp.org>
21645
21646         passfd test: Fix warnings.
21647         * tests/test-passfd.c: Include <sys/wait.h>.
21648         (main): Fix typo.
21649
21650 2011-03-13  Bruno Haible  <bruno@clisp.org>
21651
21652         passfd module, part 4, tweaks.
21653         * tests/test-passfd.c: Reorder includes.
21654         (main): Fix perror and printf calls.
21655
21656 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
21657
21658         passfd module, part 4.
21659         * modules/passfd-tests: New file.
21660         * tests/test-passfd.c: New file.
21661
21662 2011-03-13  Jim Meyering  <meyering@redhat.com>
21663
21664         Makefile: rely on GNU make; derive syntax-check rule names
21665         Rather than requiring that each sc_ rule be listed as a dependent
21666         of "check", use features of GNU make to derive the list.
21667         * Makefile (syntax-check-rules): Define.
21668         (check): Depend on the new variable, not the hard-coded list.
21669
21670 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
21671             Bruno Haible  <bruno@clisp.org>
21672
21673         passfd module, part 3.
21674         * lib/passfd.h (recvfd): Add a flags argument.
21675         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
21676         (recvfd): Add a flags argument.
21677         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
21678         exists.
21679         * modules/passfd (Depends-on): Add cloexec.
21680         Suggested by Eric Blake.
21681
21682 2011-03-13  Bruno Haible  <bruno@clisp.org>
21683
21684         passfd module, part 2, tweaks.
21685         * modules/passfd (Files): Reorder.
21686         (Depends-on): Remove errno.
21687         (Include): Remove <sys/socket.h>, <sys/un.h>.
21688         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
21689         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
21690         specification header. Include <sys/socket.h> always. Don't include
21691         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
21692         (sendfd): Clarify that it sets errno when it fails.
21693         (recvfd): Fix specification.
21694
21695 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
21696
21697         passfd module, part 2.
21698         * modules/passfd: New file.
21699         * lib/passfd.h: New file.
21700         * lib/passfd.c: New file.
21701
21702 2011-03-12  Bruno Haible  <bruno@clisp.org>
21703
21704         wcswidth, mbswidth: Avoid integer overflow.
21705         * lib/wcswidth.c: Include <limits.h>.
21706         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
21707         * lib/mbswidth.c: Include <limits.h>.
21708         (mbsnwidth): Avoid 'int' overflow.
21709         Reported by Jim Meyering.
21710
21711 2011-03-12  Bruno Haible  <bruno@clisp.org>
21712
21713         futimens, utimensat: Avoid endless recursion on Solaris 10.
21714         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
21715         Solaris.
21716         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
21717         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
21718
21719 2011-03-11  Jim Meyering  <meyering@redhat.com>
21720
21721         maint.mk: relax a regexp to accommodate other formatting styles
21722         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
21723         between "ngettext" and the following "(".
21724
21725 2011-03-11  Pádraig Brady <P@draigBrady.com>
21726
21727         maint.mk: suppress a false positive warning
21728         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
21729         diagnostics are marked with ngettext.
21730
21731 2011-03-10  Eric Blake  <eblake@redhat.com>
21732
21733         wchar: add explicit dependencies, for Tru64
21734         * modules/mbmemcasecoll (Depends-on): Add wchar.
21735         * modules/mbtowc (Depends-on): Likewise.
21736         * modules/vasnprintf (Depends-on): Likewise.
21737         * modules/unistdio/u-printf-args (Depends-on): Likewise.
21738         * modules/wctomb (Depends-on): Likewise.
21739         Reported by Peter O'Gorman.
21740
21741 2011-03-08  Bruno Haible  <bruno@clisp.org>
21742
21743         passfd module, part 1, tweaks.
21744         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
21745         Improve indentation. Improve AC_MSG_CHECKING messages.
21746         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
21747         gl_SOCKET_FAMILIES.
21748
21749 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
21750
21751         passfd module, part 1.
21752         * m4/afunix.m4: New file.
21753         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
21754         sockets.
21755
21756 2011-03-08  Bruno Haible  <bruno@clisp.org>
21757
21758         regex-quote: New API.
21759         * lib/regex-quote.h: Include <stdbool.h>.
21760         (struct regex_quote_spec): New type.
21761         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
21762         New declarations.
21763         (regex_quote_length, regex_quote_copy, regex_quote): Take a
21764         'const struct regex_quote_spec *' argument.
21765         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
21766         (pcre_special): New constant.
21767         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
21768         New functions.
21769         (regex_quote_length, regex_quote_copy, regex_quote): Take a
21770         'const struct regex_quote_spec *' argument.
21771         * modules/regex-quote (Depends-on): Add stdbool.
21772         * tests/test-regex-quote.c (check): Update for new API. Add test for
21773         anchored results.
21774         * NEWS: Mention the API change.
21775         Reported by Reuben Thomas and Eric Blake.
21776
21777 2011-03-06  Bruno Haible  <bruno@clisp.org>
21778
21779         regex-quote: Fix creation of POSIX extended regular expressions.
21780         * lib/regex-quote.c (ere_special): Add grouping and alternation
21781         operators.
21782
21783 2011-03-05  Bruno Haible  <bruno@clisp.org>
21784
21785         doc: Improve doc regarding autopoint vs. gnulib.
21786         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
21787         disable autopoint while running autoreconf.
21788         Suggested by Ralf Wildenhues.
21789
21790 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21791
21792         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
21793         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
21794
21795 2011-03-03  Bruce Korb  <bkorb@gnu.org>
21796
21797         parse-duration: remove xalloc.h dependency
21798         * lib/parse-duration.c (parse_period): handle NULL return from
21799         strdup instead of calling xstrdup().
21800         * modules/parse-duration: remove "xalloc" dependency
21801
21802 2011-03-03  Matthew Booth  <mbooth@redhat.com>
21803
21804         bootstrap: honor m4_base when running aclocal
21805         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
21806
21807 2011-03-02  Jim Meyering  <meyering@redhat.com>
21808
21809         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
21810         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
21811         on request from Matt Booth.
21812
21813 2011-03-01  Eric Blake  <eblake@redhat.com>
21814
21815         test-link: work on Hurd
21816         * tests/test-link.h (test_link): Hurd rejects linking directories
21817         with EISDIR instead of the POSIX-mandated EPERM.
21818
21819 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
21820
21821         stdio: simplify by moving files to printf-posix, sigpipe
21822         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
21823         since this symbol is needed only if printf is replaced.
21824         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
21825         Require gl_ASM_SYMBOL_PREFIX.
21826         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
21827         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
21828         (Depends-on): Add 'raise'.
21829         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
21830         * modules/stdio (Files): Remove lib/stdio-write.c,
21831         m4/asm-underscore.m4.
21832         (Depends-on): Remove 'raise'.
21833
21834         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
21835         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
21836         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
21837         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
21838
21839 2011-02-28  Bruno Haible  <bruno@clisp.org>
21840
21841         localcharset: Assume ANSI C behaviour of free().
21842         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
21843         calling free().
21844         Suggested by Simon Josefsson <simon@josefsson.org>.
21845
21846 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
21847             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
21848             Bruno Haible  <bruno@clisp.org>  (tiny change)
21849
21850         On Cygwin, use /proc file system instead of win32 API.
21851         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
21852         Win32 file names.
21853         (DllMain): Simplify by removing Cygwin specific code.
21854         (find_shared_library_fullname): Use Linux specific implementation also
21855         for Cygwin.
21856         (get_shared_library_fullname): Update accordingly.
21857         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
21858         Win32 file names.
21859         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
21860         Cygwin specific code.
21861
21862 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
21863             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
21864
21865         Fix OpenMP flag detection for various Fortran compilers.
21866         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
21867         OpenMP-conditional compilation construct, to force compile
21868         failure with missing OpenMP flag.
21869         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
21870
21871 2011-02-25  Eric Blake  <eblake@redhat.com>
21872
21873         strstr: expand test coverage
21874         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
21875         compilation.
21876         * tests/test-memmem.c (main): Duplicate tests.
21877         * tests/test-strcasestr.c (main): Likewise.
21878         * tests/test-c-strcasestr.c (main): Likewise.
21879
21880 2011-02-25  Jim Meyering  <meyering@redhat.com>
21881
21882         maint.mk: detect missing-NL-at-EOF, too
21883         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
21884         it also detects when a file lacks a newline at EOF.
21885         (require_exactly_one_NL_at_EOF_): Renamed from
21886         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
21887         since people may well have .x-sc_... file names tied to the
21888         existing name.  Suggested by Eric Blake.
21889
21890 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
21891
21892         dirname: move m4/dos.m4 functionality into lib/dosname.h
21893
21894         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
21895         extracts symbols from it, puts them into config.h; but it's much
21896         easier to use the symbols directly.  filename.h already does this,
21897         but it disagrees with dos.m4 in some respects.  This patch
21898         introduces a different include file dosname.h that packages up
21899         dos.m4, and then later we can work on merging filename.h and
21900         dosname.h.  Applications that need only the easy-to-configure
21901         symbols should consider including dosname.h rather than dirname.h.
21902         * NEWS: Mention incompatible changes.
21903         * m4/dos.m4: Remove.
21904         * lib/dosname.h, modules/dosname: New files.
21905         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
21906         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
21907         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
21908         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
21909         Include dosname.h, not dirname.h.
21910         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
21911         Include dosname.h, for definitions of symbols like ISSLASH
21912         that used to be in config.h.
21913         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
21914         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
21915         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
21916         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
21917         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
21918         * modules/rmdir (Files): Likewise.
21919         * modules/stat (Files): Likewise.
21920         * modules/unlink (Files): Likewise.
21921         * modules/dirname-lgpl (Depends-on): Add dosname.
21922         * modules/lstat (Depends-on): Likewise.
21923         * modules/openat (Depends-on): Likewise.
21924         * modules/rmdir (Depends-on): Likewise.
21925         * modules/savewd (Depends-on): Likewise.
21926         * modules/stat (Depends-on): Likewise.
21927         * modules/unlink (Depends-on): Likewise.
21928         * modules/openat (Depends-on): Remove dirname-lgpl.
21929         * modules/savewd (Depends-on): Likewise.
21930         * tests/test-dirname.c: Do not use removed symbols like
21931         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
21932         the remaining symbols, e.g., ISSLASH ('\\').
21933
21934 2011-02-25  Eric Blake  <eblake@redhat.com>
21935
21936         strstr: revert patches that introduced bug and pessimization
21937         * lib/str-two-way.h: Add another reference.
21938         (two_way_short_needle, two_way_long_needle): Revert changes from
21939         2011-02-24; they pessimize search speed.
21940         (critical_factorization): Partially revert changes from
21941         2010-06-22; they violate the requirement that the left half of the
21942         needle be smaller than the period of the needle.
21943
21944 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
21945
21946         filenamecat: remove unnecessary dependency on dirname-lgpl
21947         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
21948         is no direct dependency, just an indirect one via filenamecat-lgpl.
21949
21950         remove: remove unnecessary use of m4/dos.m4
21951         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
21952         * modules/remove (FILES): Remove m4/dos.m4.
21953
21954         * lib/openat-proc.c: Don't include dirname.h; not needed.
21955
21956         backupfile: remove unnecessary use of m4/dos.m4
21957         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
21958         of its symbols are used by the backupfile code.  backupfile.c does
21959         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
21960         for the rare case of programs that want all their backup file
21961         names to live within 8+3 limits, and dos.m4 doesn't address that.
21962         * modules/backupfile (Files): Remove m4/dos.m4.
21963
21964 2011-02-24  Jim Meyering  <meyering@redhat.com>
21965
21966         strstr: fix a bug whereby strstr would mistakenly return NULL
21967         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
21968         in period calculation.
21969         (two_way_long_needle): Likewise.
21970         The original problem was reported by Mike Stump in
21971         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
21972         Ralf Wildenhues provided the short needle and haystack.
21973         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
21974         Add a more involved test to trigger the bug in two_way_long_needle.
21975
21976 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
21977
21978         gnulib-tool: remove use of bold display in help screen
21979         * gnulib-tool (func_usage): Do not use bold display anymore in the
21980         help screen.  That was just meant to be a temporary emphasis for a
21981         backward-incompatible change.
21982
21983 2011-02-23  Bruno Haible  <bruno@clisp.org>
21984
21985         Fix misindentation of preprocessor directives.
21986         * lib/argp-namefrob.h: Reindent preprocessor directives.
21987         * lib/getopt_int.h (struct _getopt_data): Likewise.
21988         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
21989         * lib/vasnprintf.c (decode_long_double): Likewise.
21990         * tests/test-argmatch.c: Insert blank lines, for clarity.
21991         * tests/test-exclude.c: Likewise.
21992
21993 2011-02-22  Bruno Haible  <bruno@clisp.org>
21994
21995         ioctl: Fix for MacOS X in 64-bit mode.
21996         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
21997         value.
21998         Suggested by Eric Blake.
21999         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
22000
22001 2011-02-22  Jim Meyering  <meyering@redhat.com>
22002
22003         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
22004         * Makefile (sc_cpp_indent_check): Don't limit the check to files
22005         in lib/.
22006
22007 2011-02-22  Eric Blake  <eblake@redhat.com>
22008
22009         maint: avoid any CDPATH issue
22010         * Makefile (sc_cpp_indent_check): Anchor cd argument.
22011
22012         maint: adjust cpp indentation for my modules, as well
22013         * Makefile (sc_cpp_indent_check): Add my name.
22014         * lib/fbufmode.c: Filter through cppi.
22015         * lib/fpurge.c: Likewise.
22016         * lib/freadable.c: Likewise.
22017         * lib/freading.c: Likewise.
22018         * lib/fwritable.c: Likewise.
22019         * lib/fwriting.c: Likewise.
22020         * lib/sigaction.c: Likewise.
22021
22022 2011-02-22  Jim Meyering  <meyering@redhat.com>
22023
22024         maint: adjust cpp indentation to reflect nesting depth
22025         I.e., in a block of code that begins with an unnested "#if",
22026         put one space between the "#" in column 1 and following token.
22027         For example,
22028         -#include <sys/vfs.h>
22029         +# include <sys/vfs.h>
22030         Do this only in .c files that are part of a module I maintain.
22031         * lib/linkat.c: Filter through cppi.
22032         * lib/nanosleep.c: Likewise.
22033         * lib/openat.c: Likewise.
22034         * lib/openat-die.c: Likewise.
22035         * lib/dup3.c: Likewise.
22036         * lib/fchownat.c: Likewise.
22037         * lib/flock.c: Likewise.
22038         * lib/fsync.c: Likewise.
22039         * lib/fts.c: Likewise.
22040         * lib/getpass.c: Likewise.
22041         * lib/gettimeofday.c: Likewise.
22042         * lib/userspec.c: Likewise.
22043         * Makefile (sc_cpp_indent_check): New rule, to check this.
22044
22045 2011-02-22  Bruno Haible  <bruno@clisp.org>
22046
22047         New module 'wctomb'.
22048         * lib/stdlib.in.h (wctomb): New declaration.
22049         * lib/wctomb.c: New file.
22050         * lib/wctomb-impl.h: New file.
22051         * m4/wctomb.m4: New file.
22052         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
22053         REPLACE_WCTOMB.
22054         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
22055         REPLACE_WCTOMB.
22056         * modules/wctomb: New file.
22057         * tests/test-stdlib-c++.cc: Test signature of wctomb.
22058         * doc/posix-functions/wctomb.texi: Mention the new module.
22059         * modules/wctob (Depends-on): Add wctomb.
22060
22061 2011-02-22  Bruno Haible  <bruno@clisp.org>
22062
22063         New module 'mbtowc'.
22064         * lib/stdlib.in.h (mbtowc): New declaration.
22065         * lib/mbtowc.c: New file.
22066         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
22067         * m4/mbtowc.m4: New file.
22068         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
22069         REPLACE_MBTOWC.
22070         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
22071         REPLACE_MBTOWC.
22072         * modules/mbtowc: New file.
22073         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
22074         * doc/posix-functions/mbtowc.texi: Mention the new module.
22075         * modules/btowc (Depends-on): Add mbtowc.
22076
22077 2011-02-22  Bruno Haible  <bruno@clisp.org>
22078
22079         wcrtomb: Add more tests for native Windows platforms.
22080         * tests/test-wcrtomb-w32-1.sh: New file.
22081         * tests/test-wcrtomb-w32-2.sh: New file.
22082         * tests/test-wcrtomb-w32-3.sh: New file.
22083         * tests/test-wcrtomb-w32-4.sh: New file.
22084         * tests/test-wcrtomb-w32-5.sh: New file.
22085         * tests/test-wcrtomb-w32.c: New file.
22086         * modules/wcrtomb-tests (Files): Add them.
22087         (Makefile.am): Arrange to run these tests.
22088         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
22089         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
22090
22091 2011-02-20  Bruno Haible  <bruno@clisp.org>
22092
22093         wcrtomb: Enhance test.
22094         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
22095
22096 2011-02-20  Bruno Haible  <bruno@clisp.org>
22097
22098         mbrtowc: Tiny optimization.
22099         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
22100
22101 2011-02-20  Jim Meyering  <meyering@redhat.com>
22102
22103         test-exclude.c: remove unmatched #endif
22104         * tests/test-exclude.c: Remove stray #endif, left over from
22105         the change of a week ago.
22106
22107 2011-02-19  Jim Meyering  <meyering@redhat.com>
22108
22109         git-version-gen: skip "-dirty" check when appropriate
22110         * build-aux/git-version-gen: Don't run any git commands when the
22111         version string comes from .tarball-version.  Prior to this, we
22112         would run git update-index --refresh even from a just-unpacked
22113         tarball directory, and that could affect a .git/ directory in a
22114         parent of the build directory.  Reported by Mike Frysinger.
22115
22116 2011-02-19  Bruno Haible  <bruno@clisp.org>
22117
22118         unictype/property-byname: Reduce the size of the 'data' segment.
22119         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
22120
22121 2011-02-19  Bruno Haible  <bruno@clisp.org>
22122
22123         unictype/scripts: Reduce the size of the 'data' segment.
22124         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
22125         '%pic'.
22126         * lib/unictype/scripts_byname.gperf: Regenerated.
22127
22128 2011-02-19  Bruno Haible  <bruno@clisp.org>
22129
22130         stdint: Update documentation.
22131         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
22132
22133 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
22134
22135         stdint: omit redundant check for wchar.h
22136         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
22137         always tests whether wchar.h exists, so remove the now-redundant test.
22138
22139 2011-02-18  Bruno Haible  <bruno@clisp.org>
22140
22141         stdint: Cut dependency to module 'wchar'.
22142         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
22143         include the necessary prerequisites.
22144         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
22145         * modules/stdint (Depends-on): Remove wchar.
22146         (Makefile.am): Substitute HAVE_WCHAR_H.
22147         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
22148
22149 2011-02-18  Eric Blake  <eblake@redhat.com>
22150
22151         longlong: skip, rather than fail, on cross-compilation
22152         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
22153         when cross-compiling; regression from 2011-02-16.
22154
22155 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
22156
22157         * NEWS: Mention 2011-02-08 change to stdlib.
22158
22159 2011-02-17  Bruno Haible  <bruno@clisp.org>
22160
22161         getloadavg: Add comments about platforms.
22162         * m4/getloadavg.m4: Add comment.
22163         * lib/getloadavg.c: Likewise.
22164
22165 2011-02-17  Bruno Haible  <bruno@clisp.org>
22166
22167         getloadavg: Fix link error on Solaris 2.6.
22168         * modules/getloadavg (Link): New section.
22169         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
22170         linking test-getloadavg.
22171         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
22172         getloadavg.
22173
22174 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
22175
22176         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
22177         It was 'int', but this doesn't match the IRIX 6.5 manual.
22178         Suggested by Bruno Haible in
22179         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
22180
22181 2011-02-17  Bruno Haible  <bruno@clisp.org>
22182
22183         havelib: Fix comments.
22184         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
22185         change.
22186
22187 2011-02-17  Bruno Haible  <bruno@clisp.org>
22188
22189         havelib: Update config.rpath.
22190         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
22191
22192 2011-02-17  Bruno Haible  <bruno@clisp.org>
22193
22194         getloadavg test: Add some plausibility checks.
22195         * tests/test-getloadavg.c (check_avg): Print a warning when the value
22196         is improbable.
22197
22198 2011-02-16  Eric Blake  <eblake@redhat.com>
22199
22200         maintainer-makefile: make syntax-check a no-op from tarballs
22201         * top/maint.mk (no-vc-detected): New rule.
22202         (local-checks-available): Use it to avoid hanging if someone tries
22203         'make syntax-check' from a tarball.  Also append to any non-syntax
22204         checks already defined in cfg.mk.
22205
22206 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
22207
22208         longlong: tune, particularly for common case of c99
22209
22210         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
22211         or running anything if c99, or if unsigned long long int does not
22212         work.  In either case, we know the answer without further tests.
22213         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
22214         it at most once, and use its results for both long long int and
22215         unsigned long long int.  This is more likely to be efficient in
22216         the common case where the program wants to check for both long
22217         long int and unsigned long long int.
22218         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
22219         since the answer is already known.
22220
22221 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
22222
22223         getloadavg: set errno
22224         * lib/getloadavg.c: Set errno when returning -1.  If no other
22225         error number looks appropriate, set it to ENOSYS if the getloadavg
22226         looks like it can't possibly ever work, ENOTSUP otherwise.
22227         Suggested by Bruno Haible in
22228         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
22229
22230         getloadavg: trim unused parts and speed up 'configure'
22231         * NEWS: Document this.
22232         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
22233         always compiled if getloadavg is absent.
22234         Move test code to ...
22235         * tests/test-getloadavg.c: New file, containing previous
22236         contents of test from lib/getloadavg.c.  It also contains
22237         suggestions by Bruno Haible in
22238         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
22239         * modules/getloadavg-tests: New file.
22240         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
22241         Do tests in the same order as they're needed for getloadavg.c.
22242         Omit setgid-related tests that generate symbols KMEM_GROUP,
22243         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
22244         Do only the tests that are needed to see whether the system has
22245         getloadavg, moving the other tests into ...
22246         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
22247         NLIST_NAME_UNION; nobody should be using it.  Do not define
22248         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
22249         relevant, as the user of this module shouldn't care how getloadavg
22250         is implemented.
22251
22252         getloadavg: omit unused var
22253         * lib/getloadavg.c (getloadavg): Omit unused local variable.
22254
22255 2011-02-15  Jim Meyering  <meyering@redhat.com>
22256
22257         doc: update users.txt
22258         * users.txt: Update iwhd's URL.
22259
22260 2011-02-13  Bruno Haible  <bruno@clisp.org>
22261
22262         Consistent macro naming for macros that use GCC __attribute__.
22263         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
22264         _ATTRIBUTE_NONNULL_.
22265         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
22266         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
22267         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
22268         ATTRIBUTE_DEPRECATED.
22269         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
22270         ATTRIBUTE_NORETURN.
22271         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
22272         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
22273         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
22274         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
22275         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
22276         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
22277         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
22278         ATTRIBUTE_SENTINEL.
22279         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
22280         ATTRIBUTE_RETURN_CHECK.
22281         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
22282         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
22283         ATTRIBUTE_NORETURN.
22284         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
22285         Reported by Paul Eggert.
22286
22287 2011-02-13  Bruno Haible  <bruno@clisp.org>
22288
22289         Don't interfere with a program's definition of __attribute__.
22290         * lib/argp.h (__attribute__): Remove definition.
22291         (_GL_ATTRIBUTE_FORMAT): New macro.
22292         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
22293         * lib/argp-fmtstream.h (__attribute__): Remove definition.
22294         (_GL_ATTRIBUTE_FORMAT): New macro.
22295         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
22296         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
22297         GCC 3 or newer.
22298         * lib/error.h (__attribute__): Remove definition.
22299         (_GL_ATTRIBUTE_FORMAT): New macro.
22300         (error, error_at_line): Use it.
22301         * lib/hash.h (__attribute__): Remove definition.
22302         (ATTRIBUTE_WUR): Update definition. Define always.
22303         * lib/openat.h (__attribute__): Remove definition.
22304         (ATTRIBUTE_NORETURN): Update definition. Define always.
22305         * lib/sigpipe-die.h (__attribute__): Remove definition.
22306         (ATTRIBUTE_NORETURN): Update definition. Define always.
22307         * lib/vasnprintf.h (__attribute__): Remove definition.
22308         (_GL_ATTRIBUTE_FORMAT): New macro.
22309         (asnprintf, vasnprintf): Use it.
22310         * lib/xalloc.h (__attribute__): Remove definition.
22311         (ATTRIBUTE_NORETURN): Update definition. Define always.
22312         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
22313         * lib/xmemdup0.h (__attribute__): Remove definition.
22314         (ATTRIBUTE_NORETURN): Update definition. Define always.
22315         * lib/xprintf.h (__attribute__): Remove definition.
22316         (_GL_ATTRIBUTE_FORMAT): New macro.
22317         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
22318         * lib/xstrtol.h (__attribute__): Remove definition.
22319         (ATTRIBUTE_NORETURN): Update definition. Define always.
22320         * lib/xvasprintf.h (__attribute__): Remove definition.
22321         (_GL_ATTRIBUTE_FORMAT): New macro.
22322         (xasprintf, xvasprintf): Use it.
22323         * tests/test-argmatch.c (__attribute__): Remove definition.
22324         (ATTRIBUTE_NORETURN): Update definition. Define always.
22325         * tests/test-exclude.c (__attribute__): Remove definition.
22326         (ATTRIBUTE_NORETURN): Update definition. Define always.
22327         Reported by Paul Eggert.
22328
22329 2011-02-13  Bruno Haible  <bruno@clisp.org>
22330
22331         mbrtowc: Add more tests for native Windows platforms.
22332         * tests/test-mbrtowc-w32-1.sh: New file.
22333         * tests/test-mbrtowc-w32-2.sh: New file.
22334         * tests/test-mbrtowc-w32-3.sh: New file.
22335         * tests/test-mbrtowc-w32-4.sh: New file.
22336         * tests/test-mbrtowc-w32-5.sh: New file.
22337         * tests/test-mbrtowc-w32.c: New file.
22338         * modules/mbrtowc-tests (Files): Add them.
22339         (Makefile.am): Arrange to run these tests.
22340         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
22341         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
22342
22343 2011-02-13  Bruno Haible  <bruno@clisp.org>
22344
22345         mbrtowc: Work around native Windows bug.
22346         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
22347         guess when no suitable locale for testing was found.
22348         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
22349
22350 2011-02-13  Bruno Haible  <bruno@clisp.org>
22351
22352         mbsinit: Work around mingw bug.
22353         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
22354         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
22355         Windows.
22356         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
22357
22358 2011-02-13  Bruno Haible  <bruno@clisp.org>
22359
22360         mbsinit: Don't crash for a NULL argument.
22361         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
22362         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
22363
22364 2011-02-13  Bruno Haible  <bruno@clisp.org>
22365
22366         Don't interfere with a program's definition of __attribute__.
22367         * lib/stdio.in.h (__attribute__): Remove definition.
22368         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
22369         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
22370         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
22371         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
22372         * lib/string.in.h (__attribute__): Remove definition.
22373         Reported by Paul Eggert.
22374
22375 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
22376
22377         stdlib: don't get in the way of non-GCC __attribute__
22378         See thread starting at
22379         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
22380         Revert previous stdlib change, installing the following instead:
22381         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
22382         to get in the way of a non-GCC compiler that supports __attribute__.
22383         (_GL_ATTRIBUTE_RETURN): New macro.
22384         (_Exit): Use it instead of __attribute__.
22385
22386 2011-02-12  Bruno Haible  <bruno@clisp.org>
22387
22388         quotearg test: Avoid test failure on mingw.
22389         * tests/test-quotearg.sh: Convert the locale identifier from native
22390         Windows syntax to Unix syntax.
22391
22392 2011-02-12  Bruno Haible  <bruno@clisp.org>
22393
22394         setlocale: Prefer gnulib's override over libintl's override.
22395         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
22396         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
22397         GNULIB_defined_setlocale is set.
22398
22399 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
22400
22401         stdlib: support non-GCC __attribute__
22402
22403         Fix a serious and tricky problem encountered when attempting to
22404         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
22405         5.5, but it crashed due to memory corruption on Solaris 10 with
22406         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
22407         bits that are otherwise zero.  This tagging is optional inside
22408         Emacs but is preferred and is used when __attribute__ ((__aligned
22409         (8))) works, as it does with both recent-enough GCC and with Sun C
22410         5.11.  However, Sun C 5.11 is not GCC and does not #define
22411         __GNUC__ and __GNUC_MINOR__.
22412
22413         When I added the getloadavg module to Emacs, it brought in
22414         stdlib.in.h, which contained this fragment:
22415
22416            #ifndef __attribute__
22417            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
22418            #  define __attribute__(Spec)   /* empty */
22419            # endif
22420            #endif
22421
22422         When files that include <stdlib.h> were compiled with Sun C 5.11,
22423         the above code disabled __attribute__ ((__aligned (8))), which
22424         caused variables to not be properly aligned, which eventually led
22425         to the pointer corruption mentioned above.  (This was a bit hard
22426         to diagnose, unfortunately.)
22427
22428         Several "#define __attribute__(X) /* empty */" code snippets need
22429         to be eradicated from Gnulib to work with non-GCC compilers that
22430         support __attribute__.  The Autoconf way to do this is to test for
22431         each kind of attribute that we want support for, and selectively
22432         enable that in source code.
22433
22434         Fix this problem just for stdlib.h, by adding a test for the
22435         __noreturn__ attribute, and change stdlib.in.h to use that test
22436         when needed.  This technique can be easily generalized to the
22437         other *.in.h files and attributes, and a similar technique can be
22438         used for *.h and *.c files.  This patch is enough to solve the
22439         problem for Emacs + getloadavg, and I thought I'd publish it for
22440         feedback before undertaking further, similar fixes in other
22441         modules.
22442
22443         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
22444         because it's not needed for stdlib.h.  It merely substitutes the
22445         value directly into stdlib.h.  We may well need to #define it, or
22446         similar symbols, for other modules, but it's nice to also have an
22447         option to not #define it for applications like Emacs that do not
22448         need it.
22449
22450         * lib/stdlib.in.h (__attribute__): Do not #define.
22451         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
22452         be defined only if the _Exit module is also used.
22453         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
22454         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
22455         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
22456         platforms.
22457         * modules/_Exit (Files): Add m4/attribute.m4.
22458         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
22459         * m4/attribute.m4: New file.
22460
22461 2011-02-12  Bruno Haible  <bruno@clisp.org>
22462
22463         wcsrtombs: Work around bug on native Windows.
22464         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
22465         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
22466         instead of len.
22467         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
22468
22469 2011-02-12  Bruno Haible  <bruno@clisp.org>
22470
22471         mbsrtowcs: Work around bug on native Windows.
22472         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
22473         against mingw bug.
22474         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
22475
22476 2011-02-12  Bruno Haible  <bruno@clisp.org>
22477
22478         Avoid setlocale bugs in tests.
22479         * modules/btowc (Dependencies): Add setlocale.
22480         * modules/c-strcase (Dependencies): Likewise.
22481         * modules/mbmemcasecmp (Dependencies): Likewise.
22482         * modules/mbmemcasecoll (Dependencies): Likewise.
22483         * modules/mbrtowc (Dependencies): Likewise.
22484         * modules/mbscasecmp (Dependencies): Likewise.
22485         * modules/mbscasestr (Dependencies): Likewise.
22486         * modules/mbschr (Dependencies): Likewise.
22487         * modules/mbscspn (Dependencies): Likewise.
22488         * modules/mbsinit (Dependencies): Likewise.
22489         * modules/mbsncasecmp (Dependencies): Likewise.
22490         * modules/mbsnrtowcs (Dependencies): Likewise.
22491         * modules/mbspbrk (Dependencies): Likewise.
22492         * modules/mbspcasecmp (Dependencies): Likewise.
22493         * modules/mbsrchr (Dependencies): Likewise.
22494         * modules/mbsrtowcs (Dependencies): Likewise.
22495         * modules/mbsspn (Dependencies): Likewise.
22496         * modules/mbsstr (Dependencies): Likewise.
22497         * modules/nl_langinfo (Dependencies): Likewise.
22498         * modules/quotearg (Dependencies): Likewise.
22499         * modules/unicase/locale-language (Dependencies): Likewise.
22500         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
22501         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
22502         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
22503         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
22504         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
22505         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
22506         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
22507         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
22508         * modules/vasnprintf-posix (Dependencies): Likewise.
22509         * modules/wcrtomb (Dependencies): Likewise.
22510         * modules/wcsnrtombs (Dependencies): Likewise.
22511         * modules/wcsrtombs (Dependencies): Likewise.
22512
22513 2011-02-12  Bruno Haible  <bruno@clisp.org>
22514
22515         setlocale: Workaround native Windows bug.
22516         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
22517         succeeds but sets LC_CTYPE to "C", report a failure.
22518         * tests/test-setlocale2.sh: New file.
22519         * tests/test-setlocale2.c: New file.
22520         * modules/setlocale-tests (Files): Add the new files.
22521         (Makefile.am): Enable test-setlocale2.sh test.
22522         * doc/posix-functions/setlocale.texi: Mention workaround.
22523
22524 2011-02-11  Bruno Haible  <bruno@clisp.org>
22525
22526         Tests for module 'setlocale'.
22527         * modules/setlocale-tests: New file.
22528         * tests/test-setlocale1.sh: New file.
22529         * tests/test-setlocale1.c: New file.
22530
22531         New module 'setlocale'.
22532         * lib/locale.in.h (setlocale): New declaration.
22533         * lib/setlocale.c: New file, based on
22534         gettext/gettext-runtime/intl/setlocale.c.
22535         * m4/setlocale.m4: New file.
22536         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
22537         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
22538         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
22539         REPLACE_SETLOCALE.
22540         * modules/setlocale: New file.
22541         * tests/test-locale-c++.cc: Test the declaration of setlocale.
22542         * doc/posix-functions/setlocale.texi: Mention the new module.
22543
22544 2011-02-11  Bruno Haible  <bruno@clisp.org>
22545
22546         Prepare for locale dependent tests on mingw.
22547         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
22548         because it has the wrong locale encoding.
22549         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
22550         French_France.1252 instead of "fr".
22551         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
22552         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
22553         because it has the wrong locale encoding.
22554         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
22555         native Windows, try Turkish_Turkey.65001.
22556         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
22557         Chinese_China.54936.
22558
22559         Prepare for locale dependent tests on mingw.
22560         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
22561         differently.
22562         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
22563         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
22564         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
22565         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
22566
22567 2011-02-11  Eric Blake  <eblake@redhat.com>
22568
22569         strptime: avoid compiler warnings
22570         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
22571         compiler warnings about dead code.
22572         Reported by Daniel P. Berrange.
22573
22574 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
22575
22576         doc: update users.txt
22577         * users.txt: Add rcs.
22578
22579 2011-02-10  John W. Eaton  <jwe@gnu.org>
22580
22581         doc: update users.txt
22582         * users.txt: Add octave.
22583
22584 2011-02-10  Jim Meyering  <meyering@redhat.com>
22585
22586         doc: update users.txt
22587         * users.txt: Add iwhd.
22588
22589 2011-02-09  Bruno Haible  <bruno@clisp.org>
22590
22591         gnulib-tool: Make copyright notice adjustment more robust.
22592         * gnulib-tool (func_import): In sed_transform_main_lib_file,
22593         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
22594         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
22595         License".
22596         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
22597
22598 2011-02-06  Bruno Haible  <bruno@clisp.org>
22599
22600         New module 'towctrans'.
22601         * modules/towctrans: New file.
22602         * lib/wctype.in.h (towctrans): New declaration.
22603         * lib/towctrans.c: New file.
22604         * lib/towctrans-impl.h: New file.
22605         * m4/towctrans.m4: New file.
22606         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
22607         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
22608         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
22609         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
22610         * doc/posix-functions/towctrans.texi: Mention the new module.
22611
22612 2011-02-06  Bruno Haible  <bruno@clisp.org>
22613
22614         New module 'wctrans'.
22615         * modules/wctrans: New file.
22616         * lib/wctype.in.h (wctrans): New declaration.
22617         * lib/wctrans.c: New file.
22618         * lib/wctrans-impl.h: New file.
22619         * m4/wctrans.m4: New file.
22620         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
22621         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
22622         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
22623         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
22624         * doc/posix-functions/wctrans.texi: Mention the new module.
22625
22626 2011-02-06  Bruno Haible  <bruno@clisp.org>
22627
22628         New module 'iswctype'.
22629         * modules/iswctype: New file.
22630         * lib/wctype.in.h (iswctype): New declaration.
22631         * lib/iswctype.c: New file.
22632         * lib/iswctype-impl.h: New file.
22633         * m4/iswctype.m4: New file.
22634         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
22635         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
22636         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
22637         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
22638         * doc/posix-functions/iswctype.texi: Mention the new module and the
22639         HP-UX 11.00 problem.
22640
22641 2011-02-06  Bruno Haible  <bruno@clisp.org>
22642
22643         New module 'wctype'.
22644         * modules/wctype: Change to represent the wctype() substitute.
22645         * lib/wctype.in.h (wctype): New declaration.
22646         * lib/wctype.c: New file.
22647         * lib/wctype-impl.h: New file.
22648         * m4/wctype.m4: New file.
22649         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
22650         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
22651         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
22652         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
22653         * doc/posix-functions/wctype.texi: Mention the new module and the
22654         HP-UX 11.00 problem.
22655
22656 2011-02-06  Bruno Haible  <bruno@clisp.org>
22657
22658         wctype-h: Ensure wctype_t and wctrans_t are defined.
22659         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
22660         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
22661         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
22662         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
22663         HAVE_WCTRANS_T.
22664         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
22665
22666 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
22667
22668         flock: fix license typo
22669
22670         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
22671         omitted.
22672
22673 2011-02-08  Bruno Haible  <bruno@clisp.org>
22674
22675         Split large sed scripts, for HP-UX sed.
22676         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
22677         to avoid HP-UX limit of 99 commands, in the near future.
22678         * modules/stdlib (Makefile.am): Likewise.
22679         * modules/unistd (Makefile.am): Likewise.
22680         * modules/wchar (Makefile.am): Likewise.
22681         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
22682         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
22683         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
22684
22685 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
22686             Bruno Haible  <bruno@clisp.org>
22687
22688         stdlib: improve random_r modularization
22689         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
22690         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
22691         you also need the random_r module to get this material right.
22692         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
22693         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
22694         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
22695
22696 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
22697
22698         stdlib: don't depend on stdint
22699         * lib/stdlib.in.h: Don't include <stdint.h> merely because
22700         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
22701         be independent of whether stdint.h is needed.
22702         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
22703         here, instead of ...
22704         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
22705         struct random_data should be using the random_r module, not just
22706         the stdlib module (which wouldn't make sense: what package needs
22707         just struct random_data without also needing random_r?).
22708         * modules/stdlib (Depends-on): Remove stdint.
22709
22710         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
22711         See the thread rooted at
22712         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
22713         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
22714         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
22715         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
22716         __VMS)); previously it was always included (via fcntl--.h).
22717         (getloadavg): Do not use c_strtod.  Instead, approximate it by
22718         hand; this is good enough for load averages.  Also, do not use
22719         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
22720         flags directly if available and don't bother otherwise.  (Packages
22721         that need the extra reliability should use the modules that define
22722         these flags on older platforms that lack them.)
22723         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
22724         fcntl-safer.
22725
22726 2011-02-08  Jim Meyering  <meyering@redhat.com>
22727
22728         di-set.h, ino-map.h: add multiple-inclusion guard
22729         Technically, the guard is required only for ino-map.h, due to its
22730         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
22731         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
22732         * lib/ino-map.h: Likewise.
22733
22734 2011-02-06  Bruno Haible  <bruno@clisp.org>
22735
22736         iswblank: Ensure declaration on glibc systems.
22737         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
22738         * modules/iswblank (Dependencies): Add 'extensions'.
22739         * doc/posix-functions/iswblank.texi: Document the glibc problem.
22740
22741 2011-02-06  Bruno Haible  <bruno@clisp.org>
22742
22743         New module 'iswblank'.
22744         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
22745         * modules/iswblank: New file.
22746         * modules/wctype-h (Files): Remove lib/iswblank.c.
22747         (Makefile.am): Substitute GNULIB_ISWBLANK.
22748         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
22749         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
22750         (gl_WCTYPE_H_DEFAULTS): New macro.
22751         (gl_WCTYPE_H): Require it. Remove iswblank related code.
22752         * modules/iswblank-tests: New file.
22753         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
22754         * tests/test-wctype-h.c (main): Remove iswblank tests.
22755         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
22756         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
22757         of 'wctype-h'.
22758         * NEWS: Mention the change.
22759         * modules/mbchar (Depends-on): Add iswblank.
22760
22761 2011-02-08  Bruno Haible  <bruno@clisp.org>
22762
22763         di-set tests: Refactor.
22764         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
22765         unnecessary includes.
22766         (ASSERT): Remove macro.
22767         (main): Make C90 compliant by avoiding variable declaration after
22768         statement.
22769         * modules/di-set-tests (Files): Add tests/macros.h.
22770
22771 2011-02-08  Bruno Haible  <bruno@clisp.org>
22772
22773         ino-map tests: Refactor.
22774         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
22775         unnecessary includes.
22776         (ASSERT): Remove macro.
22777         (main): Make C90 compliant by avoiding variable declaration after
22778         statement.
22779         * modules/ino-map-tests (Files): Add tests/macros.h.
22780
22781 2011-02-08  Jim Meyering  <meyering@redhat.com>
22782
22783         di-set: add "const" to a cast
22784         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
22785         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
22786
22787 2011-02-06  Bruno Haible  <bruno@clisp.org>
22788
22789         Rename module 'wctype' to 'wctype-h'.
22790         * modules/wctype-h: Renamed from modules/wctype.
22791         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
22792         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
22793         (Files, Depends-on, Makefile.am): Update.
22794         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
22795         (Files, Makefile.am): Update.
22796         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
22797         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
22798         * doc/posix-headers/wctype.texi: Update.
22799         * doc/posix-functions/iswalnum.texi: Update.
22800         * doc/posix-functions/iswalpha.texi: Update.
22801         * doc/posix-functions/iswblank.texi: Update.
22802         * doc/posix-functions/iswcntrl.texi: Update.
22803         * doc/posix-functions/iswdigit.texi: Update.
22804         * doc/posix-functions/iswgraph.texi: Update.
22805         * doc/posix-functions/iswlower.texi: Update.
22806         * doc/posix-functions/iswprint.texi: Update.
22807         * doc/posix-functions/iswpunct.texi: Update.
22808         * doc/posix-functions/iswspace.texi: Update.
22809         * doc/posix-functions/iswupper.texi: Update.
22810         * doc/posix-functions/iswxdigit.texi: Update.
22811         * doc/posix-functions/towlower.texi: Update.
22812         * doc/posix-functions/towupper.texi: Update.
22813         * NEWS: Mention the change.
22814         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
22815         * modules/mbchar (Dependencies): Likewise.
22816         * modules/mbswidth (Dependencies): Likewise.
22817         * modules/quotearg (Dependencies): Likewise.
22818         * modules/regex (Dependencies): Likewise.
22819         * modules/wcscasecmp (Dependencies): Likewise.
22820         * modules/wcsncasecmp (Dependencies): Likewise.
22821         * modules/wcwidth (Dependencies): Likewise.
22822
22823 2011-02-06  Bruno Haible  <bruno@clisp.org>
22824
22825         New module 'wcswidth'.
22826         * modules/wcswidth: New file.
22827         * lib/wchar.in.h (wcswidth): New declaration.
22828         * lib/wcswidth.c: New file.
22829         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
22830         * m4/wcswidth.m4: New file.
22831         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
22832         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
22833         REPLACE_WCSWIDTH.
22834         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
22835         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
22836         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
22837         * doc/posix-functions/wcswidth.texi: Mention the new module.
22838
22839 2011-02-06  Bruno Haible  <bruno@clisp.org>
22840
22841         New module 'wcstok'.
22842         * modules/wcstok: New file.
22843         * lib/wchar.in.h (wcstok): New declaration.
22844         * lib/wcstok.c: New file.
22845         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
22846         * m4/wcstok.m4: New file.
22847         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
22848         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
22849         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
22850         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
22851         * doc/posix-functions/wcstok.texi: Mention the new module.
22852
22853 2011-02-06  Bruno Haible  <bruno@clisp.org>
22854
22855         New module 'wcsstr'.
22856         * modules/wcsstr: New file.
22857         * lib/wchar.in.h (wcsstr): New declaration.
22858         * lib/wcsstr.c: New file.
22859         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
22860         * m4/wcsstr.m4: New file.
22861         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
22862         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
22863         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
22864         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
22865         * doc/posix-functions/wcsstr.texi: Mention the new module.
22866
22867 2011-02-06  Bruno Haible  <bruno@clisp.org>
22868
22869         New module 'wcspbrk'.
22870         * modules/wcspbrk: New file.
22871         * lib/wchar.in.h (wcspbrk): New declaration.
22872         * lib/wcspbrk.c: New file.
22873         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
22874         * m4/wcspbrk.m4: New file.
22875         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
22876         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
22877         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
22878         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
22879         * doc/posix-functions/wcspbrk.texi: Mention the new module.
22880
22881 2011-02-06  Bruno Haible  <bruno@clisp.org>
22882
22883         New module 'wcsspn'.
22884         * modules/wcsspn: New file.
22885         * lib/wchar.in.h (wcsspn): New declaration.
22886         * lib/wcsspn.c: New file.
22887         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
22888         * m4/wcsspn.m4: New file.
22889         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
22890         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
22891         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
22892         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
22893         * doc/posix-functions/wcsspn.texi: Mention the new module.
22894
22895 2011-02-06  Bruno Haible  <bruno@clisp.org>
22896
22897         New module 'wcscspn'.
22898         * modules/wcscspn: New file.
22899         * lib/wchar.in.h (wcscspn): New declaration.
22900         * lib/wcscspn.c: New file.
22901         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
22902         * m4/wcscspn.m4: New file.
22903         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
22904         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
22905         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
22906         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
22907         * doc/posix-functions/wcscspn.texi: Mention the new module.
22908
22909 2011-02-06  Bruno Haible  <bruno@clisp.org>
22910
22911         New module 'wcsrchr'.
22912         * modules/wcsrchr: New file.
22913         * lib/wchar.in.h (wcsrchr): New declaration.
22914         * lib/wcsrchr.c: New file.
22915         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
22916         * m4/wcsrchr.m4: New file.
22917         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
22918         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
22919         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
22920         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
22921         * doc/posix-functions/wcsrchr.texi: Mention the new module.
22922
22923 2011-02-06  Bruno Haible  <bruno@clisp.org>
22924
22925         New module 'wcschr'.
22926         * modules/wcschr: New file.
22927         * lib/wchar.in.h (wcschr): New declaration.
22928         * lib/wcschr.c: New file.
22929         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
22930         * m4/wcschr.m4: New file.
22931         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
22932         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
22933         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
22934         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
22935         * doc/posix-functions/wcschr.texi: Mention the new module.
22936
22937 2011-02-06  Bruno Haible  <bruno@clisp.org>
22938
22939         New module 'wcsdup'.
22940         * modules/wcsdup: New file.
22941         * lib/wchar.in.h (wcsdup): New declaration.
22942         * lib/wcsdup.c: New file.
22943         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
22944         * m4/wcsdup.m4: New file.
22945         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
22946         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
22947         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
22948         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
22949         * doc/posix-functions/wcsdup.texi: Mention the new module.
22950
22951 2011-02-06  Bruno Haible  <bruno@clisp.org>
22952
22953         New module 'wcsxfrm'.
22954         * modules/wcsxfrm: New file.
22955         * lib/wchar.in.h (wcsxfrm): New declaration.
22956         * lib/wcsxfrm.c: New file.
22957         * lib/wcsxfrm-impl.h: New file.
22958         * m4/wcsxfrm.m4: New file.
22959         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
22960         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
22961         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
22962         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
22963         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
22964
22965 2011-02-06  Bruno Haible  <bruno@clisp.org>
22966
22967         New module 'wcscoll'.
22968         * modules/wcscoll: New file.
22969         * lib/wchar.in.h (wcscoll): New declaration.
22970         * lib/wcscoll.c: New file.
22971         * lib/wcscoll-impl.h: New file.
22972         * m4/wcscoll.m4: New file.
22973         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
22974         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
22975         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
22976         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
22977         * doc/posix-functions/wcscoll.texi: Mention the new module.
22978
22979 2011-02-06  Bruno Haible  <bruno@clisp.org>
22980
22981         New module 'wcsncasecmp'.
22982         * modules/wcsncasecmp: New file.
22983         * lib/wchar.in.h (wcsncasecmp): New declaration.
22984         * lib/wcsncasecmp.c: New file.
22985         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
22986         * m4/wcsncasecmp.m4: New file.
22987         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
22988         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
22989         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
22990         HAVE_WCSNCASECMP.
22991         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
22992         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
22993
22994 2011-02-06  Bruno Haible  <bruno@clisp.org>
22995
22996         New module 'wcscasecmp'.
22997         * modules/wcscasecmp: New file.
22998         * lib/wchar.in.h (wcscasecmp): New declaration.
22999         * lib/wcscasecmp.c: New file.
23000         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
23001         * m4/wcscasecmp.m4: New file.
23002         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
23003         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
23004         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
23005         HAVE_WCSCASECMP.
23006         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
23007         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
23008
23009 2011-02-05  Bruno Haible  <bruno@clisp.org>
23010
23011         New module 'wcsncmp'.
23012         * modules/wcsncmp: New file.
23013         * lib/wchar.in.h (wcsncmp): New declaration.
23014         * lib/wcsncmp.c: New file.
23015         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
23016         * m4/wcsncmp.m4: New file.
23017         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
23018         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
23019         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
23020         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
23021         * doc/posix-functions/wcsncmp.texi: Mention the new module.
23022
23023 2011-02-05  Bruno Haible  <bruno@clisp.org>
23024
23025         New module 'wcscmp'.
23026         * modules/wcscmp: New file.
23027         * lib/wchar.in.h (wcscmp): New declaration.
23028         * lib/wcscmp.c: New file.
23029         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
23030         * m4/wcscmp.m4: New file.
23031         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
23032         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
23033         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
23034         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
23035         * doc/posix-functions/wcscmp.texi: Mention the new module.
23036
23037 2011-02-05  Bruno Haible  <bruno@clisp.org>
23038
23039         New module 'wcsncat'.
23040         * modules/wcsncat: New file.
23041         * lib/wchar.in.h (wcsncat): New declaration.
23042         * lib/wcsncat.c: New file.
23043         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
23044         * m4/wcsncat.m4: New file.
23045         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
23046         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
23047         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
23048         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
23049         * doc/posix-functions/wcsncat.texi: Mention the new module.
23050
23051 2011-02-05  Bruno Haible  <bruno@clisp.org>
23052
23053         New module 'wcscat'.
23054         * modules/wcscat: New file.
23055         * lib/wchar.in.h (wcscat): New declaration.
23056         * lib/wcscat.c: New file.
23057         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
23058         * m4/wcscat.m4: New file.
23059         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
23060         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
23061         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
23062         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
23063         * doc/posix-functions/wcscat.texi: Mention the new module.
23064
23065 2011-02-05  Bruno Haible  <bruno@clisp.org>
23066
23067         New module 'wcpncpy'.
23068         * modules/wcpncpy: New file.
23069         * lib/wchar.in.h (wcpncpy): New declaration.
23070         * lib/wcpncpy.c: New file.
23071         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
23072         * m4/wcpncpy.m4: New file.
23073         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
23074         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
23075         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
23076         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
23077         * doc/posix-functions/wcpncpy.texi: Mention the new module.
23078
23079 2011-02-05  Bruno Haible  <bruno@clisp.org>
23080
23081         New module 'wcsncpy'.
23082         * modules/wcsncpy: New file.
23083         * lib/wchar.in.h (wcsncpy): New declaration.
23084         * lib/wcsncpy.c: New file.
23085         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
23086         * m4/wcsncpy.m4: New file.
23087         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
23088         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
23089         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
23090         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
23091         * doc/posix-functions/wcsncpy.texi: Mention the new module.
23092
23093 2011-02-05  Bruno Haible  <bruno@clisp.org>
23094
23095         New module 'wcpcpy'.
23096         * modules/wcpcpy: New file.
23097         * lib/wchar.in.h (wcpcpy): New declaration.
23098         * lib/wcpcpy.c: New file.
23099         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
23100         * m4/wcpcpy.m4: New file.
23101         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
23102         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
23103         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
23104         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
23105         * doc/posix-functions/wcpcpy.texi: Mention the new module.
23106
23107 2011-02-05  Bruno Haible  <bruno@clisp.org>
23108
23109         New module 'wcscpy'.
23110         * modules/wcscpy: New file.
23111         * lib/wchar.in.h (wcscpy): New declaration.
23112         * lib/wcscpy.c: New file.
23113         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
23114         * m4/wcscpy.m4: New file.
23115         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
23116         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
23117         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
23118         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
23119         * doc/posix-functions/wcscpy.texi: Mention the new module.
23120
23121 2011-02-05  Bruno Haible  <bruno@clisp.org>
23122
23123         New module 'wcsnlen'.
23124         * modules/wcsnlen: New file.
23125         * lib/wchar.in.h (wcsnlen): New declaration.
23126         * lib/wcsnlen.c: New file.
23127         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
23128         * m4/wcsnlen.m4: New file.
23129         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
23130         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
23131         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
23132         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
23133         * doc/posix-functions/wcsnlen.texi: Mention the new module.
23134
23135 2011-02-05  Bruno Haible  <bruno@clisp.org>
23136
23137         New module 'wcslen'.
23138         * modules/wcslen: New file.
23139         * lib/wchar.in.h (wcslen): New declaration.
23140         * lib/wcslen.c: New file.
23141         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
23142         * m4/wcslen.m4: New file.
23143         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
23144         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
23145         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
23146         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
23147         * doc/posix-functions/wcslen.texi: Mention the new module.
23148
23149 2011-02-05  Bruno Haible  <bruno@clisp.org>
23150
23151         New module 'wmemset'.
23152         * modules/wmemset: New file.
23153         * lib/wchar.in.h (wmemset): New declaration.
23154         * lib/wmemset.c: New file.
23155         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
23156         * m4/wmemset.m4: New file.
23157         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
23158         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
23159         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
23160         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
23161         * doc/posix-functions/wmemset.texi: Mention the new module.
23162
23163 2011-02-05  Bruno Haible  <bruno@clisp.org>
23164
23165         New module 'wmemmove'.
23166         * modules/wmemmove: New file.
23167         * lib/wchar.in.h (wmemmove): New declaration.
23168         * lib/wmemmove.c: New file.
23169         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
23170         * m4/wmemmove.m4: New file.
23171         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
23172         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
23173         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
23174         HAVE_WMEMMOVE.
23175         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
23176         * doc/posix-functions/wmemmove.texi: Mention the new module.
23177
23178 2011-02-05  Bruno Haible  <bruno@clisp.org>
23179
23180         New module 'wmemcpy'.
23181         * modules/wmemcpy: New file.
23182         * lib/wchar.in.h (wmemcpy): New declaration.
23183         * lib/wmemcpy.c: New file.
23184         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
23185         * m4/wmemcpy.m4: New file.
23186         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
23187         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
23188         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
23189         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
23190         * doc/posix-functions/wmemcpy.texi: Mention the new module.
23191
23192 2011-02-05  Bruno Haible  <bruno@clisp.org>
23193
23194         New module 'wmemcmp'.
23195         * modules/wmemcmp: New file.
23196         * lib/wchar.in.h (wmemcmp): New declaration.
23197         * lib/wmemcmp.c: New file.
23198         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
23199         * m4/wmemcmp.m4: New file.
23200         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
23201         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
23202         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
23203         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
23204         * doc/posix-functions/wmemcmp.texi: Mention the new module.
23205
23206 2011-02-07  Jim Meyering  <meyering@redhat.com>
23207
23208         di-set, ino-map: new modules, from coreutils
23209         * lib/di-set.c: New file.
23210         * lib/di-set.h: Likewise.
23211         * lib/ino-map.c: Likewise.
23212         * lib/ino-map.h: Likewise.
23213         * modules/di-set: Likewise.
23214         * modules/di-set-tests: Likewise.
23215         * modules/ino-map: Likewise.
23216         * modules/ino-map-tests: Likewise.
23217         * tests/test-di-set.c: Likewise.
23218         * tests/test-ino-map.c: Likewise.
23219
23220 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
23221
23222         getloadavg: merge minor changes from Emacs
23223
23224         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
23225         (getloadavg): Use memset, not bzero.
23226
23227         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
23228         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
23229         clash (bug#86).
23230
23231 2010-11-14  Bruno Haible  <bruno@clisp.org>
23232
23233         Allow multiple gnulib generated replacements to coexist.
23234         * lib/getopt.in.h (struct option): Avoid identical redefinition.
23235         * lib/inttypes.in.h (imaxdiv_t): Likewise.
23236         * lib/langinfo.in.h (nl_item): Likewise.
23237         * lib/math.in.h (_NaN, NAN): Likewise.
23238         * lib/netdb.in.h (struct addrinfo): Likewise.
23239         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
23240         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
23241         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
23242         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
23243         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
23244         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
23245         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
23246         pthread_mutexattr_init, pthread_mutexattr_settype,
23247         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
23248         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
23249         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
23250         pthread_spin_trylock, pthread_spin_unlock): Likewise.
23251         * lib/sched.in.h (struct sched_param): Likewise.
23252         * lib/se-selinux.in.h (security_class_t, security_context_t,
23253         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
23254         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
23255         lsetfilecon, fsetfilecon, security_check_context,
23256         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
23257         Likewise.
23258         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
23259         Likewise.
23260         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
23261         _gl_function_taking_int_returning_void_t, union sigval,
23262         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
23263         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
23264         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
23265         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
23266         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
23267         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
23268         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
23269         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
23270         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
23271         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
23272         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
23273         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
23274         socklen_t, rpl_fd_isset): Likewise.
23275         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
23276         * lib/sys_time.in.h (struct timeval): Likewise.
23277         * lib/sys_times.in.h (struct tms): Likewise.
23278         * lib/sys_utsname.in.h (struct utsname):
23279         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
23280         * lib/unistd.in.h (getpagesize): Likewise.
23281         * lib/wchar.in.h (mbstate_t): Likewise.
23282         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
23283         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
23284         towlower, towupper): Likewise.
23285         Reported by Sam Steingold <sds@gnu.org>.
23286
23287 2011-02-05  Eric Blake  <eblake@redhat.com>
23288
23289         unsetenv: work around Haiku issues
23290         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
23291         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
23292
23293 2010-12-30  Bruce Korb  <bkorb@gnu.org>
23294
23295         libposix: avoid calling error() within libposix
23296         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
23297         is defined.
23298
23299 2011-02-05  Eric Blake  <eblake@redhat.com>
23300
23301         strerror_r-posix: port to cygwin
23302         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
23303         implementation.
23304         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
23305         * tests/test-strerror_r.c (main): Fix test.
23306         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
23307         issue.
23308
23309 2011-02-05  Bruno Haible  <bruno@clisp.org>
23310
23311         New module 'wmemchr'.
23312         * modules/wmemchr: New file.
23313         * lib/wchar.in.h (wmemchr): New declaration.
23314         * lib/wmemchr.c: New file.
23315         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
23316         * m4/wmemchr.m4: New file.
23317         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
23318         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
23319         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
23320         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
23321         * doc/posix-functions/wmemchr.texi: Mention the new module.
23322
23323 2011-02-04  Eric Blake  <eblake@redhat.com>
23324
23325         fdopendir: detect FreeBSD bug
23326         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
23327         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
23328
23329 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
23330
23331         stdbool: do not define HAVE_STDBOOL_H
23332         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
23333         AC_HEADER_STDBOOL.  All uses changed.  Do not define
23334         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
23335         imported from the latest Autoconf git.  It was motivated by Emacs,
23336         which uses gnulib but does not need HAVE_STDBOOL_H.
23337
23338 2011-02-04  Bruno Haible  <bruno@clisp.org>
23339
23340         wcsnrtombs: Prepare for new module wwcsnrtombs.
23341         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
23342         * lib/wcsnrtombs.c: Include it.
23343         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
23344
23345         wcsrtombs: Prepare for new module wwcsrtombs.
23346         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
23347         * lib/wcsrtombs.c: Include it.
23348         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
23349
23350         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
23351         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
23352         * lib/mbsnrtowcs.c: Include it.
23353         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
23354
23355         mbsrtowcs: Prepare for new module mbsrtowwcs.
23356         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
23357         * lib/mbsrtowcs.c: Include it.
23358         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
23359
23360 2011-02-04  Bruno Haible  <bruno@clisp.org>
23361
23362         vasnprintf: Reduce use of malloc for small format strings.
23363         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
23364         (arguments): Add room for the first 7 arguments.
23365         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
23366         (char_directives, u8_directives, u16_directives, u32_directives): Add
23367         room for the first 7 directives.
23368         * lib/printf-parse.c: Include <string.h>.
23369         (PRINTF_PARSE): Change memory handling code so that it uses the first
23370         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
23371         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
23372         Reported by Pádraig Brady <P@draigbrady.com>.
23373
23374 2011-01-31  Eric Blake  <eblake@redhat.com>
23375
23376         dup2: work around Haiku bug
23377         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
23378         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
23379         * doc/posix-functions/dup2.texi (dup2): Document the bug.
23380         * tests/test-dup2.c (main): Enhance test.
23381
23382 2011-01-31  Simon Josefsson  <simon@josefsson.org>
23383
23384         doc: off_t is not available in eglibc 2.11.2 stdio.h.
23385         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
23386         declared by eglibc 2.11.2.
23387         * lib/stdio.in.h: Likewise.
23388
23389 2011-01-31  Eric Blake  <eblake@redhat.com>
23390
23391         ignore-value: add missing test dependency
23392         * tests/test-ignore-value.c: Revert previous change; stdio.h
23393         provides off_t.
23394         * modules/ignore-value-tests (Depends-on): Add missing dependency.
23395
23396 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
23397
23398         mktime: clarify long_int width checking
23399         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
23400         the top level, to make it clearer that the assumption about
23401         long_int width is being checked.  See
23402         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
23403
23404 2011-01-30  Simon Josefsson  <simon@josefsson.org>
23405
23406         ignore-value: Fix self-test.
23407         * tests/test-ignore-value.c: Include sys/types.h for off_t.
23408
23409 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
23410
23411         TYPE_MAXIMUM: avoid theoretically undefined behavior
23412         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
23413         negative number, which the C Standard says has undefined behavior.
23414         In practice this is not a problem, but might as well do it by the book.
23415         Reported by Rich Felker and Eric Blake; see
23416         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
23417         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
23418         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
23419         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
23420         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
23421         * m4/stdint.m4 (gl_STDINT_H): Likewise.
23422         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
23423
23424         mktime: #undef mktime before #defining it
23425         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
23426
23427         mktime: systematically normalize tm_isdst comparisons
23428         * lib/mktime.c (isdst_differ): New function.
23429         (__mktime_internal): Use it systematically for all isdst comparisons.
23430         This completes the fix for libc BZ #6723, and removes the need for
23431         normalizing tm_isdst.  See
23432         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
23433         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
23434
23435         mktime: fix some integer overflow issues and sidestep the rest
23436
23437         This was prompted by a bug report by Benjamin Lindner for MinGW
23438         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
23439         His bug is due to signed integer overflow (0 - INT_MIN), and I
23440         I scanned through mktime.c looking for other integer overflow
23441         problems, fixing all the bugs I found.
23442
23443         Although the C Standard says the resulting code is still not safe
23444         in the presence of integer overflow, in practice it should be good
23445         enough for all real-world two's-complement implementations, except
23446         for debugging environments that deliberately trap on integer
23447         overflow (e.g., gcc -ftrapv).
23448
23449         * lib/mktime.c (WRAPV): New macro.
23450         (SHR): Also check that long_int and time_t shift right in the
23451         usual way, before using the fast-but-unportable method.
23452         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
23453         used.  The code already assumed two's complement, so there's
23454         no need to test for alternatives.  All uses removed.
23455         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
23456         the C standard.  Problem reported by Rich Felker in
23457         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
23458         (twos_complement_arithmetic): Also check long_int and time_t.
23459         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
23460         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
23461         (__mktime_internal): Avoid integer overflow with unary subtraction
23462         in two instances where -1 - X is an adequate replacement for -X,
23463         since the calculations are approximate.
23464
23465 2011-01-29  Eric Blake  <eblake@redhat.com>
23466
23467         mktime: avoid infinite loop
23468         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
23469         type; behavior is still undefined but portable to all known targets.
23470         Reported by Rich Felker.
23471
23472 2011-01-29  Simon Josefsson  <simon@josefsson.org>
23473
23474         rename, unlink, same-inode: Relicense.
23475         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
23476         * modules/unlink (License): Likewise.
23477         * modules/same-inode (License): Likewise.
23478
23479 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
23480
23481         mktime: avoid problems on NetBSD 5 / i386
23482         * lib/mktime.c (long_int): New type.  This works around a problem
23483         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
23484         but time_t is 64 bits, and where I expect the existing code is
23485         wrong in some cases.
23486         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
23487         (ydhms_diff): Bring back the compile-time check for wide-enough
23488         year and yday.
23489
23490         mktime: fix misspelling in comment
23491         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
23492         This merges all recent glibc changes of importance.
23493
23494 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23495
23496         move-if-change: cope with concurrent mv of identical file.
23497         * build-aux/move-if-change (CMPPROG): Accept environment
23498         variable as an override for `cmp'.
23499         (usage): Document CMPPROG.
23500         Adjust comparison to drop stdout.  Cope with failure of mv if
23501         the target file exists and is identical to the source, for
23502         parallel builds.
23503         Report from H.J. Lu against binutils in PR binutils/12283.
23504
23505 2011-01-28  Bruce Korb  <bkorb@gnu.org>
23506
23507         * users.txt: Mention sharutils.
23508
23509 2011-01-28  Simon Josefsson  <simon@josefsson.org>
23510
23511         * users.txt: Mention OATH Toolkit.
23512
23513 2011-01-27  Bruno Haible  <bruno@clisp.org>
23514
23515         Prepare for supporting FreeBSD 10.
23516         * build-aux/config.libpath: Remove handling of freebsd1*.
23517
23518 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
23519
23520         Prepare for supporting FreeBSD 10.
23521         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
23522         match FreeBSD 10.0.
23523
23524 2011-01-27  Bruno Haible  <bruno@clisp.org>
23525
23526         vma-iter, get-rusage-as: Add OpenBSD support.
23527         * modules/vma-iter (configure.ac): Test for mquery.
23528         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
23529         * lib/vma-iter.c: Include <sys/mman.h>.
23530         (vma_iterate): Add an implementation based on mquery().
23531         * lib/resource-ext.h (get_rusage_as): Update comments.
23532         * lib/get-rusage-as.c: Likewise.
23533         * lib/get-rusage-data.c: Likewise.
23534
23535 2011-01-26  Karl Berry  <karl@gnu.org>
23536
23537         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
23538         variables to make it easier to override the makeinfo program used.
23539
23540 2011-01-26  Eric Blake  <eblake@redhat.com>
23541
23542         fcntl: work around Haiku F_DUPFD bugs
23543         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
23544         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
23545         cloexec bit on duplication.
23546         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
23547
23548 2011-01-26  Bruno Haible  <bruno@clisp.org>
23549
23550         Enable memory leak tests on AIX.
23551         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
23552         * tests/test-fprintf-posix3.c (main): Likewise.
23553
23554 2011-01-26  Bruno Haible  <bruno@clisp.org>
23555
23556         Tests for module 'get-rusage-data'.
23557         * modules/get-rusage-data-tests: New file.
23558         * tests/test-get-rusage-data.c: New file.
23559
23560         New module 'get-rusage-data'.
23561         * lib/resource-ext.h (get_rusage_data): New declaration.
23562         * lib/get-rusage-data.c: New file.
23563         * modules/get-rusage-data: New file.
23564
23565 2011-01-25  Bruno Haible  <bruno@clisp.org>
23566
23567         get-rusage-as: Allow for easier testing.
23568         * lib/resource-ext.h (get_rusage_as): Add comment.
23569         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
23570         (main): New function for interactive testing.
23571
23572 2011-01-25  Bruno Haible  <bruno@clisp.org>
23573
23574         vma-iter: Treat Haiku like BeOS.
23575         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
23576         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
23577
23578 2011-01-25  Eric Blake  <eblake@redhat.com>
23579
23580         c-stack: fix regression on cygwin when libsigsegv is present
23581         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
23582
23583 2011-01-24  Bruno Haible  <bruno@clisp.org>
23584
23585         vma-iter: Avoid empty intervals.
23586         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
23587         on an empty interval.
23588
23589 2011-01-24  Jim Meyering  <meyering@redhat.com>
23590
23591         u64: remove unnecessary #include
23592         * lib/u64.h: Don't include <stddef.h>.  It was not used.
23593
23594 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
23595
23596         Allow the user to avoid the HAVE_RAW_DECL_* macros.
23597         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
23598
23599 2011-01-23  Bruno Haible  <bruno@clisp.org>
23600
23601         New module 'vma-iter'.
23602         * lib/vma-iter.h: New file.
23603         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
23604         * modules/vma-iter: New file.
23605         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
23606         for get_rusage_as_via_iterator.
23607         (vma_iterate_callback): New function.
23608         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
23609         * modules/get-rusage-as (Depends-on): Add vma-iter.
23610
23611 2011-01-23  Bruno Haible  <bruno@clisp.org>
23612
23613         uninorm: Tweak includes.
23614         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
23615         Reported by Jim Meyering.
23616
23617 2011-01-23  Bruno Haible  <bruno@clisp.org>
23618
23619         get-rusage-as: Improve on NetBSD.
23620         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
23621         /proc, like on FreeBSD.
23622
23623 2011-01-23  Jim Meyering  <meyering@redhat.com>
23624
23625         xreadlink.h: remove unnecessary #include
23626         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
23627
23628         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
23629         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
23630
23631 2011-01-23  Bruno Haible  <bruno@clisp.org>
23632
23633         get-rusage-as: Fix bug.
23634         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
23635         original limit when aborting the first loop.
23636
23637 2011-01-23  Bruno Haible  <bruno@clisp.org>
23638
23639         wctype: Ensure valid C syntax.
23640         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
23641         unconditionally, instead of gl_NEXT_HEADERS conditionally.
23642
23643 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
23644
23645         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
23646         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
23647         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
23648         as they are needed only for configure's test case.
23649         This removes two unnecessary symbols from config.h.
23650
23651         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
23652         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
23653         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
23654         AC_CHECK_HEADERS_ONCE on a header that we also invoke
23655         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
23656         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
23657         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
23658         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
23659         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
23660         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
23661         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
23662         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
23663         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
23664         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
23665         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
23666         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
23667         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
23668         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
23669
23670 2011-01-21  Eric Blake  <eblake@redhat.com>
23671
23672         maintainer-makefile: work with older git for submodule check
23673         * top/maint.mk (public-submodule-commit): Rewrite to avoid
23674         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
23675         Reported by Matthias Bolte.
23676
23677         bootstrap: minor portability fixes
23678         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
23679         (usage): Omit leading capital and trailing . on help phrases, per
23680         GNU Coding Standards.
23681         (check_versions, top level): Prefix messages with script name.
23682
23683 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
23684
23685         bootstrap: support --no-git option
23686         * build-aux/bootstrap: Add --no-git option, to be used when
23687         --gnulib-srcdir points to the exact desired checkout.
23688
23689 2011-01-21  Eric Blake  <eblake@redhat.com>
23690
23691         strerror_r-posix: work with glibc 2.13
23692         * lib/strerror_r.c (strerror_r): Fix return type.
23693
23694 2011-01-21  Pádraig Brady  <P@draigBrady.com>
23695             Bruno Haible  <bruno@clisp.org>
23696
23697         uN_strstr: New unit tests.
23698         * modules/unistr/u8-strstr-tests: New file.
23699         * modules/unistr/u16-strstr-tests: New file.
23700         * modules/unistr/u32-strstr-tests: New file.
23701         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
23702         * tests/unistr/test-u8-strstr.c: New file.
23703         * tests/unistr/test-u16-strstr.c: New file.
23704         * tests/unistr/test-u32-strstr.c: New file.
23705
23706 2011-01-21  Pádraig Brady  <P@draigBrady.com>
23707             Bruno Haible  <bruno@clisp.org>
23708
23709         Make uN_strstr functions O(n) worst-case.
23710         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
23711         16-bit and 32-bit unit cases, use the unibyte algorithm from
23712         lib/mbsstr.c.
23713         * lib/unistr/u8-strstr.c: Include <string.h>.
23714         (UNIT_IS_UINT8_T): New macro.
23715         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
23716         (U_STRLEN, U_STRNLEN): New macros.
23717         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
23718         (U_STRLEN, U_STRNLEN): New macros.
23719         * modules/unistr/u8-strstr (Depends-on): Add strstr.
23720         (configure.ac): Update required libunistring version.
23721         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
23722         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
23723         malloca.
23724         (configure.ac): Update required libunistring version.
23725         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
23726         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
23727         malloca.
23728         (configure.ac): Update required libunistring version.
23729
23730 2011-01-21  Pádraig Brady  <P@draigBrady.com>
23731             Bruno Haible  <bruno@clisp.org>
23732
23733         Prepare for faster uN_strstr functions.
23734         * lib/str-kmp.h: Support definable UNITs.
23735         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
23736         needle_len argument.
23737         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
23738         * lib/mbscasestr.c (mbscasestr): Likewise.
23739
23740 2011-01-21  Pádraig Brady <P@draigBrady.com>
23741
23742         malloca-tests: make faster by unsetting MALLOC_PERTURB_
23743         * tests/test-malloca.c (main): Unset the environment variable
23744         to greatly speed up the test.
23745         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
23746         * modules/malloca-tests: Depend on unsetenv.
23747
23748 2011-01-21  Pádraig Brady <P@draigBrady.com>
23749
23750         ignore-value: remove stdint dependency
23751         * lib/ignore-value.h: Remove <stdint.h>
23752         * modules/ignore-value: Remove stdint dependency.
23753
23754 2011-01-21  Jim Meyering  <meyering@redhat.com>
23755
23756         maint.mk: adjust variable name to be consistent with other gl_ vars
23757         * top/maint.mk (gl_public_submodule_commit): Rename the variable
23758         to be lower case.
23759
23760 2011-01-20  Jim Meyering  <meyering@redhat.com>
23761
23762         maint.mk: make "check" depend on public-submodule-commit by default
23763         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
23764
23765 2011-01-20  Bruno Haible  <bruno@clisp.org>
23766
23767         mbfile, mbiter: Complete change from 2008-12-21.
23768         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
23769         * m4/mbiter.m4 (gl_MBITER): Likewise.
23770
23771 2011-01-20  Jim Meyering  <meyering@redhat.com>
23772
23773         init.sh: insert space between each function name and "()"
23774         * tests/init.sh: Make it a little easier to see that a function's
23775         name is "warn_", and not "warn" when looking at the first part of
23776         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
23777
23778 2011-01-20  Jim Meyering  <meyering@redhat.com>
23779
23780         mountlist: clean up code formatting
23781         * lib/mountlist.c (read_file_system_list): Split a long line,
23782         correct bracing style, use NULL in place of "(struct statfs *)0",
23783         don't parenthesize return value, add spaces around "=" and after
23784         ";-in-for-stmt".
23785
23786 2011-01-14  Markus Duft <mduft@gentoo.org>
23787
23788         mountlist: add support for Interix
23789         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
23790         Apply statvfs to all entries of /dev/fs.
23791         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
23792         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
23793
23794 2011-01-20  Jim Meyering  <meyering@redhat.com>
23795
23796         maint.mk: improve the public-submodule-commit rule
23797         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
23798         to suppress printing of its commands... unless V=1.
23799         Add git submodule's --quiet option to suppress printing of e.g.,
23800         "Entering gnulib" output.
23801         "cd" into $(srcdir) before running git submodule.
23802
23803 2011-01-20  Bruno Haible  <bruno@clisp.org>
23804
23805         include_next: Fix bug introduced on 2011-01-18.
23806         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
23807         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
23808         ac_cv_header_... variable if the second argument is not 'check'.
23809         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
23810         gl_NEXT_HEADERS_INTERNAL.
23811
23812 2011-01-20  Bruno Haible  <bruno@clisp.org>
23813
23814         Allow the user to avoid the GNULIB_TEST_* macros.
23815         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
23816         Suggested by Paul Eggert.
23817
23818 2011-01-14  Jim Meyering  <meyering@redhat.com>
23819
23820         bootstrap: avoid failure when there is no .gitmodules file
23821         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
23822         has been assigned to, even when its value is the empty string.
23823         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
23824         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
23825         Reported by John W. Eaton <jwe@gnu.org>.
23826
23827 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
23828
23829         assume <ctype.h>, ..., <time.h> exist
23830         For years gnulib has been assuming the existence of the headers
23831         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
23832         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
23833         them, since they don't appear to be needed.
23834         * README (Portability guidelines): Document this.
23835         * lib/flock.c: Assume <fcntl.h> exists.
23836         * lib/regex_internal.h: Assume <locale.h> exists.
23837         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
23838         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
23839         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
23840         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
23841         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
23842         * m4/regex.m4 (gl_REGEX): Likewise.
23843         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
23844         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
23845         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
23846         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
23847         * tests/test-argp.c: Likewise.
23848         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
23849
23850         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
23851         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
23852         AA_APPLE_UNIVERSAL_BUILD.  See
23853         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
23854         * NEWS: Document this.
23855
23856 2011-01-19  Eric Blake  <eblake@redhat.com>
23857
23858         c-stack: assume stack overflow if SA_SIGINFO unsupported
23859         * lib/c-stack.c (SIGACTION_WORKS): Rename...
23860         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
23861         sigaction will work.
23862         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
23863         behavior match Linux.
23864         * tests/test-c-stack.c (main): Prefer NULL for pointers.
23865
23866         stdbool-tests: accommodate Haiku
23867         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
23868
23869         binary-io: fix O_TEXT on Haiku
23870         * modules/binary-io (Depends-on): Add fcntl-h.
23871         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
23872         than blindly undefining O_TEXT.
23873         Reported by Scott McCreary.
23874
23875 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
23876
23877         include_next: do not check for standard headers like stddef.h
23878
23879         I found this problem when modifying Emacs to use gnulib.
23880         I noticed that it added HAVE_STDDEF_H to config.h, even though
23881         gnulib always assumes <stddef.h> exists as per README and this
23882         symbol is unnecessary.
23883         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
23884         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
23885         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
23886         faster for headers like stddef.h that are known to exist.
23887         (gl_CHECK_NEXT_HEADERS): Use it.
23888         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
23889         rather than gl_CHECK_NEXT_HEADERS.
23890         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
23891         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
23892
23893 2011-01-18  Eric Blake  <eblake@redhat.com>
23894
23895         ansi-c++-opt: skip C++ dependency style if C++ is unused
23896         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
23897         tests when we know C++ compilation is not desired.
23898         Reported by Scott McCreary.
23899
23900 2011-01-18  Bruno Haible  <bruno@clisp.org>
23901
23902         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
23903         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
23904         (main): Perform test also when getrlimit and setrlimit don't exist or
23905         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
23906         limiting the address space size using setrlimit, compare the address
23907         space size before and after the the test.
23908         * tests/test-dprintf-posix2.c: Likewise.
23909         * tests/test-fprintf-posix3.sh: Update skip messages.
23910         * tests/test-dprintf-posix2.sh: Likewise.
23911         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
23912         * modules/dprintf-posix-tests (Depends-on): Likewise.
23913         Reported by Bruce Korb <bkorb@gnu.org> and
23914         Gary V. Vaughan <gary@gnu.org>.
23915
23916 2011-01-18  Bruno Haible  <bruno@clisp.org>
23917
23918         get-rusage-as: Improvement for Cygwin.
23919         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
23920         areas that are merely reserved.
23921
23922 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
23923
23924         strftime: remove dependencies on multibyte modules
23925
23926         strftime depended on mbrlen, mbsinit, and wchar, but these modules
23927         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
23928         only if __osf__ is defined, and I suspect OSF doesn't need these
23929         other modules.  If my guess is wrong, we'll need to come up with a
23930         variant of strftime that doesn't need the multibyte modules.
23931
23932         I discovered this problem when attempting modify Emacs to use the
23933         strftime module.  With the previous gnulib, this caused Emacs to
23934         need 31 new files, ranging from lib/config.charset to
23935         m4/wint_t.m4.  This was overkill and I expect would be offputting
23936         to the Emacs maintainers.  After this change, only 6 new files are
23937         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
23938         stdbool.m4, and tm_gmtoff.m4.
23939
23940         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
23941         Suggested by Bruno Haible in
23942         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
23943         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
23944         and do not check for wchar.h.
23945         * modules/strftime (Files): Remove m4/mbstate_t.m4.
23946         (Depends-on): Remove mbrlen, mbsinit, wchar.
23947
23948 2011-01-18  Bruno Haible  <bruno@clisp.org>
23949
23950         Tests for module 'get-rusage-as'.
23951         * modules/get-rusage-as-tests: New file.
23952         * tests/test-get-rusage-as.c: New file.
23953
23954         New module 'get-rusage-as'.
23955         * modules/get-rusage-as: New file.
23956         * lib/resource-ext.h: New file.
23957         * lib/get-rusage-as.c: New file.
23958
23959 2011-01-17  Eric Blake  <eblake@redhat.com>
23960
23961         sigaction: relax license from LGPLv3+ to LGPLv2+
23962         * modules/sigaction (License): Relax to LGPLv2+.
23963
23964 2011-01-14  Bruno Haible  <bruno@clisp.org>
23965
23966         filemode: Make function declarations usable in C++ mode.
23967         * lib/filemode.h: Enclose function declarations in extern "C" block.
23968         Reported by John W. Eaton <jwe@gnu.org>.
23969
23970 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
23971
23972         save-cwd: no longer include "xgetcwd.h"
23973         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
23974         This avoids a compilation failure in projects that use save-cwd
23975         without also using the xgetcwd module.
23976
23977 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
23978
23979         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
23980         This is so that a program like Emacs, which needs only dtoastr,
23981         does not have to bother with distributing and compiling ftoastr
23982         and ldtoastr.
23983         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
23984         * modules/dtoastr, modules/ldtoastr: New files.
23985         * modules/ftoastr: Now works just for 'float'.
23986         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
23987         (Makefile.am): Remove ftoastr.h (not needed and no effect),
23988         dtoastr.c, ldtoastr.c.
23989
23990 2011-01-11  Jim Meyering  <meyering@redhat.com>
23991
23992         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
23993         There is no need to work around the lack of the fchdir function,
23994         since gnulib can now provide a replacement when required.
23995         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
23996         * modules/save-cwd (Depends-on): Add fchdir.
23997
23998 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
23999
24000         openat, save-cwd: avoid xmalloc
24001
24002         This removes a direct (but undocumented) dependency of openat on
24003         xalloc, along with an indirect dependency via save-cwd.  It also
24004         removes a dependency of save-cwd on xgetcwd, and thereby
24005         indirectly on xalloc.  This change causes the openat substitute
24006         to fall back on save_cwd when memory is tight, and for save_cwd to
24007         fail instead of dying when memory is tight, but that's good enough.
24008         Problem and initial idea for fix reported by Bastien Roucaries in
24009         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
24010
24011         * lib/openat-proc.c: Include stdlib.h (for malloc), not
24012         xalloc.h (for xmalloc).
24013         (openat_proc_name): Use malloc, not xmalloc.
24014         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
24015         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
24016
24017         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
24018         This avoids heap allocation for file names whose lengths are in
24019         the range 512..1023, with the upper bound increasing to at most
24020         4031 depending on the platform's PATH_MAX.  (We do not want
24021         pathmax.h here as it might supply a non-constant PATH_MAX.)
24022         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
24023         Perhaps they should be moved to malloca.h?
24024         (OPENAT_BUFFER_SIZE): Use them.
24025
24026 2011-01-10  Bruno Haible  <bruno@clisp.org>
24027
24028         doc: Update users.txt.
24029         * users.txt: Add recutils.
24030
24031 2011-01-09  Karl Berry  <karl@gnu.org>
24032
24033         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
24034
24035         * doc/configmake.texi: New file.
24036         * doc/gnulib.texi: Include it.
24037         * modules/configmake: Move documentation from here.
24038
24039 2011-01-09  Bruno Haible  <bruno@clisp.org>
24040
24041         Update to Unicode 6.0.0.
24042         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
24043         (get_lbp): Update for Unicode 6.0.0.
24044         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
24045         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
24046         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
24047         U+11001, U+11038..U+11046. Remove U+06DE.
24048         (uc_width): Fix bounds of planes.
24049         * tests/uniwidth/test-uc_width2.sh: Same updates as in
24050         lib/uniwidth/width.c.
24051         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
24052         trailing whitespace removed.
24053         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
24054         without comments, but with the original copyright notice.
24055         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
24056         * lib/unicase/ignorable.h: Likewise.
24057         * lib/unicase/tocasefold.h: Likewise.
24058         * lib/unicase/tolower.h: Likewise.
24059         * lib/unicase/totitle.h: Likewise.
24060         * lib/unicase/toupper.h: Likewise.
24061         * lib/unictype/bidi_of.h: Likewise.
24062         * lib/unictype/blocks.h: Likewise.
24063         * lib/unictype/categ_C.h: Likewise.
24064         * lib/unictype/categ_Cn.h: Likewise.
24065         * lib/unictype/categ_L.h: Likewise.
24066         * lib/unictype/categ_Ll.h: Likewise.
24067         * lib/unictype/categ_Lm.h: Likewise.
24068         * lib/unictype/categ_Lo.h: Likewise.
24069         * lib/unictype/categ_Lu.h: Likewise.
24070         * lib/unictype/categ_M.h: Likewise.
24071         * lib/unictype/categ_Mc.h: Likewise.
24072         * lib/unictype/categ_Me.h: Likewise.
24073         * lib/unictype/categ_Mn.h: Likewise.
24074         * lib/unictype/categ_N.h: Likewise.
24075         * lib/unictype/categ_Nd.h: Likewise.
24076         * lib/unictype/categ_No.h: Likewise.
24077         * lib/unictype/categ_P.h: Likewise.
24078         * lib/unictype/categ_Po.h: Likewise.
24079         * lib/unictype/categ_S.h: Likewise.
24080         * lib/unictype/categ_Sc.h: Likewise.
24081         * lib/unictype/categ_Sk.h: Likewise.
24082         * lib/unictype/categ_Sm.h: Likewise.
24083         * lib/unictype/categ_So.h: Likewise.
24084         * lib/unictype/categ_of.h: Likewise.
24085         * lib/unictype/combining.h: Likewise.
24086         * lib/unictype/ctype_alnum.h: Likewise.
24087         * lib/unictype/ctype_alpha.h: Likewise.
24088         * lib/unictype/ctype_graph.h: Likewise.
24089         * lib/unictype/ctype_lower.h: Likewise.
24090         * lib/unictype/ctype_print.h: Likewise.
24091         * lib/unictype/ctype_punct.h: Likewise.
24092         * lib/unictype/ctype_upper.h: Likewise.
24093         * lib/unictype/decdigit.h: Likewise.
24094         * lib/unictype/digit.h: Likewise.
24095         * lib/unictype/numeric.h: Likewise.
24096         * lib/unictype/pr_alphabetic.h: Likewise.
24097         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
24098         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
24099         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
24100         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
24101         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
24102         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
24103         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
24104         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
24105         * lib/unictype/pr_case_ignorable.h: Likewise.
24106         * lib/unictype/pr_cased.h: Likewise.
24107         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
24108         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
24109         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
24110         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
24111         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
24112         * lib/unictype/pr_combining.h: Likewise.
24113         * lib/unictype/pr_composite.h: Likewise.
24114         * lib/unictype/pr_currency_symbol.h: Likewise.
24115         * lib/unictype/pr_decimal_digit.h: Likewise.
24116         * lib/unictype/pr_deprecated.h: Likewise.
24117         * lib/unictype/pr_format_control.h: Likewise.
24118         * lib/unictype/pr_grapheme_base.h: Likewise.
24119         * lib/unictype/pr_grapheme_extend.h: Likewise.
24120         * lib/unictype/pr_grapheme_link.h: Likewise.
24121         * lib/unictype/pr_id_continue.h: Likewise.
24122         * lib/unictype/pr_id_start.h: Likewise.
24123         * lib/unictype/pr_ideographic.h: Likewise.
24124         * lib/unictype/pr_lowercase.h: Likewise.
24125         * lib/unictype/pr_math.h: Likewise.
24126         * lib/unictype/pr_numeric.h: Likewise.
24127         * lib/unictype/pr_other_alphabetic.h: Likewise.
24128         * lib/unictype/pr_other_id_continue.h: Likewise.
24129         * lib/unictype/pr_other_math.h: Likewise.
24130         * lib/unictype/pr_punctuation.h: Likewise.
24131         * lib/unictype/pr_sentence_terminal.h: Likewise.
24132         * lib/unictype/pr_terminal_punctuation.h: Likewise.
24133         * lib/unictype/pr_unassigned_code_value.h: Likewise.
24134         * lib/unictype/pr_unified_ideograph.h: Likewise.
24135         * lib/unictype/pr_uppercase.h: Likewise.
24136         * lib/unictype/pr_xid_continue.h: Likewise.
24137         * lib/unictype/pr_xid_start.h: Likewise.
24138         * lib/unictype/scripts.h: Likewise.
24139         * lib/unictype/scripts_byname.gperf: Likewise.
24140         * lib/unictype/sy_java_ident.h: Likewise.
24141         * lib/unigbrk/gbrkprop.h: Likewise.
24142         * lib/unilbrk/lbrkprop1.h: Likewise.
24143         * lib/unilbrk/lbrkprop2.h: Likewise.
24144         * lib/uninorm/decomposition-table2.h: Likewise.
24145         * lib/uniwbrk/wbrkprop.h: Likewise.
24146         * tests/unicase/test-cased.c: Likewise.
24147         * tests/unicase/test-ignorable.c: Likewise.
24148         * tests/unicase/test-uc_tolower.c: Likewise.
24149         * tests/unicase/test-uc_totitle.c: Likewise.
24150         * tests/unicase/test-uc_toupper.c: Likewise.
24151         * tests/unictype/test-categ_C.c: Likewise.
24152         * tests/unictype/test-categ_Cn.c: Likewise.
24153         * tests/unictype/test-categ_L.c: Likewise.
24154         * tests/unictype/test-categ_Ll.c: Likewise.
24155         * tests/unictype/test-categ_Lm.c: Likewise.
24156         * tests/unictype/test-categ_Lo.c: Likewise.
24157         * tests/unictype/test-categ_Lu.c: Likewise.
24158         * tests/unictype/test-categ_M.c: Likewise.
24159         * tests/unictype/test-categ_Mc.c: Likewise.
24160         * tests/unictype/test-categ_Me.c: Likewise.
24161         * tests/unictype/test-categ_Mn.c: Likewise.
24162         * tests/unictype/test-categ_N.c: Likewise.
24163         * tests/unictype/test-categ_Nd.c: Likewise.
24164         * tests/unictype/test-categ_No.c: Likewise.
24165         * tests/unictype/test-categ_P.c: Likewise.
24166         * tests/unictype/test-categ_Po.c: Likewise.
24167         * tests/unictype/test-categ_S.c: Likewise.
24168         * tests/unictype/test-categ_Sc.c: Likewise.
24169         * tests/unictype/test-categ_Sk.c: Likewise.
24170         * tests/unictype/test-categ_Sm.c: Likewise.
24171         * tests/unictype/test-categ_So.c: Likewise.
24172         * tests/unictype/test-ctype_alnum.c: Likewise.
24173         * tests/unictype/test-ctype_alpha.c: Likewise.
24174         * tests/unictype/test-ctype_graph.c: Likewise.
24175         * tests/unictype/test-ctype_lower.c: Likewise.
24176         * tests/unictype/test-ctype_print.c: Likewise.
24177         * tests/unictype/test-ctype_punct.c: Likewise.
24178         * tests/unictype/test-ctype_upper.c: Likewise.
24179         * tests/unictype/test-decdigit.h: Likewise.
24180         * tests/unictype/test-digit.h: Likewise.
24181         * tests/unictype/test-numeric.h: Likewise.
24182         * tests/unictype/test-pr_alphabetic.c: Likewise.
24183         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
24184         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
24185         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
24186         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
24187         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
24188         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
24189         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
24190         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
24191         * tests/unictype/test-pr_case_ignorable.c: Likewise.
24192         * tests/unictype/test-pr_cased.c: Likewise.
24193         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
24194         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
24195         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
24196         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
24197         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
24198         * tests/unictype/test-pr_combining.c: Likewise.
24199         * tests/unictype/test-pr_composite.c: Likewise.
24200         * tests/unictype/test-pr_currency_symbol.c: Likewise.
24201         * tests/unictype/test-pr_decimal_digit.c: Likewise.
24202         * tests/unictype/test-pr_deprecated.c: Likewise.
24203         * tests/unictype/test-pr_format_control.c: Likewise.
24204         * tests/unictype/test-pr_grapheme_base.c: Likewise.
24205         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
24206         * tests/unictype/test-pr_grapheme_link.c: Likewise.
24207         * tests/unictype/test-pr_id_continue.c: Likewise.
24208         * tests/unictype/test-pr_id_start.c: Likewise.
24209         * tests/unictype/test-pr_ideographic.c: Likewise.
24210         * tests/unictype/test-pr_lowercase.c: Likewise.
24211         * tests/unictype/test-pr_math.c: Likewise.
24212         * tests/unictype/test-pr_numeric.c: Likewise.
24213         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
24214         * tests/unictype/test-pr_other_id_continue.c: Likewise.
24215         * tests/unictype/test-pr_other_math.c: Likewise.
24216         * tests/unictype/test-pr_punctuation.c: Likewise.
24217         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
24218         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
24219         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
24220         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
24221         * tests/unictype/test-pr_uppercase.c: Likewise.
24222         * tests/unictype/test-pr_xid_continue.c: Likewise.
24223         * tests/unictype/test-pr_xid_start.c: Likewise.
24224         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
24225         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
24226         changes.
24227         * lib/unictype/categ_Cc.h: Likewise.
24228         * lib/unictype/categ_Cf.h: Likewise.
24229         * lib/unictype/categ_Co.h: Likewise.
24230         * lib/unictype/categ_Cs.h: Likewise.
24231         * lib/unictype/categ_Lt.h: Likewise.
24232         * lib/unictype/categ_Nl.h: Likewise.
24233         * lib/unictype/categ_Pc.h: Likewise.
24234         * lib/unictype/categ_Pd.h: Likewise.
24235         * lib/unictype/categ_Pe.h: Likewise.
24236         * lib/unictype/categ_Pf.h: Likewise.
24237         * lib/unictype/categ_Pi.h: Likewise.
24238         * lib/unictype/categ_Ps.h: Likewise.
24239         * lib/unictype/categ_Z.h: Likewise.
24240         * lib/unictype/categ_Zl.h: Likewise.
24241         * lib/unictype/categ_Zp.h: Likewise.
24242         * lib/unictype/categ_Zs.h: Likewise.
24243         * lib/unictype/ctype_blank.h: Likewise.
24244         * lib/unictype/ctype_cntrl.h: Likewise.
24245         * lib/unictype/ctype_digit.h: Likewise.
24246         * lib/unictype/ctype_space.h: Likewise.
24247         * lib/unictype/ctype_xdigit.h: Likewise.
24248         * lib/unictype/mirror.h: Likewise.
24249         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
24250         * lib/unictype/pr_bidi_block_separator.h: Likewise.
24251         * lib/unictype/pr_bidi_common_separator.h: Likewise.
24252         * lib/unictype/pr_bidi_control.h: Likewise.
24253         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
24254         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
24255         * lib/unictype/pr_bidi_european_digit.h: Likewise.
24256         * lib/unictype/pr_bidi_pdf.h: Likewise.
24257         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
24258         * lib/unictype/pr_bidi_whitespace.h: Likewise.
24259         * lib/unictype/pr_dash.h: Likewise.
24260         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
24261         * lib/unictype/pr_diacritic.h: Likewise.
24262         * lib/unictype/pr_extender.h: Likewise.
24263         * lib/unictype/pr_hex_digit.h: Likewise.
24264         * lib/unictype/pr_hyphen.h: Likewise.
24265         * lib/unictype/pr_ids_binary_operator.h: Likewise.
24266         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
24267         * lib/unictype/pr_ignorable_control.h: Likewise.
24268         * lib/unictype/pr_iso_control.h: Likewise.
24269         * lib/unictype/pr_join_control.h: Likewise.
24270         * lib/unictype/pr_left_of_pair.h: Likewise.
24271         * lib/unictype/pr_line_separator.h: Likewise.
24272         * lib/unictype/pr_logical_order_exception.h: Likewise.
24273         * lib/unictype/pr_non_break.h: Likewise.
24274         * lib/unictype/pr_not_a_character.h: Likewise.
24275         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
24276         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
24277         * lib/unictype/pr_other_id_start.h: Likewise.
24278         * lib/unictype/pr_other_lowercase.h: Likewise.
24279         * lib/unictype/pr_other_uppercase.h: Likewise.
24280         * lib/unictype/pr_paired_punctuation.h: Likewise.
24281         * lib/unictype/pr_paragraph_separator.h: Likewise.
24282         * lib/unictype/pr_pattern_syntax.h: Likewise.
24283         * lib/unictype/pr_pattern_white_space.h: Likewise.
24284         * lib/unictype/pr_private_use.h: Likewise.
24285         * lib/unictype/pr_quotation_mark.h: Likewise.
24286         * lib/unictype/pr_radical.h: Likewise.
24287         * lib/unictype/pr_soft_dotted.h: Likewise.
24288         * lib/unictype/pr_space.h: Likewise.
24289         * lib/unictype/pr_titlecase.h: Likewise.
24290         * lib/unictype/pr_variation_selector.h: Likewise.
24291         * lib/unictype/pr_white_space.h: Likewise.
24292         * lib/unictype/pr_zero_width.h: Likewise.
24293         * lib/unictype/sy_c_ident.h: Likewise.
24294         * lib/unictype/sy_c_whitespace.h: Likewise.
24295         * lib/unictype/sy_java_whitespace.h: Likewise.
24296         * lib/uninorm/composition-table.gperf: Likewise.
24297         * lib/uninorm/decomposition-table1.h: Likewise.
24298         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
24299         LB8.
24300         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
24301         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
24302         * modules/unictype/*: Bump version number of expected libunistring
24303         version.
24304
24305 2011-01-09  Bruno Haible  <bruno@clisp.org>
24306
24307         Update to Unicode 5.2.0.
24308         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
24309         trailing whitespace removed.
24310
24311 2011-01-09  Bruno Haible  <bruno@clisp.org>
24312
24313         New Unicode character properties, from Unicode 5.2.0.
24314         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
24315         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
24316         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
24317         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
24318         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
24319         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
24320         uc_is_property_cased, uc_is_property_case_ignorable,
24321         uc_is_property_changes_when_lowercased,
24322         uc_is_property_changes_when_uppercased,
24323         uc_is_property_changes_when_titlecased,
24324         uc_is_property_changes_when_casefolded,
24325         uc_is_property_changes_when_casemapped): New declarations.
24326         * lib/unictype/pr_byname.gperf: Add the new properties.
24327         * modules/unictype/property-byname (Depends-on): Depend on the new
24328         properties modules.
24329         * modules/unictype/property-all (Depends-on): Likewise.
24330         * MODULES.html.sh (Unicode string functions): Add
24331         unictype/property-case-ignorable, unictype/property-cased,
24332         unictype/property-changes-when-casefolded,
24333         unictype/property-changes-when-casemapped,
24334         unictype/property-changes-when-lowercased,
24335         unictype/property-changes-when-titlecased,
24336         unictype/property-changes-when-uppercased.
24337
24338         New module 'unictype/property-changes-when-casemapped'.
24339         * modules/unictype/property-changes-when-casemapped: New file.
24340         * lib/unictype/pr_changes_when_casemapped.c: New file.
24341         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
24342         generated by gen-uni-tables.
24343         * modules/unictype/property-changes-when-casemapped-tests: New file.
24344         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
24345         automatically generated by gen-uni-tables.
24346
24347         New module 'unictype/property-changes-when-casefolded'.
24348         * modules/unictype/property-changes-when-casefolded: New file.
24349         * lib/unictype/pr_changes_when_casefolded.c: New file.
24350         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
24351         generated by gen-uni-tables.
24352         * modules/unictype/property-changes-when-casefolded-tests: New file.
24353         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
24354         automatically generated by gen-uni-tables.
24355
24356         New module 'unictype/property-changes-when-titlecased'.
24357         * modules/unictype/property-changes-when-titlecased: New file.
24358         * lib/unictype/pr_changes_when_titlecased.c: New file.
24359         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
24360         generated by gen-uni-tables.
24361         * modules/unictype/property-changes-when-titlecased-tests: New file.
24362         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
24363         automatically generated by gen-uni-tables.
24364
24365         New module 'unictype/property-changes-when-uppercased'.
24366         * modules/unictype/property-changes-when-uppercased: New file.
24367         * lib/unictype/pr_changes_when_uppercased.c: New file.
24368         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
24369         generated by gen-uni-tables.
24370         * modules/unictype/property-changes-when-uppercased-tests: New file.
24371         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
24372         automatically generated by gen-uni-tables.
24373
24374         New module 'unictype/property-changes-when-lowercased'.
24375         * modules/unictype/property-changes-when-lowercased: New file.
24376         * lib/unictype/pr_changes_when_lowercased.c: New file.
24377         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
24378         generated by gen-uni-tables.
24379         * modules/unictype/property-changes-when-lowercased-tests: New file.
24380         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
24381         automatically generated by gen-uni-tables.
24382
24383         New module 'unictype/property-case-ignorable'.
24384         * modules/unictype/property-case-ignorable: New file.
24385         * lib/unictype/pr_case_ignorable.c: New file.
24386         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
24387         by gen-uni-tables.
24388         * modules/unictype/property-case-ignorable-tests: New file.
24389         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
24390         generated by gen-uni-tables.
24391
24392         New module 'unictype/property-cased'.
24393         * modules/unictype/property-cased: New file.
24394         * lib/unictype/pr_cased.c: New file.
24395         * lib/unictype/pr_cased.h: New file, automatically generated by
24396         gen-uni-tables.
24397         * modules/unictype/property-cased-tests: New file.
24398         * tests/unictype/test-pr_cased.c: New file, automatically generated by
24399         gen-uni-tables.
24400
24401 2011-01-09  Bruno Haible  <bruno@clisp.org>
24402
24403         Update to Unicode 5.2.0.
24404         * lib/gen-uni-tables.c (output_predicate, output_category,
24405         output_combclass, output_bidi_category, output_decimal_digit_test,
24406         output_decimal_digit, output_digit_test, output_digit,
24407         output_numeric_test, output_numeric, output_mirror, output_scripts,
24408         output_scripts_byname, output_blocks, output_ident_category): Fix
24409         comment header.
24410         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
24411         get_wbp.
24412         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
24413         items.
24414         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
24415         Changes_When_Lowercased, Changes_When_Uppercased,
24416         Changes_When_Titlecased, Changes_When_Casefolded,
24417         Changes_When_Casemapped.
24418         (is_property_alphabetic, is_property_default_ignorable_code_point):
24419         Update for Unicode 5.2.0.
24420         (is_property_cased, is_property_case_ignorable,
24421         is_property_changes_when_lowercased,
24422         is_property_changes_when_uppercased,
24423         is_property_changes_when_titlecased,
24424         is_property_changes_when_casefolded,
24425         is_property_changes_when_casemapped): New functions.
24426         (output_properties): Output also the properties cased, case_ignorable,
24427         changes_when_lowercased, changes_when_uppercased,
24428         changes_when_titlecased, changes_when_casefolded,
24429         changes_when_casemapped.
24430         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
24431         Unicode TR#11 revision 17 -> 19.
24432         (LBP_CP): New enumeration value.
24433         (LBP_*): Adjust values accordingly.
24434         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
24435         TR#14 revision 22 -> 24.
24436         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
24437         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
24438         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
24439         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
24440         is_WBP_MIDLETTER.
24441         (output_composition_tables): Allow for 24 bits instead of 16 bits in
24442         the code1 and code2 of each composition rule.
24443         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
24444         * lib/unicase/ignorable.h: Likewise.
24445         * lib/unicase/tocasefold.h: Likewise.
24446         * lib/unicase/tolower.h: Likewise.
24447         * lib/unicase/totitle.h: Likewise.
24448         * lib/unicase/toupper.h: Likewise.
24449         * lib/unictype/bidi_of.h: Likewise.
24450         * lib/unictype/blocks.h: Likewise.
24451         * lib/unictype/categ_C.h: Likewise.
24452         * lib/unictype/categ_Cf.h: Likewise.
24453         * lib/unictype/categ_Cn.h: Likewise.
24454         * lib/unictype/categ_L.h: Likewise.
24455         * lib/unictype/categ_Ll.h: Likewise.
24456         * lib/unictype/categ_Lm.h: Likewise.
24457         * lib/unictype/categ_Lo.h: Likewise.
24458         * lib/unictype/categ_Lu.h: Likewise.
24459         * lib/unictype/categ_M.h: Likewise.
24460         * lib/unictype/categ_Mc.h: Likewise.
24461         * lib/unictype/categ_Mn.h: Likewise.
24462         * lib/unictype/categ_N.h: Likewise.
24463         * lib/unictype/categ_Nd.h: Likewise.
24464         * lib/unictype/categ_Nl.h: Likewise.
24465         * lib/unictype/categ_No.h: Likewise.
24466         * lib/unictype/categ_P.h: Likewise.
24467         * lib/unictype/categ_Pd.h: Likewise.
24468         * lib/unictype/categ_Po.h: Likewise.
24469         * lib/unictype/categ_S.h: Likewise.
24470         * lib/unictype/categ_Sc.h: Likewise.
24471         * lib/unictype/categ_So.h: Likewise.
24472         * lib/unictype/categ_of.h: Likewise.
24473         * lib/unictype/combining.h: Likewise.
24474         * lib/unictype/ctype_alnum.h: Likewise.
24475         * lib/unictype/ctype_alpha.h: Likewise.
24476         * lib/unictype/ctype_graph.h: Likewise.
24477         * lib/unictype/ctype_lower.h: Likewise.
24478         * lib/unictype/ctype_print.h: Likewise.
24479         * lib/unictype/ctype_punct.h: Likewise.
24480         * lib/unictype/ctype_upper.h: Likewise.
24481         * lib/unictype/decdigit.h: Likewise.
24482         * lib/unictype/digit.h: Likewise.
24483         * lib/unictype/numeric.h: Likewise.
24484         * lib/unictype/pr_alphabetic.h: Likewise.
24485         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
24486         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
24487         * lib/unictype/pr_bidi_european_digit.h: Likewise.
24488         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
24489         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
24490         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
24491         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
24492         * lib/unictype/pr_combining.h: Likewise.
24493         * lib/unictype/pr_composite.h: Likewise.
24494         * lib/unictype/pr_currency_symbol.h: Likewise.
24495         * lib/unictype/pr_dash.h: Likewise.
24496         * lib/unictype/pr_decimal_digit.h: Likewise.
24497         * lib/unictype/pr_deprecated.h: Likewise.
24498         * lib/unictype/pr_diacritic.h: Likewise.
24499         * lib/unictype/pr_extender.h: Likewise.
24500         * lib/unictype/pr_grapheme_base.h: Likewise.
24501         * lib/unictype/pr_grapheme_extend.h: Likewise.
24502         * lib/unictype/pr_grapheme_link.h: Likewise.
24503         * lib/unictype/pr_id_continue.h: Likewise.
24504         * lib/unictype/pr_id_start.h: Likewise.
24505         * lib/unictype/pr_ideographic.h: Likewise.
24506         * lib/unictype/pr_ignorable_control.h: Likewise.
24507         * lib/unictype/pr_logical_order_exception.h: Likewise.
24508         * lib/unictype/pr_lowercase.h: Likewise.
24509         * lib/unictype/pr_numeric.h: Likewise.
24510         * lib/unictype/pr_other_alphabetic.h: Likewise.
24511         * lib/unictype/pr_punctuation.h: Likewise.
24512         * lib/unictype/pr_sentence_terminal.h: Likewise.
24513         * lib/unictype/pr_terminal_punctuation.h: Likewise.
24514         * lib/unictype/pr_unassigned_code_value.h: Likewise.
24515         * lib/unictype/pr_unified_ideograph.h: Likewise.
24516         * lib/unictype/pr_uppercase.h: Likewise.
24517         * lib/unictype/pr_xid_continue.h: Likewise.
24518         * lib/unictype/pr_xid_start.h: Likewise.
24519         * lib/unictype/pr_zero_width.h: Likewise.
24520         * lib/unictype/scripts.h: Likewise.
24521         * lib/unictype/scripts_byname.gperf: Likewise.
24522         * lib/unictype/sy_java_ident.h: Likewise.
24523         * lib/unigbrk/gbrkprop.h: Likewise.
24524         * lib/unilbrk/lbrkprop1.h: Likewise.
24525         * lib/unilbrk/lbrkprop2.h: Likewise.
24526         * lib/unilbrk/lbrktables.h: Likewise.
24527         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
24528         LBP_CP. Implement rule LB30.
24529         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
24530         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
24531         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
24532         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
24533         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
24534         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
24535         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
24536         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
24537         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
24538         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
24539         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
24540         bits instead of 16 bits in the code1 and code2 of each composition
24541         rule.
24542         (uc_composition): Update for Unicode 5.2.0.
24543         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
24544         * lib/uninorm/decomposition-table2.h: Likewise.
24545         * lib/uniwbrk/wbrkprop.h: Likewise.
24546         * tests/unicase/test-cased.c: Likewise.
24547         * tests/unicase/test-ignorable.c: Likewise.
24548         * tests/unicase/test-uc_tolower.c: Likewise.
24549         * tests/unicase/test-uc_totitle.c: Likewise.
24550         * tests/unicase/test-uc_toupper.c: Likewise.
24551         * tests/unictype/test-categ_C.c: Likewise.
24552         * tests/unictype/test-categ_Cf.c: Likewise.
24553         * tests/unictype/test-categ_Cn.c: Likewise.
24554         * tests/unictype/test-categ_L.c: Likewise.
24555         * tests/unictype/test-categ_Ll.c: Likewise.
24556         * tests/unictype/test-categ_Lm.c: Likewise.
24557         * tests/unictype/test-categ_Lo.c: Likewise.
24558         * tests/unictype/test-categ_Lu.c: Likewise.
24559         * tests/unictype/test-categ_M.c: Likewise.
24560         * tests/unictype/test-categ_Mc.c: Likewise.
24561         * tests/unictype/test-categ_Mn.c: Likewise.
24562         * tests/unictype/test-categ_N.c: Likewise.
24563         * tests/unictype/test-categ_Nd.c: Likewise.
24564         * tests/unictype/test-categ_Nl.c: Likewise.
24565         * tests/unictype/test-categ_No.c: Likewise.
24566         * tests/unictype/test-categ_P.c: Likewise.
24567         * tests/unictype/test-categ_Pd.c: Likewise.
24568         * tests/unictype/test-categ_Po.c: Likewise.
24569         * tests/unictype/test-categ_S.c: Likewise.
24570         * tests/unictype/test-categ_Sc.c: Likewise.
24571         * tests/unictype/test-categ_So.c: Likewise.
24572         * tests/unictype/test-ctype_alnum.c: Likewise.
24573         * tests/unictype/test-ctype_alpha.c: Likewise.
24574         * tests/unictype/test-ctype_graph.c: Likewise.
24575         * tests/unictype/test-ctype_lower.c: Likewise.
24576         * tests/unictype/test-ctype_print.c: Likewise.
24577         * tests/unictype/test-ctype_punct.c: Likewise.
24578         * tests/unictype/test-ctype_upper.c: Likewise.
24579         * tests/unictype/test-decdigit.h: Likewise.
24580         * tests/unictype/test-digit.h: Likewise.
24581         * tests/unictype/test-numeric.h: Likewise.
24582         * tests/unictype/test-pr_alphabetic.c: Likewise.
24583         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
24584         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
24585         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
24586         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
24587         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
24588         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
24589         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
24590         * tests/unictype/test-pr_combining.c: Likewise.
24591         * tests/unictype/test-pr_composite.c: Likewise.
24592         * tests/unictype/test-pr_currency_symbol.c: Likewise.
24593         * tests/unictype/test-pr_dash.c: Likewise.
24594         * tests/unictype/test-pr_decimal_digit.c: Likewise.
24595         * tests/unictype/test-pr_deprecated.c: Likewise.
24596         * tests/unictype/test-pr_diacritic.c: Likewise.
24597         * tests/unictype/test-pr_extender.c: Likewise.
24598         * tests/unictype/test-pr_grapheme_base.c: Likewise.
24599         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
24600         * tests/unictype/test-pr_grapheme_link.c: Likewise.
24601         * tests/unictype/test-pr_id_continue.c: Likewise.
24602         * tests/unictype/test-pr_id_start.c: Likewise.
24603         * tests/unictype/test-pr_ideographic.c: Likewise.
24604         * tests/unictype/test-pr_ignorable_control.c: Likewise.
24605         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
24606         * tests/unictype/test-pr_lowercase.c: Likewise.
24607         * tests/unictype/test-pr_numeric.c: Likewise.
24608         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
24609         * tests/unictype/test-pr_punctuation.c: Likewise.
24610         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
24611         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
24612         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
24613         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
24614         * tests/unictype/test-pr_uppercase.c: Likewise.
24615         * tests/unictype/test-pr_xid_continue.c: Likewise.
24616         * tests/unictype/test-pr_xid_start.c: Likewise.
24617         * tests/unictype/test-pr_zero_width.c: Likewise.
24618         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
24619         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
24620         changed behaviour: line breaking is now disallowed between a letter
24621         or '=' and '('.
24622         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
24623         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
24624         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
24625         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
24626         * tests/uniwidth/test-uc_width2.sh: Same updates as in
24627         lib/uniwidth/width.c.
24628         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
24629         without comments, but with the original copyright notice.
24630         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
24631         changes.
24632         * lib/unictype/categ_Cc.h: Likewise.
24633         * lib/unictype/categ_Co.h: Likewise.
24634         * lib/unictype/categ_Cs.h: Likewise.
24635         * lib/unictype/categ_Lt.h: Likewise.
24636         * lib/unictype/categ_Me.h: Likewise.
24637         * lib/unictype/categ_Pc.h: Likewise.
24638         * lib/unictype/categ_Pe.h: Likewise.
24639         * lib/unictype/categ_Pf.h: Likewise.
24640         * lib/unictype/categ_Pi.h: Likewise.
24641         * lib/unictype/categ_Ps.h: Likewise.
24642         * lib/unictype/categ_Sk.h: Likewise.
24643         * lib/unictype/categ_Sm.h: Likewise.
24644         * lib/unictype/categ_Z.h: Likewise.
24645         * lib/unictype/categ_Zl.h: Likewise.
24646         * lib/unictype/categ_Zp.h: Likewise.
24647         * lib/unictype/categ_Zs.h: Likewise.
24648         * lib/unictype/ctype_blank.h: Likewise.
24649         * lib/unictype/ctype_cntrl.h: Likewise.
24650         * lib/unictype/ctype_digit.h: Likewise.
24651         * lib/unictype/ctype_space.h: Likewise.
24652         * lib/unictype/ctype_xdigit.h: Likewise.
24653         * lib/unictype/mirror.h: Likewise.
24654         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
24655         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
24656         * lib/unictype/pr_bidi_block_separator.h: Likewise.
24657         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
24658         * lib/unictype/pr_bidi_common_separator.h: Likewise.
24659         * lib/unictype/pr_bidi_control.h: Likewise.
24660         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
24661         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
24662         * lib/unictype/pr_bidi_pdf.h: Likewise.
24663         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
24664         * lib/unictype/pr_bidi_whitespace.h: Likewise.
24665         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
24666         * lib/unictype/pr_format_control.h: Likewise.
24667         * lib/unictype/pr_hex_digit.h: Likewise.
24668         * lib/unictype/pr_hyphen.h: Likewise.
24669         * lib/unictype/pr_ids_binary_operator.h: Likewise.
24670         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
24671         * lib/unictype/pr_iso_control.h: Likewise.
24672         * lib/unictype/pr_join_control.h: Likewise.
24673         * lib/unictype/pr_left_of_pair.h: Likewise.
24674         * lib/unictype/pr_line_separator.h: Likewise.
24675         * lib/unictype/pr_math.h: Likewise.
24676         * lib/unictype/pr_non_break.h: Likewise.
24677         * lib/unictype/pr_not_a_character.h: Likewise.
24678         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
24679         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
24680         * lib/unictype/pr_other_id_continue.h: Likewise.
24681         * lib/unictype/pr_other_id_start.h: Likewise.
24682         * lib/unictype/pr_other_lowercase.h: Likewise.
24683         * lib/unictype/pr_other_math.h: Likewise.
24684         * lib/unictype/pr_other_uppercase.h: Likewise.
24685         * lib/unictype/pr_paired_punctuation.h: Likewise.
24686         * lib/unictype/pr_paragraph_separator.h: Likewise.
24687         * lib/unictype/pr_pattern_syntax.h: Likewise.
24688         * lib/unictype/pr_pattern_white_space.h: Likewise.
24689         * lib/unictype/pr_private_use.h: Likewise.
24690         * lib/unictype/pr_quotation_mark.h: Likewise.
24691         * lib/unictype/pr_radical.h: Likewise.
24692         * lib/unictype/pr_soft_dotted.h: Likewise.
24693         * lib/unictype/pr_space.h: Likewise.
24694         * lib/unictype/pr_titlecase.h: Likewise.
24695         * lib/unictype/pr_variation_selector.h: Likewise.
24696         * lib/unictype/pr_white_space.h: Likewise.
24697         * lib/unictype/sy_c_ident.h: Likewise.
24698         * lib/unictype/sy_c_whitespace.h: Likewise.
24699         * lib/unictype/sy_java_whitespace.h: Likewise.
24700         * modules/uni*/*: Bump version number of expected libunistring version.
24701         Reported by Simon Josefsson.
24702
24703 2011-01-09  Karl Heuer  <kwzh@gnu.org>
24704
24705         useless-if-before-free: fix typo in --help and make the internal,
24706         automatic version date update process work once again.
24707         --help output contained a NUL character instead of the
24708         backslash-zero that was intended.  Also, the "must lie within
24709         the first 8 lines" line is on line 9, and hence not getting
24710         automatically updated.
24711         * build-aux/useless-if-before-free: Fix the former by adding a
24712         backslash, and the latter by condensing the three lines of what-it-does
24713         to a single line, leaving one line of slack for the future.
24714
24715 2011-01-09  Bruno Haible  <bruno@clisp.org>
24716
24717         uniwidth/width: Fix width of U+1D173..U+1D17A.
24718         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
24719         symbolic_width, output_width_property_test): New functions.
24720         (main): Invoke output_nonspacing_property, output_width_property_test.
24721         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
24722         U+1D173..U+1D17A.
24723         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
24724         1.
24725         * modules/uniwidth/*: Bump version number of expected libunistring
24726         version.
24727         * modules/unilbrk/*: Likewise.
24728
24729 2011-01-08  Bruno Haible  <bruno@clisp.org>
24730
24731         uninorm tests: Preserve copyright of Unicode data file.
24732         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
24733         Mention modifications.
24734
24735 2011-01-08  Bruno Haible  <bruno@clisp.org>
24736
24737         gen-uni-tables: Prepare for Unicode 5.2.0.
24738         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
24739         (debug_output_lbp, output_lbp): Update.
24740
24741 2011-01-08  Bruno Haible  <bruno@clisp.org>
24742
24743         unilbrk: Clarify gen-uni-tables.c code.
24744         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
24745         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
24746         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
24747
24748 2011-01-07  Bruno Haible  <bruno@clisp.org>
24749
24750         strtod: Restore errno when successfully parsing Infinity or NaN.
24751         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
24752         restore the original errno.
24753
24754 2011-01-07  Bruno Haible  <bruno@clisp.org>
24755
24756         remove test: Avoid failure on HP-UX 11.
24757         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
24758
24759 2011-01-07  Bruno Haible  <bruno@clisp.org>
24760
24761         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
24762         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
24763         error code.
24764
24765 2011-01-07  Pádraig Brady <P@draigBrady.com>
24766
24767         ignore-value: fixup comments, and add Eric Blake
24768         as an author since he rewrote the macros.
24769         * lib/ignore-value.h (ignore_value):  State that
24770         we now support aggregates.  Also specify exactly
24771         when the GCC warn_unused_result feature was added.
24772
24773 2011-01-06  Eric Blake  <eblake@redhat.com>
24774
24775         ignore-value: support aggregate types
24776         * lib/ignore-value.h (ignore_value): Provide separate gcc
24777         definition.
24778         * modules/ignore-value-tests: New test module.
24779         * tests/test-ignore-value.c: New test.
24780
24781         maint.mk: improve sc_prohibit_strcmp regex
24782         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
24783         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
24784         definition of STRNEQ.
24785
24786         signal: work around Haiku issue with SIGBUS
24787         * lib/siglist.h: Add comment.
24788         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
24789         strsignal's favoring of SIGSEGV.
24790         * tests/test-signal.c (main): Avoid test failure.
24791         * doc/posix-headers/signal.texi (signal.h): Document the issue.
24792         Reported by Scott McCreary.
24793
24794         maint.mk: add pre-release check to ensure submodule commits are public
24795         * top/maint.mk (public-submodule-commit): New rule.
24796         (submodule-checks): New variable.
24797         (alpha beta stable): Depend on the variable.
24798
24799 2011-01-05  Pádraig Brady <P@draigBrady.com>
24800         and Jim Meyering  <meyering@redhat.com>
24801
24802         ignore-value: make ignore_value more generic; deprecate ignore_ptr
24803         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
24804         (ATTRIBUTE_DEPRECATED): Define.
24805         (_ignore_case): New function.
24806         (ignore_value): New macro, to replace the old function.
24807         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
24808         * modules/ignore-value (Depends-on): Add stdint.
24809
24810 2011-01-04  Eric Blake  <eblake@redhat.com>
24811
24812         doc: regenerate INSTALL
24813         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
24814         @firstparagraphindent support, now that autoconf dropped it.
24815         (INSTALL_PRELUDE): Reinstate old macro.
24816         * doc/install.texi: Resync from autoconf.
24817         * doc/INSTALL: Reflect recent autoconf update.
24818         * doc/INSTALL.ISO: Likewise.
24819         * doc/INSTALL.UTF-8: Likewise.
24820         Reported by Karl Berry.
24821
24822 2011-01-04  Bruce Korb  <address@hidden>
24823
24824         git-version-gen: avoid a sub-shell
24825         * build-aux/git-version-gen: Redirect stderr in `...` via
24826         "exec 2>...", rather than via an added sub-shell.
24827
24828 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
24829
24830         git-version-gen: use (...) rather than sh -c '...'
24831         * build-aux/git-version-gen: Rather than hard-coding a shell's name
24832         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
24833
24834 2011-01-03  Jim Meyering  <meyering@redhat.com>
24835
24836         git-version-gen: convert leading TABs to spaces
24837         * build-aux/git-version-gen: Expand leading TABs.
24838
24839         git-version-gen: handle failed "git rev-list"
24840         * build-aux/git-version-gen: Rather than leaking a "fatal" error
24841         from git and proceeding as if it had succeeded but printed no SHA1
24842         checksums, suppress the diagnostic and handle the failure.
24843         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
24844
24845         git-version-gen: include command name in one more diagnostic
24846         * build-aux/git-version-gen: When the required .tarball-version file
24847         was missing or unreadable, you might see the diagnostic from "cat",
24848         but no trace of the name of the invoking script.  Now, you still see
24849         the diagnostic from cat, but also get one from "git-version-gen: ".
24850         Inspired by a patch from Bruce Korb.
24851
24852         update-copyright: adjust test to match changed code
24853         * tests/test-update-copyright.sh: Change test's expected output
24854         to match new actual output.
24855
24856 2011-01-02  Bruno Haible  <bruno@clisp.org>
24857
24858         getlogin_r: Avoid test failure on HP-UX 11.
24859         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
24860         ERANGE when the second argument is zero.
24861         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
24862         portability problem.
24863
24864 2011-01-02  Bruce Korb  <bkorb@gnu.org>
24865
24866         * build-aux/update-copyright: doc Simon's changes
24867
24868 2011-01-02  Simon Josefsson  <simon@josefsson.org>
24869
24870         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
24871         environment variable.
24872
24873 2011-01-02  Bruno Haible  <bruno@clisp.org>
24874
24875         unigbrk: Avoid gcc warnings.
24876         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
24877         unused variable.
24878         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
24879         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
24880         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
24881         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
24882         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
24883         Change type of first argument to 'const char *'.
24884         (main): Remove unused variable.
24885         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
24886         type of first argument to 'const char *'.
24887         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
24888         Likewise.
24889         (main): Change type of variable 's'.
24890         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
24891         to 'int'.
24892
24893 2011-01-02  Bruno Haible  <bruno@clisp.org>
24894
24895         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
24896         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
24897         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
24898         bug.
24899         * lib/pwrite.c: Undo 2010-12-31 patch.
24900         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
24901
24902 2011-01-02  Bruno Haible  <bruno@clisp.org>
24903
24904         pread: Fix test whether it works.
24905         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
24906
24907 2011-01-02  Bruno Haible  <bruno@clisp.org>
24908
24909         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
24910         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
24911         ends in "6". Don't require a specific month name. Try also the locale
24912         names found on HP-UX 11 and Solaris 7.
24913
24914 2011-01-02  Bruno Haible  <bruno@clisp.org>
24915
24916         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
24917         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
24918         C linkage.
24919         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
24920
24921 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
24922
24923         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
24924         for consistency, since the "cluster" term is not used elsewhere.
24925         * lib/unigbrk.in.h: Update name.
24926         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
24927         * lib/unigbrk/u16-grapheme-next.c: Update name.
24928         * lib/unigbrk/u16-grapheme-prev.c: Update name.
24929         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
24930         * lib/unigbrk/u32-grapheme-next.c: Update name.
24931         * lib/unigbrk/u32-grapheme-prev.c: Update name.
24932         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
24933         * lib/unigbrk/u8-grapheme-next.c: Update name.
24934         * lib/unigbrk/u8-grapheme-prev.c: Update name.
24935         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
24936         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
24937         Suggested by Bruno Haible.
24938
24939 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
24940
24941         Remove module 'u8-grapheme-len' as too redundant with
24942         'u8-grapheme-next'.
24943         * modules/unigbrk/u8-grapheme-len: Delete file.
24944         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
24945         * lib/unigbrk.in.h: Remove prototype for deleted function.
24946         * lib/unigbrk/u8-grapheme-len.c: Delete file.
24947         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
24948
24949         Remove module 'u16-grapheme-len' as too redundant with
24950         'u16-grapheme-next'.
24951         * modules/unigbrk/u16-grapheme-len: Delete file.
24952         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
24953         * lib/unigbrk.in.h: Remove prototype for deleted function.
24954         * lib/unigbrk/u16-grapheme-len.c: Delete file.
24955         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
24956
24957         Remove module 'u32-grapheme-len' as too redundant with
24958         'u32-grapheme-next'.
24959         * modules/unigbrk/u32-grapheme-len: Delete file.
24960         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
24961         * lib/unigbrk.in.h: Remove prototype for deleted function.
24962         * lib/unigbrk/u32-grapheme-len.c: Delete file.
24963         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
24964
24965         Suggested by Bruno Haible.
24966
24967 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
24968
24969         * unigbrk.in.h: Fix typo: "ben" => "been".
24970         Reported by Bruno Haible.
24971
24972 2011-01-01  Jim Meyering  <meyering@redhat.com>
24973
24974         maint: update almost all copyright ranges to include 2011
24975         Run the new "make update-copyright" rule.
24976
24977 2011-01-01  Jim Meyering  <meyering@redhat.com>
24978
24979         maint: update-copyright: exempt doc/INSTALL*
24980         * Makefile (update-copyright): Also exclude doc/INSTALL*,
24981         since they are generated.  Suggested by Bruno Haible.
24982
24983 2011-01-01  Jim Meyering  <meyering@redhat.com>
24984
24985         maint: refine the update-copyright rule
24986         * Makefile (update-copyright): Also exclude any file that includes
24987         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
24988         code that merely generates the comment.
24989
24990 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
24991
24992         New module 'u8-grapheme-len'.
24993         * modules/unigbrk/u8-grapheme-len: New file.
24994         * modules/unigbrk/u8-grapheme-len-tests: New file.
24995         * lib/unigbrk.in.h: Add prototype for new function.
24996         * lib/unigbrk/u8-grapheme-len.c: New file.
24997         * tests/unigbrk/test-u8-grapheme-len.c: New file.
24998
24999         New module 'u16-grapheme-len'.
25000         * modules/unigbrk/u16-grapheme-len: New file.
25001         * modules/unigbrk/u16-grapheme-len-tests: New file.
25002         * lib/unigbrk.in.h: Add prototype for new function.
25003         * lib/unigbrk/u16-grapheme-len.c: New file.
25004         * tests/unigbrk/test-u16-grapheme-len.c: New file.
25005
25006         New module 'u32-grapheme-len'.
25007         * modules/unigbrk/u32-grapheme-len: New file.
25008         * modules/unigbrk/u32-grapheme-len-tests: New file.
25009         * lib/unigbrk.in.h: Add prototype for new function.
25010         * lib/unigbrk/u32-grapheme-len.c: New file.
25011         * tests/unigbrk/test-u32-grapheme-len.c: New file.
25012
25013         New module 'u8-grapheme-next'.
25014         * modules/unigbrk/u8-grapheme-next: New file.
25015         * modules/unigbrk/u8-grapheme-next-tests: New file.
25016         * lib/unigbrk.in.h: Add prototype for new function.
25017         * lib/unigbrk/u8-grapheme-next.c: New file.
25018         * tests/unigbrk/test-u8-grapheme-next.c: New file.
25019
25020         New module 'u16-grapheme-next'.
25021         * modules/unigbrk/u16-grapheme-next: New file.
25022         * modules/unigbrk/u16-grapheme-next-tests: New file.
25023         * lib/unigbrk.in.h: Add prototype for new function.
25024         * lib/unigbrk/u16-grapheme-next.c: New file.
25025         * tests/unigbrk/test-u16-grapheme-next.c: New file.
25026
25027         New module 'u32-grapheme-next'.
25028         * modules/unigbrk/u32-grapheme-next: New file.
25029         * modules/unigbrk/u32-grapheme-next-tests: New file.
25030         * lib/unigbrk.in.h: Add prototype for new function.
25031         * lib/unigbrk/u32-grapheme-next.c: New file.
25032         * tests/unigbrk/test-u32-grapheme-next.c: New file.
25033
25034         New module 'u8-grapheme-prev'.
25035         * modules/unigbrk/u8-grapheme-prev: New file.
25036         * modules/unigbrk/u8-grapheme-prev-tests: New file.
25037         * lib/unigbrk.in.h: Add prototype for new function.
25038         * lib/unigbrk/u8-grapheme-prev.c: New file.
25039         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
25040
25041         New module 'u16-grapheme-prev'.
25042         * modules/unigbrk/u16-grapheme-prev: New file.
25043         * modules/unigbrk/u16-grapheme-prev-tests: New file.
25044         * lib/unigbrk.in.h: Add prototype for new function.
25045         * lib/unigbrk/u16-grapheme-prev.c: New file.
25046         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
25047
25048         New module 'u32-grapheme-prev'.
25049         * modules/unigbrk/u32-grapheme-prev: New file.
25050         * modules/unigbrk/u32-grapheme-prev-tests: New file.
25051         * lib/unigbrk.in.h: Add prototype for new function.
25052         * lib/unigbrk/u32-grapheme-prev.c: New file.
25053         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
25054
25055         New module 'u8-grapheme-breaks'.
25056         * modules/unigbrk/u8-grapheme-breaks: New file.
25057         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
25058         * lib/unigbrk.in.h: Add prototype for new function.
25059         * lib/unigbrk/u8-grapheme-breaks.c: New file.
25060         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
25061
25062         New module 'u16-grapheme-breaks'.
25063         * modules/unigbrk/u16-grapheme-breaks: New file.
25064         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
25065         * lib/unigbrk.in.h: Add prototype for new function.
25066         * lib/unigbrk/u16-grapheme-breaks.c: New file.
25067         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
25068
25069         New module 'u32-grapheme-breaks'.
25070         * modules/unigbrk/u32-grapheme-breaks: New file.
25071         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
25072         * lib/unigbrk.in.h: Add prototype for new function.
25073         * lib/unigbrk/u32-grapheme-breaks.c: New file.
25074         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
25075
25076         New module 'ulc-grapheme-breaks'.
25077         * modules/unigbrk/ulc-grapheme-breaks: New file.
25078         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
25079         * m4/locale-ar.m4: New file.
25080         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
25081         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
25082         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
25083
25084 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
25085
25086         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
25087         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
25088         modified how this file was generated before I initially submitted
25089         the module, but failed to regenerate it.  This meant that several
25090         of the level2 entries were wrong.
25091         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
25092         Remove the division-by-2 that is folded into the table now that
25093         gbrkprop.h has been regenerated properly.  Now -1 entries are
25094         handled correctly.
25095
25096         New module 'unigbrk/uc-gbrk-prop-tests'.
25097         * modules/unigbrk/uc-gbrk-prop-tests: New file.
25098         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
25099         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
25100         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
25101
25102 2011-01-01  Bruno Haible  <bruno@clisp.org>
25103
25104         Avoid use of hexadecimal escapes.
25105         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
25106         instead of hexadecimal escapes.
25107
25108 2011-01-01  Jim Meyering  <meyering@redhat.com>
25109
25110         maint: new rule to update copyright year ranges
25111         * Makefile (update-copyright): New rule.
25112
25113         maint: indent with TABs in Makefile
25114         * Makefile: Expand leading sequences of spaces to TABs
25115
25116         version-etc: update the copyright year it reports
25117         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
25118
25119 2010-12-31  Bruno Haible  <bruno@clisp.org>
25120
25121         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
25122         * lib/isfinite.c (zerof, zerod, zerol): New variables.
25123         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
25124         zero.
25125
25126 2010-12-31  Bruno Haible  <bruno@clisp.org>
25127
25128         pwrite: Work around HP-UX 11.11 bug.
25129         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
25130         works and set REPLACE_PWRITE if not.
25131         * lib/pwrite.c (pwrite): Add an implementation that uses the system
25132         function.
25133         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
25134
25135 2010-12-31  Bruno Haible  <bruno@clisp.org>
25136
25137         pread: Work around HP-UX 11 bugs.
25138         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
25139         and set REPLACE_PREAD if not.
25140         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
25141
25142 2010-12-31  Eric Blake  <eblake@redhat.com>
25143
25144         nl_langinfo: fix YESEXPR on Irix 6.5
25145         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
25146         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
25147         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
25148         it.
25149
25150 2010-12-31  Bruno Haible  <bruno@clisp.org>
25151
25152         iconv: Document HP-UX 11 bug.
25153         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
25154
25155 2010-12-31  Bruno Haible  <bruno@clisp.org>
25156
25157         ldexpl: Fix link error on HP-UX 11.
25158         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
25159         LDEXPL_LIBM, using $ISNANL_LIBM.
25160
25161 2010-12-31  Eric Blake  <eblake@redhat.com>
25162
25163         ftello: avoid compilation failure with SunStudio c89
25164         * lib/ftello.c (ftello): Use lseek, not llseek.
25165
25166         tests: avoid failing coreutils tests on cygwin
25167         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
25168         (create_exe_shims_): Return 0 when skipping.
25169
25170 2010-12-31  Bruno Haible  <bruno@clisp.org>
25171
25172         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
25173         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
25174
25175 2010-12-31  Bruno Haible  <bruno@clisp.org>
25176
25177         waitpid: Fix link error in C++ mode.
25178         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
25179
25180 2010-12-31  Bruno Haible  <bruno@clisp.org>
25181
25182         isnan: Use GCC built-ins when possible.
25183         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
25184         __builtin_isnan.
25185         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
25186         (isnan): Define using GCC built-ins for GCC >= 4.0.
25187
25188 2010-12-31  Bruno Haible  <bruno@clisp.org>
25189
25190         isnand: Fix mistake.
25191         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
25192         __builtin_isnand.
25193
25194 2010-12-31  Bruno Haible  <bruno@clisp.org>
25195
25196         open: Avoid C++ error on HP-UX 11.
25197         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
25198
25199 2010-12-31  Bruno Haible  <bruno@clisp.org>
25200
25201         time_r: Add missing declarations on HP-UX 11.
25202         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
25203         instead of HAVE_LOCALTIME_R.
25204         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
25205         HAVE_LOCALTIME_R always.
25206         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
25207         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
25208         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
25209         HAVE_LOCALTIME_R.
25210         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
25211         * doc/posix-functions/localtime_r.texi: Likewise.
25212
25213 2010-12-29  Eric Blake  <eblake@redhat.com>
25214
25215         mountlist: tweak previous commit
25216         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
25217         Reported by Paul Eggert.
25218
25219         mountlist: fix local drive detection on cygwin
25220         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
25221         that works for cygwin.
25222
25223 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
25224
25225         ftoastr, snprintf: ftoastr + snprintf module
25226         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
25227         since the snprintf module now should be good enough here.
25228         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
25229         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
25230         and gl_MODULE_INDICATOR([snprintf]), but the former enables
25231         GNULIB_SNPRINTF only for the test directory, and the latter
25232         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
25233         seems to suffice by itself.
25234
25235 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
25236
25237         alloca: one step towards thread-safety
25238         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
25239         need for a static variable.  All callers changed.  This does not
25240         make the alloca replacement thread-safe, but it's one step.
25241
25242         tests: minor indenting change
25243         * tests/init.sh: Sync from coreutils housekeeping patch
25244         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
25245         to keep lines within 80 columns.
25246
25247 2010-12-28  Jim Meyering  <meyering@redhat.com>
25248
25249         regex: don't infloop on persistent failing calloc
25250         * lib/regexec.c (build_trtable): Return failure indication upon
25251         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
25252         In glibc, this was fixed for version 2.13:
25253         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
25254
25255 2010-12-28  Bruno Haible  <bruno@clisp.org>
25256             Paul Eggert <eggert@cs.ucla.edu>
25257
25258         linkat: Make implementation robust against system behaviour variations.
25259         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
25260         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
25261         way, and to -2 if it needs a generic runtime test.
25262         * lib/linkat.c (solaris_optimized_link_immediate,
25263         solaris_optimized_link_follow): New functions.
25264         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
25265         (check_same_link): Use it.
25266
25267 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
25268
25269         New module 'unigbrk/base'.
25270         * modules/unigbrk/base: New file.
25271         * lib/unigbrk.in.h: New file.
25272
25273         New module 'unigbrk/uc-gbrk-prop'.
25274         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
25275         * modules/unigbrk/uc-gbrk-prop: New file.
25276         * lib/unigbrk/gbrkprop.h: New file.
25277         * lib/unigbrk/uc-gbrk-prop.c: New file.
25278
25279         New module 'unigbrk/uc-is-grapheme-break'.
25280         * modules/unigbrk/uc-is-grapheme-break: New file.
25281         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
25282         * lib/unigbrk/uc-is-grapheme-break.c: New file.
25283         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
25284         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
25285         * tests/unigbrk/GraphemeBreakTest.txt: New file.
25286
25287         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
25288
25289 2010-12-27  Bruno Haible  <bruno@clisp.org>
25290
25291         linkat test: Avoid failure on Solaris 11 2010-11.
25292         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
25293
25294 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
25295
25296         utimens: work around glibc rounding bug on more platforms
25297         * lib/utimens.c (fdutimens): Work around rounding bug even if
25298         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
25299         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
25300
25301 2010-12-27  Bruno Haible  <bruno@clisp.org>
25302
25303         select tests: Improve comments.
25304         * tests/test-select.c (do_select): Add comments.
25305
25306 2010-12-27  Bruno Haible  <bruno@clisp.org>
25307
25308         select tests: Safer way of handling timeout.
25309         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
25310         at every invocation.
25311
25312 2010-12-27  Bruno Haible  <bruno@clisp.org>
25313
25314         select tests: Use 'bool' where appropriate.
25315         * tests/test-select.c (connect_to_socket): Change argument type to
25316         'bool'.
25317
25318 2010-12-27  Bruno Haible  <bruno@clisp.org>
25319
25320         select tests: Use existing modules.
25321         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
25322         (configure.ac): Don't test for unistd.h.
25323         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
25324         declared in <unistd.h>.
25325
25326 2010-12-27  Bruno Haible  <bruno@clisp.org>
25327
25328         mbrtowc: Work around a Solaris 7 bug.
25329         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
25330         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
25331         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
25332         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
25333         MBRTOWC_NULL_ARG1_BUG.
25334         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
25335         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
25336         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
25337         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
25338
25339 2010-12-27  Jim Meyering  <meyering@redhat.com>
25340
25341         read-file.c: tweak syntax
25342         * lib/read-file.c (fread_file): Remove space after "*" in function
25343         definitions.
25344
25345 2010-12-27  Bruno Haible  <bruno@clisp.org>
25346
25347         times test: Avoid gcc warnings on OSF/1.
25348         * tests/test-times.c (main): Cast printf arguments from clock_t to
25349         'long int'.
25350
25351 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
25352
25353         utimens: work around glibc rounding bug on older Linux kernels
25354         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
25355         on Linux with a glibc whose utimes might not work, then work
25356         around a longstanding glibc bug involving rounding rather than
25357         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
25358         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
25359
25360 2010-12-26  Bruno Haible  <bruno@clisp.org>
25361
25362         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
25363         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
25364         _GL_CXXALIAS_SYS.
25365         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
25366
25367 2010-12-26  Bruno Haible  <bruno@clisp.org>
25368
25369         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
25370         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
25371         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
25372         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
25373         looking for the declaration.
25374         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
25375         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
25376         problem.
25377         * doc/posix-functions/inet_pton.texi: Likewise.
25378
25379 2010-12-26  Bruno Haible  <bruno@clisp.org>
25380
25381         arpa_inet: Use the common idioms with C++ support.
25382         * lib/arpa_inet.in.h: Include c++defs.h.
25383         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
25384         support.
25385         * modules/arpa_inet (Depends-on): Add c++defs.
25386         (Makefile.am): Substitute the contents of c++defs.h.
25387         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
25388         * modules/arpa_inet-c++-tests: New file.
25389         * tests/test-arpa_inet-c++.cc: New file.
25390
25391 2010-12-25  Bruno Haible  <bruno@clisp.org>
25392
25393         Fix more C++ link errors on Solaris 8.
25394         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
25395         $(LIB_EACCESS).
25396         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
25397         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
25398         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
25399         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
25400         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
25401
25402 2010-12-25  Bruno Haible  <bruno@clisp.org>
25403
25404         printf-posix: Fix link error when a non-GCC compiler is used.
25405         * lib/stdio.in.h (printf): When not using GCC, override printf
25406         correctly.
25407         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
25408
25409 2010-12-25  Bruno Haible  <bruno@clisp.org>
25410
25411         strerror_r-posix: Update doc.
25412         * doc/posix-functions/strerror_r.texi: Update doc about the return
25413         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
25414
25415 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
25416
25417         utimens: simplify the logic of the previous change
25418         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
25419         This should not affect whether the test succeeds or fails.
25420
25421         utimens: configure better on hosts with NFS clock skew
25422         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
25423         uses the clock of the local host.  It might use the clock of the
25424         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
25425         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
25426
25427 2010-12-25  Bruno Haible  <bruno@clisp.org>
25428
25429         ptsname test: Avoid failure on Solaris.
25430         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
25431         open a pseudo-terminal; don't use BSD-style ptys.
25432         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
25433
25434 2010-12-25  Bruno Haible  <bruno@clisp.org>
25435
25436         ptsname: Avoid ERANGE failure on some systems.
25437         * lib/ptsname.c (buffer): Increase size.
25438
25439 2010-12-25  Bruno Haible  <bruno@clisp.org>
25440
25441         rename, renameat: Avoid test failures at NFS mounted locations.
25442         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
25443         so that subsequent mkdir calls succeed.
25444
25445 2010-12-25  Bruno Haible  <bruno@clisp.org>
25446
25447         iswblank: Fix C++ link error on Solaris 8.
25448         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
25449         _GL_FUNCDECL_SYS.
25450
25451 2010-12-25  Bruno Haible  <bruno@clisp.org>
25452
25453         unistd: Fix C++ link error on Solaris 8.
25454         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
25455
25456 2010-12-25  Bruno Haible  <bruno@clisp.org>
25457
25458         readlink doc: Mention an old glibc bug.
25459         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
25460
25461 2010-12-25  Bruno Haible  <bruno@clisp.org>
25462
25463         fcntl-h: Fix for use of C++ on glibc systems.
25464         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
25465         also on glibc systems in C++ mode.
25466         Reported by Gary V. Vaughan <gary@gnu.org>.
25467
25468 2010-12-25  Bruno Haible  <bruno@clisp.org>
25469
25470         roundl-ieee: Make it work on OSF/1 5.1 with cc.
25471         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
25472
25473 2010-12-25  Bruno Haible  <bruno@clisp.org>
25474
25475         truncl-ieee: Make it work on OSF/1 5.1 with cc.
25476         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
25477         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
25478         test whether truncl works according to ISO C 99 with IEC 60559.
25479         * m4/truncl-ieee.m4: New file.
25480         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
25481         m4/signbit.m4.
25482         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
25483
25484 2010-12-25  Bruno Haible  <bruno@clisp.org>
25485
25486         ceill-ieee: Make it work on OSF/1 5.1 with cc.
25487         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
25488         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
25489         test whether ceill works according to ISO C 99 with IEC 60559.
25490         * m4/ceill-ieee.m4: New file.
25491         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
25492         m4/signbit.m4.
25493         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
25494
25495 2010-12-25  Bruno Haible  <bruno@clisp.org>
25496
25497         Ensure all prerequisites of <wchar.h> are included.
25498         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
25499         before <wchar.h>.
25500         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
25501         gl_MBRLEN_NUL_RETVAL): Likewise.
25502         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
25503         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
25504         AC_FUNC_MBRTOWC): Likewise.
25505         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
25506         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
25507         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
25508         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
25509         Likewise.
25510         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
25511         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
25512         (gl_WCHAR_H): Improve comments.
25513         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
25514
25515 2010-12-25  Bruno Haible  <bruno@clisp.org>
25516
25517         strtok_r: Fix C syntax error in autoconf macro.
25518         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
25519         characters in test program.
25520
25521 2010-12-24  Bruno Haible  <bruno@clisp.org>
25522
25523         ceil, trunc, round: Fix gcc warnings.
25524         * lib/ceil.c (MIN): Undefine before redefining.
25525         * lib/trunc.c (MIN): Likewise.
25526         * lib/round.c (MIN): Likewise.
25527         Include <math.h> first.
25528
25529 2010-12-24  Bruno Haible  <bruno@clisp.org>
25530
25531         select tests: Avoid failures on OSF/1 5.1.
25532         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
25533         failure of closing the last socket; it may fail with ECONNRESET.
25534
25535 2010-12-24  Eric Blake  <eblake@redhat.com>
25536
25537         stdint: avoid HP-UX 10.20 preprocessor bug
25538         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
25539         than #if.
25540         * tests/test-floor2.c (main): Likewise.
25541         Reported by Peter O'Gorman.
25542
25543         pipe: make obsoletion transition easier
25544         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
25545         * modules/pipe (Files): Include revived file.
25546         (Include): Drop reference, to mirror getdate's behavior.
25547
25548 2010-12-24  Bruno Haible  <bruno@clisp.org>
25549
25550         sys_socket: Hide mismatch of declarations on NonStop Kernel.
25551         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
25552         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
25553         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
25554
25555 2010-12-24  Bruno Haible  <bruno@clisp.org>
25556
25557         gethostname: Ensure declaration on NonStop Kernel.
25558         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
25559         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
25560
25561 2010-12-24  Bruno Haible  <bruno@clisp.org>
25562
25563         sys_select: Ensure all necessary types on NonStop Kernel.
25564         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
25565         include <sys/time.h>.
25566         * doc/posix-headers/sys_select.texi: Mention that it's missing on
25567         NonStop Kernel.
25568         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
25569
25570 2010-12-24  Bruno Haible  <bruno@clisp.org>
25571
25572         sys_select: Remove unneeded include.
25573         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
25574         have <sys/select.h>.
25575
25576 2010-12-24  Bruno Haible  <bruno@clisp.org>
25577
25578         gethostname: Provide a fallback for HOST_NAME_MAX.
25579         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
25580         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
25581         instead.
25582         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
25583
25584 2010-12-24  Bruno Haible  <bruno@clisp.org>
25585
25586         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
25587         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
25588         (SA_RESTART): Likewise.
25589         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
25590
25591 2010-12-24  Bruno Haible  <bruno@clisp.org>
25592
25593         signal: Define NSIG.
25594         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
25595         * tests/test-signal.c (nsig): New variable.
25596         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
25597
25598 2010-12-24  Bruno Haible  <bruno@clisp.org>
25599
25600         rename, renameat: Avoid test failures on OSF/1 5.1.
25601         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
25602         alternative error codes.
25603         * tests/test-renameat.c (main): Likewise.
25604
25605 2010-12-24  Bruno Haible  <bruno@clisp.org>
25606
25607         *printf: Detect large precisions bug on Solaris 10/SPARC.
25608         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
25609         by Paul Eggert.
25610         * tests/test-snprintf-posix.h (test_function): Add this test code here
25611         too.
25612         * tests/test-sprintf-posix.h (test_function): Likewise.
25613         * tests/test-vasnprintf-posix.c (test_function): Likewise.
25614         * tests/test-vasprintf-posix.c (test_function): Likewise.
25615         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
25616         around by gnulib.
25617         * doc/posix-functions/printf.texi: Likewise.
25618         * doc/posix-functions/snprintf.texi: Likewise.
25619         * doc/posix-functions/sprintf.texi: Likewise.
25620         * doc/posix-functions/vfprintf.texi: Likewise.
25621         * doc/posix-functions/vprintf.texi: Likewise.
25622         * doc/posix-functions/vsnprintf.texi: Likewise.
25623         * doc/posix-functions/vsprintf.texi: Likewise.
25624         * doc/posix-functions/dprintf.texi: Undo last commit.
25625         * doc/posix-functions/vdprintf.texi: Likewise.
25626
25627 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
25628
25629         tests: port test-fdutimensat.c to Solaris 8
25630         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
25631         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
25632         On Solaris 8, it fails with errno == ENOSYS, because there is no
25633         futimens (so it can't use the fd), and there is no lutimens (so it
25634         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
25635
25636         vsnprintf: make more consistent with snprintf; doc fixes
25637
25638         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
25639         the byte count return problem was promoted from the snprintf-posix
25640         to the snprintf module.
25641         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
25642         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
25643         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
25644         * tests/test-snprintf.c (main): Check the byte count returned.
25645         * tests/test-vsnprintf.c (main): Likewise.
25646
25647 2010-12-23  Eric Blake  <eblake@redhat.com>
25648
25649         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
25650         * modules/sigpipe (License): Relax license.
25651
25652 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
25653
25654         doc: document Solaris printf bug with large float precisions
25655         * doc/posix-functions/dprintf.texi (dprintf):
25656         * doc/posix-functions/fprintf.texi (fprintf):
25657         * doc/posix-functions/printf.texi (printf):
25658         * doc/posix-functions/snprintf.texi (snprintf):
25659         * doc/posix-functions/sprintf.texi (sprintf):
25660         * doc/posix-functions/vdprintf.texi (vdprintf):
25661         * doc/posix-functions/vfprintf.texi (vfprintf):
25662         * doc/posix-functions/vprintf.texi (vprintf):
25663         * doc/posix-functions/vsnprintf.texi (vsnprintf):
25664         * doc/posix-functions/vsprintf.texi (vsprintf):
25665         Mention that these functions mishandle large floating point
25666         precisions on Solaris 10.  The same bug is also present in Solaris
25667         8, and I assume earlier.  This causes "cd gnulib-tests; make
25668         check" to fail on Solaris 8 (and I assume, later) when building
25669         the latest coreutils, in test-vasprintf-posix's call to
25670         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
25671         the wide flavors (e.g., wprintf) so this patch just updates the
25672         documentation for the narrow ones.
25673
25674         test-posixtm.c: add two tests
25675         * tests/test-posixtm.c: Add two tests, to highlight the
25676         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
25677         around this bug; this is merely to document it.
25678
25679 2010-12-22  Bruno Haible  <bruno@clisp.org>
25680
25681         getlogin_r: Work around portability problem on OSF/1.
25682         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
25683         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
25684         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
25685         test for a truncated result.
25686         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
25687         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
25688         * modules/getlogin_r (Depends-on): Add memchr.
25689         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
25690
25691 2010-12-22  Bruno Haible  <bruno@clisp.org>
25692
25693         ptsname: Avoid test failure on OSF/1 5.1.
25694         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
25695         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
25696         (same_slave): New function.
25697         (main): Use it to compare ptsname's result with the expected file name.
25698
25699 2010-12-22  Bruno Haible  <bruno@clisp.org>
25700
25701         Port extended stdio modules to HP NonStop Kernel.
25702         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
25703         macros.
25704         * lib/fbufmode.c: Update comments.
25705         * lib/fflush.c: Likewise.
25706         * lib/fpurge.c: Likewise.
25707         * lib/freadable.c: Likewise.
25708         * lib/freadahead.c: Likewise.
25709         * lib/freading.c: Likewise.
25710         * lib/freadptr.c: Likewise.
25711         * lib/freadseek.c: Likewise.
25712         * lib/fseeko.c: Likewise.
25713         * lib/fseterr.c: Likewise.
25714         * lib/fwritable.c: Likewise.
25715         * lib/fwriting.c: Likewise.
25716         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
25717
25718 2010-12-22  Bruno Haible  <bruno@clisp.org>
25719
25720         ttyname_r: Work around bug on OSF/1 5.1.
25721         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
25722         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
25723         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
25724         present.
25725         * lib/ttyname_r.c (ttyname_r): Update comments.
25726
25727 2010-12-22  Bruno Haible  <bruno@clisp.org>
25728
25729         round: Implement result sign according to IEEE 754.
25730         * lib/round.c (MIN, MINUS_ZERO): New macros.
25731         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
25732         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
25733         * tests/test-round-ieee.c (main): Likewise.
25734         * tests/test-roundl-ieee.c (main): Likewise.
25735
25736         trunc: Implement result sign according to IEEE 754.
25737         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
25738         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
25739         * tests/test-trunc2.c: Include minus-zero.h.
25740         (MINUS_ZERO): New macro.
25741         (trunc_reference): Keep in sync with lib/trunc.c.
25742         * tests/test-truncf2.c: Include minus-zero.h.
25743         (MINUS_ZERO): New macro.
25744         (truncf_reference): Keep in sync with lib/trunc.c.
25745         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
25746         * tests/test-trunc-ieee.c (main): Likewise.
25747         * tests/test-truncl-ieee.c (main): Likewise.
25748
25749         ceil: Implement result sign according to IEEE 754.
25750         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
25751         (FUNC): Return -0.0 for -1 < x < 0.
25752         * tests/test-ceil2.c: Include minus-zero.h.
25753         (MINUS_ZERO): New macro.
25754         (ceil_reference): Keep in sync with lib/ceil.c.
25755         * tests/test-ceilf2.c: Include minus-zero.h.
25756         (MINUS_ZERO): New macro.
25757         (ceilf_reference): Keep in sync with lib/ceil.c.
25758         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
25759         * tests/test-ceil-ieee.c (main): Likewise.
25760         * tests/test-ceill-ieee.c (main): Likewise.
25761
25762         floor: Implement result sign according to IEEE 754.
25763         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
25764         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
25765         * tests/test-floorf2.c (floorf_reference): Likewise.
25766         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
25767         * tests/test-floor-ieee.c (main): Likewise.
25768         * tests/test-floorl-ieee.c (main): Likewise.
25769
25770 2010-12-22  Bruno Haible  <bruno@clisp.org>
25771
25772         getaddrinfo: Update doc.
25773         * doc/posix-functions/gai_strerror.texi: Return type is also different
25774         on AIX and HP-UX.
25775
25776 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
25777
25778         getaddrinfo, inet_ntop: Update doc for Solaris.
25779         * doc/posix-functions/gai_strerror.texi: Return type is also an
25780         issue on Solaris 9 and earlier.
25781         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
25782         on Solaris 10 and earlier.
25783
25784 2010-12-21  Bruno Haible  <bruno@clisp.org>
25785
25786         New module 'roundl-ieee'.
25787         * modules/roundl-ieee: New file.
25788         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
25789         test whether roundl works according to ISO C 99 with IEC 60559.
25790         * m4/roundl-ieee.m4: New file.
25791         * modules/roundl-ieee-tests: New file.
25792         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
25793         * tests/test-roundl.c (main): Remove signbit tests.
25794         * modules/roundl-tests (Depends-on): Remove signbit.
25795         * doc/posix-functions/roundl.texi: Mention the new module.
25796
25797 2010-12-21  Bruno Haible  <bruno@clisp.org>
25798
25799         New module 'truncl-ieee'.
25800         * modules/truncl-ieee: New file.
25801         * modules/truncl-ieee-tests: New file.
25802         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
25803         * tests/test-truncl.c (main): Remove signbit tests.
25804         * modules/truncl-tests (Depends-on): Remove signbit.
25805         * doc/posix-functions/truncl.texi: Mention the new module.
25806
25807 2010-12-21  Bruno Haible  <bruno@clisp.org>
25808
25809         New module 'ceill-ieee'.
25810         * modules/ceill-ieee: New file.
25811         * modules/ceill-ieee-tests: New file.
25812         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
25813         * tests/test-ceill.c (main): Remove signbit tests.
25814         * modules/ceill-tests (Depends-on): Remove signbit.
25815         * doc/posix-functions/ceill.texi: Mention the new module.
25816
25817 2010-12-21  Bruno Haible  <bruno@clisp.org>
25818
25819         New module 'floorl-ieee'.
25820         * modules/floorl-ieee: New file.
25821         * modules/floorl-ieee-tests: New file.
25822         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
25823         * tests/test-floorl.c (main): Remove signbit tests.
25824         * modules/floorl-tests (Depends-on): Remove signbit.
25825         * doc/posix-functions/floorl.texi: Mention the new module.
25826
25827 2010-12-21  Bruno Haible  <bruno@clisp.org>
25828
25829         New module 'round-ieee'.
25830         * modules/round-ieee: New file.
25831         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
25832         whether round works according to ISO C 99 with IEC 60559.
25833         * m4/round-ieee.m4: New file.
25834         * modules/round-ieee-tests: New file.
25835         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
25836         * tests/test-round1.c (main): Remove signbit tests.
25837         * modules/round-tests (Depends-on): Remove 'signbit'.
25838         * doc/posix-functions/round.texi: Mention the new module.
25839
25840 2010-12-21  Bruno Haible  <bruno@clisp.org>
25841
25842         New module 'trunc-ieee'.
25843         * modules/trunc-ieee: New file.
25844         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
25845         whether trunc works according to ISO C 99 with IEC 60559.
25846         * m4/trunc-ieee.m4: New file.
25847         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
25848         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
25849         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
25850         * modules/trunc-ieee-tests: New file.
25851         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
25852         * tests/test-trunc1.c (main): Remove signbit tests.
25853         * modules/trunc-tests (Depends-on): Remove 'signbit'.
25854         * doc/posix-functions/trunc.texi: Mention the new module.
25855
25856 2010-12-21  Bruno Haible  <bruno@clisp.org>
25857
25858         New module 'ceil-ieee'.
25859         * modules/ceil-ieee: New file.
25860         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
25861         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
25862         ISO C 99 with IEC 60559.
25863         * m4/ceil-ieee.m4: New file.
25864         * modules/ceil (Files): Add lib/ceil.c.
25865         (Depends-on): Add 'float'.
25866         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
25867         * lib/math.in.h (ceil): New declaration.
25868         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
25869         REPLACE_CEIL.
25870         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
25871         * modules/ceil-ieee-tests: New file.
25872         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
25873         * tests/test-math-c++.cc: Check the signature of 'ceil'.
25874         * doc/posix-functions/ceil.texi: Mention the new module.
25875
25876 2010-12-21  Bruno Haible  <bruno@clisp.org>
25877
25878         New module 'floor-ieee'.
25879         * modules/floor-ieee: New file.
25880         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
25881         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
25882         ISO C 99 with IEC 60559.
25883         * m4/floor-ieee.m4: New file.
25884         * modules/floor (Files): Add lib/floor.c.
25885         (Depends-on): Add 'float'.
25886         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
25887         * lib/math.in.h (floor): New declaration.
25888         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
25889         REPLACE_FLOOR.
25890         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
25891         * modules/floor-ieee-tests: New file.
25892         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
25893         * tests/test-math-c++.cc: Check the signature of 'floor'.
25894         * doc/posix-functions/floor.texi: Mention the new module.
25895
25896 2010-12-21  Bruno Haible  <bruno@clisp.org>
25897
25898         New module 'roundf-ieee'.
25899         * modules/roundf-ieee: New file.
25900         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
25901         test whether roundf works according to ISO C 99 with IEC 60559.
25902         * m4/roundf-ieee.m4: New file.
25903         * modules/roundf-ieee-tests: New file.
25904         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
25905         * tests/test-roundf1.c (main): Remove signbit tests.
25906         * modules/roundf-tests (Depends-on): Remove 'signbit'.
25907         * doc/posix-functions/roundf.texi: Mention the new module.
25908
25909 2010-12-21  Bruno Haible  <bruno@clisp.org>
25910
25911         New module 'truncf-ieee'.
25912         * modules/truncf-ieee: New file.
25913         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
25914         test whether truncf works according to ISO C 99 with IEC 60559.
25915         * m4/truncf-ieee.m4: New file.
25916         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
25917         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
25918         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
25919         * modules/truncf-ieee-tests: New file.
25920         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
25921         * tests/test-truncf1.c (main): Remove signbit tests.
25922         * modules/truncf-tests (Depends-on): Remove 'signbit'.
25923         * doc/posix-functions/truncf.texi: Mention the new module.
25924
25925 2010-12-21  Bruno Haible  <bruno@clisp.org>
25926
25927         New module 'ceilf-ieee'.
25928         * modules/ceilf-ieee: New file.
25929         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
25930         test whether ceilf works according to ISO C 99 with IEC 60559.
25931         * m4/ceilf-ieee.m4: New file.
25932         * modules/ceilf-ieee-tests: New file.
25933         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
25934         * tests/test-ceilf1.c (main): Remove signbit tests.
25935         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
25936         * doc/posix-functions/ceilf.texi: Mention the new module.
25937
25938 2010-12-21  Bruno Haible  <bruno@clisp.org>
25939
25940         New module 'floorf-ieee'.
25941         * modules/floorf-ieee: New file.
25942         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
25943         test whether floorf works according to ISO C 99 with IEC 60559.
25944         * m4/floorf-ieee.m4: New file.
25945         * modules/floorf-ieee-tests: New file.
25946         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
25947         * tests/test-floorf1.c (main): Remove signbit tests.
25948         * modules/floorf-tests (Depends-on): Remove 'signbit'.
25949         * doc/posix-functions/floorf.texi: Mention the new module.
25950
25951 2010-12-21  Bruno Haible  <bruno@clisp.org>
25952
25953         Support for minus zero in autoconf macros.
25954         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
25955         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
25956         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
25957         * tests/minus-zero.h: Update comments.
25958
25959 2010-12-21  Bruno Haible  <bruno@clisp.org>
25960
25961         Tests for module 'ceil'.
25962         * modules/ceil-tests: New file.
25963         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
25964         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
25965
25966 2010-12-21  Bruno Haible  <bruno@clisp.org>
25967
25968         Tests for module 'floor'.
25969         * modules/floor-tests: New file.
25970         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
25971         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
25972
25973 2010-12-21  Bruno Haible  <bruno@clisp.org>
25974
25975         math: Fix indentation.
25976         * lib/math.in.h (floorf): Fix indentation.
25977
25978 2010-12-21  Bruno Haible  <bruno@clisp.org>
25979
25980         Fix cross-compilation guesses on Solaris.
25981         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
25982         not match "solaris2.10".
25983         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
25984         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
25985         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
25986
25987 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
25988
25989         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
25990         This fixes a problem observed with the latest coreutils snapshot
25991         that caused a test to fail on Solaris 8.  src/csplit.c's call
25992         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
25993         earlier, instead of returning the number of bytes that would have
25994         been generated; this causes csplit to incorrectly report memory
25995         exhaustion.
25996         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
25997         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
25998         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
25999         comments to match.
26000         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
26001         Fix typo in matching older versions of Solaris: "solaris2.10"
26002         is matched by the shell pattern "solaris2.[0-9]*".  This matters
26003         only for guessing while cross-compiling.
26004         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
26005
26006 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
26007
26008         ftoastr: fix comment again
26009         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
26010         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
26011         Also, simplify example a bit by using flags = 0.
26012
26013 2010-12-20  Bruno Haible  <bruno@clisp.org>
26014
26015         round*, trunc*: Update documentation regarding glibc.
26016         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
26017         * doc/posix-functions/round.texi: Likewise.
26018         * doc/posix-functions/roundl.texi: Likewise.
26019         * doc/posix-functions/truncf.texi: Likewise.
26020         * doc/posix-functions/trunc.texi: Likewise.
26021         * doc/posix-functions/truncl.texi: Likewise.
26022
26023 2010-12-20  Bruno Haible  <bruno@clisp.org>
26024
26025         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
26026         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
26027         * doc/posix-functions/round.texi: Likewise.
26028         * doc/posix-functions/roundl.texi: Likewise.
26029
26030 2010-12-20  Bruno Haible  <bruno@clisp.org>
26031
26032         ttyname_r: Add missing declaration on HP-UX 11.
26033         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
26034         HAVE_TTYNAME_R.
26035         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
26036         declared. Set HAVE_TTYNAME_R always.
26037         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26038         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
26039         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
26040         HAVE_TTYNAME_R.
26041         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
26042
26043 2010-12-20  Bruno Haible  <bruno@clisp.org>
26044
26045         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
26046         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
26047         * doc/posix-functions/getlogin_r.texi: Likewise.
26048         * tests/test-getlogin.c: Include <errno.h>.
26049         (main): Avoid test failure on HP-UX 11.11.
26050         * tests/test-getlogin_r.c (main): Likewise.
26051
26052 2010-12-20  Bruno Haible  <bruno@clisp.org>
26053
26054         getlogin_r: Add missing declaration on HP-UX 11.
26055         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
26056         declared also when it exists as a function.
26057         * doc/posix-functions/getlogin_r.texi: Document this workaround.
26058
26059 2010-12-20  Bruno Haible  <bruno@clisp.org>
26060
26061         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
26062         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
26063         through wcrtomb.
26064
26065 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
26066
26067         ftoastr: fix comment
26068         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
26069         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
26070
26071 2010-12-19  Bruno Haible  <bruno@clisp.org>
26072
26073         isnan: Ensure it is a macro.
26074         * lib/math.in.h (isnan): Define as a macro if not already a macro.
26075         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
26076         Solaris.
26077
26078 2010-12-19  Bruno Haible  <bruno@clisp.org>
26079
26080         ldexpl test: Fix link error on OSF/1 5.1.
26081         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
26082
26083 2010-12-19  Bruno Haible  <bruno@clisp.org>
26084
26085         wctype: Make it work in C++ mode on OSF/1 5.1.
26086         * lib/wctype.in.h (iswblank): Declare but not define here.
26087         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
26088         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
26089         * modules/wctype (Files): Add lib/iswblank.c.
26090
26091 2010-12-19  Bruno Haible  <bruno@clisp.org>
26092
26093         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
26094         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
26095         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
26096
26097 2010-12-19  Bruno Haible  <bruno@clisp.org>
26098
26099         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
26100         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
26101         _POSIX_PII_SOCKET.
26102         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
26103         * doc/posix-functions/recvfrom.texi: Likewise.
26104         * doc/posix-functions/send.texi: Likewise.
26105         * doc/posix-functions/sendto.texi: Likewise.
26106
26107 2010-12-19  Bruno Haible  <bruno@clisp.org>
26108
26109         tcgetsid: Add missing declaration on OSF/1 5.1.
26110         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
26111         HAVE_TCGETSID.
26112         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
26113         Don't set HAVE_TCGETSID.
26114         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
26115         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
26116         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
26117         HAVE_TCGETSID.
26118         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
26119
26120 2010-12-19  Bruno Haible  <bruno@clisp.org>
26121
26122         stdio: Fix problem with popen() declaration on OSF/1 5.1.
26123         * lib/stdio.in.h: During the include_next statement, let recursive
26124         includes of this file include only the system header file.
26125
26126 2010-12-19  Bruno Haible  <bruno@clisp.org>
26127
26128         iconv_open: Fix regression from 2010-12-04.
26129         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
26130         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
26131
26132 2010-12-19  Bruno Haible  <bruno@clisp.org>
26133
26134         stdbool test: Avoid a gcc warning.
26135         * tests/test-stdbool.c (main): Fail if e1 is false.
26136         Reported by Jim Meyering.
26137
26138 2010-12-19  Jim Meyering  <meyering@redhat.com>
26139
26140         setenv: restore to working order
26141         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
26142         mistakenly removed.
26143         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
26144         HAVE_SETENV.
26145         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
26146         HAVE_SETENV.
26147
26148 2010-12-19  Bruno Haible  <bruno@clisp.org>
26149
26150         Document some different function declarations on OSF/1 5.1.
26151         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
26152         * doc/posix-functions/inet_ntop.texi: Likewise.
26153         * doc/posix-functions/gethostname.texi: Likewise.
26154         * lib/unistd.in.h (gethostname): Update comment.
26155
26156 2010-12-19  Bruno Haible  <bruno@clisp.org>
26157
26158         doc: Mention vasprintf-posix module.
26159         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
26160         the 'vasprintf-posix' module.
26161         * doc/glibc-functions/vasprintf.texi: Likewise.
26162
26163 2010-12-19  Bruno Haible  <bruno@clisp.org>
26164
26165         unsetenv: Add missing declaration on OSF/1 5.1.
26166         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
26167         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
26168         Don't set HAVE_UNSETENV. In the test program, set _BSD.
26169         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
26170         not HAVE_UNSETENV.
26171         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
26172         HAVE_UNSETENV.
26173         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
26174
26175 2010-12-19  Bruno Haible  <bruno@clisp.org>
26176
26177         setenv: Add missing declaration on OSF/1 5.1.
26178         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
26179         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
26180         declared. Don't set HAVE_SETENV.
26181         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
26182         not HAVE_SETENV.
26183         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
26184         HAVE_SETENV.
26185         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
26186
26187 2010-12-19  Bruno Haible  <bruno@clisp.org>
26188
26189         nl_langinfo tests: Avoid gcc warning.
26190         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
26191
26192 2010-12-19  Bruno Haible  <bruno@clisp.org>
26193
26194         mknod: Avoid error in C++ mode on OSF/1 with GCC.
26195         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
26196         _GL_CXXALIAS_SYS.
26197
26198 2010-12-19  Bruno Haible  <bruno@clisp.org>
26199
26200         stdbool: Relax test.
26201         * tests/test-stdbool.c (e): Don't require that casts from a variable's
26202         address to 'bool' work in static initializer, for compilers other than
26203         GCC.
26204
26205 2010-12-19  Bruno Haible  <bruno@clisp.org>
26206
26207         ftello: Add missing declaration on OSF/1 5.1.
26208         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
26209         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
26210         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
26211         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
26212         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
26213
26214 2010-12-19  Bruno Haible  <bruno@clisp.org>
26215
26216         fseeko: Add missing declaration on OSF/1 5.1.
26217         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
26218         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
26219         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
26220         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
26221         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
26222
26223 2010-12-19  Bruno Haible  <bruno@clisp.org>
26224
26225         fchdir: Add missing declaration on OSF/1 5.1.
26226         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
26227         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
26228         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
26229         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
26230         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
26231
26232 2010-12-19  Bruno Haible  <bruno@clisp.org>
26233
26234         relocatable-prog-wrapper: Separate from relocatable-prog.
26235         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
26236         uninstall-relocwrapper rule here.
26237         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
26238         Reported by Ian Beckwith <ianb@erislabs.net>.
26239
26240 2010-12-19  Bruno Haible  <bruno@clisp.org>
26241
26242         unistr/u8-mbsnlen: Add missing dependency.
26243         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
26244         Reported by Ian Beckwith <ianb@erislabs.net>.
26245
26246 2010-12-19  Bruno Haible  <bruno@clisp.org>
26247
26248         iconv: Make it possible again to use this module without 'iconv-h'.
26249         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
26250         if it is not defined.
26251         Reported by Ian Beckwith <ianb@erislabs.net>.
26252
26253 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
26254
26255         acl: port to Solaris 8 when copying from tmpfs to ufs
26256         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
26257         error number.  Problem observed on Solaris 8 with latest
26258         coreutils, with "mv A B", where A is on a tmpfs file system and B
26259         is on a ufs file system.  This caused coreutils' mv/part-symlink
26260         test to fail.
26261
26262         tests: set fail=0 at start
26263         * tests/init.sh (setup_): Move fail=0 initialization here ...
26264         (mktempd_): ... from here, so that tests can rely on fail being
26265         set to 0 initially.  This fixes a problem in coreutils; see:
26266         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
26267
26268 2010-12-18  Bruno Haible  <bruno@clisp.org>
26269
26270         memmem-simple: Stylistic changes.
26271         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
26272         Fix preprocessor directive indentation.
26273
26274 2010-12-15  Pádraig Brady <P@draigBrady.com>
26275
26276         memmem, memmem-simple: reorganize and expand empty needle check
26277         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
26278         functional checks to memmem-simple so that one has a fully functional
26279         memmem by using just this module.
26280         Restrict the performance only check to the memmem module.
26281         Also expand the empty needle check to ensure the correct
26282         pointer is returned, not just a non NULL pointer.
26283         * doc/glibc-functions/memmem.texi: Rearrange the portability
26284         documentation to correlate with the rearranged checks.
26285         Clarify exactly how the memmem and memmem-simple modules
26286         relate to each other.
26287
26288 2010-12-15  Pádraig Brady <P@draigBrady.com>
26289             Bruno Haible  <bruno@clisp.org>
26290
26291         Improve cross-compilation guesses for uClibc.
26292         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
26293         that uClibc does not have the glibc bug.
26294         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
26295         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
26296
26297 2010-12-14  Eric Blake  <eblake@redhat.com>
26298
26299         configmake: provide fallbacks for oldest supported autotools
26300         * m4/configmake.m4: New file.
26301         * modules/configmake (Files): Ship it.
26302         (configure.ac): Use it to guarantee fallbacks.
26303
26304 2010-12-13  Pádraig Brady <P@draigBrady.com>
26305
26306         read-file: Improve handling of large files
26307         * lib/read-file.c (fread_file): Minimize realloc()s
26308         for regular files, and better manage sizes around SIZE_MAX.
26309
26310 2010-12-13  Eric Blake  <eblake@redhat.com>
26311
26312         cloexec, fcntl: relax license
26313         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
26314         consent from all contributors.
26315         * modules/fcntl (License): Likewise.
26316
26317 2010-12-10  Bruno Haible  <bruno@clisp.org>
26318
26319         Tests for module 'pipe-posix'.
26320         * modules/pipe-posix-tests: New file.
26321         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
26322
26323 2010-12-10  Bruno Haible  <bruno@clisp.org>
26324
26325         pipe-posix: Make it work in C++ mode.
26326         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
26327         (pipe): Use common idiom, not a macro definition.
26328         * lib/pipe.c: New file.
26329         * m4/pipe.m4: New file.
26330         * modules/pipe-posix (Description): Enhance.
26331         (Files): Add lib/pipe.c, m4/pipe.m4.
26332         (configure.ac): Invoke gl_FUNC_PIPE.
26333         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
26334         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
26335         * tests/test-unistd-c++.cc: Check the signature of pipe.
26336
26337 2010-12-10  Bruno Haible  <bruno@clisp.org>
26338
26339         Rename module 'pipe' to 'spawn-pipe'.
26340         * modules/spawn-pipe: New file, renamed from modules/pipe.
26341         (Files, configure.ac, Makefile.am): Update.
26342         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
26343         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
26344         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
26345         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
26346         "spawn-pipe.h" instead of "pipe.h".
26347         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
26348         to gl_SPAWN_PIPE.
26349         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
26350         (Files, Makefile.am): Update.
26351         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
26352         Update.
26353         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
26354         Include "spawn-pipe.h" instead of "pipe.h".
26355         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
26356         * lib/javacomp.c: Likewise.
26357         * lib/javaversion.c: Likewise.
26358         * lib/pipe-filter-gi.c: Likewise.
26359         * lib/pipe-filter-ii.c: Likewise.
26360         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
26361         * modules/javacomp (Depends-on): Likewise.
26362         * modules/javaversion (Depends-on): Likewise.
26363         * modules/pipe-filter-gi (Depends-on): Likewise.
26364         * modules/pipe-filter-ii (Depends-on): Likewise.
26365         * MODULES.html.sh (Executing programs): Update.
26366         * NEWS: Mention the change.
26367
26368 2010-12-10  Eric Blake  <eblake@redhat.com>
26369
26370         pipe-posix: new module
26371         * modules/pipe-posix: New file.
26372         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
26373         (gl_UNISTD_H): Check for declaration.
26374         * modules/unistd (Makefile.am): Substitute it.
26375         * lib/unistd.in.h (pipe): Provide it for mingw.
26376         * doc/posix-functions/pipe.texi (pipe): Update documentation.
26377         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
26378
26379 2010-12-07  Bruno Haible  <bruno@clisp.org>
26380
26381         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
26382         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
26383         u8_strcmp_gnu.
26384         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
26385
26386 2010-12-06  Bruno Haible  <bruno@clisp.org>
26387
26388         Update internal documentation.
26389         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
26390
26391 2010-12-04  Bruno Haible  <bruno@clisp.org>
26392
26393         Put more information about failed tests into the test return codes.
26394         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
26395         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
26396         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
26397         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
26398         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
26399         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
26400         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
26401         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
26402         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
26403         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
26404         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
26405         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
26406         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
26407         * m4/stdint.m4 (gl_STDINT_H): Likewise.
26408         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
26409         returns a bit mask.
26410         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
26411         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
26412         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
26413         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
26414         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
26415         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
26416         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
26417         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
26418         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
26419         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
26420         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
26421         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
26422         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
26423         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
26424         * m4/link.m4 (gl_FUNC_LINK): Likewise.
26425         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
26426         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
26427         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
26428         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
26429         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
26430         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
26431         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
26432         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
26433         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
26434         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
26435         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
26436         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
26437         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
26438         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
26439         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
26440         gl_PRINTF_PRECISION): Likewise.
26441         * m4/regex.m4 (gl_REGEX): Likewise.
26442         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
26443         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
26444         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
26445         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
26446         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
26447         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
26448         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
26449         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
26450         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
26451         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
26452         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
26453         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
26454         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
26455         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
26456         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
26457         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
26458         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
26459         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
26460         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
26461         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
26462         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
26463         enumerated value.
26464         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
26465
26466 2010-12-04  Bruno Haible  <bruno@clisp.org>
26467
26468         Update for Solaris 11 2010-11.
26469         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
26470         Express, released in November 2010.
26471
26472 2010-12-04  Bruno Haible  <bruno@clisp.org>
26473
26474         nproc: Relax license.
26475         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
26476         and Paul Eggert.
26477         Requested by Ludovic Courtès <ludo@gnu.org>.
26478
26479 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
26480
26481         utimecmp: fine-grained src to nearby coarse-grained dest
26482
26483         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
26484         and the source is on a file system with higher-resolution time
26485         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
26486         not work, and the time stamps are close together, the algorithm to
26487         determine the exact resolution from the read-back mtime was buggy:
26488         it had a "!=" where it should have had an "==".  This bug has been
26489         in the code ever since it was introduced to gnulib.
26490         Problem reported by Dan Jacobson in
26491         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
26492
26493 2010-11-30  Bruno Haible  <bruno@clisp.org>
26494
26495         strerror_r-posix: Fix autoconf test.
26496         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
26497
26498 2010-11-28  Bruno Haible  <bruno@clisp.org>
26499             Paul Eggert  <eggert@cs.ucla.edu>
26500
26501         Tests for module 'getdomainname'.
26502         * modules/getdomainname-tests: New file.
26503         * tests/test-getdomainname.c: New file, based on
26504         tests/test-gethostname.c.
26505
26506 2010-11-28  Bruno Haible  <bruno@clisp.org>
26507             Paul Eggert  <eggert@cs.ucla.edu>
26508
26509         getdomainname: Use the system function when possible.
26510         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
26511         (getdomainname): Replace if needed. Provide the declaration if it is
26512         missing. Don't use _GL_CXXALIAS_SYS_CAST.
26513         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
26514         (getdomainname): When the system has getdomainname, call the system
26515         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
26516         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
26517         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
26518         found in libnsl. Look for the declaration also in <netdb.h>. Replace
26519         the function if its second argument is of type 'int' or if it is found
26520         in libnsl.
26521         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
26522         <sys/systeminfo.h> and sysinfo().
26523         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
26524         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26525         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
26526         HAVE_GETDOMAINNAME.
26527         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
26528         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
26529         * doc/glibc-functions/getdomainname.texi: Document the problems with
26530         the getdomainname declaration.
26531
26532 2010-11-28  Bruno Haible  <bruno@clisp.org>
26533
26534         sys_socket: Ensure ss_family field on AIX.
26535         * lib/sys_socket.in.h (ss_family): New macro definition.
26536         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
26537         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
26538         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
26539         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
26540         * modules/sys_socket (Makefile.am): Substitute
26541         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
26542         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
26543
26544 2010-11-27  Bruno Haible  <bruno@clisp.org>
26545
26546         readline: Improve configure output.
26547         * m4/readline.m4 (gl_FUNC_READLINE): Make the
26548         "checking for readline..." result understandable.
26549
26550 2010-11-27  Bruno Haible  <bruno@clisp.org>
26551
26552         *printf-posix: Detect a bug on Solaris 10/x86.
26553         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
26554         for floating-point output.
26555         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
26556         directive.
26557         * tests/test-snprintf-posix.h (test_function): Likewise.
26558         * tests/test-sprintf-posix.h (test_function): Likewise.
26559         * tests/test-vasprintf-posix.c (test_function): Likewise.
26560         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
26561         * doc/posix-functions/printf.texi: Likewise.
26562         * doc/posix-functions/snprintf.texi: Likewise.
26563         * doc/posix-functions/sprintf.texi: Likewise.
26564         * doc/posix-functions/vfprintf.texi: Likewise.
26565         * doc/posix-functions/vprintf.texi: Likewise.
26566         * doc/posix-functions/vsnprintf.texi: Likewise.
26567         * doc/posix-functions/vsprintf.texi: Likewise.
26568         * doc/glibc-functions/obstack_printf.texi: Likewise.
26569         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
26570
26571 2010-11-27  Bruno Haible  <bruno@clisp.org>
26572
26573         Fix link error when module libunistring-optional is in use.
26574         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
26575         * modules/striconveha-tests (Makefile.am): Likewise.
26576
26577 2010-11-27  Bruno Haible  <bruno@clisp.org>
26578
26579         regex: Mention link dependencies.
26580         * modules/regex (Link): New section.
26581         * modules/rpmatch (Link): Likewise.
26582         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
26583
26584 2010-11-27  Bruno Haible  <bruno@clisp.org>
26585
26586         ftoastr: Fix compilation error on Solaris.
26587         * lib/ftoastr.c: Include <config.h>.
26588
26589 2010-11-27  Bruno Haible  <bruno@clisp.org>
26590
26591         getloadavg: Update documentation.
26592         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
26593
26594 2010-11-27  Bruno Haible  <bruno@clisp.org>
26595
26596         sys_socket: Fix test whether the functions are declared.
26597         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
26598         not <sys/select.h>.
26599
26600 2010-11-27  Bruno Haible  <bruno@clisp.org>
26601
26602         getpass: Make sure to get system declaration on some platforms.
26603         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
26604         gl_USE_SYSTEM_EXTENSIONS.
26605         * modules/getpass (Depends-on): Add extensions.
26606
26607 2010-11-26  Bruno Haible  <bruno@clisp.org>
26608
26609         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
26610         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
26611         'iconv' module is present.
26612         (ICONV_CONST): New macro.
26613         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
26614         ICONV_CONST.
26615         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
26616         set ICONV_CONST.
26617         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
26618         here.
26619         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
26620         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
26621         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
26622         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
26623         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
26624         present.
26625
26626 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
26627
26628         ftoastr: comment fix
26629         * lib/ftoastr.c: "little" -> "little or no" in comment
26630
26631 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
26632
26633         stdint: port to GCC 4.3 + OSX + Octave
26634         On this platform, stdint.h is buggy and defines int64_t to long
26635         long int.  The replacement defined it to long int, causing
26636         problems with C++ style name mangling.  Instead, trust the system
26637         definition if INT64_MAX is defined, and likewise for the unsigned
26638         variant.   Problem reported by Jarno Rajahalme in
26639         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
26640         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
26641         and don't mess with int64_t and INT64_MAX in this case.
26642         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
26643
26644 2010-11-24  Bruno Haible  <bruno@clisp.org>
26645
26646         doc: Corrections regarding MacOS X 10.4 and 10.5.
26647         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
26648         MacOS X.
26649         Reported by Simon Josefsson.
26650
26651 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
26652
26653         Uninstall ".bin" files installed by relocwrapper.
26654         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
26655         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
26656         unless it is already there.
26657
26658 2010-11-21  Bruno Haible  <bruno@clisp.org>
26659
26660         Update for NetBSD 5.0.
26661         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
26662         NetBSD; the test fails on NetBSD 5.0.
26663         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
26664         about NetBSD.
26665
26666 2010-11-21  Bruno Haible  <bruno@clisp.org>
26667
26668         Update for HP-UX 11.23 and HP-UX 11.31.
26669         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
26670         HP-UX.
26671
26672 2010-11-21  Bruno Haible  <bruno@clisp.org>
26673
26674         Update for MacOS X 10.5.
26675         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
26676         MacOS X; the test fails on MacOS X 10.5.8.
26677         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
26678         about MacOS X.
26679
26680 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
26681
26682         bootstrap: add bootstrap_sync option.
26683         See discussion at
26684         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
26685         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
26686         * build-aux/bootstrap: Accept --bootstrap-sync to update
26687         bootstrap if it is not identical to the local gnulib's
26688         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
26689         enable this by default.  Accept --no-bootstrap-sync to disable
26690         it.
26691
26692 2010-11-20  Bruno Haible  <bruno@clisp.org>
26693
26694         Ensure that <features.h> is included before __GLIBC__ is tested.
26695         * lib/printf-parse.h: Include <features.h>.
26696         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
26697         Reported by Mike Frysinger <vapier@gentoo.org>.
26698
26699         Ensure that <features.h> is included before __GLIBC__ is tested.
26700         * lib/wchar.in.h: Include <features.h>.
26701         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
26702         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
26703         Reported by Mike Frysinger <vapier@gentoo.org>.
26704
26705         Ensure that <features.h> is included before __GLIBC__ is tested.
26706         * lib/arpa_inet.in.h: Include <features.h>.
26707         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
26708         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
26709         Reported by Mike Frysinger <vapier@gentoo.org>.
26710
26711         Ensure that <features.h> is included before __GLIBC__ is tested.
26712         * build-aux/link-warning.h: Include <features.h>.
26713         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
26714         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
26715         Reported by Mike Frysinger <vapier@gentoo.org>.
26716
26717         Ensure that <features.h> is included before __GLIBC__ is tested.
26718         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
26719         Reported by Mike Frysinger <vapier@gentoo.org>.
26720
26721 2010-11-20  Bruno Haible  <bruno@clisp.org>
26722
26723         memmem: Fix autoconf test.
26724         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
26725
26726 2010-11-20  Bruno Haible  <bruno@clisp.org>
26727
26728         Port to uClibc.
26729         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
26730         * lib/fcntl.in.h: Likewise.
26731         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
26732         * lib/mbrtowc.c (mbrtowc): Likewise.
26733         * lib/relocatable.c (find_shared_library_fullname): Likewise.
26734         * lib/strerror_r.c: Likewise.
26735         * lib/unistr/u8-strnlen.c: Likewise.
26736         * lib/vasnprintf.c (decimal_point_char): Likewise.
26737         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
26738         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
26739         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
26740         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
26741         * tests/test-sigaction.c (handler, main): Likewise.
26742         * lib/freading.h: Treat uClibc like a non-glibc platform.
26743         * lib/freading.c: Likewise.
26744         * lib/gettext.h: Likewise.
26745         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
26746         Likewise.
26747         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
26748         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
26749         * lib/propername.c (proper_name_utf8): Likewise.
26750         * lib/spawn.in.h: Likewise.
26751         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
26752         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
26753         mem_cd_iconveh_internal): Likewise.
26754         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
26755         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
26756         strstr, strcasestr): Likewise.
26757         * lib/unicodeio.c (unicode_to_mb): Likewise.
26758         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
26759         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
26760         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
26761         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
26762         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
26763         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
26764         * lib/unistr/u8-stpncpy.c: Likewise.
26765         * lib/vasnprintf.c (VASNPRINTF): Likewise.
26766         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
26767         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
26768         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
26769         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
26770         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
26771         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
26772         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
26773         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
26774         Likewise.
26775         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
26776         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
26777         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
26778         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
26779         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
26780         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
26781         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
26782         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
26783         * tests/test-getopt.h (OPTIND_MIN): Likewise.
26784         * tests/test-striconveha.c (main): Likewise.
26785         * tests/test-vasnprintf-posix.c (test_function): Likewise.
26786         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
26787         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
26788         * doc/posix-functions/getline.texi: Likewise.
26789         Reported by Mike Frysinger <vapier@gentoo.org>.
26790
26791 2010-11-20  Bruno Haible  <bruno@clisp.org>
26792
26793         nproc: Fix condition.
26794         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
26795         HAVE_PTHREAD_AFFINITY_NP.
26796
26797 2010-11-20  Bruno Haible  <bruno@clisp.org>
26798
26799         Fix a comment.
26800         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
26801
26802 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
26803
26804         ftoastr: don't assume snprintf
26805         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
26806         Implement a subset of snprintf here, by using sprintf safely.
26807         * modules/ftoastr (Depends-on): Remove snprintf.
26808
26809 2010-11-19  Jim Meyering  <meyering@redhat.com>
26810
26811         test-rename.h: fix compilation failure
26812         * tests/test-rename.h (test_rename): Add omitted "}".
26813
26814 2010-11-17  Jim Meyering  <meyering@redhat.com>
26815
26816         maint.mk: add a URL discussing the no-@acronym policy
26817         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
26818
26819 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
26820
26821         ftoastr: depend on snprintf, improve comments
26822         * lib/ftoastr.c: Also mention Loitsch's draft.
26823         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
26824         needed in the current implementation, but it might simplify
26825         speeding up the code later.
26826         * modules/ftoastr: Depend on snprintf; this improves portability.
26827         Suggested by Bruno Haible in the same email.
26828
26829         ftoastr: port to hosts lacking strtof and strtold
26830         Problem reported by Bruno Haible in
26831         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
26832         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
26833         environment and strtold (and presumably strtof) are not available.
26834         * modules/ftoastr (Files): Add m4/c-strtod.m4.
26835         (configure.ac): Require gl_C99_STRTOLD.
26836
26837 2010-11-18  Bruno Haible  <bruno@clisp.org>
26838
26839         c-strtold: Avoid link error on AIX 7.
26840         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
26841         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
26842         (gl_C_STRTOLD): Test whether strtold_l exists.
26843         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
26844
26845 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
26846
26847         intprops: new macro INT_BITS_STRLEN_BOUND
26848         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
26849         ftoastr.h.  This exposes an internal of intprops.h that was formerly
26850         not exposed.  Also, it uses a slightly tighter bound than before;
26851         though this makes no practical difference, we might as well be as
26852         tight as we easily can.
26853
26854         ftoastr: new module, for lossless conversion of floats to short strings
26855         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
26856         * modules/ftoastr: New files.
26857
26858 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
26859
26860         bootstrap: port to Solaris sed
26861         * build-aux/bootstrap (get_version): Port to Solaris sed.
26862         See Ralf Wildenhues's note in
26863         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
26864
26865 2010-11-14  Jim Meyering  <meyering@redhat.com>
26866
26867         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
26868         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
26869         and move definition closer to sole use.
26870
26871 2010-11-13  Jim Meyering  <meyering@redhat.com>
26872
26873         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
26874         Now we require at least autoconf-2.59, which means the work-around
26875         is no longer needed.
26876         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
26877         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
26878         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
26879         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
26880         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
26881
26882 2010-11-13  Bruno Haible  <bruno@clisp.org>
26883
26884         rename, renameat: Avoid test failures at NFS mounted locations.
26885         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
26886         functions.
26887         (test_rename): Use assert_nonexistent.
26888         * tests/test-rename.c: Include <dirent.h>.
26889         * tests/test-renameat.c: Likewise.
26890         Reported by Gary V. Vaughan <gary@gnu.org>.
26891
26892         rename, renameat: Document Linux bug with NFS
26893         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
26894         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
26895         * doc/posix-functions/renameat.texi: Likewise.
26896         Suggested by Eric Blake.
26897
26898 2010-11-13  Bruno Haible  <bruno@clisp.org>
26899
26900         rename test: Add comments.
26901         * tests/test-rename.h (test_rename): Add structure and comments.
26902
26903 2010-11-13  Eric Blake  <eblake@redhat.com>
26904
26905         maintainer-makefile: cover a few more files
26906         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
26907         scripts generated within C files, for libvirt.
26908
26909 2010-11-13  Bruno Haible  <bruno@clisp.org>
26910
26911         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
26912         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
26913         character, return the number of bytes that belong together, not always
26914         1.
26915         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
26916         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
26917         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
26918         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
26919         number of bytes of an invalid character.
26920         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
26921         (main): Invoke it.
26922         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
26923         results.
26924         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
26925         malformed byte sequences.
26926         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
26927         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
26928         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
26929         Reported by Ben Pfaff and Paolo Bonzini.
26930
26931 2010-11-13  Bruno Haible  <bruno@clisp.org>
26932
26933         openat: Work around glibc bug with fchownat() and empty file names.
26934         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
26935         (gl_FUNC_FCHOWNAT): Invoke it.
26936         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
26937         * doc/posix-functions/fchownat.texi: Document the glibc bug.
26938         Reported by Gary V. Vaughan <gary@gnu.org>.
26939
26940 2010-11-13  Bruno Haible  <bruno@clisp.org>
26941
26942         openat: Ensure autoconf macro ordering.
26943         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
26944         gl_USE_SYSTEM_EXTENSIONS.
26945         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
26946
26947 2010-11-13  Bruno Haible  <bruno@clisp.org>
26948
26949         Update comments.
26950         * lib/unistr/u8-check.c: Update file name in comments.
26951         * lib/unistr/u8-mblen.c: Likewise.
26952         * lib/unistr/u8-prev.c: Likewise.
26953         * lib/unistr/u8-strmblen.c: Likewise.
26954         * lib/unistr/u8-strmbtouc.c: Likewise.
26955
26956 2010-11-13  Jim Meyering  <meyering@redhat.com>
26957
26958         tests: avoid test failure on Solaris 10 due to lack of PATH export
26959         * tests/test-update-copyright.sh: Don't forget to export PATH.
26960
26961         init.sh: ensure that IFS is defined, just in case...
26962         * tests/init.sh (setup_): Ensure that IFS is defined,
26963         so that saving and restoring it works as expected.  This
26964         appears to be useful at least for an old version of dash
26965         from a long time ago (RH 6).  See here for details:
26966         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
26967
26968         maint.mk: tighten "test a == b" check
26969         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
26970         test to files that contain something like #!/bin/sh.
26971         Without this, coreutils would get two false positives in
26972         the comments of C source files.
26973
26974 2010-11-12  Eric Blake  <eblake@redhat.com>
26975
26976         bootstrap: fix typo in previous attempt
26977         * build-aux/bootstrap (buildreq): Correct the grouping.
26978         Reported by Paul Eggert.
26979
26980         maintainer-makefile: prohibit test x == x
26981         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
26982         Based on a report by Matthias Bolte.
26983
26984         bootstrap: allow FreeBSD gzip
26985         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
26986         which has no '.' and goes to stderr.
26987         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
26988         Reported by Matthias Bolte.
26989
26990         maintainer-makefile: check for i18n setup
26991         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
26992         will likely work.
26993
26994 2010-11-12  Bruno Haible  <bruno@clisp.org>
26995
26996         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
26997         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
26998         * lib/nanosleep.c (nanosleep): Likewise.
26999
27000 2010-11-11  Bruno Haible  <bruno@clisp.org>
27001
27002         fcntl-h: Fix for use of C++ on glibc systems.
27003         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
27004         also on glibc systems in C++ mode.
27005         Reported by Gary V. Vaughan <gary@gnu.org>.
27006
27007 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
27008
27009         mknod: avoid false failure with dash
27010         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
27011
27012 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
27013
27014         unlink: Fix "is it should" typo in diagnostic.
27015         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
27016         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
27017
27018 2010-11-11  Bruno Haible  <bruno@clisp.org>
27019
27020         Tests for module 'strerror_r-posix'.
27021         * modules/strerror_r-posix-tests: New file.
27022         * tests/test-strerror_r.c: New file.
27023         * tests/test-string-c++.cc: Check the signature of strerror_r.
27024
27025         New module 'strerror_r-posix'.
27026         * lib/string.in.h (strerror_r): New declaration.
27027         * lib/strerror_r.c: New file.
27028         * m4/strerror_r.m4: New file.
27029         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
27030         of strerror_r.
27031         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
27032         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
27033         * modules/strerror_r-posix: New file.
27034         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
27035         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
27036         * doc/posix-functions/strerror_r.texi: Mention the new module and the
27037         portability problems.
27038
27039 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
27040
27041         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
27042         line is also considered for output. Quoted function name in shell
27043         command, so temporary files for functions like MyClass::operator()
27044         are removed correctly without errors.
27045
27046 2010-11-09  Bruno Haible  <bruno@clisp.org>
27047
27048         * doc/posix-functions/strerror.texi: List more failing platforms.
27049
27050         * doc/posix-functions/strerror.texi: Add a comment.
27051
27052 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
27053
27054         fdopendir: fix bug on MacOS X when low on file descriptors
27055
27056         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
27057         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
27058         All callers changed.
27059         (fdopendir): Invoke save_cwd at the top level, not after using
27060         multiple dup() calls to use up file descriptors.  Then retry
27061         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
27062         less than the maximum number of open file descriptors, because
27063         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
27064         on Mac OS X 10.6.4 for tar 1.24
27065         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
27066         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
27067         and for tar 1.25
27068         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
27069
27070 2010-11-07  Bruno Haible  <bruno@clisp.org>
27071
27072         vasnprintf: Support I flag on glibc systems.
27073         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
27074         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
27075         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
27076         snprintf function.
27077         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
27078         glibc systems.
27079         * tests/test-vasnprintf-posix3.c: New file.
27080         * modules/vasnprintf-posix-tests (Files): Add it.
27081         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
27082
27083 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
27084
27085         [html] Fix copy/paste bug: Use unique name for compiler warnings.
27086         * MODULES.html.sh: For compiler warnings, use name
27087         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
27088
27089 2010-11-05  Eric Blake  <eblake@redhat.com>
27090
27091         ceil, floor: avoid spurious failure with icc
27092         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
27093         [denormals-as-zero] when optimizing without -mieee-fp option.
27094         * tests/test-floorf2.c (floorf_reference): Likewise.
27095         * tests/test-ceilf1.c (dummy): New function.
27096         (main): Use it to outsmart icc's optimization.
27097         * tests/test-floorf1.c (dummy, main): Likewise.
27098
27099         tests: require working signbit
27100         * modules/ceilf-tests (Depends-on): Add signbit.
27101         * modules/ceill-tests (Depends-on): Likewise.
27102         * modules/floorf-tests (Depends-on): Likewise.
27103         * modules/floorl-tests (Depends-on): Likewise.
27104         * modules/round-tests (Depends-on): Likewise.
27105         * modules/roundf-tests (Depends-on): Likewise.
27106         * modules/roundl-tests (Depends-on): Likewise.
27107         * modules/trunc-tests (Depends-on): Likewise.
27108         * modules/truncf-tests (Depends-on): Likewise.
27109         * modules/truncl-tests (Depends-on): Likewise.
27110
27111         strtod: work around icc bug
27112         * lib/strtod.c (minus_zero): Define to working value.
27113         (strtod): Use it to avoid icc bug.
27114
27115         copysign: enhance tests
27116         * modules/copysign-tests (Files): Add minus-zero.h.
27117         * tests/test-copysign.c (main): Also test zeros.
27118
27119 2010-11-04  Eric Blake  <eblake@redhat.com>
27120
27121         ceil, floor, round, trunc: enhance tests of -0
27122         * tests/test-ceilf1.c (main): Ensure correct sign of result.
27123         * tests/test-ceill.c (main): Likewise.
27124         * tests/test-floorf1.c (main): Likewise.
27125         * tests/test-floorl.c (main): Likewise.
27126         * tests/test-round1.c (main): Likewise.
27127         * tests/test-roundf1.c (main): Likewise.
27128         * tests/test-roundl.c (main): Likewise.
27129         * tests/test-trunc1.c (main): Likewise.
27130         * tests/test-truncf1.c (main): Likewise.
27131         * tests/test-truncl.c (main): Likewise.
27132
27133 2010-11-04  Eric Blake  <eblake@redhat.com>
27134
27135         frexp, tests: work around ICC bug with -zero
27136         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
27137         works with more compilers.
27138         * tests/minus-zero.h: New file.
27139         * modules/ceilf-tests (Files): Include it.
27140         * modules/ceill-tests (Files): Likewise.
27141         * modules/floorf-tests (Files): Likewise.
27142         * modules/floorl-tests (Files): Likewise.
27143         * modules/frexp-nolibm-tests (Files): Likewise.
27144         * modules/frexp-tests (Files): Likewise.
27145         * modules/frexpl-nolibm-tests (Files): Likewise.
27146         * modules/frexpl-tests (Files): Likewise.
27147         * modules/isnan-tests (Files): Likewise.
27148         * modules/isnand-nolibm-tests (Files): Likewise.
27149         * modules/isnand-tests (Files): Likewise.
27150         * modules/isnanf-nolibm-tests (Files): Likewise.
27151         * modules/isnanf-tests (Files): Likewise.
27152         * modules/isnanl-nolibm-tests (Files): Likewise.
27153         * modules/isnanl-tests (Files): Likewise.
27154         * modules/round-tests (Files): Likewise.
27155         * modules/roundf-tests (Files): Likewise.
27156         * modules/roundl-tests (Files): Likewise.
27157         * modules/ldexpl-tests (Files): Likewise.
27158         * modules/signbit-tests (Files): Likewise.
27159         * modules/snprintf-posix-tests (Files): Likewise.
27160         * modules/sprintf-posix-tests (Files): Likewise.
27161         * modules/strtod-tests (Files): Likewise.
27162         * modules/trunc-tests (Files): Likewise.
27163         * modules/truncf-tests (Files): Likewise.
27164         * modules/truncl-tests (Files): Likewise.
27165         * modules/vsnprintf-posix-tests (Files): Likewise.
27166         * modules/vsprintf-posix-tests (Files): Likewise.
27167         * modules/vasnprintf-posix-tests (Files): Likewise.
27168         * modules/vasprintf-posix-tests (Files): Likewise.
27169         * tests/test-ceilf1.c (main): Use it.
27170         * tests/test-ceill.c (main): Likewise.
27171         * tests/test-floorf1.c (main): Likewise.
27172         * tests/test-floorl.c (main): Likewise.
27173         * tests/test-frexp.c (main): Likewise.
27174         * tests/test-frexpl.c (main): Likewise.
27175         * tests/test-isnan.c (main): Likewise.
27176         * tests/test-isnand.h (main): Likewise.
27177         * tests/test-isnanf.h (main): Likewise.
27178         * tests/test-isnanl.h (main): Likewise.
27179         * tests/test-ldexpl.c (main): Likewise.
27180         * tests/test-round.c (main): Likewise.
27181         * tests/test-roundf.c (main): Likewise.
27182         * tests/test-roundl.c (main): Likewise.
27183         * tests/test-signbit.c (test_signbitf, test_signbitd)
27184         (test_signbitl): Likewise.
27185         * tests/test-snprintf-posix.h (test_function): Likewise.
27186         * tests/test-sprintf-posix.h (test_function): Likewise.
27187         * tests/test-strtod.c (main): Likewise.
27188         * tests/test-trunc1.c (main): Likewise.
27189         * tests/test-truncf1.c (main): Likewise.
27190         * tests/test-truncl.c (main): Likewise.
27191
27192         isnanl: work around icc bug
27193         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
27194
27195 2010-11-03  Eric Blake  <eblake@redhat.com>
27196
27197         tests: fix compiler warnings
27198         * tests/test-getopt.h (test_getopt): Fix condition.
27199         * tests/test-getopt_long.h (test_getopt_long): Likewise.
27200         * tests/test-pipe2.c (main): Likewise.
27201         * tests/test-quotearg-simple.c (main): Avoid icc warning.
27202
27203         utimens: fix broken m4 test
27204         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
27205
27206 2010-10-28  Bruno Haible  <bruno@clisp.org>
27207
27208         posix_spawn*, getdtablesize: Relax license.
27209         * modules/posix_spawn (License): Change to LGPLv2+.
27210         * modules/posix_spawnp (License): Likewise.
27211         * modules/posix_spawn-internal (License): Likewise.
27212         * modules/posix_spawnattr_init (License): Likewise.
27213         * modules/posix_spawnattr_getflags (License): Likewise.
27214         * modules/posix_spawnattr_setflags (License): Likewise.
27215         * modules/posix_spawnattr_getpgroup (License): Likewise.
27216         * modules/posix_spawnattr_setpgroup (License): Likewise.
27217         * modules/posix_spawnattr_getschedparam (License): Likewise.
27218         * modules/posix_spawnattr_setschedparam (License): Likewise.
27219         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
27220         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
27221         * modules/posix_spawnattr_getsigdefault (License): Likewise.
27222         * modules/posix_spawnattr_setsigdefault (License): Likewise.
27223         * modules/posix_spawnattr_getsigmask (License): Likewise.
27224         * modules/posix_spawnattr_setsigmask (License): Likewise.
27225         * modules/posix_spawnattr_destroy (License): Likewise.
27226         * modules/posix_spawn_file_actions_init (License): Likewise.
27227         * modules/posix_spawn_file_actions_addclose (License): Likewise.
27228         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
27229         * modules/posix_spawn_file_actions_addopen (License): Likewise.
27230         * modules/posix_spawn_file_actions_destroy (License): Likewise.
27231         * modules/getdtablesize (License): Likewise.
27232         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
27233
27234 2010-10-26  Bruno Haible  <bruno@clisp.org>
27235
27236         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
27237         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
27238         Cygwin and mingw.
27239         Suggested by Eric Blake.
27240
27241 2010-10-26  Bruno Haible  <bruno@clisp.org>
27242
27243         stdio: Work around compilation error due to renameat() on Solaris 10.
27244         * lib/stdio.in.h: Include <unistd.h> on Solaris.
27245         * lib/renameat.c: Don't include <unistd.h> here.
27246         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
27247         Reported by Paul Eggert and Eric Blake.
27248
27249 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
27250
27251         renameat: port to Solaris 10, which declares renameat in unistd.h
27252
27253         * lib/renameat.c: Include unistd.h before stdio.h, because
27254         Solaris 10 declares renameat in unistd.h.  Problem encountered
27255         when building GNU tar 1.24 on Solaris 10.
27256
27257 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
27258
27259         fdopendir: fix C89 compilation
27260         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
27261         compilers.
27262
27263 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
27264
27265         inttostr: simplify by removing unnecessary redundancy
27266         * lib/anytostr.c: Don't include verify.h.
27267         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
27268         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
27269         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
27270         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
27271         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
27272         Likewise.
27273         * modules/inttostr (Depends-on): Remove 'verify'.
27274
27275 2010-10-23  Bruno Haible  <bruno@clisp.org>
27276
27277         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
27278         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
27279         Reported by Eric Blake.
27280
27281 2010-10-23  Bruno Haible  <bruno@clisp.org>
27282
27283         Tests: Fix LOCALE_JA on MirBSD 10.
27284         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
27285         to an UTF-8 locale.
27286         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
27287         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
27288         Reported by Eric Blake.
27289
27290 2010-10-21  Bruno Haible  <bruno@clisp.org>
27291
27292         nl_langinfo test: Avoid test failure on NetBSD 5.
27293         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
27294         Reported by Eric Blake.
27295
27296 2010-10-21  Eric Blake  <eblake@redhat.com>
27297
27298         c-stack: work around libsigsegv 2.8 bug
27299         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
27300         overflow on at least PowerPC64.
27301
27302 2010-10-17  Bruno Haible  <bruno@clisp.org>
27303
27304         userspec: Drop redundant file.
27305         * modules/userspec (Files): Remove lib/inttostr.h.
27306
27307 2010-10-17  Bruno Haible  <bruno@clisp.org>
27308
27309         nl_langinfo tests: Silence some warnings.
27310         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
27311         Reported by Jim Meyering.
27312
27313 2010-10-17  Bruno Haible  <bruno@clisp.org>
27314
27315         Make use of GCC's attribute __alloc_size__.
27316         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
27317         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
27318         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
27319         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
27320         __alloc_size__.
27321         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
27322         Suggested by Jim Meyering.
27323
27324 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
27325
27326         bootstrap: anchor .gitignore entries.
27327         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
27328         with...
27329         (insert_vc_ignore): ... this new function, which prepends `/' to
27330         all .gitignore entries before passing them to
27331         insert_sorted_if_absent.
27332
27333 2010-10-16  Bruno Haible  <bruno@clisp.org>
27334
27335         nextafter: Fix configure check.
27336         * modules/nextafter (configure.ac): Correct expected prototype.
27337
27338 2010-10-16  Bruno Haible  <bruno@clisp.org>
27339
27340         termios: Update documentation.
27341         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
27342
27343 2010-10-16  Bruno Haible  <bruno@clisp.org>
27344
27345         tests: Make them compile with TinyCC.
27346         * tests/test-strstr.c (main): Remove parentheses around array
27347         initializer.
27348
27349 2010-10-15  Eric Blake  <eblake@redhat.com>
27350
27351         ignore-value: make header idempotent
27352         * lib/ignore-value.h: Add double-inclusion guards.
27353         Reported by Stefan Berger.
27354
27355 2010-10-15  Jim Meyering  <meyering@redhat.com>
27356
27357         GNUmakefile: handle "stable" target, not "major"
27358         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
27359         lists in maint.mk and announce-gen.  Without this, "make stable"
27360         would fail to ensure that $(VERSION) is up to date.
27361
27362 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
27363
27364         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
27365         & co.
27366
27367 2010-10-14  Bruno Haible  <bruno@clisp.org>
27368
27369         vasnprintf: Don't set errno to 0.
27370         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
27371         block that sets it to 0.
27372         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
27373
27374 2010-10-14  Bruno Haible  <bruno@clisp.org>
27375
27376         socketlib: Fix.
27377         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
27378         gl_PREREQ_SYS_H_WINSOCK2.
27379         Reported by Ian Beckwith <ianb@erislabs.net>.
27380
27381 2010-10-13  Jim Meyering  <meyering@redhat.com>
27382
27383         test-select-stdin.c: avoid warn_unused_result warnings
27384         * tests/test-select-stdin.c: Include "macros.h".
27385         ASSERT that read and fflush succeed.
27386
27387 2010-10-13  Jim Meyering  <meyering@redhat.com>
27388
27389         git-version-gen: do require git-VC'd files in cwd
27390         * build-aux/git-version-gen: Reject a git version string
27391         if there are no commits associated with the current directory.
27392         This avoids an unlikely false-positive (unrelated dir whose parent
27393         repository also contains a tag matching v*), as pointed out
27394         by Giuseppe Scrivano in
27395         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
27396
27397 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
27398
27399         argv-iter: omit nonconforming declaration
27400         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
27401         enum arg_iter_err declaration, which doesn't conform to C99.
27402         Solaris 10 cc warns about this.
27403
27404 2010-10-13  Eric Blake  <eblake@redhat.com>
27405
27406         termios: fix compilation on mingw
27407         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
27408         (gl_TERMIOS_H): Adjust it on mingw.
27409         * modules/termios (Makefile.am): Substitute new key.
27410         * lib/termios.in.h (includes): Make include_next conditional.
27411         * doc/posix-headers/termios.texi (termios.h): Update
27412         documentation.
27413         Reported by Daniel P. Berrange.
27414
27415 2010-10-13  Jim Meyering  <meyering@redhat.com>
27416
27417         git-version-gen: don't require that .git/ be in the current dir
27418         * build-aux/git-version-gen: Adjust this script so that it works
27419         when run from any working directory beneath the top-level .git/-
27420         containing directory.  Inspired by a patch from Giuseppe Scrivano,
27421         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
27422
27423         test-select: avoid warn_unused_result warnings
27424         * tests/test-select.c: Include "macros.h".
27425         ASSERT that each call to read, write, and pipe succeeds.
27426         While not technically required, also check each "close".
27427         * modules/select-tests (Files): Add tests/macros.h.
27428
27429         test-symlinkat: remove declaration of unused local
27430         * tests/test-symlinkat.c (main): Remove unused local, "buf".
27431
27432         test-inttostr: avoid shadowing warnings
27433         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
27434         and use malloc rather than the stack for the same reason as
27435         mentioned in the comment justifying the other allocation.
27436
27437 2010-10-11  Bruno Haible  <bruno@clisp.org>
27438
27439         stdlib: Allow multiple gnulib generated replacements to coexist.
27440         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
27441         Reported by Sam Steingold <sds@gnu.org>.
27442
27443 2010-10-11  Jim Meyering  <meyering@redhat.com>
27444
27445         fix a documentation typo
27446         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
27447
27448 2010-10-11  Eric Blake  <eblake@redhat.com>
27449
27450         futimens: work around Solaris 11 bug
27451         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
27452         * tests/test-futimens.h (test_futimens): Enhance, rather than
27453         weaken test.
27454         * doc/posix-functions/futimens.texi (futimens): Document the bug.
27455
27456 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
27457
27458         Indentation.
27459         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
27460         higher-level operators more to the left.
27461
27462 2010-10-11  Jim Meyering  <meyering@redhat.com>
27463
27464         test-futimens: avoid unwarranted test failure on Solaris 5.11
27465         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
27466         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
27467         because it tries to dereference the NULL name argument.
27468
27469 2010-10-11  Bruno Haible  <bruno@clisp.org>
27470
27471         Indentation.
27472         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
27473         indentation.
27474
27475 2010-10-11  Jim Meyering  <meyering@redhat.com>
27476
27477         spawn.in.h: make indentation consistent with parentheses
27478         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
27479         Make indentation consistent with parentheses.
27480
27481 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
27482
27483         Fix mismatched parens in previous commit
27484         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
27485         parens.
27486
27487 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
27488
27489         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
27490
27491         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
27492         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
27493         * lib/malloca.c: Include "verify.h".
27494         (verify1): Remove, replacing with a verify call.
27495         * lib/relocwrapper.c (verify1): Likewise.
27496         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
27497         Likewise.
27498         * modules/malloca (Depends-on): Add 'verify'.
27499         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
27500         * modules/vasnprintf (Depends-on): Add 'verify'.
27501         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
27502         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
27503         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
27504         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
27505         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
27506         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
27507         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
27508
27509         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
27510
27511         Formerly the style was sometimes 2*X - 1, because the C standard
27512         was wrongly thought to disallow ?: in integral constant expressions.
27513         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
27514         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
27515         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
27516         * lib/stdint.in.h (_verify_intmax_size): Likewise.
27517         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
27518         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
27519         verify that time_t cannot be floating.
27520
27521 2010-10-08  Eric Blake  <eblake@redhat.com>
27522
27523         time: enforce recent POSIX ruling that time_t is integral
27524         * lib/time.in.h (__time_t_must_be_integral): Detect any
27525         problematic systems, allowing the rest of gnulib to assume POSIX.
27526
27527 2010-10-08  Jim Meyering  <meyering@redhat.com>
27528
27529         fdopendir: fix a bug on systems lacking openat and /proc support
27530         OpenBSD 4.7 is one such system.  The most noticeable effect was
27531         failure of any application making nontrivial use of fts: rm, du,
27532         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
27533           ./rm: traversal failed: `a': Bad file descriptor
27534         Debugging that, you see that even though FD 6 was closed just
27535         prior to the opendir call in fd_clone_opendir, its resulting
27536         dir->dd_fd was 8, rather than the expected value of 6:
27537
27538         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
27539         93                close (fd);
27540         (gdb) n
27541         94                dir = fd_clone_opendir (dupfd);
27542         (gdb) n
27543         95                saved_errno = errno;
27544         (gdb) p dir->dd_fd
27545         $11 = 8
27546
27547         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
27548         The problem is that on OpenBSD, fd_clone_opendir has to resort
27549         to using the old-style save/restore CWD mechanism, due to its
27550         lack of openat/proc support, and *that* would steal the FD (6)
27551         that opendir was supposed to use.
27552
27553         The fix is to squirrel away the desired FD so that save_cwd uses a
27554         different one, and then free the dest FD right before calling opendir.
27555         That guarantees opendir will use the required file descriptor.
27556
27557         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
27558
27559 2010-10-08  Bruno Haible  <bruno@clisp.org>
27560
27561         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
27562         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
27563
27564 2010-10-08  Bruno Haible  <bruno@clisp.org>
27565
27566         nanosleep: Make replacement POSIX compliant.
27567         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
27568         is out of range.
27569         Reported by Jim Meyering.
27570
27571 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
27572
27573         bootstrap: add hook for altering gnulib.mk, for Bison
27574         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
27575         the Bison bootstrapping process can rewrite file names and variables
27576         in this file before later parts of 'bootstrap' use the file.
27577         Bison wants to include lib/gnulib.mk from the top-level makefile,
27578         so it needs the file names in this file to be relative to the top
27579         level, not relative to lib; plus it needs variable names to be
27580         rewritten.
27581         (slurp): Use the new function.
27582
27583         bootstrap: reformat for readability
27584         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
27585
27586 2010-10-08  Eric Blake  <eblake@redhat.com>
27587
27588         docs: update cygwin progress
27589         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
27590         1.7.7.
27591         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
27592         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
27593         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
27594         * doc/posix-functions/carg.texi (carg): Likewise.
27595         * doc/posix-functions/cargf.texi (cargf): Likewise.
27596         * doc/posix-functions/casin.texi (casin): Likewise.
27597         * doc/posix-functions/casinf.texi (casinf): Likewise.
27598         * doc/posix-functions/casinh.texi (casinh): Likewise.
27599         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
27600         * doc/posix-functions/catan.texi (catan): Likewise.
27601         * doc/posix-functions/catanf.texi (catanf): Likewise.
27602         * doc/posix-functions/catanh.texi (catanh): Likewise.
27603         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
27604         * doc/posix-functions/ccos.texi (ccos): Likewise.
27605         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
27606         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
27607         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
27608         * doc/posix-functions/cexp.texi (cexp): Likewise.
27609         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
27610         * doc/posix-functions/cimag.texi (cimag): Likewise.
27611         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
27612         * doc/posix-functions/clog.texi (clog): Likewise.
27613         * doc/posix-functions/clogf.texi (clogf): Likewise.
27614         * doc/posix-functions/conj.texi (conj): Likewise.
27615         * doc/posix-functions/conjf.texi (conjf): Likewise.
27616         * doc/posix-functions/cpow.texi (cpow): Likewise.
27617         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
27618         * doc/posix-functions/cproj.texi (cproj): Likewise.
27619         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
27620         * doc/posix-functions/creal.texi (creal): Likewise.
27621         * doc/posix-functions/crealf.texi (crealf): Likewise.
27622         * doc/posix-functions/csin.texi (csin): Likewise.
27623         * doc/posix-functions/csinf.texi (csinf): Likewise.
27624         * doc/posix-functions/csinh.texi (csinh): Likewise.
27625         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
27626         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
27627         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
27628         * doc/posix-functions/ctan.texi (ctan): Likewise.
27629         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
27630         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
27631         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
27632         * doc/posix-headers/complex.texi (complex.h): Likewise.
27633
27634 2010-10-07  Jim Meyering  <meyering@redhat.com>
27635
27636         parse-datetime: avoid compilation failure on OpenBSD 4.7
27637         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
27638         This works around a compilation failure on OpenBSD 4.7:
27639         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
27640
27641 2010-10-07  Eric Blake  <eblake@redhat.com>
27642
27643         docs: update cygwin progress
27644         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
27645         1.7.6.
27646         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
27647         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
27648         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
27649         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
27650         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
27651         Likewise.
27652         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
27653         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
27654         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
27655         Likewise.
27656         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
27657         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
27658         Likewise.
27659         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
27660         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
27661         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
27662         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
27663         Likewise.
27664         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
27665         Likewise.
27666         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
27667
27668         docs: update parse-datetime history
27669         * doc/parse-datetime.texi (Authors of parse_datetime): Better
27670         documentation of this function's history and alternatives.
27671
27672         cygwin: use more robust version check
27673         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
27674         exclude an eventual cygwin 1.9.1.
27675         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
27676         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
27677         (gl_FUNC_STRCASESTR): Likewise.
27678         Reported by Bruno Haible.
27679
27680 2010-10-06  Bruno Haible  <bruno@clisp.org>
27681
27682         string, sys_select: Avoid #including large headers unless necessary.
27683         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
27684         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
27685         OSF/1, BeOS, Haiku.
27686         Reported by Jim Meyering.
27687
27688 2010-10-05  Eric Blake  <eblake@redhat.com>
27689
27690         memmem, strstr, strcasestr: fix bug with long periodic needle
27691         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
27692         periodic needle having false positive.
27693         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
27694         and cygwin 1.7.7.
27695         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
27696         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
27697         (gl_FUNC_STRCASESTR): Likewise.
27698         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
27699         * tests/test-memmem.c (main): Expose the bug.
27700         * tests/test-strcasestr.c (main): Likewise.
27701         * tests/test-strstr.c (main): Likewise.
27702         * tests/test-c-strcasestr.c (main): Likewise.
27703         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
27704         * doc/posix-functions/strstr.texi (strstr): Likewise.
27705         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
27706         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
27707
27708 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
27709
27710         parse-datetime: do some more renaming
27711         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
27712         parse_datetime, not get_date.  Mention the renaming.
27713         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
27714         in comments.
27715         * m4/bison.m4: Likewise.
27716
27717 2010-10-05  Eric Blake  <eblake@redhat.com>
27718
27719         parse-datetime: better name than get_date
27720         * NEWS: Reword the deprecation notice.
27721         * modules/get_date: Rename to modules/parse-datetime.
27722         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
27723         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
27724         * lib/get_date.y: Rename to lib/parse-datetime.y.
27725         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
27726         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
27727         * doc/getdate.texi: Provide fallback wrapper.
27728         * lib/getdate.h: Move guts, and wrap...
27729         * lib/parse-datetime.h: ...new file.
27730         * lib/parse-datetime.y (get_date): Rename...
27731         (parse_datetime): ...to this.
27732         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
27733         (gl_PARSE_DATETIME): ...to this.
27734         * doc/posix-functions/getdate.texi (get_date): Provide fallback
27735         documentation.
27736         * modules/getdate (Files): Provide fallback docs and header.
27737         (Notice, Depends-on): Update references.
27738         * tests/test-parse-datetime.c: Likewise.
27739         * DEPENDENCIES: Likewise.
27740         * MODULES.html.sh (Date and time <time.h>): Likewise.
27741         * doc/parse-datetime.texi (Date input formats)
27742         (Authors of parse_datetime): Likewise.
27743         * modules/parse-datetime (Files, configure.ac, Makefile.am)
27744         (Include): Likewise.
27745         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
27746         * gnulib-tool: Likewise.
27747         * m4/bison.m4 (gl_BISON): Likewise.
27748         Suggested by Bruno Haible.
27749
27750 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
27751
27752         more ports to Solaris tr, which needs [] around ranges
27753         * gnulib-tool: Solaris tr needs [] around ranges.
27754         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
27755         * tests/test-pipe-filter-gi1.c (main): Likewise.
27756         * tests/test-pipe-filter-ii1.c (main): Likewise.
27757
27758 2010-10-05  Eric Blake  <eblake@redhat.com>
27759
27760         bootstrap: fix Solaris regression
27761         * build-aux/bootstrap (check_versions): Solaris tr still needs []
27762         around ranges.
27763         Reported by Pádraig Brady.
27764
27765         bootstrap: work with pkg-config
27766         * build-aux/bootstrap (check_versions): Also transliterate - in
27767         prerequisite name.
27768         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
27769         prerequisites that were already found, to avoid confusion.
27770         Reported by Justin Clift.
27771
27772         faccessat: remove unused wrappers
27773         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
27774         presence of these wrappers dragged in -lgen on Solaris.
27775         Reported by Clemens Brogi; fix suggested by Paul Eggert.
27776
27777 2010-10-05  Jim Meyering  <meyering@redhat.com>
27778
27779         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
27780         * Makefile (sc_pragma_columns): New syntax-check rule.
27781
27782 2010-10-04  Bruno Haible  <bruno@clisp.org>
27783
27784         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
27785         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
27786         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
27787         Reported by Bruce Korb and Eric Blake.
27788
27789 2010-10-04  Bruno Haible  <bruno@clisp.org>
27790
27791         threadlib: Make option --with-libpth-prefix work.
27792         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
27793         use $LIBPTH, not just -lpth.
27794
27795 2010-10-04  Bruno Haible  <bruno@clisp.org>
27796
27797         Avoid line length limitation from HP NonStop system header files.
27798         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
27799         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
27800         * lib/ctype.in.h: Likewise.
27801         * lib/dirent.in.h: Likewise.
27802         * lib/errno.in.h: Likewise.
27803         * lib/fcntl.in.h: Likewise.
27804         * lib/float.in.h: Likewise.
27805         * lib/getopt.in.h: Likewise.
27806         * lib/iconv.in.h: Likewise.
27807         * lib/inttypes.in.h: Likewise.
27808         * lib/langinfo.in.h: Likewise.
27809         * lib/locale.in.h: Likewise.
27810         * lib/math.in.h: Likewise.
27811         * lib/netdb.in.h: Likewise.
27812         * lib/netinet_in.in.h: Likewise.
27813         * lib/poll.in.h: Likewise.
27814         * lib/pthread.in.h: Likewise.
27815         * lib/pty.in.h: Likewise.
27816         * lib/sched.in.h: Likewise.
27817         * lib/se-selinux.in.h: Likewise.
27818         * lib/search.in.h: Likewise.
27819         * lib/signal.in.h: Likewise.
27820         * lib/spawn.in.h: Likewise.
27821         * lib/stdarg.in.h: Likewise.
27822         * lib/stddef.in.h: Likewise.
27823         * lib/stdint.in.h: Likewise.
27824         * lib/stdio.in.h: Likewise.
27825         * lib/stdlib.in.h: Likewise.
27826         * lib/string.in.h: Likewise.
27827         * lib/strings.in.h: Likewise.
27828         * lib/sys_file.in.h: Likewise.
27829         * lib/sys_ioctl.in.h: Likewise.
27830         * lib/sys_select.in.h: Likewise.
27831         * lib/sys_socket.in.h: Likewise.
27832         * lib/sys_stat.in.h: Likewise.
27833         * lib/sys_time.in.h: Likewise.
27834         * lib/sys_times.in.h: Likewise.
27835         * lib/sys_utsname.in.h: Likewise.
27836         * lib/sys_wait.in.h: Likewise.
27837         * lib/sysexits.in.h: Likewise.
27838         * lib/termios.in.h: Likewise.
27839         * lib/time.in.h: Likewise.
27840         * lib/unistd.in.h: Likewise.
27841         * lib/wchar.in.h: Likewise.
27842         * lib/wctype.in.h: Likewise.
27843         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
27844         * modules/ctype (Makefile.am): Likewise.
27845         * modules/dirent (Makefile.am): Likewise.
27846         * modules/errno (Makefile.am): Likewise.
27847         * modules/fcntl-h (Makefile.am): Likewise.
27848         * modules/float (Makefile.am): Likewise.
27849         * modules/getopt-posix (Makefile.am): Likewise.
27850         * modules/iconv-h (Makefile.am): Likewise.
27851         * modules/inttypes (Makefile.am): Likewise.
27852         * modules/langinfo (Makefile.am): Likewise.
27853         * modules/locale (Makefile.am): Likewise.
27854         * modules/math (Makefile.am): Likewise.
27855         * modules/netdb (Makefile.am): Likewise.
27856         * modules/netinet_in (Makefile.am): Likewise.
27857         * modules/poll-h (Makefile.am): Likewise.
27858         * modules/pthread (Makefile.am): Likewise.
27859         * modules/pty (Makefile.am): Likewise.
27860         * modules/sched (Makefile.am): Likewise.
27861         * modules/search (Makefile.am): Likewise.
27862         * modules/selinux-h (Makefile.am): Likewise.
27863         * modules/signal (Makefile.am): Likewise.
27864         * modules/spawn (Makefile.am): Likewise.
27865         * modules/stdarg (Makefile.am): Likewise.
27866         * modules/stddef (Makefile.am): Likewise.
27867         * modules/stdint (Makefile.am): Likewise.
27868         * modules/stdio (Makefile.am): Likewise.
27869         * modules/stdlib (Makefile.am): Likewise.
27870         * modules/string (Makefile.am): Likewise.
27871         * modules/strings (Makefile.am): Likewise.
27872         * modules/sys_file (Makefile.am): Likewise.
27873         * modules/sys_ioctl (Makefile.am): Likewise.
27874         * modules/sys_select (Makefile.am): Likewise.
27875         * modules/sys_socket (Makefile.am): Likewise.
27876         * modules/sys_stat (Makefile.am): Likewise.
27877         * modules/sys_time (Makefile.am): Likewise.
27878         * modules/sys_times (Makefile.am): Likewise.
27879         * modules/sys_utsname (Makefile.am): Likewise.
27880         * modules/sys_wait (Makefile.am): Likewise.
27881         * modules/sysexits (Makefile.am): Likewise.
27882         * modules/termios (Makefile.am): Likewise.
27883         * modules/time (Makefile.am): Likewise.
27884         * modules/unistd (Makefile.am): Likewise.
27885         * modules/wchar (Makefile.am): Likewise.
27886         * modules/wctype (Makefile.am): Likewise.
27887
27888 2010-10-04  Bruno Haible  <bruno@clisp.org>
27889
27890         read-file tests: Avoid a test failure on NonStop Kernel.
27891         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
27892         a regular file.
27893         Reported by Joachim Schmitz <schmitz@hp.com>.
27894
27895 2010-10-03  Bruno Haible  <bruno@clisp.org>
27896
27897         gnulib-tool: Fixes for --create-testdir with --libtool.
27898         * gnulib-tool (func_get_automake_snippet): Don't augment
27899         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
27900         an executable.
27901         (func_create_testdir): Handle module 'alloca' like func_import.
27902         Reported by Bruce Korb <bruce.korb@gmail.com>.
27903
27904 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
27905
27906         Avoid some lines longer than 80 characters.
27907         * lib/stdint.in.h: Break long comment lines.
27908         * lib/math.in.h: Likewise.
27909         (_GL_NUM_UINT_WORDS): New macro, for readability.
27910         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
27911         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
27912         * lib/stdlib.in.h: Likewise.
27913         * lib/spawn.in.h: Likewise.
27914         * lib/sys_socket.in.h: Update an URL.
27915         * lib/sys_stat.in.h: Break long line.
27916
27917 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
27918
27919         Improve pmccabe2html.
27920         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
27921         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
27922         when the sources change. Remove the line in the HTML about "Used
27923         ranges" (which implied that there might be other unused ranges),
27924         rename "Resume" to "Summary" (easier to understand for more users).
27925         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
27926         styles, and some unnecessary blank lines.
27927
27928 2010-10-03  Bruno Haible  <bruno@clisp.org>
27929             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
27930
27931         acl: Add support for ACLs on NonStop Kernel.
27932         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
27933         Check whether the function aclsort() exists.
27934         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
27935         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
27936         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
27937         (acl_nontrivial [HAVE_ACLSORT]: New function.
27938         (file_has_acl): Implement for NonStop Kernel.
27939         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
27940         (qset_acl): Implement for NonStop Kernel.
27941         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
27942         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
27943         (main): Implement for NonStop Kernel.
27944         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
27945         Kernel. Handle this flavor.
27946         * tests/test-set-mode-acl.sh: Likewise.
27947         * tests/test-copy-acl.sh: Likewise.
27948         * tests/test-copy-file.sh: Likewise.
27949
27950 2010-10-03  Bruno Haible  <bruno@clisp.org>
27951
27952         Info about ACLs on NonStop Kernel.
27953         * doc/acl-resources.txt: Add info about NonStop Kernel.
27954         References by Joachim Schmitz <schmitz@hp.com>.
27955
27956 2010-10-02  Bruno Haible  <bruno@clisp.org>
27957
27958         Define missing EDQUOT on NonStop Kernel.
27959         * lib/errno.in.h (EDQUOT): Assign a value if missing.
27960         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
27961         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
27962         missing.
27963         * doc/posix-headers/errno.texi: Mention the NSK bug.
27964         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
27965         Reported by Joachim Schmitz <schmitz@hp.com>.
27966
27967 2010-10-02  Bruno Haible  <bruno@clisp.org>
27968
27969         Update doc for POSIX:2008.
27970         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
27971         Update URL of POSIX specification.
27972
27973 2010-10-02  Bruno Haible  <bruno@clisp.org>
27974
27975         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
27976         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
27977         from gnulib, not from Automake.
27978
27979 2010-10-02  Bruno Haible  <bruno@clisp.org>
27980
27981         New module 'system-posix'.
27982         * modules/system-posix: New file.
27983         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
27984         module is present.
27985         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
27986         GNULIB_SYSTEM_POSIX.
27987         * modules/stdlib (Depends-on): Remove sys_wait.
27988         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
27989         * doc/posix-functions/system.texi: Mention the new module.
27990         * doc/posix-headers/stdlib.texi: Likewise.
27991         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
27992         define test_sys_wait_macros to a no-op.
27993         Reported by Sam Steingold <sds@gnu.org>.
27994
27995 2010-09-30  Bruno Haible  <bruno@clisp.org>
27996
27997         More renaming from 'getdate' to 'get_date'.
27998         * doc/get_date.texi: Renamed from doc/getdate.texi.
27999         * modules/get_date (Files): Update.
28000         * MODULES.html.sh (Date and time <time.h>): Update.
28001         * DEPENDENCIES: Update.
28002         * gnulib-tool: Update comment.
28003         * m4/bison.m4 (gl_BISON): Likewise.
28004         * m4/get_date.m4 (gl_GET_DATE): Likewise.
28005
28006 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
28007
28008         bootstrap: support ACLOCAL_FLAGS during aclocal
28009         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
28010         can add additional -I dir for third-party .m4 files.
28011
28012 2010-09-30  Eric Blake  <eblake@redhat.com>
28013
28014         bootstrap: use glibtoolize on MacOS
28015         * build-aux/bootstrap (check_versions): Convert libtool into
28016         libtoolize.
28017         (tool search): Move libtool check earlier, and look for
28018         glibtoolize for MacOS.
28019         (gnulib_tool_options): Auto-add --libtool when appropriate.
28020         Reported by Justin Clift.
28021
28022         poll: fix typo that broke test on MacOS
28023         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
28024         Reported by Justin Clift.
28025
28026         getdate: rename to get_date
28027         Note: getdate.h is not renamed, to minimize client impact.
28028         * modules/getdate: Mark obsolete.  Move old contents...
28029         * modules/get_date: ...to new module name.
28030         * modules/getdate-tests: Move...
28031         * modules/get_date-tests: ...here.
28032         * m4/getdate.m4: Move...
28033         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
28034         * lib/getdate.y: Move...
28035         * lib/get_date.y: ...here.
28036         * tests/test-getdate.c: Move...
28037         * tests/test-get_date.c: ...here.
28038         * doc/posix-functions/getdate.texi (getdate): Update name.
28039         * NEWS: Mention the change.
28040
28041 2010-09-29  Bruno Haible  <bruno@clisp.org>
28042
28043         Separate the module 'waitpid' from the module 'sys_wait'.
28044         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
28045         present.
28046         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
28047         gl_MODULE_INDICATOR_FOR_TESTS.
28048         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
28049         * modules/sys_wait (Depends-on): Remove waitpid.
28050         (Makefile.am): Substitute GNULIB_WAITPID.
28051         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
28052         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
28053         signature only if the 'waitpid' module is present.
28054         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
28055         * NEWS: Mention the change.
28056         * modules/grantpt (Depends-on): Add waitpid.
28057         * modules/wait-process (Depends-on): Likewise.
28058
28059 2010-09-29  Bruno Haible  <bruno@clisp.org>
28060
28061         More tests for module 'sys_wait'.
28062         * modules/sys_wait-c++-tests: New file.
28063         * tests/test-sys_wait-c++.cc: New file.
28064         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
28065         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
28066
28067 2010-09-29  Bruno Haible  <bruno@clisp.org>
28068
28069         New module 'waitpid'.
28070         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
28071         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
28072         Don't include <process.h>.
28073         (waitpid): Declare only, using modern idiom.
28074         * m4/waitpid.m4: New file.
28075         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
28076         * modules/waitpid: New file.
28077         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
28078         (Makefile.am): Update.
28079         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
28080
28081 2010-09-28  Bruno Haible  <bruno@clisp.org>
28082
28083         poll: Assume ANSI C.
28084         * lib/poll.c (poll): Use an ANSI C declaration.
28085
28086 2010-09-28  Bruno Haible  <bruno@clisp.org>
28087
28088         poll-h: Create poll.h on all platforms.
28089         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
28090         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
28091         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
28092         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
28093         (gl_REPLACE_POLL_H): Don't set POLL_H.
28094         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
28095         * modules/poll-h (Depends-on): Add include_next.
28096         (Makefile.am): Create poll.h unconditionally. Substitute also
28097         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
28098
28099 2010-09-28  Bruno Haible  <bruno@clisp.org>
28100
28101         Tests for module 'poll-h'.
28102         * modules/poll-h-c++-tests: New file.
28103         * tests/test-poll-h-c++.cc: New file.
28104
28105         Tests for module 'poll-h'.
28106         * modules/poll-h-tests: New file.
28107         * tests/test-poll-h.c: New file.
28108
28109 2010-09-28  Bruno Haible  <bruno@clisp.org>
28110
28111         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
28112         * modules/poll-h (Depends-on): Add 'extensions'.
28113
28114 2010-09-28  Bruno Haible  <bruno@clisp.org>
28115
28116         New module 'poll-h'.
28117         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
28118         (poll): Use modern idiom.
28119         * modules/poll-h: New file.
28120         * modules/poll (Files): Remove lib/poll.in.h.
28121         (Depends-on): Add poll-h.
28122         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
28123         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
28124         * m4/poll_h.m4: New file.
28125         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
28126         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
28127         and invoke gl_REPLACE_POLL_H.
28128         * lib/poll.c: Use common idiom.
28129         * tests/test-poll.c: Likewise.
28130         * doc/posix-headers/poll.texi: Mention the poll-h module.
28131         Suggested by Eric Blake.
28132
28133 2010-09-26  Bruno Haible  <bruno@clisp.org>
28134
28135         sys_wait: Implement WSTOPSIG.
28136         * lib/sys_wait.in.h (WSTOPSIG): New macro.
28137         Reported by Simon Josefsson.
28138
28139 2010-09-26  Simon Josefsson  <simon@josefsson.org>
28140
28141         stdlib, sys_wait: Avoid compilation error on mingw.
28142         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
28143
28144 2010-09-26  Bruno Haible  <bruno@clisp.org>
28145
28146         stdlib tests: Avoid code duplication.
28147         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
28148         * modules/sys_wait-tests (Files): Likewise.
28149         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
28150         * tests/test-stdlib.c: Include test-sys_wait.h.
28151         (main): Invoke test_sys_wait_macros.
28152         * tests/test-sys_wait.c: Include test-sys_wait.h.
28153         (main): Invoke test_sys_wait_macros.
28154
28155 2010-09-25  Simon Josefsson  <simon@josefsson.org>
28156
28157         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
28158         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
28159         sure Windows sockets are working before calling getaddrinfo.
28160         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
28161         * doc/gnulib.texi (Windows sockets): Fix typo.
28162
28163 2010-09-25  Bruno Haible  <bruno@clisp.org>
28164
28165         Tests for module 'regex-quote'.
28166         * modules/regex-quote-tests: New file.
28167         * tests/test-regex-quote.c: New file.
28168
28169         New module 'regex-quote'.
28170         * lib/regex-quote.h: New file.
28171         * lib/regex-quote.c: New file.
28172         * modules/regex-quote: New file.
28173         Suggested by Reuben Thomas <rrt@sc3d.org>.
28174
28175 2010-09-24  Bruno Haible  <bruno@clisp.org>
28176
28177         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
28178         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
28179
28180 2010-09-23  Bruno Haible  <bruno@clisp.org>
28181
28182         setenv: Relax license.
28183         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
28184         Blake.
28185         Requested by Eric Blake.
28186
28187 2010-09-22  Bruno Haible  <bruno@clisp.org>
28188
28189         termios: Relax license.
28190         * modules/termios (License): Change to LGPLv2+.
28191         Requested by Eric Blake.
28192
28193 2010-09-22  Bruno Haible  <bruno@clisp.org>
28194
28195         threadlib: Allow the package to change the default to 'no'.
28196         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
28197         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
28198         Reported by Paul Eggert.
28199
28200 2010-09-22  Pádraig Brady  <P@draigbrady.com>
28201             Bruno Haible  <bruno@clisp.org>
28202
28203         Fix endless loop in mbmemcasecoll.
28204         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
28205         byte.
28206         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
28207
28208 2010-09-22  Bruno Haible  <bruno@clisp.org>
28209
28210         Tests for module 'memcoll'.
28211         * modules/memcoll-tests: New file.
28212         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
28213
28214         memcoll, xmemcoll: Clarify size vs. length.
28215         * modules/memcoll.c (memcoll0): Clarify specification.
28216         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
28217         passed to collate_error.
28218
28219 2010-09-22  Bruno Haible  <bruno@clisp.org>
28220
28221         Tests for module 'memcasecmp'.
28222         * modules/memcasecmp-tests: New file.
28223         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
28224
28225 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
28226
28227         * lib/pthread.in.h: Add split double-inclusion guard, and include
28228         system <pthread.h> if there is one.  Use @@-style as in other
28229         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
28230         pthread.h doesn't.
28231         (pthread_mutexattr_destroy, pthread_mutexattr_init):
28232         (pthread_mutexattr_settype, pthread_mutex_trylock):
28233         New static inline functions, if there's no system <pthread.h>.
28234         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
28235         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
28236         Approximate with mutexes if the system lacks spinlocks, as in
28237         MacOS.
28238         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
28239         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
28240         @@-style.  Check for spinlocks separately.
28241         (gl_PTHREAD_DEFAULTS): New macro.
28242         * modules/pthread: Redo to use a more typical style for in.h files.
28243
28244 2010-09-21  Eric Blake  <eblake@redhat.com>
28245
28246         net_if: enhance tests
28247         * tests/test-net_if.c (main): Move signature checks earlier.
28248         Print failures to stderr.
28249         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
28250         Document the bug that we do not yet fix.
28251
28252 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
28253
28254         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
28255         about gnulib, not GSS.
28256
28257 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
28258
28259         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
28260         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
28261         for Emacs.
28262         * build-aux/pmccabe2html: Make Makefile.am example code more
28263         cut-and-paste friendly.
28264
28265 2010-09-21  Simon Josefsson  <simon@josefsson.org>
28266
28267         * tests/test-net_if.c: New file.
28268         * modules/net_if-tests: New file.
28269
28270 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
28271
28272         pthread: add pthread_spin_destroy
28273         * lib/pthread.in.h (pthread_spin_destroy): New function.
28274
28275 2010-09-19  Bruno Haible  <bruno@clisp.org>
28276
28277         gnulib-tool: Fix --help output.
28278         * gnulib-tool (func_usage): Fix help message.
28279         Reported by Reuben Thomas <rrt@sc3d.org>.
28280
28281 2010-09-18  Jim Meyering  <meyering@redhat.com>
28282
28283         maint.mk: avoid unexpanded \n in two diagnostics
28284         * top/maint.mk (sc_prohibit_always_true_header_tests):
28285         Don't use a literal \n in a halt=... assignment.  It would not be
28286         expanded, and the two \n bytes would appear in the diagnostic output
28287         rather than the desired newline.  Use halt=$$(printf ... instead.
28288         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
28289
28290 2010-09-18  Bruno Haible  <bruno@clisp.org>
28291
28292         netinet_in: Doc tweak.
28293         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
28294         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
28295
28296 2010-09-18  Jim Meyering  <meyering@redhat.com>
28297
28298         init.sh: correct an outdated comment
28299         * tests/init.sh (create_exe_shims_):  s/function/alias/
28300
28301         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
28302         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
28303         a file named "*.exe" is removed between the glob expansion and the
28304         processing of that oddly named file.
28305
28306 2010-09-17  Eric Blake  <eblake@redhat.com>
28307
28308         mirbsd: add some more support
28309         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
28310         in BSD family.
28311         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
28312         devices as OpenBSD.
28313         * m4/host-os.m4 (mirbsd): Add MirBSD.
28314
28315         tests: fix unportable assumption on sys/wait.h
28316         * tests/test-sys_wait.c (main): Relax test.
28317         * tests/test-stdlib.c (main): Likewise.
28318
28319         init.sh: accommodate directory with no .exes
28320         * tests/init.sh: Accomodate directory containing only scripts.
28321
28322         tests: avoid compiler warning
28323         * tests/test-stdlib.c (main): Use the variable.
28324
28325         fdutimens, fdutimensat: update signature, again
28326         * lib/utimens.h (gl_futimens): Delete, and move signature...
28327         (fdutimens): ...here.
28328         (fdutimensat): Rearrange signature.
28329         (lutimensat): Rename variable for clarity.
28330         * lib/fdutimensat.c (fdutimensat): Update signature.
28331         * lib/utimens.c (fdutimens): Likewise.
28332         (gl_futimens): Delete.
28333         (utimens, lutimens): Update callers.
28334         * lib/futimens.c (futimens): Likewise.
28335         * tests/test-fdutimensat.c: Likewise.
28336         * tests/test-utimens.c: Likewise.
28337         * tests/test-futimens.h: Update comment.
28338         * NEWS: Mention this.
28339         Suggested by Paul Eggert.
28340
28341 2010-09-17  Bruno Haible  <bruno@clisp.org>
28342
28343         Take over the maintenance of some older macros from Autoconf.
28344         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
28345         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
28346         GNU Autoconf.
28347         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
28348         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
28349
28350 2010-09-17  Eric Blake  <eblake@redhat.com>
28351
28352         fdutimensat: drop atflag validation
28353         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
28354         with valid fd, to close a race scenario where futimens is
28355         unsupported and FILE was replaced by a symlink.
28356         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
28357         accordingly.
28358         Suggested by Paul Eggert.
28359
28360 2010-09-16  Bruno Haible  <bruno@clisp.org>
28361
28362         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
28363         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
28364
28365 2010-09-16  Bruno Haible  <bruno@clisp.org>
28366
28367         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
28368         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
28369         login_tty exists.
28370         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
28371
28372 2010-09-16  Bruno Haible  <bruno@clisp.org>
28373
28374         login_tty: Make the replacement code work on BSD systems.
28375         * lib/login_tty.c: Include <sys/ioctl.h>.
28376         (login_tty): Use ioctl TIOCSCTTY when available.
28377         * modules/login_tty (Depends-on): Add sys_ioctl.
28378         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
28379
28380 2010-09-16  Bruno Haible  <bruno@clisp.org>
28381
28382         login_tty: Stricter unit test.
28383         * modules/login_tty-tests (Depends-on): Add tcgetsid.
28384         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
28385         and tcgetsid() after login_tty.
28386         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
28387
28388 2010-09-16  Bruno Haible  <bruno@clisp.org>
28389
28390         New module 'tcgetsid'.
28391         * lib/tcgetsid.c: New file.
28392         * m4/tcgetsid.m4: New file.
28393         * modules/tcgetsid: New file.
28394         * modules/termios (Depends-on): Add c++defs, warn-on-use.
28395         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
28396         GNULIB_TCGETSID, HAVE_TCGETSID.
28397         * lib/termios.in.h: Include <sys/types.h>.
28398         (tcgetsid): New declaration.
28399         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
28400         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
28401         * doc/posix-functions/tcgetsid.texi: Mention the new module.
28402         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
28403
28404 2010-09-16  Bruno Haible  <bruno@clisp.org>
28405
28406         Tests for module 'termios'.
28407         * modules/termios-c++-tests: New file.
28408         * modules/termios-tests: New file.
28409         * tests/test-termios-c++.cc: New file.
28410         * tests/test-termios.c: New file.
28411
28412         New module 'termios'.
28413         * modules/termios: New file.
28414         * lib/termios.in.h: New file.
28415         * m4/termios_h.m4: New file.
28416         * doc/posix-headers/termios.texi: Mention the new module.
28417
28418 2010-09-16  Eric Blake  <eblake@redhat.com>
28419
28420         fdutimensat: add an atflag parameter
28421         * lib/fdutimensat.c (fdutimensat): Add new parameter.
28422         * lib/utimens.h (fdutimensat): Update prototype.
28423         * tests/test-fdutimensat.c: Adjust test to match.
28424         * NEWS: Document the change.
28425         Suggested by Paul Eggert.
28426
28427 2010-09-16  Bruno Haible  <bruno@clisp.org>
28428
28429         Fix typos in comments.
28430         * lib/striconveh.h: Fix typo in comment.
28431         * lib/login_tty.c (login_tty): Likewise.
28432
28433 2010-09-15  Bruno Haible  <bruno@clisp.org>
28434
28435         stdlib: clarify MirBSD WEXITSTATUS bug
28436         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
28437         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
28438
28439 2010-09-15  Eric Blake  <eblake@redhat.com>
28440
28441         stdlib: work around MirBSD WEXITSTATUS bug
28442         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
28443         * modules/stdlib (Depends-on): Add sys_wait.
28444         * tests/test-sys_wait.c (main): Enhance test.
28445         * tests/test-stdlib.c (main): Likewise.
28446         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
28447
28448         docs: mention MacOS issue with WEXITSTATUS(constant)
28449         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
28450         issue.
28451         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
28452
28453         strnlen: add tests
28454         * modules/strnlen-tests: New file.
28455         * tests/test-strnlen.c: Likewise.
28456
28457 2010-09-14  Bruno Haible  <bruno@clisp.org>
28458
28459         unistr/base: Avoid link errors when module 'libunistring' is also used.
28460         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
28461         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
28462         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
28463         Declare also when HAVE_LIBUNISTRING is set.
28464         Reported by Pádraig Brady <P@draigbrady.com>.
28465
28466 2010-09-14  Eric Blake  <eblake@redhat.com>
28467
28468         test-rawmemchr: make more robust
28469         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
28470         (Depends-on, configure.ac): Add needed prerequisites to use it.
28471         * modules/memchr-tests (Files, Depends-on, configure.ac):
28472         Likewise, to avoid implicit reliance on memchr module prereqs.
28473         * tests/test-memchr.c (main): Ensure proper masking.
28474         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
28475         reads.
28476
28477         memchr: detect glibc Alpha bug
28478         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
28479         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
28480         Alpha.
28481         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
28482         * tests/test-memchr.c (main): Enhance test.
28483         Reported by Nelson H. F. Beebe.
28484
28485 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
28486
28487         fts, getcwd, glob: audit for dirfd returning -1
28488         * lib/fts.c (opendir): Remove #define; no longer used.
28489         (opendirat): New arg PDIR_FD.  All callers changed.
28490         (fts_build, _opendir2): Use new opendirat to avoid the need for
28491         dirfd, or for checking whether dirfd returns a negative value.
28492         Don't use opendir; always use openat followed by fdopendir.
28493         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
28494         it.
28495         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
28496         returns -1 here.
28497         * modules/fts (Depends-on): Remove dirfd.
28498         * modules/getcwd (Depends-on): Likewise.
28499
28500 2010-09-13  Eric Blake  <eblake@redhat.com>
28501
28502         float: fix broken MirBSD header
28503         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
28504         * doc/posix-headers/float.texi (float.h): Document it.
28505
28506 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
28507
28508         fts: use O_NOFOLLOW to avoid race condition when opening a directory
28509         * lib/fts.c (opendirat): New arg extra_flags.
28510         (__opendir2): Use it to avoid following symlinks when opening
28511         a directory, if symlinks are not supposed to be followed.  See
28512         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
28513
28514         fdopendir: preserve argument fd before returning
28515         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
28516         (fdopendir_with_dup, fd_clone_opendir): New static functions.
28517         (fdopendir): Use them, arranging for FD to be open to the same
28518         directory that it was when it started.  (It might be temporarily
28519         closed while fdopendir is running, so this not thread- or
28520         signal-safe.)  Be careful to do the right thing even when file
28521         descriptors are scarce and dup fails with errno == EMFILE.  See
28522         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
28523
28524 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
28525
28526         regex: Pass the system regex if its only problem is 32-bit regoff_t.
28527         * NEWS: Document change.
28528         * m4/regex.m4: Disable test for regoff_t size.
28529
28530 2010-09-13  Jim Meyering  <meyering@redhat.com>
28531
28532         fts: don't operate on an invalid file descriptor after failed dup
28533         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
28534         negative file descriptor.
28535
28536 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
28537
28538         savedir: add streamsavedir, deprecate fdsavedir
28539         * NEWS: Mention deprecation of fdsavedir.
28540         * lib/savedir.c (streamsavedir): New extern function, whose name
28541         ends in "savedir" to be consistent with the others.  This differs
28542         from savedirstream in that it doesn't close its argument.  The
28543         next version of GNU tar will use this instead of fdsavedir, to
28544         avoid some race conditions and conserve file descriptors.
28545         (savedirstream): Reimplement as a wrapper around streamsavedir.
28546         (fdsavedir): Add a comment deprecating this function.  As far as
28547         I know, only GNU tar used it, and GNU tar doesn't need it any more.
28548         * lib/savedir.h (streamsavedir): New decl.
28549         (fdsavedir): Add a comment deprecating this.
28550
28551 2010-09-10  Bruno Haible  <bruno@clisp.org>
28552
28553         langinfo: Fix last commit.
28554         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
28555         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
28556         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
28557
28558 2010-09-10  Bruno Haible  <bruno@clisp.org>
28559
28560         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
28561         * lib/progreloc.c (O_EXEC): Define fallback.
28562
28563 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
28564
28565         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
28566         * NEWS: Document recent changes to fcntl-h.
28567         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
28568         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
28569         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
28570         Similarly for O_SEARCH; this last was already true, but not documented.
28571         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
28572         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
28573         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
28574         Likewise.
28575         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
28576         is zero, not whether it is defined.
28577         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
28578         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
28579         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
28580
28581 2010-09-10  Bruno Haible  <bruno@clisp.org>
28582
28583         langinfo, nl_langinfo: Fix for IRIX 5.3.
28584         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
28585         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
28586         HAVE_LANGINFO_YESEXPR.
28587         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
28588         HAVE_LANGINFO_YESEXPR.
28589         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
28590         HAVE_LANGINFO_T_FMT_AMPM is 0.
28591         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
28592         HAVE_LANGINFO_YESEXPR is 0.
28593         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
28594         NOEXPR.
28595         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
28596         * doc/posix-functions/nl_langinfo.texi: Likewise.
28597         Reported by Eric Blake.
28598
28599 2010-09-10  Bruno Haible  <bruno@clisp.org>
28600
28601         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
28602         * doc/glibc-functions/login_tty.texi: Mention the include file problem
28603         on FreeBSD 8.0 and OpenBSD 4.6.
28604         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
28605         * m4/pty_h.m4 (gl_PTY_H): Likewise.
28606         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
28607         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
28608         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
28609         ac_includes_default.
28610         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
28611
28612 2010-09-09  Eric Blake  <eblake@redhat.com>
28613
28614         strsignal: work around NetBSD bug
28615         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
28616         * lib/string.in.h (includes): Likewise.
28617         * doc/posix-functions/strsignal.texi (strsignal): Document the
28618         bug.
28619         Reported by Nelson H. F. Beebe.
28620
28621         gnulib-tool: work with NetBSD /bin/sh
28622         * gnulib-tool (func_cache_var, func_cache_lookup_module)
28623         (func_get_description, func_get_comment, func_get_status)
28624         (func_get_notice, func_get_applicability, func_get_filelist)
28625         (func_get_dependencies, func_get_autoconf_early_snippet)
28626         (func_get_autoconf_snippet, func_get_automake_snippet)
28627         (func_get_include_directive, func_get_link_directive)
28628         (func_get_license, func_get_maintainer, func_import): Avoid
28629         shell syntax errors from parsing syntax extensions.
28630
28631 2010-09-09  Bruno Haible  <bruno@clisp.org>
28632
28633         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
28634         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
28635         a reliable way to determine whether the 'alias' command works.
28636
28637 2010-09-08  Jim Meyering  <meyering@redhat.com>
28638
28639         init.sh: penalize a set-x-impaired shell; don't disqualify it
28640         * tests/init.sh: Too many shells corrupt application stderr when
28641         you set -x, so we can't afford to disqualify them, since at least
28642         on Irix-6.5, that would disqualify all bourne shells.
28643         Instead, use a two-pass approach.
28644         On the first pass, try to find a shell that meets the stricter
28645         condition that set -x does not corrupt stderr.
28646         If no shell meets the stricter condition, retest each candidate
28647         shell, but without that extra condition.  Finally, when
28648         VERBOSE=yes is requested and set -x might cause trouble, simply
28649         issue a warning and refrain from enabling debug output.
28650
28651 2010-09-08  Eric Blake  <eblake@redhat.com>
28652
28653         unsetenv: fix OpenBSD bug
28654         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
28655         * doc/posix-functions/unsetenv.texi (unsetenv): Update
28656         documentation.
28657         Reported by Jim Meyering.
28658
28659         strtod: work around IRIX 6.5 bug
28660         * lib/strtod.c (strtod): Reparse number on shorter string if
28661         exponent parse was invalid.
28662         * tests/test-strtod.c (main): Add check for "0x1p 2".
28663         Reported by Tom G. Christensen.
28664
28665         getopt: optimize previous patch
28666         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
28667         empty variable.  Speed up awk script.
28668         Reported by Paolo Bonzini.
28669
28670 2010-09-08  Jim Meyering  <meyering@redhat.com>
28671
28672         test.sh: disqualify shells for which set -x corrupts stderr
28673         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
28674         and OpenBSD 4.7.  They make it so with "set -x", environment settings
28675         appear in stderr output.  For example, this command:
28676             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
28677         prints "P=1" on those two systems:
28678
28679 2010-09-08  Bruno Haible  <bruno@clisp.org>
28680
28681         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
28682         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
28683         commands, because some shells ignore redirections when there is an
28684         error in the command lookup.
28685         Reported by Eric Blake.
28686
28687 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
28688
28689         * lib/regex.h: Fix a mention of `regex_compile' (should be
28690         `re_compile_pattern').
28691         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
28692         (re_set_registers): Correct name of parameter in comment.
28693
28694         * doc/regex.texi: Add documentation for missing syntax flags.
28695         Remove commented-out documentation of defunct syntax option
28696         RE_NO_EMPTY_ALTS.
28697         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
28698         Add documentation of re_set_registers.
28699         Document trick to re-use a pattern buffer by setting fastmap manually.
28700         Update documentation of struct re_pattern_buffer per public members.
28701         Uncomment documentation of equivalence class operators and
28702         collating symbol operators, since they are now implemented,
28703         Explain leftmost-longest matching in relation to alternatives.
28704         Tidy documentation of substring matching.
28705         Remove POSIX documentation, which is done better in
28706         glibc, and refer the reader there. Keep BSD API documentation, as
28707         that is not readily available elsewhere.
28708
28709 2010-09-07  Eric Blake  <eblake@redhat.com>
28710
28711         getopt: handle POSIXLY_CORRECT set but not exported
28712         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
28713         export state of POSIXLY_CORRECT, due to bash set -o posix.
28714         Reported by Dustin J. Mitchell.
28715
28716 2010-09-05  Bruno Haible  <bruno@clisp.org>
28717
28718         gnulib-tool: Highlight the changed options.
28719         * gnulib-tool (func_usage): Display the --import, --add-import,
28720         --remove-import explanations in bold font.
28721
28722 2010-09-06  Karl Berry  <karl@gnu.org>
28723
28724         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
28725
28726 2010-09-05  Bruno Haible  <bruno@clisp.org>
28727
28728         uniwidth/width: Update comment.
28729         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
28730         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
28731
28732 2010-09-05  Bruno Haible  <bruno@clisp.org>
28733
28734         isinf, isnan: Relax license.
28735         * modules/isinf (License): Change from GPL to LGPL, with consent from
28736         Ben Pfaff.
28737         * modules/isnan (License): Likewise.
28738         Requested by Ludovic Courtès.
28739
28740 2010-09-04  Bruno Haible  <bruno@clisp.org>
28741
28742         gnulib-tool: Help migration from --import to --add-import or --update.
28743         * gnulib-tool: Emit a verbose error message when --import is used
28744         without any module name.
28745
28746 2010-09-04  Bruno Haible  <bruno@clisp.org>
28747
28748         Update doc about gnulib-tool.
28749         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
28750         'gnulib-tool --update' in more detail.
28751         Reported by Eric Blake.
28752
28753 2010-09-04  Bruno Haible  <bruno@clisp.org>
28754
28755         gnulib-tool: Change --import. New options --add/remove-import.
28756         * gnulib-tool: New options --add-import, --remove-import.
28757         (func_usage): Document them.
28758         (have_associative): Define always.
28759         (func_import): In import mode, don't merge the specified settings with
28760         the cached settings. Implement remove-import mode.
28761         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
28762         Explain when to use them versus --import.
28763         (Simple update): Use --add-import instead of --import.
28764         * NEWS: Mention the change.
28765
28766 2010-09-04  Bruno Haible  <bruno@clisp.org>
28767
28768         * doc/gnulib-tool.texi (Initial import): Update paragraph about
28769         separate gnulib.mk.
28770
28771 2010-09-04  Bruno Haible  <bruno@clisp.org>
28772
28773         gnulib-tool: Don't talk about CVS any more.
28774         * gnulib-tool (func_usage, func_import): Write "version control"
28775         instead of CVS.
28776
28777 2010-09-04  Jim Meyering  <meyering@redhat.com>
28778
28779         maint.mk: avoid obscure sc_copyright_check failure in coreutils
28780         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
28781         false positives (whose names may be ill-chosen) when searching
28782         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
28783         would cause a false-positive.
28784
28785         avoid coreutils "make distcheck" failure
28786         Coreutils tests with an absolute build directory name that contains
28787         a space.  Not quoting this directory name caused a failure.
28788         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
28789         * tests/test-vc-list-files-cvs.sh: Likewise.
28790
28791 2010-09-04  Bruno Haible  <bruno@clisp.org>
28792
28793         gnulib-tool: Avoid error when run in a package without Makefile.am.
28794         * gnulib-tool: When collecting the m4dirs in a package that does not
28795         have a Makefile.am, eliminate those directories that contain no
28796         gnulib-cache.m4. Fix expression that counts these directories.
28797
28798 2010-09-04  Bruno Haible  <bruno@clisp.org>
28799
28800         update-copyright test: Improve output when perl is missing or too old.
28801         * tests/test-update-copyright.sh: Move test of Perl version down after
28802         the test whether Perl exists. Provide an explanation relating Perl's
28803         error message to Automake's SKIP: message.
28804
28805 2010-09-04  Bruno Haible  <bruno@clisp.org>
28806
28807         Don't augment PATH in TESTS_ENVIRONMENT.
28808         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
28809         set abs_aux_dir instead of augmenting PATH.
28810         * modules/vc-list-files-tests (Makefile.am): Likewise.
28811         * tests/test-update-copyright.sh: Augment PATH here.
28812         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
28813         path_prepend_.
28814         * tests/test-vc-list-files-git.sh: Likewise.
28815
28816 2010-09-04  Jim Meyering  <meyering@redhat.com>
28817
28818         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
28819         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
28820
28821 2010-09-04  Bruno Haible  <bruno@clisp.org>
28822
28823         strdup: Fix compilation error in C++ mode.
28824         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
28825         the macro.
28826
28827 2010-09-04  Bruno Haible  <bruno@clisp.org>
28828
28829         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
28830         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
28831         macro into a function.
28832         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
28833
28834 2010-09-04  Bruno Haible  <bruno@clisp.org>
28835
28836         Set PATH_SEPARATOR the same way autoconf does.
28837         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
28838         the value of PATH_SEPARATOR the same way autoconf-generated configure
28839         scripts do.
28840         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
28841         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
28842
28843 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
28844
28845         Set PATH_SEPARATOR the same way autoconf does.
28846         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
28847         the same way autoconf-generated configure scripts do.
28848         * posix-modules: Likewise.
28849
28850 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
28851
28852         hash: fix safe_hasher const typo
28853         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
28854         const; otherwise, there is a type error later.
28855
28856 2010-09-02  Jim Meyering  <meyering@redhat.com>
28857
28858         test-update-copyright.sh: require perl 5.8.0
28859         * tests/test-update-copyright.sh: Require 5.8.0,
28860         which Tom G. Christensen has confirmed is adequate,
28861         while 5.6.1 is not.
28862
28863 2010-09-02  Eric Blake  <eblake@redhat.com>
28864
28865         tests: init.sh improvements for re-exec'ing with zsh
28866         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
28867         -vx through shell re-exec.
28868         Reported by Tom G. Christensen.
28869
28870         wctype: fix typo in previous commit
28871         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
28872         Reported by Ludovic Courtès.
28873
28874 2010-09-02  Jim Meyering  <meyering@redhat.com>
28875
28876         test-update-copyright.sh: skip test if Perl is too old
28877         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
28878         Reported by Tom G. Christensen.
28879
28880 2010-09-02  Bruno Haible  <bruno@clisp.org>
28881
28882         wctype: Avoid compilation error on IRIX 6.5.30.
28883         * lib/wctype.in.h (iswblank): Declare with a replacement if
28884         REPLACE_ISWBLANK is set.
28885         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
28886         declared. Set REPLACE_ISWBLANK.
28887         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
28888         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
28889         * doc/posix-headers/wctype.texi: Likewise.
28890         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
28891
28892 2010-09-01  Bruno Haible  <bruno@clisp.org>
28893
28894         New module 'socketlib'.
28895         * modules/socketlib: New file.
28896         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
28897         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
28898         * modules/sockets (Depends-on): Add socketlib.
28899         Suggested by Sam Steingold <sds@gnu.org>.
28900
28901 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
28902
28903         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
28904
28905         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
28906         when one needs search access to a directory but not read access.
28907         On systems where it is available, it works in some cases where
28908         O_RDONLY does not, namely on directories that are searchable but
28909         not readable, and which need only to be searchable.  If O_SEARCH
28910         is not available, fall back to the traditional method of using
28911         O_RDONLY.
28912
28913         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
28914         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
28915         when opening a directory that needs only to be searchable.
28916         * lib/chdir-safer.c (chdir_no_follow): Likewise.
28917         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
28918         * lib/openat-proc.c (openat_proc_name): Likewise.
28919         * lib/openat.c (openat_needs_fchdir): Likewise.
28920         * lib/save-cwd.c (save_cwd): Likewise.
28921         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
28922
28923 2010-08-28  Bruno Haible  <bruno@clisp.org>
28924
28925         New module 'host-cpu-c-abi'.
28926         * modules/host-cpu-c-abi: New file.
28927         * m4/host-cpu-c-abi.m4: New file, based on part of
28928         clisp/src/m4/general.m4.
28929         Requested by Sam Steingold <sds@gnu.org>.
28930
28931 2010-08-31  Eric Blake  <eblake@redhat.com>
28932         and Jim Meyering  <meyering@redhat.com>
28933
28934         hash: factor, and guard against misbehaving hasher function
28935         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
28936         of table->hasher's return value.  Also protect against a hash value
28937         so large that adding it to table->bucket results in a NULL pointer.
28938         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
28939         Use it in place of open-coded check-and-abort.
28940
28941 2010-08-30  Bruno Haible  <bruno@clisp.org>
28942
28943         hash: silence spurious clang warning
28944         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
28945         Reported by Eric Blake.
28946
28947 2010-08-30  Eric Blake  <eblake@redhat.com>
28948
28949         strstr, memmem, strcasestr: avoid leaked shell message
28950         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
28951         FreeBSD.
28952         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
28953         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
28954
28955         tests: silence clang warning
28956         * tests/test-malloca.c (do_allocation): Avoid dead store.
28957
28958 2010-08-29  Bruno Haible  <bruno@clisp.org>
28959
28960         gettext: Fix recent mistake.
28961         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
28962
28963 2010-08-29  Bruno Haible  <bruno@clisp.org>
28964
28965         selinux-h: Offer a --without-selinux option.
28966         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
28967         --without-selinux was specified, skip all tests and define
28968         HAVE_SELINUX_SELINUX_H to 0.
28969         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
28970         set LIB_SELINUX to empty.
28971         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
28972         gl_LIBSELINUX. If --without-selinux was specified, replace
28973         selinux/context.h.
28974         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
28975
28976 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28977             Bruno Haible  <bruno@clisp.org>
28978
28979         Make the module 'realloc-gnu' work again on AIX and OSF/1.
28980         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
28981         of HAVE_REALLOC.
28982         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
28983         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
28984         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
28985         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
28986
28987 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28988             Bruno Haible  <bruno@clisp.org>
28989
28990         Make the module 'calloc-gnu' work again on AIX and OSF/1.
28991         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
28992         HAVE_CALLOC.
28993         * lib/xmalloc.c: Update accordingly.
28994         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
28995         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
28996         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
28997
28998 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28999             Bruno Haible  <bruno@clisp.org>
29000
29001         Make the module 'malloc-gnu' work again on AIX and OSF/1.
29002         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
29003         HAVE_MALLOC.
29004         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
29005         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
29006         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
29007
29008 2010-08-29  Bruno Haible  <bruno@clisp.org>
29009
29010         Update modules list.
29011         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
29012         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
29013         (String handling <string.h>): Add astrxfrm.
29014         (File system functions): Add readlinkat.
29015
29016 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29017
29018         Tests for module 'realloc-gnu'.
29019         * modules/realloc-gnu-tests: New file.
29020         * tests/test-realloc-gnu.c: New file.
29021
29022         Tests for module 'calloc-gnu'.
29023         * modules/calloc-gnu-tests: New file.
29024         * tests/test-calloc-gnu.c: New file.
29025
29026         Tests for module 'malloc-gnu'.
29027         * modules/malloc-gnu-tests: New file.
29028         * tests/test-malloc-gnu.c: New file.
29029
29030 2010-08-28  Bruno Haible  <bruno@clisp.org>
29031
29032         Rename module 'realloc' -> 'realloc-gnu'.
29033         * modules/realloc-gnu: New file, copied from modules/realloc.
29034         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
29035         obsolete.
29036         * modules/mgetgroups (Depends-on): Update.
29037         * doc/posix-functions/realloc.texi: Update.
29038         * NEWS: Mention the change.
29039
29040         Rename module 'calloc' -> 'calloc-gnu'.
29041         * modules/calloc-gnu: New file, copied from modules/calloc.
29042         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
29043         obsolete.
29044         * doc/posix-functions/calloc.texi: Update.
29045         * NEWS: Mention the change.
29046
29047         Rename module 'malloc' -> 'malloc-gnu'.
29048         * modules/malloc-gnu: New file, copied from modules/malloc.
29049         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
29050         obsolete.
29051         * modules/argp (Depends-on): Update.
29052         * modules/regex (Depends-on): Update.
29053         * doc/posix-functions/malloc.texi: Update.
29054         * NEWS: Mention the change.
29055
29056 2010-08-28  Eric Blake  <eblake@redhat.com>
29057
29058         pread, pwrite: add missing dependency
29059         * modules/pread (Depends-on): Add extensions.
29060         * modules/pwrite (Depends-on): Likewise.
29061
29062 2010-08-28  Bruno Haible  <bruno@clisp.org>
29063
29064         unistr/u*-strchr: Fix tests dependencies.
29065         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
29066         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
29067         Reported by Ian Beckwith <ianb@erislabs.net>.
29068
29069 2010-08-28  Bruno Haible  <bruno@clisp.org>
29070
29071         read-file: Don't occupy too much unused memory.
29072         * lib/read-file.c (fread_file): Shrink the buffer at the end.
29073
29074 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
29075             Eric Blake  <eblake@redhat.com>
29076             Bruno Haible  <bruno@clisp.org>
29077
29078         read-file: Avoid memory reallocations with regular files.
29079         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
29080         (fread_file): With regular files, use the remaining length as the
29081         initial buffer size.  Check against overflow.
29082         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
29083         sys_stat.
29084
29085 2010-08-28  Bruno Haible  <bruno@clisp.org>
29086
29087         ftello: Relax license.
29088         * modules/ftello (License): Relax to LGPLv2+.
29089         Reported by Eric Blake.
29090
29091 2010-08-28  Bruno Haible  <bruno@clisp.org>
29092
29093         Avoid relocwrapper link errors due to gnulib replacement functions.
29094         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
29095         function.
29096         Reported by Ben Pfaff <blp@cs.stanford.edu>.
29097
29098 2010-08-28  Bruno Haible  <bruno@clisp.org>
29099
29100         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
29101         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
29102         defined.
29103         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
29104         Suggested by Eric Blake.
29105
29106 2010-08-28  Bruno Haible  <bruno@clisp.org>
29107
29108         sys_socket, netdb: Ensure socklen_t gets defined.
29109         * modules/sys_socket (Depends-on): Add socklen.
29110         * modules/netdb (Depends-on): Likewise.
29111         * modules/getaddrinfo (Depends-on): Remove socklen.
29112         * modules/getsockopt (Depends-on): Likewise.
29113         * modules/setsockopt (Depends-on): Likewise.
29114         * tests/test-sys_socket.c: Check that socklen_t is defined.
29115         * tests/test-netdb.c: Likewise.
29116         * m4/socklen.m4: Update comments.
29117         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29118
29119 2010-08-27  Eric Blake  <eblake@redhat.com>
29120
29121         login_tty: add missing dependency
29122         * modules/login_tty (Depends-on): Add pty.
29123
29124 2010-08-26  Eric Blake  <eblake@redhat.com>
29125
29126         lib-symbol-versions: fix m4 quoting
29127         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
29128         format for AC_LINK_IFELSE.
29129
29130         glob: fix compile test
29131         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
29132
29133         btowc: fix missing file
29134         * modules/btowc (Files): Also ship locale-fr.m4.
29135
29136         lseek: fix link test
29137         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
29138         AC_LINK_IFELSE.
29139
29140         include_next: silence autoconf 2.68 warning
29141         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
29142         AC_COMPILE_IFELSE as special.
29143         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
29144         autoconf < 2.68.
29145
29146         acl: fix compilation test
29147         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
29148         AC_COMPILE_IFELSE.
29149
29150 2010-08-26  Bruno Haible  <bruno@clisp.org>
29151
29152         Modernize AC_TRY_RUN invocations.
29153         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
29154         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
29155         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
29156         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
29157         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
29158         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
29159         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
29160         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
29161         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
29162         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
29163         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
29164         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
29165         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
29166         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
29167         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
29168         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
29169         gl_MBRLEN_NUL_RETVAL): Likewise.
29170         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
29171         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
29172         Likewise.
29173         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
29174         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
29175         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
29176         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
29177         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
29178         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
29179         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
29180         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
29181         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
29182         Likewise.
29183         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
29184         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
29185         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
29186         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
29187         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
29188         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
29189         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
29190         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
29191         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
29192         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
29193
29194 2010-08-26  Bruno Haible  <bruno@clisp.org>
29195
29196         Modernize AC_TRY_LINK invocations.
29197         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
29198         AC_TRY_LINK.
29199         * m4/argp.m4 (gl_ARGP): Likewise.
29200         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
29201         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
29202         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
29203         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
29204         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
29205         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
29206         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
29207         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
29208         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
29209         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
29210         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
29211         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
29212         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
29213         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
29214         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
29215         * m4/hostent.m4 (gl_HOSTENT): Likewise.
29216         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
29217         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
29218         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
29219         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
29220         Likewise.
29221         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
29222         Likewise.
29223         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
29224         Likewise.
29225         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
29226         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
29227         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
29228         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
29229         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
29230         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
29231         * m4/servent.m4 (gl_SERVENT): Likewise.
29232         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
29233         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
29234         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
29235         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
29236         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
29237         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
29238         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
29239         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
29240         * modules/tsearch-tests (configure.ac): Likewise.
29241
29242 2010-08-26  Bruno Haible  <bruno@clisp.org>
29243
29244         Modernize AC_TRY_COMPILE invocations.
29245         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
29246         AC_TRY_COMPILE.
29247         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
29248         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
29249         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
29250         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
29251         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
29252         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
29253         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
29254         * m4/lock.m4 (gl_LOCK): Likewise.
29255         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
29256         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
29257         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
29258         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
29259         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
29260         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
29261         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
29262         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
29263         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
29264         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
29265         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
29266         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
29267         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
29268         extraneous semicolon.
29269
29270 2010-08-26  Jim Meyering  <meyering@redhat.com>
29271
29272         stat-time: relax license LGPL
29273         * modules/stat-time (License): Change from GPL to LGPL,
29274         with consent from all contributors, for use in libguile.
29275         Requested by Ludovic Courtès.
29276
29277 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
29278
29279         poll: return immediately on POLLHUP.
29280         * lib/poll.c (poll): Always set timeout before wait_timeout is
29281         computed.
29282
29283 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29284
29285         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
29286         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
29287         rmdir ("dir/.//"), unlinkat.
29288
29289 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
29290
29291         stdbool: avoid spurious failure with modern xlc
29292         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
29293
29294 2010-08-24  Bruno Haible  <bruno@clisp.org>
29295
29296         getloadavg: simplify code
29297         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
29298         gl_have_func. Update comments.
29299
29300 2010-08-24  Eric Blake  <eblake@redhat.com>
29301
29302         getloadavg: don't define SVR4 on cygwin
29303         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
29304         only define SVR4 when -lkvm is required.
29305         Reported by Yaakov Selkowitz.
29306
29307 2010-08-24  Bruno Haible  <bruno@clisp.org>
29308
29309         priv-set: fix comment
29310         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
29311
29312 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
29313
29314         priv-set: fix comments
29315         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
29316         to match code, as suggested by David Bartley in:
29317         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
29318
29319 2010-08-23  Eric Blake  <eblake@redhat.com>
29320
29321         stdbool: avoid rejecting clang
29322         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
29323         * tests/test-stdbool.c: Enable more tests if using the system
29324         <stdbool.h> instead of the gnulib replacement.
29325         (main): Move xlc bug test to a runtime test for all compilers.
29326         Reported by Anders Kaseorg.
29327
29328         argz: fix shell quoting issue
29329         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
29330         Reported by Charles Wilson.
29331
29332 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
29333             Erik Faye-Lund <kusmabite@gmail.com>
29334
29335         poll, select: handle ERROR_BROKEN_PIPE.
29336         * lib/poll.c (win32_compute_revents): Return POLLHUP when
29337         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
29338         * lib/select.c (win32_compute_revents): Do not mark a pipe
29339         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
29340
29341 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
29342
29343         fts: allow compilation with C++
29344         * lib/fts_.h: Specify extern "C" linkage with C++.
29345
29346 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29347
29348         Fix gnulib-tool sed script de-commentation for AIX sed.
29349         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
29350         sed.
29351
29352 2010-08-17  Eric Blake  <eblake@redhat.com>
29353
29354         test-stddef: test for (some) offsetof bugs
29355         * tests/test-stddef.c: Enhance test to ensure correct type of
29356         offsetof.
29357         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
29358         that we are not fixing at this time.
29359
29360 2010-08-15  Bruno Haible  <bruno@clisp.org>
29361
29362         stpncpy: Allow stpncpy to be defined as a macro.
29363         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
29364         if it's already correctly declared.
29365         * lib/string.in.h (stpncpy): Undefine before redefining.
29366         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
29367
29368 2010-08-14  Bruno Haible  <bruno@clisp.org>
29369
29370         Rename module 'memxfrm' to 'amemxfrm'.
29371         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
29372         (amemxfrm): Renamed from memxfrm.
29373         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
29374         (amemxfrm): Renamed from memxfrm.
29375         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
29376         * NEWS: Mention the change.
29377         * MODULES.html.sh (String handling <string.h>): Update.
29378         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
29379         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
29380         * lib/unicase/u16-casexfrm.c: Likewise.
29381         * lib/unicase/u32-casexfrm.c: Likewise.
29382         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
29383         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
29384         * lib/uninorm/u16-normxfrm.c: Likewise.
29385         * lib/uninorm/u32-normxfrm.c: Likewise.
29386         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
29387         memxfrm.
29388         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
29389         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
29390         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
29391         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
29392         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
29393         Suggested by Paul Eggert.
29394
29395 2010-08-14  Bruno Haible  <bruno@clisp.org>
29396
29397         Tests for module 'astrxfrm'.
29398         * modules/astrxfrm-tests: New file.
29399         * tests/test-astrxfrm.c: New file.
29400
29401         New module 'astrxfrm'.
29402         * lib/astrxfrm.h: New file.
29403         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
29404         * modules/astrxfrm: New file.
29405
29406 2010-08-14  Reuben Thomas <rrt@sc3d.org>
29407
29408         regex: Tweak doc.
29409         * doc/regex.texi (Overview): Don't mention regex.c.
29410         (GNU Regular Expression Compiling): Likewise.
29411         (Match-end-of-line Operator): Mention 'not_eol'.
29412
29413 2010-08-14  Brian Gough  <bjg@gnu.org>
29414             Bruno Haible  <bruno@clisp.org>
29415
29416         git-merge-changelog: add doc relating to use with bzr and hg.
29417         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
29418
29419 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
29420
29421         pthread: fix pthread.h creation for srcdir != builddir
29422         * modules/pthread (Makefile.am): Fix the rule to work also in a
29423         non-srcdir build.
29424
29425 2010-08-13  Karl Berry  <karl@gnu.org>
29426
29427         * doc/regex.texi (Predefined Syntaxes): @smallexample.
29428         * doc/posix-*/*: force line break before @url of POSIX
29429         specifications.
29430         Suggested by Werner Lemberg.
29431
29432 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
29433
29434         strtod: fix const diagnostic
29435         * lib/strtod.c (strtod): Don't assign const char * to char *,
29436         as this elicits a warning from GCC when warnings are enabled.
29437
29438 2010-08-10  Pádraig Brady <P@draigbrady.com>
29439         and Eric Blake  <eblake@redhat.com>
29440
29441         copy-acl: ignore ENOTSUP on HP-UX
29442         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
29443         so that it is available for HP-UX.
29444         * lib/copy-acl.c (qcopy_acl): Use it.
29445         Reported by Patrick M. Callahan.
29446
29447 2010-08-10  Eric Blake  <eblake@redhat.com>
29448
29449         open, chown: relax license
29450         * modules/open (License): Change to LGPLv2+, with consent by all
29451         authors, for use in augeas.
29452         * modules/chown (License): Likewise.
29453         * modules/lchown (Likewise): Likewise.
29454         Requested by Adam Stokes.
29455
29456 2010-08-09  Karl Berry  <karl@gnu.org>
29457
29458         * build-aux/ar-lib: new file, import from Automake.
29459         * config/srclist.txt: autocheck for updates.
29460
29461 2010-08-09  Eric Blake  <eblake@redhat.com>
29462
29463         readlinkat: adjust client modules
29464         * modules/areadlinkat (Depends-on): Use readlinkat, not
29465         symlinkat.
29466         * modules/areadlinkat-with-size (Depends-on): Likewise.
29467
29468         mknod: be more vocal about danger of running tests as root
29469         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
29470         root, since that is just asking for problems.
29471         Suggested by Bruno Haible, based on a report by Rainer Tammer.
29472
29473         readlinkat: split into its own module
29474         * modules/symlinkat: Split readlinkat...
29475         * modules/readlinkat: ...into separate module.
29476         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
29477         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
29478         * lib/symlinkat.c (readlinkat): Move...
29479         * lib/readlinkat.c: ...into new file.
29480         * modules/symlinkat-tests: Split readlinkat test...
29481         * modules/readlinkat-tests: ...into separate module.
29482         * tests/test-symlinkat.c: Split...
29483         * tests/test-readlinkat.c: ...into new file.
29484         * NEWS: Document the split.
29485         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
29486         * lib/unistd.in.h (readlinkat): Likewise.
29487         Suggested by Bruno Haible.
29488
29489 2010-08-08  Bruno Haible  <bruno@clisp.org>
29490
29491         memxfrm: Speed up.
29492         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
29493         that usually only one call to strxfrm is necessary for each string
29494         part.
29495         Reported by Paul Eggert <eggert@cs.ucla.edu>.
29496
29497 2010-08-07  Karl Berry  <karl@gnu.org>
29498
29499         * doc/posix-headers/limits.texi,
29500         * doc/posix-functions/malloc.texi,
29501         * doc/posix-functions/strsignal.texi: missing @item.
29502         * doc/ld-version-script.texi: spurious leading i.
29503         * doc/regex.texi (Interval Operators): no commas inside @var.
29504
29505 2010-08-01  Bruno Haible  <bruno@clisp.org>
29506
29507         Integrate the regex documentation.
29508         * doc/gnulib.texi: Define 'cn' index.
29509         (Regular expressions): New a chapter that includes regex.texi and
29510         regexprops-generic.texi.
29511         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
29512         syntax.
29513
29514         Whitespace cleanup.
29515         * doc/regex.texi: Remove trailing spaces.
29516
29517         Add regex documentation.
29518         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
29519         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
29520         Written by Kathy A. Hargreaves and Karl Berry.
29521
29522 2010-08-01  Bruno Haible  <bruno@clisp.org>
29523
29524         link: Update documentation.
29525         * doc/posix-functions/link.texi: Update regarding Solaris.
29526
29527 2010-07-31  Bruno Haible  <bruno@clisp.org>
29528
29529         Update modules list.
29530         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
29531         (String handling <string.h>): Add memcmp2, memxfrm.
29532         (Container data structures): Add xlist, xsublist, xoset.
29533         (Core language properties): Add alignof, unused-parameter.
29534         (Process control, Numeric conversion functions <stdlib.h>): Renamed
29535         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
29536         (Unibyte characters <ctype.h>): New section.
29537         (String handling <string.h>): New section.
29538         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
29539         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
29540         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
29541         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
29542         tan, tanh, tanl, y0, y1, yn.
29543         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
29544         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
29545         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
29546         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
29547         unlockpt, vdprintf, vdprintf-posix.
29548         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
29549         (File system functions): Add concat-filename, sys_file, sys_ioctl,
29550         xconcat-filename.
29551         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
29552         getdtablesize, pipe2, pipe2-safer.
29553         (Security): New section.
29554         (Networking functions): Add accept4.
29555         (Signal handling): Add sigpipe.
29556         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
29557         mbmemcasecoll.
29558         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
29559         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
29560         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
29561         pipe-filter-ii.
29562         (Misc): Add argp-version-etc, login_tty, parse-duration.
29563
29564 2010-07-31  Bruno Haible  <bruno@clisp.org>
29565
29566         Improve doc in MODULES.html.
29567         * modules/linkat (Description): Add the word "function".
29568         * modules/mkfifo (Description): Likewise.
29569         * modules/mknod (Description): Likewise.
29570         * modules/remove (Description): Likewise.
29571         * modules/renameat (Description): Likewise.
29572         * modules/stat (Description): Likewise.
29573         * modules/symlink (Description): Likewise.
29574         * modules/unlink (Description): Likewise.
29575
29576 2010-07-31  Bruno Haible  <bruno@clisp.org>
29577
29578         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
29579         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
29580         option --enable/disable-c++ instead of --enable/disable-cxx.
29581         * NEWS: Mention the change.
29582
29583 2010-07-31  Bruno Haible  <bruno@clisp.org>
29584
29585         readlink, areadlink: Relax test a bit.
29586         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
29587         alternative to ENOTDIR.
29588         * tests/test-areadlink.h (test_areadlink): Likewise.
29589         Reported by Rainer Tammer.
29590
29591 2010-07-31  Bruno Haible  <bruno@clisp.org>
29592
29593         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
29594         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
29595         character, perform the search using U_STRCHR.
29596         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
29597         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
29598         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
29599         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
29600         Suggested by Paolo Bonzini.
29601
29602 2010-07-31  Bruno Haible  <bruno@clisp.org>
29603
29604         unistr/u*-strstr: Fix dependencies.
29605         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
29606         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
29607         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
29608
29609 2010-07-31  Bruno Haible  <bruno@clisp.org>
29610
29611         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
29612         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
29613         the beginning of the loop.
29614         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
29615         cases in 'switch' statement.
29616
29617         unistr/u8-strchr: Fix several bugs.
29618         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
29619         the string. When not found, return NULL, not a pointer near the end.
29620
29621         More tests for unistr/u8-strchr.
29622         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
29623         that the function does not read past the first occurrence of the byte
29624         being searched.
29625         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
29626         * tests/unistr/test-u16-strchr.c (main): New function.
29627         * tests/unistr/test-u32-strchr.c (main): New function.
29628
29629 2010-07-31  Bruno Haible  <bruno@clisp.org>
29630
29631         posix-modules: Ignore backup files of documentation files.
29632         * posix-modules: grep only through files named *.texi.
29633
29634 2010-07-31  Bruno Haible  <bruno@clisp.org>
29635
29636         symlinkat: Fix documentation.
29637         * doc/posix-functions/readlinkat.texi: Fix module name.
29638
29639 2010-07-31  Bruno Haible  <bruno@clisp.org>
29640
29641         fchownat: Replace also when chown has the trailing slash bug.
29642         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
29643         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
29644         introduced on 2010-04-10.
29645         Reported by Rainer Tammer.
29646
29647 2010-07-31  Bruno Haible  <bruno@clisp.org>
29648
29649         linkat: Work around AIX 7.1 bug.
29650         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
29651         whether linkat handles trailing slash correctly. If not, replace linkat
29652         and define LINKAT_TRAILING_SLASH_BUG.
29653         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
29654         check whether (fd1,file1) points to a directory if file1 or file2 ends
29655         in a slash. Code taken from lib/link.c.
29656         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
29657         Reported by Rainer Tammer.
29658
29659 2010-07-31  Bruno Haible  <bruno@clisp.org>
29660
29661         Correctly determine whether pow is available in libc on AIX 7 with xlc.
29662         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
29663         This disables an xlc optimization that was causing wrong test results.
29664         Reported by Rainer Tammer.
29665
29666 2010-07-31  Bruno Haible  <bruno@clisp.org>
29667
29668         iconv: Work around AIX 6.1..7.1 bug.
29669         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
29670         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
29671         cross-compiling, guess no on all versions of AIX.
29672         Reported by Rainer Tammer.
29673
29674 2010-07-31  Bruno Haible  <bruno@clisp.org>
29675
29676         readlink: Relax test a bit.
29677         * tests/test-readlink.h (test_readlink): Allow different errno value
29678         when readlink is called with a file name that ends in / and refers to
29679         a file.
29680         Suggested by Eric Blake.
29681         Reported by Rainer Tammer.
29682
29683 2010-07-31  Bruno Haible  <bruno@clisp.org>
29684
29685         copysign: Does not require -lm on glibc systems.
29686         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
29687         gl_COMMON_DOUBLE_MATHFUNC.
29688         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
29689
29690 2010-07-31  Bruno Haible  <bruno@clisp.org>
29691
29692         duplocale: Work around AIX 7.1 bug.
29693         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
29694         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
29695         * lib/duplocale.c (rpl_duplocale): Update comment.
29696         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
29697         Reported by Rainer Tammer.
29698
29699 2010-07-30  Bruno Haible  <bruno@clisp.org>
29700
29701         dirfd: Avoid link error on AIX 7.1.
29702         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
29703         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
29704         exist, set REPLACE_DIRFD.
29705         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
29706         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
29707         * doc/posix-functions/dirfd.texi: Update.
29708         Reported by Rainer Tammer.
29709
29710 2010-07-30  Eric Blake  <eblake@redhat.com>
29711
29712         strtod: next round of AIX fixes
29713         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
29714         exponent.
29715         * tests/test-strtod.c (main): Enhance tests.
29716         * doc/posix-functions/strtod.texi (strtod): Document next bug.
29717         Reported by Rainer Tammer.
29718
29719         futimens: fix configure check
29720         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
29721         Reported by Bruno Haible.
29722
29723 2010-07-30  Bruno Haible  <bruno@clisp.org>
29724
29725         getline: Update regarding AIX.
29726         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
29727         Reported by Rainer Tammer.
29728
29729 2010-07-30  Bruno Haible  <bruno@clisp.org>
29730
29731         wcwidth: Drop replacement on AIX 7.
29732         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
29733         AIX 7.
29734         Reported by Rainer Tammer.
29735
29736 2010-07-30  Bruno Haible  <bruno@clisp.org>
29737
29738         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
29739         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
29740         a 'char *'.
29741         Reported by Rainer Tammer.
29742
29743 2010-07-30  Bruno Haible  <bruno@clisp.org>
29744
29745         unlink: Update regarding AIX.
29746         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
29747         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
29748         Reported by Rainer Tammer.
29749
29750 2010-07-30  Bruno Haible  <bruno@clisp.org>
29751
29752         symlink: Update regarding AIX.
29753         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
29754         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
29755         Reported by Rainer Tammer.
29756
29757 2010-07-30  Bruno Haible  <bruno@clisp.org>
29758
29759         strndup: Update regarding AIX.
29760         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
29761         AIX 7.
29762         Reported by Rainer Tammer.
29763
29764 2010-07-30  Bruno Haible  <bruno@clisp.org>
29765
29766         stat: Update regarding AIX.
29767         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
29768         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
29769         Reported by Rainer Tammer.
29770
29771 2010-07-30  Bruno Haible  <bruno@clisp.org>
29772
29773         truncl: Fix autoconf test.
29774         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
29775         whether truncl works.
29776         Reported by Rainer Tammer.
29777
29778 2010-07-30  Bruno Haible  <bruno@clisp.org>
29779
29780         round: Update regarding AIX.
29781         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
29782         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
29783         Reported by Rainer Tammer.
29784
29785 2010-07-30  Bruno Haible  <bruno@clisp.org>
29786
29787         rename: Update regarding AIX.
29788         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
29789         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
29790         Reported by Rainer Tammer.
29791
29792 2010-07-30  Bruno Haible  <bruno@clisp.org>
29793
29794         printf.m4: Update regarding AIX.
29795         * m4/printf.m4: Update comments regarding AIX.
29796         Reported by Rainer Tammer.
29797
29798 2010-07-30  Bruno Haible  <bruno@clisp.org>
29799
29800         iconv: Update regarding AIX.
29801         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
29802         AIX 7.
29803         Reported by Rainer Tammer.
29804
29805 2010-07-30  Bruno Haible  <bruno@clisp.org>
29806
29807         getopt: Update regarding AIX.
29808         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
29809         no on AIX.
29810         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
29811         Reported by Rainer Tammer.
29812
29813 2010-07-30  Bruno Haible  <bruno@clisp.org>
29814
29815         ldexpl; Update regarding AIX.
29816         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
29817         on AIX 7.
29818         Reported by Rainer Tammer.
29819
29820 2010-07-30  Bruno Haible  <bruno@clisp.org>
29821
29822         frexpl: Update regarding AIX.
29823         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
29824         on AIX 7.
29825         Reported by Rainer Tammer.
29826
29827 2010-07-30  Bruno Haible  <bruno@clisp.org>
29828
29829         open, fopen: Update regarding AIX.
29830         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
29831         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
29832         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
29833         * doc/posix-functions/fopen.texi: Likewise.
29834         Reported by Rainer Tammer.
29835
29836 2010-07-30  Bruno Haible  <bruno@clisp.org>
29837
29838         chown: Update doc regarding AIX.
29839         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
29840         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
29841         Reported by Rainer Tammer.
29842
29843 2010-07-30  Eric Blake  <eblake@redhat.com>
29844
29845         strtod: fix bug in replacement function on AIX
29846         * lib/strtod.c (strtod): Special case broken "0x" parse in
29847         underlying strtod.
29848         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
29849         * doc/posix-functions/strtod.texi (strtod): Likewise.
29850         Reported by Rainer Tammer.
29851
29852 2010-07-30  Bruno Haible  <bruno@clisp.org>
29853
29854         mbrlen: Fix cross-compilation guess for AIX.
29855         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
29856         guess. Leftover from 2008-12-22.
29857
29858 2010-07-30  Bruno Haible  <bruno@clisp.org>
29859
29860         mbrtowc: Fix cross-compilation guess for AIX.
29861         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
29862         guess. Leftover from 2008-12-21.
29863
29864 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
29865
29866         init.sh: work around trap limitation of some shells
29867         * tests/init.sh (setup_): Move exit trap outside of shell function.
29868
29869 2010-07-29  Eric Blake  <eblake@redhat.com>
29870
29871         strtod: aid debugging
29872         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
29873         understanding why strtod is rejected.
29874
29875 2010-07-28  Bruno Haible  <bruno@clisp.org>
29876
29877         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
29878         * lib/unistr/u8-chr.c: Include <string.h>.
29879         * tests/unistr/test-u8-chr.c: Likewise.
29880         * tests/unistr/test-u16-chr.c: Likewise.
29881         * tests/unistr/test-u32-chr.c: Likewise.
29882         * tests/unistr/test-u8-strchr.c: Likewise.
29883         * tests/unistr/test-u16-strchr.c: Likewise.
29884         * tests/unistr/test-u32-strchr.c: Likewise.
29885         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
29886         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
29887         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
29888         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
29889
29890 2010-07-28  Bruno Haible  <bruno@clisp.org>
29891
29892         Use spaces for indentation, not tabs.
29893         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
29894
29895 2010-07-27  Bruno Haible  <bruno@clisp.org>
29896
29897         mbspcasecmp: Fix function specification.
29898         * lib/string.in.h (mbspcasecmp): Fix specification comment.
29899         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
29900         Reported by Eric Blake <eblake@redhat.com>.
29901
29902 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
29903
29904         timespec: use cast and not conditional, as truncation isn't possible
29905         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
29906         instead of a conditional.  Comment about the situation in more detail.
29907         This undoes most of the 2009-10-29 patch.
29908
29909 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
29910
29911         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
29912         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
29913         * lib/unistr/u8-strchr.c: Likewise.
29914         * modules/unistr/u8-chr: Depend on memchr.
29915
29916         unistr/u*-strchr: add tests
29917         * modules/unistr/u8-strchr-tests: New file.
29918         * modules/unistr/u16-strchr-tests: New file.
29919         * modules/unistr/u32-strchr-tests: New file.
29920         * tests/unistr/test-strchr.h: New file.
29921         * tests/unistr/test-u8-strchr.c: New file.
29922         * tests/unistr/test-u16-strchr.c: New file.
29923         * tests/unistr/test-u32-strchr.c: New file.
29924
29925         unistr/u*-chr: test multibyte sequences more
29926         * tests/unistr/test-chr.h: Do complete testing of the characters in the
29927         test vector.
29928         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
29929         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
29930         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
29931
29932         unistr/u*-chr: test multibyte sequences
29933         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
29934
29935         unistr/u*-chr: prepare for multibyte tests
29936         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
29937         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
29938         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
29939         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
29940         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
29941         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
29942
29943 2010-07-18  Bruno Haible  <bruno@clisp.org>
29944
29945         unistr/u8-strchr: Optimize non-ASCII argument case.
29946         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
29947         because the first byte often matches anyway.
29948         Reported by Pádraig Brady <P@draigbrady.com>.
29949
29950 2010-07-15  Karl Berry  <karl@gnu.org>
29951
29952         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
29953
29954 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
29955
29956         getcwd: on Solaris, work better if ancestors are inaccessible
29957         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
29958         buffer and size, try again with a large buffer.  This works better
29959         on Solaris, since its getcwd succeeds even if the path to the root
29960         is inaccessible, and this is helpful in common cases such as .zfs
29961         hidden directories.  Problem reported by J Chapman Flack in
29962         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
29963         Use system getcwd if it's declared, not merely if it's partly
29964         working; use the partly-working test only to avoid needless effort
29965         if the system getcwd fails.
29966         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
29967         comment that was already obsolete and is now even more obsolete.
29968         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
29969         now might call strdup.
29970
29971 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
29972
29973         pthread: Add enough so that coreutils/src/sort.c compiles.
29974         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
29975         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
29976         gnulib. Include <sched.h> and <time.h>, as per POSIX.
29977         Include <sys/types.h>, in case it defines pthread_t.
29978         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
29979         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
29980         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
29981         (pthread_rwlockattr_t, pthread_spinlock_t):
29982         New typedefs, if HAVE_PTHREAD_T is not defined.
29983         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
29984         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
29985         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
29986         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
29987         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
29988         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
29989         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
29990         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
29991         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
29992         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
29993         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
29994         New macros.
29995         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
29996         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
29997         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
29998         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
29999         (pthread_spin_unlock): New dummy functions.
30000         (pthread_create): Return EAGAIN; don't set errno.
30001         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
30002         require AC_C_INLINE.
30003         * modules/pthread (Depends-on): Add sched, time.
30004         (pthread.h): Use AM_V_GEN.
30005
30006 2010-07-13  Bruno Haible  <bruno@clisp.org>
30007
30008         striconveh: Don't malloc memory if the result buffer is sufficient.
30009         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
30010         buffer if its size is sufficient.
30011         Reported by Ludovic Courtès <ludo@gnu.org>.
30012
30013 2010-07-13  Bruno Haible  <bruno@clisp.org>
30014
30015         strtod: Add safety check.
30016         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
30017
30018 2010-07-12  Bruno Haible  <bruno@clisp.org>
30019
30020         Unify tests that set gl_cv_func_ldexpl_no_libm.
30021         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
30022         gl_FUNC_LDEXPL.
30023         (gl_FUNC_LDEXPL): Invoke it.
30024         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
30025
30026 2010-07-12  Bruno Haible  <bruno@clisp.org>
30027
30028         Unify tests that set gl_cv_func_ldexp_no_libm.
30029         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
30030         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
30031         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
30032         (configure.ac): Simply invoke gl_FUNC_LDEXP.
30033         * modules/strtod (Files): Add m4/ldexp.m4.
30034
30035 2010-07-12  Bruno Haible  <bruno@clisp.org>
30036
30037         Unify tests that set gl_cv_func_frexpl_no_libm.
30038         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
30039         gl_FUNC_FREXPL_NO_LIBM.
30040         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
30041         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
30042
30043 2010-07-12  Bruno Haible  <bruno@clisp.org>
30044
30045         Unify tests that set gl_cv_func_frexp_no_libm.
30046         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
30047         gl_FUNC_FREXP_NO_LIBM.
30048         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
30049         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
30050
30051 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
30052
30053         memcoll: clarify sizes versus lengths, document better, and tweak perf
30054         * lib/memcoll.c (strcoll_loop, memcoll0):
30055         Improve quality of descriptive comments.  Name variables
30056         consistently as to whether they are lengths (which do not include
30057         terminating null) versus sizes (which do).
30058         * lib/xmemcoll.c (xmemcoll0): Likewise.
30059         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
30060         returned when s1size == 0; this is easier to compile and saves
30061         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
30062
30063 2010-07-12  Bruno Haible  <bruno@clisp.org>
30064
30065         Tests for module '_Exit'.
30066         * modules/_Exit-tests: New file.
30067         * tests/test-_Exit.sh: New file.
30068         * tests/test-_Exit.c: New file.
30069
30070         New module '_Exit'.
30071         * lib/stdlib.in.h (__attribute__): New macro.
30072         (_Exit): New declaration.
30073         * lib/_Exit.c: New file.
30074         * m4/_Exit.m4: New file.
30075         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
30076         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
30077         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
30078         * modules/_Exit: New file.
30079         * tests/test-stdlib-c++.cc (_Exit): Check signature.
30080         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
30081
30082 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
30083
30084         strtod: make it more-accurate typically, and don't require libm
30085         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
30086         Include limits.h.  Don't include string.h.
30087         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
30088         (locale_isspace): New function, so that no casts are needed to
30089         check whether *s is a space.
30090         (ldexp): Provide an unused dummy if not available.
30091         (scale_radix_exp, parse_number, underlying_strtod): New functions.
30092         (strtod): Use them.  This implementation prefers to use the
30093         underlying strtod if available, falling back on our own code
30094         only to fix known bugs.  This is more likely to produce an
30095         accurate result.  Also, it avoids the use of libm functions.
30096         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
30097         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
30098         was absent, but it caused a test failure with coreutils.
30099         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
30100         with libm.
30101         * modules/strtod (Makefile.am, Link): libm is no longer needed.
30102         * modules/strtod-tests (Makefile.am): Likewise.
30103
30104 2010-07-11  Pádraig Brady  <P@draigBrady.com>
30105             Bruno Haible  <bruno@clisp.org>
30106
30107         unistr/u8-strchr: Optimize ASCII argument case.
30108         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
30109
30110 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
30111
30112         (x)memcoll: minor tweaks
30113         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
30114         is after the type that it qualifies.
30115         (memcoll0): Likewise.
30116         * lib/memcoll.h (memcoll0): Likewise.
30117         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
30118         * lib/xmemcoll.h (xmemcoll0): Likewise.
30119         * lib/memcoll.c (memcoll0): Correct the comment.  This function
30120         differs from memcoll in that the NUL byte is part of the argument.
30121         Omit the abort-checks, as performance is a real issue here.  Plus,
30122         the checks were wrong anyway (an off-by-one error).  Omit local
30123         variable 'diff', as it's a bit clearer that way.
30124         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
30125         no longer needed.
30126
30127 2010-07-08  Chen Guo <chenguo4@yahoo.com>
30128
30129         (x)memcoll: speedup when input is known to be NUL delimited
30130         * lib/memcoll.c: Include stdlib.
30131         (memcoll0): New function.
30132         (strcoll_loop): New function, refactored for use in both memcoll
30133         and memcoll0.
30134         * lib/memcoll.h (memcoll0): Add prototype.
30135         * lib/xmemcoll.c (xmemcoll0): New function.
30136         (collate_error): New function, refactored for use in both xmemcoll
30137         and xmemcoll0.
30138         * lib/xmemcoll.h (xmemcoll0): Add prototype.
30139         * m4/memcoll.m4: add inline invocation.
30140
30141 2010-07-06  Pádraig Brady  <P@draigBrady.com>
30142
30143         * build-aux/bootstrap: Remove any local translations
30144         from the translation project synchronization directory,
30145         so that local only translations are not distributed.
30146
30147 2010-07-04  Bruno Haible  <bruno@clisp.org>
30148
30149         fsusage: Clarify which code applies to which platforms.
30150         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
30151         platform.
30152         * lib/fsusage.c (get_fs_usage): Likewise.
30153
30154 2010-07-04  Bruno Haible  <bruno@clisp.org>
30155
30156         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
30157         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
30158         Reported by Martin Lambers <marlam@marlam.de>.
30159
30160 2010-07-04  Jim Meyering  <meyering@redhat.com>
30161
30162         hash: once again explicitly disallow insertion of NULL
30163         * lib/hash.c (hash_insert0): Reinstate just-removed test:
30164         inserting a NULL pointer cannot work with these functions.
30165         Add a comment with details.
30166         This reverts part of the 2010-07-01 commit, 5bef1a35
30167         "hash: extend module to deal with non-pointer keys".
30168
30169 2010-07-01  Bruno Haible  <bruno@clisp.org>
30170
30171         stdbool: Update doc.
30172         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
30173         Info from Christian Weisgerber <naddy@mips.inka.de>.
30174
30175 2010-07-01  Jim Meyering  <meyering@redhat.com>
30176
30177         hash: extend module to deal with non-pointer keys
30178         * lib/hash.c (hash_insert0): New interface, much like hash_insert
30179         but that allows insertion of non-pointer entries.
30180         Do not disallow an ENTRY value of NULL.
30181         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
30182         * lib/hash.h (hash_insert0): Declare.
30183
30184 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
30185
30186         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
30187         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
30188         not present (i.e. with autoconf 2.59 and when using gettextize, not
30189         gnulib), require AC_GNU_SOURCE instead.
30190
30191 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
30192
30193         idpriv-drop: Fix tests.
30194         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
30195         not to the test-idpriv-droptemp program.
30196
30197 2010-06-29  Bruno Haible  <bruno@clisp.org>
30198
30199         string: Fix syntax error with g++ 2.96.
30200         * lib/string.in.h (__pure__): Remove definition.
30201         (_GL_ATTRIBUTE_PURE): New macro.
30202         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
30203         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
30204         Reported by Christian Weisgerber <naddy@mips.inka.de>.
30205
30206 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
30207
30208         unitypes: Fix bug introduced on 2010-05-18.
30209         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
30210
30211 2010-06-22  Eric Blake  <eblake@redhat.com>
30212
30213         memmem: slight optimization
30214         * lib/str-two-way.h (critical_factorization): Update comments.
30215         Reduce work during factorization phase.
30216         Reported by Carlos Bueno <carlos@bueno.org>.
30217
30218 2010-06-21  Bruno Haible  <bruno@clisp.org>
30219
30220         Fix HAVE_CALLOC_POSIX misnomer.
30221         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
30222         !HAVE_CALLOC_POSIX.
30223         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
30224         HAVE_CALLOC_POSIX.
30225         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
30226         instead of HAVE_CALLOC_POSIX.
30227         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
30228         HAVE_CALLOC_POSIX.
30229
30230         Use modern idiom for calloc() replacement.
30231         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
30232         AC_FUNC_CALLOC.
30233         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
30234         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
30235         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
30236         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
30237         (gl_REPLACE_CALLOC): New macro.
30238
30239 2010-06-21  Bruno Haible  <bruno@clisp.org>
30240
30241         Fix HAVE_REALLOC_POSIX misnomer.
30242         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
30243         !HAVE_REALLOC_POSIX.
30244         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
30245         HAVE_REALLOC_POSIX.
30246         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
30247         instead of HAVE_REALLOC_POSIX.
30248         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
30249         HAVE_REALLOC_POSIX.
30250
30251         Use modern idiom for realloc() replacement.
30252         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
30253         AC_FUNC_REALLOC.
30254         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
30255         Autoconf's AC_FUNC_REALLOC.
30256         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
30257         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
30258         (gl_REPLACE_REALLOC): New macro.
30259         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
30260
30261 2010-06-21  Bruno Haible  <bruno@clisp.org>
30262
30263         Fix HAVE_MALLOC_POSIX misnomer.
30264         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
30265         !HAVE_MALLOC_POSIX.
30266         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
30267         HAVE_MALLOC_POSIX.
30268         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
30269         instead of HAVE_MALLOC_POSIX.
30270         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
30271         HAVE_MALLOC_POSIX.
30272
30273         Use modern idiom for malloc() replacement.
30274         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
30275         AC_FUNC_MALLOC.
30276         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
30277         Autoconf's AC_FUNC_MALLOC.
30278         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
30279         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
30280         (gl_REPLACE_MALLOC): New macro.
30281         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
30282
30283 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
30284
30285         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
30286         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
30287         This macro takes 3 arguments, not 4.
30288
30289 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
30290
30291         ipv6: fix detection under mingw
30292         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
30293         in6_addr.
30294
30295 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
30296
30297         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
30298         that strtod() works when cross-compiling to a glibc version known
30299         to work.
30300
30301 2010-06-15  Bruno Haible  <bruno@clisp.org>
30302
30303         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
30304
30305 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
30306
30307         select: Correct timeout.
30308         * lib/select.c (rpl_select): Compute wait_timeout correctly.
30309
30310 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
30311
30312         git-version-gen: init shell var to avoid env var influence
30313         * build-aux/git-version-gen (v): Init shell var to empty.
30314
30315 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
30316
30317         priv-set: Don't assume that priv.h exists merely because getppriv does.
30318         See Jan Andersen's bug report about AIX 5L in
30319         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
30320         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
30321         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
30322         * lib/priv-set.h: Likewise.
30323         * tests/test-priv-set.c: Likewise.
30324
30325 2010-06-13  Bruno Haible  <bruno@clisp.org>
30326
30327         relocatable: Make it easier to test whether to install wrappers.
30328         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
30329         RELOCATABLE_VIA_WRAPPER.
30330
30331 2010-06-13  Bruno Haible  <bruno@clisp.org>
30332
30333         gnulib-tool: Display specified modules and dependencies differently.
30334         * gnulib-tool (func_show_module_list): New function.
30335         (func_import, func_create_testdir): Invoke it.
30336         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
30337
30338 2010-06-13  Bruno Haible  <bruno@clisp.org>
30339
30340         gnulib-tool: Align code of func_import and func_create_testdir.
30341         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
30342         specified_modules.
30343
30344 2010-06-12  Jim Meyering  <meyering@redhat.com>
30345
30346         test-inttostr: avoid spurious failure on Solaris 9
30347         * tests/test-inttostr.c (main): Skip the test when snprintf fails
30348         to accept "%ju".  Reported by Bruno Haible.
30349
30350 2010-06-11  Jim Meyering  <meyering@redhat.com>
30351
30352         test-sys_socket: mark variables as used more readably
30353         * tests/test-sys_socket.c (main): Mark otherwise unused variables
30354         as "used" explicitly via (void) statement casts.  This is more
30355         readable than using them in an artificial return expression.
30356         Suggestion from Bruno Haible.
30357
30358 2010-06-11  Bruno Haible  <bruno@clisp.org>
30359
30360         Avoid some more warnings from "gcc -Wwrite-strings".
30361         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
30362         to 'const char *'.
30363         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
30364         * tests/test-c-strcasestr.c (main): Likewise.
30365         * tests/test-mbscasestr1.c (main): Likewise.
30366         * tests/test-mbscasestr2.c (main): Likewise.
30367         * tests/test-memmem.c (main): Likewise.
30368         * tests/test-strstr.c (main): Likewise.
30369         * tests/test-strcasestr.c (main): Likewise.
30370
30371 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30372
30373         init.sh: change framework_failure_ to fail with status 99, not 1
30374         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
30375         automake's parallel-tests rule that this is an unexpected failure,
30376         even if the test is listed in XFAIL_TESTS.
30377
30378 2010-06-11  Jim Meyering  <meyering@redhat.com>
30379
30380         test-inttostr: avoid warnings about 4-6KB literal strings
30381         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
30382         Include "macros.h", for its definition of ASSERT.
30383         (CK): s/assert/ASSERT/
30384         * modules/inttostr-tests (Files): Add macros.h.
30385
30386         init.sh: don't use $ME_ or skip_ before they are defined
30387         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
30388         their first uses.  Also hoist their companions: warn_, fail_,
30389         framework_failure_, $stderr_fileno.  Prompted by a patch from
30390         Stefano Lattarini.
30391
30392         test-sys_socket: avoid set-but-not-used warnings from gcc
30393         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
30394         avoid warning about set-but-not-used variables.
30395
30396         test-xvasprintf: avoid 'const' discard warnings
30397         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
30398         "const" when assigning from literal strings.
30399         (test_xasprintf): Add "void" in function argument list to placate
30400         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
30401
30402         tests: avoid compilation warnings in argmatch and exclude tests...
30403         in packages that define ARGMATCH_DIE_DECL, like coreutils.
30404         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
30405         Since it always exits, declare with the "noreturn" attribute.
30406         * tests/test-argmatch.c: Likewise.
30407
30408         tests: avoid 'const' discard warnings in mbsstr tests
30409         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
30410         * tests/test-mbsstr2.c (main): Likewise.
30411
30412         test-verify: avoid warning from gcc's -Wmissing-declarations
30413         * tests/test-verify.c (function): Declare to be static.
30414
30415         test-inttostr.c: include <string.h> for use of strcmp
30416         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
30417
30418         test-linkat: avoid failed assertion on "other" architectures
30419         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
30420         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
30421         sparc: https://bugs.launchpad.net/bugs/591968
30422
30423 2010-06-11  Jim Meyering  <meyering@redhat.com>
30424
30425         printf.m4: avoid autoconf's "Expanded Before Required" warning
30426         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
30427         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
30428         autoconf warning.
30429
30430 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
30431
30432         Replacement header templates are now named with ".in", not "_".
30433         * doc/gnulib-intro.texi: Correct.
30434
30435 2010-06-10  Jim Meyering  <meyering@redhat.com>
30436
30437         inttostr-tests: depend on snprintf, not snprintf-posix
30438         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
30439         snprintf-posix, to avoid this aclocal failure:
30440           missing file gnulib-tests/vasnprintf.c
30441           configure.ac:45: error: expected source file, required through \
30442           AC_LIBSOURCES, not found
30443
30444 2010-06-10  Jim Meyering  <meyering@redhat.com>
30445
30446         inttostr: add a new function, inttostr, and tests
30447         The namesake function was not available.  The existence of the
30448         template file, inttostr.c makes its addition nontrivial.
30449         * lib/anytostr.c: Rename from inttostr.c.
30450         (anytostr): Rename from inttostr.
30451         * lib/inttostr.c: New file.
30452         * modules/inttostr (Files): Add anytostr.c.
30453         (Makefile.am): Set lib_SOURCES instead of ...
30454         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
30455         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
30456         * lib/offtostr.c: Likewise.
30457         * lib/uinttostr.c: Likewise.
30458         * lib/umaxtostr.c: Likewise.
30459         * modules/inttostr-tests: New file.
30460         * tests/test-inttostr.c: New file.  Test these functions.
30461
30462 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
30463             Bruno Haible  <bruno@clisp.org>
30464
30465         Add "Extending Gnulib" chapter to manual.
30466         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
30467         chapter.
30468         (Extending Gnulib): New chapter.
30469         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
30470         chapter.
30471
30472 2010-06-09  Bruno Haible  <bruno@clisp.org>
30473
30474         Avoid relocwrapper link errors due to gnulib replacement functions.
30475         * lib/areadlink.c: Use the system's malloc, realloc functions.
30476         (areadlink): Set errno to ENOMEM explicitly.
30477         * modules/areadlink (Depends-on): Remove malloc-posix.
30478         Reported by Ben Pfaff <blp@cs.stanford.edu>.
30479
30480 2010-06-09  Bruno Haible  <bruno@clisp.org>
30481
30482         Avoid relocwrapper link errors due to gnulib replacement functions.
30483         * lib/canonicalize-lgpl.c: Use the system's malloc function.
30484         * lib/malloca.c: Likewise.
30485         * lib/relocatable.c: Likewise.
30486         * lib/progreloc.c: Use the system's malloc, sprintf functions.
30487         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
30488         * lib/setenv.c: Use the system's malloc, realloc functions.
30489         * lib/strerror.c: Use the system's sprintf function.
30490         Reported by Ben Pfaff <blp@cs.stanford.edu>.
30491
30492 2010-06-04  Bruno Haible  <bruno@clisp.org>
30493
30494         Prefer documented low-level autoconf macro names.
30495         * m4/lib-link.m4: Use m4_translit instead of translit.
30496         * m4/environ.m4: Likewise.
30497         * m4/mathfunc.m4: Likewise.
30498         * m4/onceonly.m4: Likewise.
30499         * m4/stdint.m4: Likewise.
30500         Suggested by Eric Blake.
30501
30502 2010-06-04  Martin Lambers  <marlam@marlam.de>
30503             Bruno Haible  <bruno@clisp.org>
30504
30505         havelib: Allow library names with '+' characters.
30506         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
30507         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
30508
30509 2010-06-09  Bruno Haible  <bruno@clisp.org>
30510
30511         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
30512         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
30513         realloc failed.
30514
30515 2010-06-08  Peter Simons  <simons@cryp.to>
30516
30517         maint.mk: make the news-check rule more configurable
30518         * top/maint.mk (news-check-lines-spec): New variable.
30519         (news-check): Use "sed -n 1,10p" in place of "head".
30520
30521 2010-06-07  Jim Meyering  <meyering@redhat.com>
30522
30523         do-release-commit-and-tag: fix typo in --help
30524         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
30525
30526         regex: avoid new dead-code warning with gcc-4.6.0
30527         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
30528         if-block containing a while-loop.  It's been unused for at least
30529         5 years.
30530
30531 2010-06-05  Bruno Haible  <bruno@clisp.org>
30532
30533         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
30534         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
30535
30536 2010-06-04  Bruno Haible  <bruno@clisp.org>
30537
30538         Update to GNU gettext 0.18.1.
30539         * modules/gettext (configure.ac): Require gettext infrastructure from
30540         version 0.18.1.
30541
30542 2010-06-03  Bruno Haible  <bruno@clisp.org>
30543
30544         Don't use AC_LIBOBJ with file names in subdirectories.
30545         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
30546         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
30547         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
30548         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
30549         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
30550         gl_LIBUNISTRING_LIBSOURCE.
30551         (Makefile.am): Augment lib_SOURCES here, conditionally.
30552         * NEWS: Drop requirement for Automake option 'subdir-objects'.
30553
30554 2010-06-03  Bruno Haible  <bruno@clisp.org>
30555
30556         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
30557         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
30558         expansion does not end with a newline.
30559         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
30560         unnecessary newline.
30561
30562 2010-06-03  Bruno Haible  <bruno@clisp.org>
30563
30564         Reduce dependencies.
30565         * tests/test-quotearg.h: New file, extracted from
30566         tests/test-quotearg.c.
30567         * tests/test-quotearg-simple.c: New file, extracted from
30568         tests/test-quotearg.c.
30569         * tests/test-quotearg.c: Don't include <ctype.h>.
30570         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
30571         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
30572         use_quote_double_quotes, use_quotearg_colon): Moved to
30573         tests/test-quotearg.h.
30574         (results_g, flag_results, custom_quotes, custom_results): Moved
30575         to tests/test-quotearg-simple.c.
30576         (main): Moved the part that does not depend on gettext to
30577         tests/test-quotearg-simple.c. Return 77 if the test cannot be
30578         performed.
30579         * modules/quotearg-simple: New file.
30580         * modules/quotearg-simple-tests: New file.
30581         * modules/quotearg (Depends-on): Add quotearg-simple.
30582         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
30583         (Files): Add tests/test-quotearg.h.
30584         Reported by Paolo Bonzini.
30585
30586 2010-06-03  Bruno Haible  <bruno@clisp.org>
30587
30588         Reduce dependencies.
30589         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
30590
30591 2010-06-03  Bruno Haible  <bruno@clisp.org>
30592
30593         time: Undefine more broken macros.
30594         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
30595         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
30596         Reported by Eric Blake.
30597
30598 2010-06-03  Bruno Haible  <bruno@clisp.org>
30599
30600         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
30601         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
30602         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
30603         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
30604         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
30605         Reported by Ludovic Courtès <ludo@gnu.org>.
30606
30607 2010-06-02  Eric Blake  <eblake@redhat.com>
30608
30609         time: work with mingw + pthreads-win32 library
30610         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
30611         if timespec is defined only in pthread.h.
30612         * modules/time (Makefile.am): Substitute it.
30613         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
30614         <pthread.h>, when needed.
30615         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
30616         from the library.
30617
30618 2010-05-31  Bruno Haible  <bruno@clisp.org>
30619
30620         Avoid expanding two macros in the wrong order.
30621         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
30622         gl_LIBUNISTRING if it is defined.
30623         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
30624         autoconf >= 2.64.
30625         Reported by Ludovic Courtès <ludo@gnu.org>.
30626
30627 2010-05-27  Jim Meyering  <meyering@redhat.com>
30628
30629         maint.mk: also prohibit "#undef" of always-defined symbols
30630         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
30631         Allow more than one space before the symbol name.
30632         (sc_prohibit_always-defined_macros): Use grep's -E, now that
30633         the regexp uses alternation.
30634
30635 2010-05-26  Eric Blake  <eblake@redhat.com>
30636
30637         maint.mk: avoid echo -e
30638         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
30639         Convert all uses of echo -* to printf.
30640         Reported by Matthias Bolte.
30641
30642 2010-05-25  Bruno Haible  <bruno@clisp.org>
30643
30644         Update to GNU gettext 0.18, part 2.
30645         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
30646         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
30647
30648 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30649
30650         Add missing include in test-pwrite.c.
30651         * tests/test-pwrite.c: Include string.h, for strcmp.
30652
30653 2010-05-24  Bruno Haible  <bruno@clisp.org>
30654
30655         * NEWS: Mention requirement for Automake option 'subdir-objects'.
30656
30657 2010-05-24  Bruno Haible  <bruno@clisp.org>
30658
30659         Don't use conversion with transliteration in u{8,16,32}_strcoll.
30660         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
30661         iconveh_error argument.
30662         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
30663         U_STRCONV_TO_LOCALE.
30664         * lib/unistr/u16-strcoll.c: Likewise.
30665         * lib/unistr/u32-strcoll.c: Likewise.
30666         * modules/unistr/u8-strcoll (Depends-on): Add
30667         uniconv/u8-strconv-to-enc, localcharset. Remove
30668         uniconv/u8-strconv-to-locale.
30669         (configure.ac): Bump version number.
30670         * modules/unistr/u16-strcoll (Depends-on): Add
30671         uniconv/u16-strconv-to-enc, localcharset. Remove
30672         uniconv/u16-strconv-to-locale.
30673         (configure.ac): Bump version number.
30674         * modules/unistr/u32-strcoll (Depends-on): Add
30675         uniconv/u32-strconv-to-enc, localcharset. Remove
30676         uniconv/u32-strconv-to-locale.
30677         (configure.ac): Bump version number.
30678
30679 2010-05-24  Bruno Haible  <bruno@clisp.org>
30680
30681         Avoid a test failure on NetBSD 5.0.
30682         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
30683         an iconv() bug.
30684
30685 2010-05-24  Bruno Haible  <bruno@clisp.org>
30686
30687         Adjust #include directive style.
30688         * modules/regex (Includes): Recommend to write <regex.h>.
30689
30690 2010-05-24  Bruno Haible  <bruno@clisp.org>
30691
30692         regex: Don't require alloca.
30693         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
30694         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
30695         only inside if (0).
30696
30697 2010-05-23  Jim Meyering  <meyering@redhat.com>
30698
30699         test-renameat.c: include <sys/stat.h>
30700         * tests/test-renameat.c: Include <sys/stat.h>; required for
30701         definition of S_IS* macros.
30702
30703 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
30704
30705         Update maintainer documentation for 'relocatable-prog' module.
30706         * doc/relocatable-maint.texi: Update.
30707         Comments by Bruno Haible.
30708
30709 2010-05-23  Bruno Haible  <bruno@clisp.org>
30710
30711         git-merge-changelog: Enable --split-merged-entry by default.
30712         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
30713         (usage): Don't mention this option any more.
30714         Reported by Ralf Wildenhues.
30715
30716 2010-05-23  Jim Meyering  <meyering@redhat.com>
30717
30718         test-pwrite: do not leave behind a test file named "out"
30719         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
30720         The trivial-looking use of init.sh is really necessary.
30721         It ensures that the temporary file, "out", is created in
30722         a temporary directory, and removed upon termination.
30723         * tests/test-pwrite.sh: Re-add file.
30724         * modules/pwrite-tests: Reference it.
30725
30726 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30727
30728         Fix output redirection buglet in init.sh.
30729         * tests/init.sh: Fix redirection of stderr.
30730
30731 2010-05-20  Simon Josefsson  <simon@josefsson.org>
30732
30733         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
30734
30735 2010-05-17  Simon Josefsson  <simon@josefsson.org>
30736
30737         * modules/valgrind-tests: New file.
30738         * m4/valgrind-tests.m4: New file.
30739         * doc/valgrind-tests.texi: New file.
30740         * doc/gnulib.texi (Running self-tests under valgrind): New
30741         section.
30742
30743 2010-05-19  Bruno Haible  <bruno@clisp.org>
30744
30745         Clean up dead code in recent commit.
30746         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
30747         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
30748         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
30749         Suggested by Paolo Bonzini.
30750
30751 2010-05-19  Bruno Haible  <bruno@clisp.org>
30752
30753         Avoid valgrind error reports from libunistring.
30754         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
30755         * modules/libunistring (Files): Add it.
30756         * modules/libunistring-optional (Files): Likewise.
30757
30758 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
30759             Bruno Haible  <bruno@clisp.org>
30760
30761         New module 'libunistring-optional'.
30762         * modules/libunistring-optional: New file.
30763         * m4/libunistring-base.m4: New file.
30764         * m4/libunistring-optional.m4: New file.
30765         * lib/unicase.in.h: Renamed from lib/unicase.h.
30766         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
30767         * lib/unictype.in.h: Renamed from lib/unictype.h.
30768         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
30769         * lib/uniname.in.h: Renamed from lib/uniname.h.
30770         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
30771         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
30772         * lib/unistr.in.h: Renamed from lib/unistr.h.
30773         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
30774         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
30775         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
30776         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
30777         gl_LIBUNISTRING. If the library was found, determine the installed
30778         version and set LIBUNISTRING_VERSION.
30779         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
30780         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
30781         handle a configuration option --with-included-libunistring.
30782         * modules/libunistring (Files): Add m4/absolute-header.m4.
30783         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
30784         Add m4/libunistring-base.m4.
30785         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
30786         (Makefile.am): Build unicase.h from unicase.in.h.
30787         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
30788         Add m4/libunistring-base.m4.
30789         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
30790         (Makefile.am): Build uniconv.h from uniconv.in.h.
30791         * modules/unictype/base (Files): Use unictype.in.h instead of
30792         unictype.h. Add m4/libunistring-base.m4.
30793         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
30794         (Makefile.am): Build unictype.h from unictype.in.h.
30795         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
30796         Add m4/libunistring-base.m4.
30797         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
30798         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
30799         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
30800         Add m4/libunistring-base.m4.
30801         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
30802         (Makefile.am): Build uniname.h from uniname.in.h.
30803         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
30804         Add m4/libunistring-base.m4.
30805         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
30806         (Makefile.am): Build uninorm.h from uninorm.in.h.
30807         * modules/unistdio/base (Files): Use unistdio.in.h instead of
30808         unistdio.h. Add m4/libunistring-base.m4.
30809         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
30810         (Makefile.am): Build unistdio.h from unistdio.in.h.
30811         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
30812         Add m4/libunistring-base.m4.
30813         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
30814         (Makefile.am): Build unistr.h from unistr.in.h.
30815         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
30816         Add m4/libunistring-base.m4.
30817         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
30818         (Makefile.am): Build unitypes.h from unitypes.in.h.
30819         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
30820         Add m4/libunistring-base.m4.
30821         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
30822         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
30823         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
30824         uniwidth.h. Add m4/libunistring-base.m4.
30825         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
30826         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
30827         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
30828         instead of augmenting lib_SOURCES.
30829         * modules/unicase/empty-suffix-context: Likewise.
30830         * modules/unicase/locale-language: Likewise.
30831         * modules/unicase/tolower: Likewise.
30832         * modules/unicase/totitle: Likewise.
30833         * modules/unicase/toupper: Likewise.
30834         * modules/unicase/u8-casecmp: Likewise.
30835         * modules/unicase/u8-casecoll: Likewise.
30836         * modules/unicase/u8-casefold: Likewise.
30837         * modules/unicase/u8-casexfrm: Likewise.
30838         * modules/unicase/u8-ct-casefold: Likewise.
30839         * modules/unicase/u8-ct-tolower: Likewise.
30840         * modules/unicase/u8-ct-totitle: Likewise.
30841         * modules/unicase/u8-ct-toupper: Likewise.
30842         * modules/unicase/u8-is-cased: Likewise.
30843         * modules/unicase/u8-is-casefolded: Likewise.
30844         * modules/unicase/u8-is-lowercase: Likewise.
30845         * modules/unicase/u8-is-titlecase: Likewise.
30846         * modules/unicase/u8-is-uppercase: Likewise.
30847         * modules/unicase/u8-prefix-context: Likewise.
30848         * modules/unicase/u8-suffix-context: Likewise.
30849         * modules/unicase/u8-tolower: Likewise.
30850         * modules/unicase/u8-totitle: Likewise.
30851         * modules/unicase/u8-toupper: Likewise.
30852         * modules/unicase/u16-casecmp: Likewise.
30853         * modules/unicase/u16-casecoll: Likewise.
30854         * modules/unicase/u16-casefold: Likewise.
30855         * modules/unicase/u16-casexfrm: Likewise.
30856         * modules/unicase/u16-ct-casefold: Likewise.
30857         * modules/unicase/u16-ct-tolower: Likewise.
30858         * modules/unicase/u16-ct-totitle: Likewise.
30859         * modules/unicase/u16-ct-toupper: Likewise.
30860         * modules/unicase/u16-is-cased: Likewise.
30861         * modules/unicase/u16-is-casefolded: Likewise.
30862         * modules/unicase/u16-is-lowercase: Likewise.
30863         * modules/unicase/u16-is-titlecase: Likewise.
30864         * modules/unicase/u16-is-uppercase: Likewise.
30865         * modules/unicase/u16-prefix-context: Likewise.
30866         * modules/unicase/u16-suffix-context: Likewise.
30867         * modules/unicase/u16-tolower: Likewise.
30868         * modules/unicase/u16-totitle: Likewise.
30869         * modules/unicase/u16-toupper: Likewise.
30870         * modules/unicase/u32-casecmp: Likewise.
30871         * modules/unicase/u32-casecoll: Likewise.
30872         * modules/unicase/u32-casefold: Likewise.
30873         * modules/unicase/u32-casexfrm: Likewise.
30874         * modules/unicase/u32-ct-casefold: Likewise.
30875         * modules/unicase/u32-ct-tolower: Likewise.
30876         * modules/unicase/u32-ct-totitle: Likewise.
30877         * modules/unicase/u32-ct-toupper: Likewise.
30878         * modules/unicase/u32-is-cased: Likewise.
30879         * modules/unicase/u32-is-casefolded: Likewise.
30880         * modules/unicase/u32-is-lowercase: Likewise.
30881         * modules/unicase/u32-is-titlecase: Likewise.
30882         * modules/unicase/u32-is-uppercase: Likewise.
30883         * modules/unicase/u32-prefix-context: Likewise.
30884         * modules/unicase/u32-suffix-context: Likewise.
30885         * modules/unicase/u32-tolower: Likewise.
30886         * modules/unicase/u32-totitle: Likewise.
30887         * modules/unicase/u32-toupper: Likewise.
30888         * modules/unicase/ulc-casecmp: Likewise.
30889         * modules/unicase/ulc-casecoll: Likewise.
30890         * modules/unicase/ulc-casexfrm: Likewise.
30891         * modules/uniconv/u8-conv-from-enc: Likewise.
30892         * modules/uniconv/u8-conv-to-enc: Likewise.
30893         * modules/uniconv/u8-strconv-from-enc: Likewise.
30894         * modules/uniconv/u8-strconv-from-locale: Likewise.
30895         * modules/uniconv/u8-strconv-to-enc: Likewise.
30896         * modules/uniconv/u8-strconv-to-locale: Likewise.
30897         * modules/uniconv/u16-conv-from-enc: Likewise.
30898         * modules/uniconv/u16-conv-to-enc: Likewise.
30899         * modules/uniconv/u16-strconv-from-enc: Likewise.
30900         * modules/uniconv/u16-strconv-from-locale: Likewise.
30901         * modules/uniconv/u16-strconv-to-enc: Likewise.
30902         * modules/uniconv/u16-strconv-to-locale: Likewise.
30903         * modules/uniconv/u32-conv-from-enc: Likewise.
30904         * modules/uniconv/u32-conv-to-enc: Likewise.
30905         * modules/uniconv/u32-strconv-from-enc: Likewise.
30906         * modules/uniconv/u32-strconv-from-locale: Likewise.
30907         * modules/uniconv/u32-strconv-to-enc: Likewise.
30908         * modules/uniconv/u32-strconv-to-locale: Likewise.
30909         * modules/unictype/bidicategory-byname: Likewise.
30910         * modules/unictype/bidicategory-name: Likewise.
30911         * modules/unictype/bidicategory-of: Likewise.
30912         * modules/unictype/bidicategory-test: Likewise.
30913         * modules/unictype/block-list: Likewise.
30914         * modules/unictype/block-test: Likewise.
30915         * modules/unictype/category-C: Likewise.
30916         * modules/unictype/category-Cc: Likewise.
30917         * modules/unictype/category-Cf: Likewise.
30918         * modules/unictype/category-Cn: Likewise.
30919         * modules/unictype/category-Co: Likewise.
30920         * modules/unictype/category-Cs: Likewise.
30921         * modules/unictype/category-L: Likewise.
30922         * modules/unictype/category-Ll: Likewise.
30923         * modules/unictype/category-Lm: Likewise.
30924         * modules/unictype/category-Lo: Likewise.
30925         * modules/unictype/category-Lt: Likewise.
30926         * modules/unictype/category-Lu: Likewise.
30927         * modules/unictype/category-M: Likewise.
30928         * modules/unictype/category-Mc: Likewise.
30929         * modules/unictype/category-Me: Likewise.
30930         * modules/unictype/category-Mn: Likewise.
30931         * modules/unictype/category-N: Likewise.
30932         * modules/unictype/category-Nd: Likewise.
30933         * modules/unictype/category-Nl: Likewise.
30934         * modules/unictype/category-No: Likewise.
30935         * modules/unictype/category-P: Likewise.
30936         * modules/unictype/category-Pc: Likewise.
30937         * modules/unictype/category-Pd: Likewise.
30938         * modules/unictype/category-Pe: Likewise.
30939         * modules/unictype/category-Pf: Likewise.
30940         * modules/unictype/category-Pi: Likewise.
30941         * modules/unictype/category-Po: Likewise.
30942         * modules/unictype/category-Ps: Likewise.
30943         * modules/unictype/category-S: Likewise.
30944         * modules/unictype/category-Sc: Likewise.
30945         * modules/unictype/category-Sk: Likewise.
30946         * modules/unictype/category-Sm: Likewise.
30947         * modules/unictype/category-So: Likewise.
30948         * modules/unictype/category-Z: Likewise.
30949         * modules/unictype/category-Zl: Likewise.
30950         * modules/unictype/category-Zp: Likewise.
30951         * modules/unictype/category-Zs: Likewise.
30952         * modules/unictype/category-and: Likewise.
30953         * modules/unictype/category-and-not: Likewise.
30954         * modules/unictype/category-byname: Likewise.
30955         * modules/unictype/category-name: Likewise.
30956         * modules/unictype/category-none: Likewise.
30957         * modules/unictype/category-of: Likewise.
30958         * modules/unictype/category-or: Likewise.
30959         * modules/unictype/category-test: Likewise.
30960         * modules/unictype/combining-class: Likewise.
30961         * modules/unictype/ctype-alnum: Likewise.
30962         * modules/unictype/ctype-alpha: Likewise.
30963         * modules/unictype/ctype-blank: Likewise.
30964         * modules/unictype/ctype-cntrl: Likewise.
30965         * modules/unictype/ctype-digit: Likewise.
30966         * modules/unictype/ctype-graph: Likewise.
30967         * modules/unictype/ctype-lower: Likewise.
30968         * modules/unictype/ctype-print: Likewise.
30969         * modules/unictype/ctype-punct: Likewise.
30970         * modules/unictype/ctype-space: Likewise.
30971         * modules/unictype/ctype-upper: Likewise.
30972         * modules/unictype/ctype-xdigit: Likewise.
30973         * modules/unictype/decimal-digit: Likewise.
30974         * modules/unictype/digit: Likewise.
30975         * modules/unictype/mirror: Likewise.
30976         * modules/unictype/numeric: Likewise.
30977         * modules/unictype/property-alphabetic: Likewise.
30978         * modules/unictype/property-ascii-hex-digit: Likewise.
30979         * modules/unictype/property-bidi-arabic-digit: Likewise.
30980         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
30981         * modules/unictype/property-bidi-block-separator: Likewise.
30982         * modules/unictype/property-bidi-boundary-neutral: Likewise.
30983         * modules/unictype/property-bidi-common-separator: Likewise.
30984         * modules/unictype/property-bidi-control: Likewise.
30985         * modules/unictype/property-bidi-embedding-or-override: Likewise.
30986         * modules/unictype/property-bidi-eur-num-separator: Likewise.
30987         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
30988         * modules/unictype/property-bidi-european-digit: Likewise.
30989         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
30990         * modules/unictype/property-bidi-left-to-right: Likewise.
30991         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
30992         * modules/unictype/property-bidi-other-neutral: Likewise.
30993         * modules/unictype/property-bidi-pdf: Likewise.
30994         * modules/unictype/property-bidi-segment-separator: Likewise.
30995         * modules/unictype/property-bidi-whitespace: Likewise.
30996         * modules/unictype/property-byname: Likewise.
30997         * modules/unictype/property-combining: Likewise.
30998         * modules/unictype/property-composite: Likewise.
30999         * modules/unictype/property-currency-symbol: Likewise.
31000         * modules/unictype/property-dash: Likewise.
31001         * modules/unictype/property-decimal-digit: Likewise.
31002         * modules/unictype/property-default-ignorable-code-point: Likewise.
31003         * modules/unictype/property-deprecated: Likewise.
31004         * modules/unictype/property-diacritic: Likewise.
31005         * modules/unictype/property-extender: Likewise.
31006         * modules/unictype/property-format-control: Likewise.
31007         * modules/unictype/property-grapheme-base: Likewise.
31008         * modules/unictype/property-grapheme-extend: Likewise.
31009         * modules/unictype/property-grapheme-link: Likewise.
31010         * modules/unictype/property-hex-digit: Likewise.
31011         * modules/unictype/property-hyphen: Likewise.
31012         * modules/unictype/property-id-continue: Likewise.
31013         * modules/unictype/property-id-start: Likewise.
31014         * modules/unictype/property-ideographic: Likewise.
31015         * modules/unictype/property-ids-binary-operator: Likewise.
31016         * modules/unictype/property-ids-trinary-operator: Likewise.
31017         * modules/unictype/property-ignorable-control: Likewise.
31018         * modules/unictype/property-iso-control: Likewise.
31019         * modules/unictype/property-join-control: Likewise.
31020         * modules/unictype/property-left-of-pair: Likewise.
31021         * modules/unictype/property-line-separator: Likewise.
31022         * modules/unictype/property-logical-order-exception: Likewise.
31023         * modules/unictype/property-lowercase: Likewise.
31024         * modules/unictype/property-math: Likewise.
31025         * modules/unictype/property-non-break: Likewise.
31026         * modules/unictype/property-not-a-character: Likewise.
31027         * modules/unictype/property-numeric: Likewise.
31028         * modules/unictype/property-other-alphabetic: Likewise.
31029         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
31030         * modules/unictype/property-other-grapheme-extend: Likewise.
31031         * modules/unictype/property-other-id-continue: Likewise.
31032         * modules/unictype/property-other-id-start: Likewise.
31033         * modules/unictype/property-other-lowercase: Likewise.
31034         * modules/unictype/property-other-math: Likewise.
31035         * modules/unictype/property-other-uppercase: Likewise.
31036         * modules/unictype/property-paired-punctuation: Likewise.
31037         * modules/unictype/property-paragraph-separator: Likewise.
31038         * modules/unictype/property-pattern-syntax: Likewise.
31039         * modules/unictype/property-pattern-white-space: Likewise.
31040         * modules/unictype/property-private-use: Likewise.
31041         * modules/unictype/property-punctuation: Likewise.
31042         * modules/unictype/property-quotation-mark: Likewise.
31043         * modules/unictype/property-radical: Likewise.
31044         * modules/unictype/property-sentence-terminal: Likewise.
31045         * modules/unictype/property-soft-dotted: Likewise.
31046         * modules/unictype/property-space: Likewise.
31047         * modules/unictype/property-terminal-punctuation: Likewise.
31048         * modules/unictype/property-test: Likewise.
31049         * modules/unictype/property-titlecase: Likewise.
31050         * modules/unictype/property-unassigned-code-value: Likewise.
31051         * modules/unictype/property-unified-ideograph: Likewise.
31052         * modules/unictype/property-uppercase: Likewise.
31053         * modules/unictype/property-variation-selector: Likewise.
31054         * modules/unictype/property-white-space: Likewise.
31055         * modules/unictype/property-xid-continue: Likewise.
31056         * modules/unictype/property-xid-start: Likewise.
31057         * modules/unictype/property-zero-width: Likewise.
31058         * modules/unictype/scripts: Likewise.
31059         * modules/unictype/syntax-c-ident: Likewise.
31060         * modules/unictype/syntax-c-whitespace: Likewise.
31061         * modules/unictype/syntax-java-ident: Likewise.
31062         * modules/unictype/syntax-java-whitespace: Likewise.
31063         * modules/unilbrk/u8-possible-linebreaks: Likewise.
31064         * modules/unilbrk/u8-width-linebreaks: Likewise.
31065         * modules/unilbrk/u16-possible-linebreaks: Likewise.
31066         * modules/unilbrk/u16-width-linebreaks: Likewise.
31067         * modules/unilbrk/u32-possible-linebreaks: Likewise.
31068         * modules/unilbrk/u32-width-linebreaks: Likewise.
31069         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
31070         * modules/unilbrk/ulc-width-linebreaks: Likewise.
31071         * modules/uniname/uniname: Likewise.
31072         * modules/uninorm/canonical-decomposition: Likewise.
31073         * modules/uninorm/composition: Likewise.
31074         * modules/uninorm/decomposing-form: Likewise.
31075         * modules/uninorm/decomposition: Likewise.
31076         * modules/uninorm/filter: Likewise.
31077         * modules/uninorm/nfc: Likewise.
31078         * modules/uninorm/nfd: Likewise.
31079         * modules/uninorm/nfkc: Likewise.
31080         * modules/uninorm/nfkd: Likewise.
31081         * modules/uninorm/u8-normalize: Likewise.
31082         * modules/uninorm/u8-normcmp: Likewise.
31083         * modules/uninorm/u8-normcoll: Likewise.
31084         * modules/uninorm/u8-normxfrm: Likewise.
31085         * modules/uninorm/u16-normalize: Likewise.
31086         * modules/uninorm/u16-normcmp: Likewise.
31087         * modules/uninorm/u16-normcoll: Likewise.
31088         * modules/uninorm/u16-normxfrm: Likewise.
31089         * modules/uninorm/u32-normalize: Likewise.
31090         * modules/uninorm/u32-normcmp: Likewise.
31091         * modules/uninorm/u32-normcoll: Likewise.
31092         * modules/uninorm/u32-normxfrm: Likewise.
31093         * modules/unistdio/u8-asnprintf: Likewise.
31094         * modules/unistdio/u8-asprintf: Likewise.
31095         * modules/unistdio/u8-snprintf: Likewise.
31096         * modules/unistdio/u8-sprintf: Likewise.
31097         * modules/unistdio/u8-u8-asnprintf: Likewise.
31098         * modules/unistdio/u8-u8-asprintf: Likewise.
31099         * modules/unistdio/u8-u8-snprintf: Likewise.
31100         * modules/unistdio/u8-u8-sprintf: Likewise.
31101         * modules/unistdio/u8-u8-vasnprintf: Likewise.
31102         * modules/unistdio/u8-u8-vasprintf: Likewise.
31103         * modules/unistdio/u8-u8-vsnprintf: Likewise.
31104         * modules/unistdio/u8-u8-vsprintf: Likewise.
31105         * modules/unistdio/u8-vasnprintf: Likewise.
31106         * modules/unistdio/u8-vasprintf: Likewise.
31107         * modules/unistdio/u8-vsnprintf: Likewise.
31108         * modules/unistdio/u8-vsprintf: Likewise.
31109         * modules/unistdio/u16-asnprintf: Likewise.
31110         * modules/unistdio/u16-asprintf: Likewise.
31111         * modules/unistdio/u16-snprintf: Likewise.
31112         * modules/unistdio/u16-sprintf: Likewise.
31113         * modules/unistdio/u16-u16-asnprintf: Likewise.
31114         * modules/unistdio/u16-u16-asprintf: Likewise.
31115         * modules/unistdio/u16-u16-snprintf: Likewise.
31116         * modules/unistdio/u16-u16-sprintf: Likewise.
31117         * modules/unistdio/u16-u16-vasnprintf: Likewise.
31118         * modules/unistdio/u16-u16-vasprintf: Likewise.
31119         * modules/unistdio/u16-u16-vsnprintf: Likewise.
31120         * modules/unistdio/u16-u16-vsprintf: Likewise.
31121         * modules/unistdio/u16-vasnprintf: Likewise.
31122         * modules/unistdio/u16-vasprintf: Likewise.
31123         * modules/unistdio/u16-vsnprintf: Likewise.
31124         * modules/unistdio/u16-vsprintf: Likewise.
31125         * modules/unistdio/u32-asnprintf: Likewise.
31126         * modules/unistdio/u32-asprintf: Likewise.
31127         * modules/unistdio/u32-snprintf: Likewise.
31128         * modules/unistdio/u32-sprintf: Likewise.
31129         * modules/unistdio/u32-u32-asnprintf: Likewise.
31130         * modules/unistdio/u32-u32-asprintf: Likewise.
31131         * modules/unistdio/u32-u32-snprintf: Likewise.
31132         * modules/unistdio/u32-u32-sprintf: Likewise.
31133         * modules/unistdio/u32-u32-vasnprintf: Likewise.
31134         * modules/unistdio/u32-u32-vasprintf: Likewise.
31135         * modules/unistdio/u32-u32-vsnprintf: Likewise.
31136         * modules/unistdio/u32-u32-vsprintf: Likewise.
31137         * modules/unistdio/u32-vasnprintf: Likewise.
31138         * modules/unistdio/u32-vasprintf: Likewise.
31139         * modules/unistdio/u32-vsnprintf: Likewise.
31140         * modules/unistdio/u32-vsprintf: Likewise.
31141         * modules/unistdio/ulc-asnprintf: Likewise.
31142         * modules/unistdio/ulc-asprintf: Likewise.
31143         * modules/unistdio/ulc-fprintf: Likewise.
31144         * modules/unistdio/ulc-snprintf: Likewise.
31145         * modules/unistdio/ulc-sprintf: Likewise.
31146         * modules/unistdio/ulc-vasnprintf: Likewise.
31147         * modules/unistdio/ulc-vasprintf: Likewise.
31148         * modules/unistdio/ulc-vfprintf: Likewise.
31149         * modules/unistdio/ulc-vsnprintf: Likewise.
31150         * modules/unistdio/ulc-vsprintf: Likewise.
31151         * modules/unistr/u8-check: Likewise.
31152         * modules/unistr/u8-chr: Likewise.
31153         * modules/unistr/u8-cmp: Likewise.
31154         * modules/unistr/u8-cmp2: Likewise.
31155         * modules/unistr/u8-cpy: Likewise.
31156         * modules/unistr/u8-cpy-alloc: Likewise.
31157         * modules/unistr/u8-endswith: Likewise.
31158         * modules/unistr/u8-mblen: Likewise.
31159         * modules/unistr/u8-mbsnlen: Likewise.
31160         * modules/unistr/u8-mbtouc: Likewise.
31161         * modules/unistr/u8-mbtouc-unsafe: Likewise.
31162         * modules/unistr/u8-mbtoucr: Likewise.
31163         * modules/unistr/u8-move: Likewise.
31164         * modules/unistr/u8-next: Likewise.
31165         * modules/unistr/u8-prev: Likewise.
31166         * modules/unistr/u8-set: Likewise.
31167         * modules/unistr/u8-startswith: Likewise.
31168         * modules/unistr/u8-stpcpy: Likewise.
31169         * modules/unistr/u8-stpncpy: Likewise.
31170         * modules/unistr/u8-strcat: Likewise.
31171         * modules/unistr/u8-strchr: Likewise.
31172         * modules/unistr/u8-strcmp: Likewise.
31173         * modules/unistr/u8-strcoll: Likewise.
31174         * modules/unistr/u8-strcpy: Likewise.
31175         * modules/unistr/u8-strcspn: Likewise.
31176         * modules/unistr/u8-strdup: Likewise.
31177         * modules/unistr/u8-strlen: Likewise.
31178         * modules/unistr/u8-strmblen: Likewise.
31179         * modules/unistr/u8-strmbtouc: Likewise.
31180         * modules/unistr/u8-strncat: Likewise.
31181         * modules/unistr/u8-strncmp: Likewise.
31182         * modules/unistr/u8-strncpy: Likewise.
31183         * modules/unistr/u8-strnlen: Likewise.
31184         * modules/unistr/u8-strpbrk: Likewise.
31185         * modules/unistr/u8-strrchr: Likewise.
31186         * modules/unistr/u8-strspn: Likewise.
31187         * modules/unistr/u8-strstr: Likewise.
31188         * modules/unistr/u8-strtok: Likewise.
31189         * modules/unistr/u8-to-u16: Likewise.
31190         * modules/unistr/u8-to-u32: Likewise.
31191         * modules/unistr/u8-uctomb: Likewise.
31192         * modules/unistr/u16-check: Likewise.
31193         * modules/unistr/u16-chr: Likewise.
31194         * modules/unistr/u16-cmp: Likewise.
31195         * modules/unistr/u16-cmp2: Likewise.
31196         * modules/unistr/u16-cpy: Likewise.
31197         * modules/unistr/u16-cpy-alloc: Likewise.
31198         * modules/unistr/u16-endswith: Likewise.
31199         * modules/unistr/u16-mblen: Likewise.
31200         * modules/unistr/u16-mbsnlen: Likewise.
31201         * modules/unistr/u16-mbtouc: Likewise.
31202         * modules/unistr/u16-mbtouc-unsafe: Likewise.
31203         * modules/unistr/u16-mbtoucr: Likewise.
31204         * modules/unistr/u16-move: Likewise.
31205         * modules/unistr/u16-next: Likewise.
31206         * modules/unistr/u16-prev: Likewise.
31207         * modules/unistr/u16-set: Likewise.
31208         * modules/unistr/u16-startswith: Likewise.
31209         * modules/unistr/u16-stpcpy: Likewise.
31210         * modules/unistr/u16-stpncpy: Likewise.
31211         * modules/unistr/u16-strcat: Likewise.
31212         * modules/unistr/u16-strchr: Likewise.
31213         * modules/unistr/u16-strcmp: Likewise.
31214         * modules/unistr/u16-strcoll: Likewise.
31215         * modules/unistr/u16-strcpy: Likewise.
31216         * modules/unistr/u16-strcspn: Likewise.
31217         * modules/unistr/u16-strdup: Likewise.
31218         * modules/unistr/u16-strlen: Likewise.
31219         * modules/unistr/u16-strmblen: Likewise.
31220         * modules/unistr/u16-strmbtouc: Likewise.
31221         * modules/unistr/u16-strncat: Likewise.
31222         * modules/unistr/u16-strncmp: Likewise.
31223         * modules/unistr/u16-strncpy: Likewise.
31224         * modules/unistr/u16-strnlen: Likewise.
31225         * modules/unistr/u16-strpbrk: Likewise.
31226         * modules/unistr/u16-strrchr: Likewise.
31227         * modules/unistr/u16-strspn: Likewise.
31228         * modules/unistr/u16-strstr: Likewise.
31229         * modules/unistr/u16-strtok: Likewise.
31230         * modules/unistr/u16-to-u32: Likewise.
31231         * modules/unistr/u16-to-u8: Likewise.
31232         * modules/unistr/u16-uctomb: Likewise.
31233         * modules/unistr/u32-check: Likewise.
31234         * modules/unistr/u32-chr: Likewise.
31235         * modules/unistr/u32-cmp: Likewise.
31236         * modules/unistr/u32-cmp2: Likewise.
31237         * modules/unistr/u32-cpy: Likewise.
31238         * modules/unistr/u32-cpy-alloc: Likewise.
31239         * modules/unistr/u32-endswith: Likewise.
31240         * modules/unistr/u32-mblen: Likewise.
31241         * modules/unistr/u32-mbsnlen: Likewise.
31242         * modules/unistr/u32-mbtouc: Likewise.
31243         * modules/unistr/u32-mbtouc-unsafe: Likewise.
31244         * modules/unistr/u32-mbtoucr: Likewise.
31245         * modules/unistr/u32-move: Likewise.
31246         * modules/unistr/u32-next: Likewise.
31247         * modules/unistr/u32-prev: Likewise.
31248         * modules/unistr/u32-set: Likewise.
31249         * modules/unistr/u32-startswith: Likewise.
31250         * modules/unistr/u32-stpcpy: Likewise.
31251         * modules/unistr/u32-stpncpy: Likewise.
31252         * modules/unistr/u32-strcat: Likewise.
31253         * modules/unistr/u32-strchr: Likewise.
31254         * modules/unistr/u32-strcmp: Likewise.
31255         * modules/unistr/u32-strcoll: Likewise.
31256         * modules/unistr/u32-strcpy: Likewise.
31257         * modules/unistr/u32-strcspn: Likewise.
31258         * modules/unistr/u32-strdup: Likewise.
31259         * modules/unistr/u32-strlen: Likewise.
31260         * modules/unistr/u32-strmblen: Likewise.
31261         * modules/unistr/u32-strmbtouc: Likewise.
31262         * modules/unistr/u32-strncat: Likewise.
31263         * modules/unistr/u32-strncmp: Likewise.
31264         * modules/unistr/u32-strncpy: Likewise.
31265         * modules/unistr/u32-strnlen: Likewise.
31266         * modules/unistr/u32-strpbrk: Likewise.
31267         * modules/unistr/u32-strrchr: Likewise.
31268         * modules/unistr/u32-strspn: Likewise.
31269         * modules/unistr/u32-strstr: Likewise.
31270         * modules/unistr/u32-strtok: Likewise.
31271         * modules/unistr/u32-to-u16: Likewise.
31272         * modules/unistr/u32-to-u8: Likewise.
31273         * modules/unistr/u32-uctomb: Likewise.
31274         * modules/uniwbrk/u8-wordbreaks: Likewise.
31275         * modules/uniwbrk/u16-wordbreaks: Likewise.
31276         * modules/uniwbrk/u32-wordbreaks: Likewise.
31277         * modules/uniwbrk/ulc-wordbreaks: Likewise.
31278         * modules/uniwbrk/wordbreak-property: Likewise.
31279         * modules/uniwidth/u8-strwidth: Likewise.
31280         * modules/uniwidth/u8-width: Likewise.
31281         * modules/uniwidth/u16-strwidth: Likewise.
31282         * modules/uniwidth/u16-width: Likewise.
31283         * modules/uniwidth/u32-strwidth: Likewise.
31284         * modules/uniwidth/u32-width: Likewise.
31285         * modules/uniwidth/width: Likewise.
31286         * modules/unicase/cased-tests (Makefile.am): Link all test programs
31287         with $(LIBUNISTRING).
31288         * modules/unicase/ignorable-tests: Likewise.
31289         * modules/unicase/locale-language-tests: Likewise.
31290         * modules/unicase/tolower-tests: Likewise.
31291         * modules/unicase/totitle-tests: Likewise.
31292         * modules/unicase/toupper-tests: Likewise.
31293         * modules/unicase/u8-casecmp-tests: Likewise.
31294         * modules/unicase/u8-casecoll-tests: Likewise.
31295         * modules/unicase/u8-casefold-tests: Likewise.
31296         * modules/unicase/u8-is-cased-tests: Likewise.
31297         * modules/unicase/u8-is-casefolded-tests: Likewise.
31298         * modules/unicase/u8-is-lowercase-tests: Likewise.
31299         * modules/unicase/u8-is-titlecase-tests: Likewise.
31300         * modules/unicase/u8-is-uppercase-tests: Likewise.
31301         * modules/unicase/u8-tolower-tests: Likewise.
31302         * modules/unicase/u8-totitle-tests: Likewise.
31303         * modules/unicase/u8-toupper-tests: Likewise.
31304         * modules/unicase/u16-casecmp-tests: Likewise.
31305         * modules/unicase/u16-casecoll-tests: Likewise.
31306         * modules/unicase/u16-casefold-tests: Likewise.
31307         * modules/unicase/u16-is-cased-tests: Likewise.
31308         * modules/unicase/u16-is-casefolded-tests: Likewise.
31309         * modules/unicase/u16-is-lowercase-tests: Likewise.
31310         * modules/unicase/u16-is-titlecase-tests: Likewise.
31311         * modules/unicase/u16-is-uppercase-tests: Likewise.
31312         * modules/unicase/u16-tolower-tests: Likewise.
31313         * modules/unicase/u16-totitle-tests: Likewise.
31314         * modules/unicase/u16-toupper-tests: Likewise.
31315         * modules/unicase/u32-casecmp-tests: Likewise.
31316         * modules/unicase/u32-casecoll-tests: Likewise.
31317         * modules/unicase/u32-casefold-tests: Likewise.
31318         * modules/unicase/u32-is-cased-tests: Likewise.
31319         * modules/unicase/u32-is-casefolded-tests: Likewise.
31320         * modules/unicase/u32-is-lowercase-tests: Likewise.
31321         * modules/unicase/u32-is-titlecase-tests: Likewise.
31322         * modules/unicase/u32-is-uppercase-tests: Likewise.
31323         * modules/unicase/u32-tolower-tests: Likewise.
31324         * modules/unicase/u32-totitle-tests: Likewise.
31325         * modules/unicase/u32-toupper-tests: Likewise.
31326         * modules/unicase/ulc-casecmp-tests: Likewise.
31327         * modules/unicase/ulc-casecoll-tests: Likewise.
31328         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
31329         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
31330         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
31331         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
31332         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
31333         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
31334         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
31335         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
31336         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
31337         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
31338         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
31339         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
31340         * modules/unictype/bidicategory-byname-tests: Likewise.
31341         * modules/unictype/bidicategory-name-tests: Likewise.
31342         * modules/unictype/bidicategory-of-tests: Likewise.
31343         * modules/unictype/bidicategory-test-tests: Likewise.
31344         * modules/unictype/block-list-tests: Likewise.
31345         * modules/unictype/block-of-tests: Likewise.
31346         * modules/unictype/block-test-tests: Likewise.
31347         * modules/unictype/category-C-tests: Likewise.
31348         * modules/unictype/category-Cc-tests: Likewise.
31349         * modules/unictype/category-Cf-tests: Likewise.
31350         * modules/unictype/category-Cn-tests: Likewise.
31351         * modules/unictype/category-Co-tests: Likewise.
31352         * modules/unictype/category-Cs-tests: Likewise.
31353         * modules/unictype/category-L-tests: Likewise.
31354         * modules/unictype/category-Ll-tests: Likewise.
31355         * modules/unictype/category-Lm-tests: Likewise.
31356         * modules/unictype/category-Lo-tests: Likewise.
31357         * modules/unictype/category-Lt-tests: Likewise.
31358         * modules/unictype/category-Lu-tests: Likewise.
31359         * modules/unictype/category-M-tests: Likewise.
31360         * modules/unictype/category-Mc-tests: Likewise.
31361         * modules/unictype/category-Me-tests: Likewise.
31362         * modules/unictype/category-Mn-tests: Likewise.
31363         * modules/unictype/category-N-tests: Likewise.
31364         * modules/unictype/category-Nd-tests: Likewise.
31365         * modules/unictype/category-Nl-tests: Likewise.
31366         * modules/unictype/category-No-tests: Likewise.
31367         * modules/unictype/category-P-tests: Likewise.
31368         * modules/unictype/category-Pc-tests: Likewise.
31369         * modules/unictype/category-Pd-tests: Likewise.
31370         * modules/unictype/category-Pe-tests: Likewise.
31371         * modules/unictype/category-Pf-tests: Likewise.
31372         * modules/unictype/category-Pi-tests: Likewise.
31373         * modules/unictype/category-Po-tests: Likewise.
31374         * modules/unictype/category-Ps-tests: Likewise.
31375         * modules/unictype/category-S-tests: Likewise.
31376         * modules/unictype/category-Sc-tests: Likewise.
31377         * modules/unictype/category-Sk-tests: Likewise.
31378         * modules/unictype/category-Sm-tests: Likewise.
31379         * modules/unictype/category-So-tests: Likewise.
31380         * modules/unictype/category-Z-tests: Likewise.
31381         * modules/unictype/category-Zl-tests: Likewise.
31382         * modules/unictype/category-Zp-tests: Likewise.
31383         * modules/unictype/category-Zs-tests: Likewise.
31384         * modules/unictype/category-and-not-tests: Likewise.
31385         * modules/unictype/category-and-tests: Likewise.
31386         * modules/unictype/category-byname-tests: Likewise.
31387         * modules/unictype/category-name-tests: Likewise.
31388         * modules/unictype/category-none-tests: Likewise.
31389         * modules/unictype/category-of-tests: Likewise.
31390         * modules/unictype/category-or-tests: Likewise.
31391         * modules/unictype/category-test-withtable-tests: Likewise.
31392         * modules/unictype/combining-class-tests: Likewise.
31393         * modules/unictype/ctype-alnum-tests: Likewise.
31394         * modules/unictype/ctype-alpha-tests: Likewise.
31395         * modules/unictype/ctype-blank-tests: Likewise.
31396         * modules/unictype/ctype-cntrl-tests: Likewise.
31397         * modules/unictype/ctype-digit-tests: Likewise.
31398         * modules/unictype/ctype-graph-tests: Likewise.
31399         * modules/unictype/ctype-lower-tests: Likewise.
31400         * modules/unictype/ctype-print-tests: Likewise.
31401         * modules/unictype/ctype-punct-tests: Likewise.
31402         * modules/unictype/ctype-space-tests: Likewise.
31403         * modules/unictype/ctype-upper-tests: Likewise.
31404         * modules/unictype/ctype-xdigit-tests: Likewise.
31405         * modules/unictype/decimal-digit-tests: Likewise.
31406         * modules/unictype/digit-tests: Likewise.
31407         * modules/unictype/mirror-tests: Likewise.
31408         * modules/unictype/numeric-tests: Likewise.
31409         * modules/unictype/property-alphabetic-tests: Likewise.
31410         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
31411         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
31412         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
31413         * modules/unictype/property-bidi-block-separator-tests: Likewise.
31414         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
31415         * modules/unictype/property-bidi-common-separator-tests: Likewise.
31416         * modules/unictype/property-bidi-control-tests: Likewise.
31417         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
31418         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
31419         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
31420         * modules/unictype/property-bidi-european-digit-tests: Likewise.
31421         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
31422         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
31423         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
31424         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
31425         * modules/unictype/property-bidi-pdf-tests: Likewise.
31426         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
31427         * modules/unictype/property-bidi-whitespace-tests: Likewise.
31428         * modules/unictype/property-byname-tests: Likewise.
31429         * modules/unictype/property-combining-tests: Likewise.
31430         * modules/unictype/property-composite-tests: Likewise.
31431         * modules/unictype/property-currency-symbol-tests: Likewise.
31432         * modules/unictype/property-dash-tests: Likewise.
31433         * modules/unictype/property-decimal-digit-tests: Likewise.
31434         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
31435         * modules/unictype/property-deprecated-tests: Likewise.
31436         * modules/unictype/property-diacritic-tests: Likewise.
31437         * modules/unictype/property-extender-tests: Likewise.
31438         * modules/unictype/property-format-control-tests: Likewise.
31439         * modules/unictype/property-grapheme-base-tests: Likewise.
31440         * modules/unictype/property-grapheme-extend-tests: Likewise.
31441         * modules/unictype/property-grapheme-link-tests: Likewise.
31442         * modules/unictype/property-hex-digit-tests: Likewise.
31443         * modules/unictype/property-hyphen-tests: Likewise.
31444         * modules/unictype/property-id-continue-tests: Likewise.
31445         * modules/unictype/property-id-start-tests: Likewise.
31446         * modules/unictype/property-ideographic-tests: Likewise.
31447         * modules/unictype/property-ids-binary-operator-tests: Likewise.
31448         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
31449         * modules/unictype/property-ignorable-control-tests: Likewise.
31450         * modules/unictype/property-iso-control-tests: Likewise.
31451         * modules/unictype/property-join-control-tests: Likewise.
31452         * modules/unictype/property-left-of-pair-tests: Likewise.
31453         * modules/unictype/property-line-separator-tests: Likewise.
31454         * modules/unictype/property-logical-order-exception-tests: Likewise.
31455         * modules/unictype/property-lowercase-tests: Likewise.
31456         * modules/unictype/property-math-tests: Likewise.
31457         * modules/unictype/property-non-break-tests: Likewise.
31458         * modules/unictype/property-not-a-character-tests: Likewise.
31459         * modules/unictype/property-numeric-tests: Likewise.
31460         * modules/unictype/property-other-alphabetic-tests: Likewise.
31461         * modules/unictype/property-other-default-ignorable-code-point-tests:
31462         Likewise.
31463         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
31464         * modules/unictype/property-other-id-continue-tests: Likewise.
31465         * modules/unictype/property-other-id-start-tests: Likewise.
31466         * modules/unictype/property-other-lowercase-tests: Likewise.
31467         * modules/unictype/property-other-math-tests: Likewise.
31468         * modules/unictype/property-other-uppercase-tests: Likewise.
31469         * modules/unictype/property-paired-punctuation-tests: Likewise.
31470         * modules/unictype/property-paragraph-separator-tests: Likewise.
31471         * modules/unictype/property-pattern-syntax-tests: Likewise.
31472         * modules/unictype/property-pattern-white-space-tests: Likewise.
31473         * modules/unictype/property-private-use-tests: Likewise.
31474         * modules/unictype/property-punctuation-tests: Likewise.
31475         * modules/unictype/property-quotation-mark-tests: Likewise.
31476         * modules/unictype/property-radical-tests: Likewise.
31477         * modules/unictype/property-sentence-terminal-tests: Likewise.
31478         * modules/unictype/property-soft-dotted-tests: Likewise.
31479         * modules/unictype/property-space-tests: Likewise.
31480         * modules/unictype/property-terminal-punctuation-tests: Likewise.
31481         * modules/unictype/property-test-tests: Likewise.
31482         * modules/unictype/property-titlecase-tests: Likewise.
31483         * modules/unictype/property-unassigned-code-value-tests: Likewise.
31484         * modules/unictype/property-unified-ideograph-tests: Likewise.
31485         * modules/unictype/property-uppercase-tests: Likewise.
31486         * modules/unictype/property-variation-selector-tests: Likewise.
31487         * modules/unictype/property-white-space-tests: Likewise.
31488         * modules/unictype/property-xid-continue-tests: Likewise.
31489         * modules/unictype/property-xid-start-tests: Likewise.
31490         * modules/unictype/property-zero-width-tests: Likewise.
31491         * modules/unictype/scripts-tests: Likewise.
31492         * modules/unictype/syntax-c-ident-tests: Likewise.
31493         * modules/unictype/syntax-c-whitespace-tests: Likewise.
31494         * modules/unictype/syntax-java-ident-tests: Likewise.
31495         * modules/unictype/syntax-java-whitespace-tests: Likewise.
31496         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
31497         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
31498         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
31499         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
31500         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
31501         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
31502         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
31503         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
31504         * modules/uniname/uniname-tests: Likewise.
31505         * modules/uninorm/canonical-decomposition-tests: Likewise.
31506         * modules/uninorm/compat-decomposition-tests: Likewise.
31507         * modules/uninorm/composition-tests: Likewise.
31508         * modules/uninorm/decomposing-form-tests: Likewise.
31509         * modules/uninorm/decomposition-tests: Likewise.
31510         * modules/uninorm/filter-tests: Likewise.
31511         * modules/uninorm/nfc-tests: Likewise.
31512         * modules/uninorm/nfd-tests: Likewise.
31513         * modules/uninorm/nfkc-tests: Likewise.
31514         * modules/uninorm/nfkd-tests: Likewise.
31515         * modules/uninorm/u8-normcmp-tests: Likewise.
31516         * modules/uninorm/u8-normcoll-tests: Likewise.
31517         * modules/uninorm/u16-normcmp-tests: Likewise.
31518         * modules/uninorm/u16-normcoll-tests: Likewise.
31519         * modules/uninorm/u32-normcmp-tests: Likewise.
31520         * modules/uninorm/u32-normcoll-tests: Likewise.
31521         * modules/unistdio/u8-asnprintf-tests: Likewise.
31522         * modules/unistdio/u8-vasnprintf-tests: Likewise.
31523         * modules/unistdio/u8-vasprintf-tests: Likewise.
31524         * modules/unistdio/u8-vsnprintf-tests: Likewise.
31525         * modules/unistdio/u8-vsprintf-tests: Likewise.
31526         * modules/unistdio/u16-asnprintf-tests: Likewise.
31527         * modules/unistdio/u16-vasnprintf-tests: Likewise.
31528         * modules/unistdio/u16-vasprintf-tests: Likewise.
31529         * modules/unistdio/u16-vsnprintf-tests: Likewise.
31530         * modules/unistdio/u16-vsprintf-tests: Likewise.
31531         * modules/unistdio/u32-asnprintf-tests: Likewise.
31532         * modules/unistdio/u32-vasnprintf-tests: Likewise.
31533         * modules/unistdio/u32-vasprintf-tests: Likewise.
31534         * modules/unistdio/u32-vsnprintf-tests: Likewise.
31535         * modules/unistdio/u32-vsprintf-tests: Likewise.
31536         * modules/unistdio/ulc-asnprintf-tests: Likewise.
31537         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
31538         * modules/unistdio/ulc-vasprintf-tests: Likewise.
31539         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
31540         * modules/unistdio/ulc-vsprintf-tests: Likewise.
31541         * modules/unistr/u8-check-tests: Likewise.
31542         * modules/unistr/u8-chr-tests: Likewise.
31543         * modules/unistr/u8-cmp-tests: Likewise.
31544         * modules/unistr/u8-cmp2-tests: Likewise.
31545         * modules/unistr/u8-cpy-alloc-tests: Likewise.
31546         * modules/unistr/u8-cpy-tests: Likewise.
31547         * modules/unistr/u8-mblen-tests: Likewise.
31548         * modules/unistr/u8-mbsnlen-tests: Likewise.
31549         * modules/unistr/u8-mbtouc-tests: Likewise.
31550         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
31551         * modules/unistr/u8-mbtoucr-tests: Likewise.
31552         * modules/unistr/u8-move-tests: Likewise.
31553         * modules/unistr/u8-next-tests: Likewise.
31554         * modules/unistr/u8-prev-tests: Likewise.
31555         * modules/unistr/u8-set-tests: Likewise.
31556         * modules/unistr/u8-stpcpy-tests: Likewise.
31557         * modules/unistr/u8-stpncpy-tests: Likewise.
31558         * modules/unistr/u8-strcat-tests: Likewise.
31559         * modules/unistr/u8-strcmp-tests: Likewise.
31560         * modules/unistr/u8-strcoll-tests: Likewise.
31561         * modules/unistr/u8-strcpy-tests: Likewise.
31562         * modules/unistr/u8-strdup-tests: Likewise.
31563         * modules/unistr/u8-strlen-tests: Likewise.
31564         * modules/unistr/u8-strmblen-tests: Likewise.
31565         * modules/unistr/u8-strmbtouc-tests: Likewise.
31566         * modules/unistr/u8-strncat-tests: Likewise.
31567         * modules/unistr/u8-strncmp-tests: Likewise.
31568         * modules/unistr/u8-strncpy-tests: Likewise.
31569         * modules/unistr/u8-strnlen-tests: Likewise.
31570         * modules/unistr/u8-to-u16-tests: Likewise.
31571         * modules/unistr/u8-to-u32-tests: Likewise.
31572         * modules/unistr/u8-uctomb-tests: Likewise.
31573         * modules/unistr/u16-check-tests: Likewise.
31574         * modules/unistr/u16-chr-tests: Likewise.
31575         * modules/unistr/u16-cmp-tests: Likewise.
31576         * modules/unistr/u16-cmp2-tests: Likewise.
31577         * modules/unistr/u16-cpy-alloc-tests: Likewise.
31578         * modules/unistr/u16-cpy-tests: Likewise.
31579         * modules/unistr/u16-mblen-tests: Likewise.
31580         * modules/unistr/u16-mbsnlen-tests: Likewise.
31581         * modules/unistr/u16-mbtouc-tests: Likewise.
31582         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
31583         * modules/unistr/u16-mbtoucr-tests: Likewise.
31584         * modules/unistr/u16-move-tests: Likewise.
31585         * modules/unistr/u16-next-tests: Likewise.
31586         * modules/unistr/u16-prev-tests: Likewise.
31587         * modules/unistr/u16-set-tests: Likewise.
31588         * modules/unistr/u16-stpcpy-tests: Likewise.
31589         * modules/unistr/u16-stpncpy-tests: Likewise.
31590         * modules/unistr/u16-strcat-tests: Likewise.
31591         * modules/unistr/u16-strcmp-tests: Likewise.
31592         * modules/unistr/u16-strcoll-tests: Likewise.
31593         * modules/unistr/u16-strcpy-tests: Likewise.
31594         * modules/unistr/u16-strdup-tests: Likewise.
31595         * modules/unistr/u16-strlen-tests: Likewise.
31596         * modules/unistr/u16-strmblen-tests: Likewise.
31597         * modules/unistr/u16-strmbtouc-tests: Likewise.
31598         * modules/unistr/u16-strncat-tests: Likewise.
31599         * modules/unistr/u16-strncmp-tests: Likewise.
31600         * modules/unistr/u16-strncpy-tests: Likewise.
31601         * modules/unistr/u16-strnlen-tests: Likewise.
31602         * modules/unistr/u16-to-u32-tests: Likewise.
31603         * modules/unistr/u16-to-u8-tests: Likewise.
31604         * modules/unistr/u16-uctomb-tests: Likewise.
31605         * modules/unistr/u32-check-tests: Likewise.
31606         * modules/unistr/u32-chr-tests: Likewise.
31607         * modules/unistr/u32-cmp-tests: Likewise.
31608         * modules/unistr/u32-cmp2-tests: Likewise.
31609         * modules/unistr/u32-cpy-alloc-tests: Likewise.
31610         * modules/unistr/u32-cpy-tests: Likewise.
31611         * modules/unistr/u32-mblen-tests: Likewise.
31612         * modules/unistr/u32-mbsnlen-tests: Likewise.
31613         * modules/unistr/u32-mbtouc-tests: Likewise.
31614         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
31615         * modules/unistr/u32-mbtoucr-tests: Likewise.
31616         * modules/unistr/u32-move-tests: Likewise.
31617         * modules/unistr/u32-next-tests: Likewise.
31618         * modules/unistr/u32-prev-tests: Likewise.
31619         * modules/unistr/u32-set-tests: Likewise.
31620         * modules/unistr/u32-stpcpy-tests: Likewise.
31621         * modules/unistr/u32-stpncpy-tests: Likewise.
31622         * modules/unistr/u32-strcat-tests: Likewise.
31623         * modules/unistr/u32-strcmp-tests: Likewise.
31624         * modules/unistr/u32-strcoll-tests: Likewise.
31625         * modules/unistr/u32-strcpy-tests: Likewise.
31626         * modules/unistr/u32-strdup-tests: Likewise.
31627         * modules/unistr/u32-strlen-tests: Likewise.
31628         * modules/unistr/u32-strmblen-tests: Likewise.
31629         * modules/unistr/u32-strmbtouc-tests: Likewise.
31630         * modules/unistr/u32-strncat-tests: Likewise.
31631         * modules/unistr/u32-strncmp-tests: Likewise.
31632         * modules/unistr/u32-strncpy-tests: Likewise.
31633         * modules/unistr/u32-strnlen-tests: Likewise.
31634         * modules/unistr/u32-to-u16-tests: Likewise.
31635         * modules/unistr/u32-to-u8-tests: Likewise.
31636         * modules/unistr/u32-uctomb-tests: Likewise.
31637         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
31638         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
31639         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
31640         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
31641         * modules/uniwidth/u8-strwidth-tests: Likewise.
31642         * modules/uniwidth/u8-width-tests: Likewise.
31643         * modules/uniwidth/u16-strwidth-tests: Likewise.
31644         * modules/uniwidth/u16-width-tests: Likewise.
31645         * modules/uniwidth/u32-strwidth-tests: Likewise.
31646         * modules/uniwidth/u32-width-tests: Likewise.
31647         * modules/uniwidth/width-tests: Likewise.
31648
31649 2010-05-18  Richard Jones  <rjones@redhat.com>
31650
31651         doc: users.txt: list hivex
31652         * users.txt: Add hivex.
31653
31654 2010-05-18  Richard Jones  <rjones@redhat.com>
31655
31656         doc: users.txt: list febootstrap
31657         * users.txt: Add febootstrap.
31658
31659 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
31660
31661         bootstrap: fix an error when gnulib is not used as a git submodule
31662         * build-aux/bootstrap (gnulib_path): If its length is zero then
31663         assign "gnulib" to it.
31664         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
31665
31666 2010-05-16  Bruno Haible  <bruno@clisp.org>
31667
31668         Avoid autoconf warnings about AM_ICONV.
31669         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
31670         2.64.
31671
31672 2010-05-16  Bruno Haible  <bruno@clisp.org>
31673
31674         absolute-header: Make the macro usable in more situations.
31675         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
31676         from gl_ABSOLUTE_HEADER.
31677         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
31678
31679 2010-05-16  James Youngman  <jay@gnu.org>
31680
31681         doc: update users.txt
31682         * users.txt: Add CSSC.
31683
31684 2010-05-16  Jim Meyering  <meyering@redhat.com>
31685
31686         init.sh: fix an error in the previous change; add more comments
31687         * tests/init.sh: Compare exit code in loop against 9, not 2.
31688         Patch by Bruno Haible.
31689         Make the two tests more similar by adding an empty "then" clause.
31690         Add comments.
31691
31692         init.sh: avoid unnecessary shell re-exec
31693         * tests/init.sh: Improve the re-exec-required check to first test the
31694         current shell.  If it passes the test, do not search for a shell that
31695         does pass, and do not re-exec.  This test is particularly contorted to
31696         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
31697         of $(...) evokes a syntax error and causes immediate shell exit with
31698         status 2.  Bruno Haible reported that the re-exec made it impossible
31699         to single-step through any init.sh-using script.
31700
31701 2010-05-16  Bruno Haible  <bruno@clisp.org>
31702
31703         Fix collision between gnulib's and libintl's printf replacements.
31704         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
31705         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
31706         (printf): When using GNU C, map the __printf__ function to rpl_printf
31707         via __asm__. When not using GNU C, define rpl_printf instead of
31708         __printf__.
31709         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
31710         commit.
31711         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
31712         commit.
31713         * m4/asm-underscore.m4: New file.
31714         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
31715         * modules/stdio (Files): Add m4/asm-underscore.m4.
31716         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
31717         Reported by Ben Pfaff.
31718
31719 2010-05-16  Bruno Haible  <bruno@clisp.org>
31720
31721         verify: Avoid skipping the test on openSUSE 11.0.
31722         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
31723
31724 2010-05-13  Bruno Haible  <bruno@clisp.org>
31725
31726         Avoid useless warnings from G++.
31727         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
31728         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
31729         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
31730
31731 2010-05-11  Jim Meyering  <meyering@redhat.com>
31732
31733         maint.mk: tweak preceding change
31734         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
31735         regexps tighter by anchoring at EOL, and make the new group "shy"
31736         for slightly decreased overhead.
31737
31738 2010-05-11  Eric Blake  <eblake@redhat.com>
31739
31740         maint.mk: gnulib doesn't guarantee NSIG
31741         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
31742
31743 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
31744
31745         test-pwrite.c: Remove unused variable declaration.
31746         * tests/test-pwrite.c (main): Remove read_buf declaration.
31747
31748         Remove useless test-pwrite.sh file.
31749         * tests/test-pwrite.sh: Delete file.
31750         * modules/pwrite-tests: Remove references.
31751         Reported by Bruno Haible.
31752
31753 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
31754
31755         init.sh: fix a typo
31756         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
31757
31758 2010-05-10  Jim Meyering  <meyering@redhat.com>
31759
31760         maint.mk: avoid using a temporary file in the always-defined-macros check
31761         * top/maint.mk (.re-defmac): Remove rule.
31762         (gl_trap_): Remove definition.
31763         (sc_prohibit_always-defined_macros): Rewrite not to create and
31764         depend on a temporary file.  Instead, depend on GNU grep's ability
31765         to read a list of regular expressions from stdin when given "-f -".
31766
31767 2010-05-09  Bruno Haible  <bruno@clisp.org>
31768
31769         Update to GNU gettext 0.18, part 1.
31770         * m4/gettext.m4: Update to GNU gettext 0.18.
31771         * m4/intl.m4: Likewise.
31772         * m4/po.m4: Likewise.
31773         * modules/gettext (Files): Add m4/fcntl-o.m4.
31774         (configure.ac): Require gettext infrastructure from version 0.18.
31775
31776 2010-05-09  Jim Meyering  <meyering@redhat.com>
31777
31778         init.sh: enable MALLOC_PERTURB_
31779         * tests/init.sh: Enable glibc's malloc-perturbing option.
31780
31781         maint.mk: improve sc_cross_check_PATH_usage_in_tests
31782         With my recent change in init.sh from the two-line form:
31783             -#   : ${srcdir=.}
31784             -#   . "$srcdir/init.sh"; path_prepend_ .
31785             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
31786         I noticed that using the one-line form would cause this test
31787         to fail with a false-positive, or to stop working altogether,
31788         depending on whether help-version changed or all the tests did.
31789         * top/maint.mk (_hv_regex): Remove this definition.
31790         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
31791         (_hv_regex_strong): Use a stronger regex to check for conformance.
31792         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
31793         Give a separate diagnostic for lack of conforming use.
31794
31795         maint.mk: prohibit definition of symbols defined by gnulib
31796         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
31797         definition of symbols defined by gnulib.
31798
31799 2010-05-09  Bruno Haible  <bruno@clisp.org>
31800
31801         acl: Avoid test failure on Cygwin-hosted mingw.
31802         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
31803
31804 2010-05-09  Bruno Haible  <bruno@clisp.org>
31805
31806         error: Use system's fcntl function.
31807         * lib/error.c (fcntl): Undefine.
31808
31809 2010-05-09  Jim Meyering  <meyering@redhat.com>
31810
31811         verify: adjust formatting to be more consistent
31812         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
31813         argument-list '('s, and after one comma.
31814
31815 2010-05-09  Bruno Haible  <bruno@clisp.org>
31816
31817         error: More reliable output on mingw.
31818         * lib/error.c: Include <windows.h>.
31819         (is_open): New function.
31820         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
31821         defined.
31822
31823 2010-05-09  Bruno Haible  <bruno@clisp.org>
31824
31825         vasnprintf: Fix syntax errors in libintl build on mingw.
31826         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
31827         pad_ourselves and prec_ourselves after use.
31828
31829 2010-05-08  Bruno Haible  <bruno@clisp.org>
31830
31831         * lib/config.charset: Update comments for Cygwin 1.7.
31832         * lib/localcharset.c: Likewise.
31833
31834 2010-05-07  Jim Meyering  <meyering@redhat.com>
31835
31836         init.sh: improve comments
31837         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
31838         . "${srcdir=.}/init.sh"; path_prepend_ .
31839         Add a note about path_prepend_ and the alternative of using
31840         TESTS_ENVIRONMENT.
31841
31842 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
31843
31844         exclude: Unescape hashed patterns in wildcard mode.
31845         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
31846         to the hash list.
31847         * tests/test-exclude8.sh: New test case.
31848         * modules/exclude-tests: Add new test.
31849
31850 2010-05-05  Eric Blake  <eblake@redhat.com>
31851
31852         verify: automate tests
31853         * modules/verify-tests: New module.
31854         * tests/test-verify.sh: New file.
31855         * tests/test-verify.c: Guard each negative test with a unique id.
31856         Also avoid warning about unused left hand of comma expressions.
31857
31858 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
31859
31860         Further improvements to verify.h, suggested by Eric Blake.
31861         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
31862         the GL_* versions, to avoid collision with OpenGL.
31863         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
31864         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
31865         than testing merely whether it's defined.
31866
31867         Modify verify.h to pacify gcc -Wredundant_decls.
31868         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
31869         These use the prefix "GL_" since they're likely to be useful elsewhere.
31870         We may need to break them out into a different .h file.
31871         (__COUNTER__): Define to 0 if the compiler doesn't support it.
31872         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
31873         of verify_function__.
31874
31875 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
31876
31877         Tests for module pwrite.
31878         * modules/pwrite-tests: New file.
31879         * tests/test-pwrite.sh: New file.
31880         * tests/test-pwrite.c: New file.
31881
31882         New module pwrite.
31883         * lib/unistd.in.h (pwrite): New declaration.
31884         * lib/pwrite.c: New file, from glibc with modifications.
31885         * m4/pwrite.m4: New file.
31886         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
31887         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
31888         REPLACE_PWRITE.
31889         * modules/pwrite: New file.
31890         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
31891         REPLACE_PWRITE.
31892         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
31893         * doc/posix-functions/pwrite.texi: Mention the new module.
31894
31895 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
31896
31897         pread: Update documentation.
31898         * doc/posix-functions/pread.texi: Mention the 'pread' module.
31899
31900 2010-05-04  Eric Blake  <eblake@redhat.com>
31901
31902         docs: update cygwin progress
31903         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
31904         this bug.
31905         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
31906         Added in cygwin 1.7.2.
31907         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
31908         Likewise.
31909         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
31910         Likewise.
31911         * doc/glibc-functions/dup3.texi (dup3): Likewise.
31912         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
31913         * doc/glibc-functions/accept4.texi (accept4): Likewise.
31914         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
31915         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
31916         Mention nproc module.
31917         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
31918         bug in cygwin 1.7.5 addition.
31919         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
31920         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
31921         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
31922         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
31923         1.7.5.
31924         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
31925         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
31926         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
31927         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
31928         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
31929         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
31930         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
31931         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
31932         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
31933         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
31934         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
31935         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
31936         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
31937         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
31938         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
31939         Likewise.
31940         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
31941         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
31942         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
31943         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
31944         Likewise.
31945         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
31946         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
31947         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
31948         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
31949         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
31950         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
31951         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
31952         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
31953         Likewise.
31954         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
31955         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
31956         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
31957         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
31958         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
31959         Likewise.
31960         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
31961         Likewise.
31962         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
31963         Likewise.
31964         * doc/glibc-functions/xdrrec_endofrecord.texi
31965         (xdrrec_endofrecord): Likewise.
31966         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
31967         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
31968         Likewise.
31969         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
31970         Likewise.
31971
31972 2010-05-04  Jim Meyering  <meyering@redhat.com>
31973
31974         gendocs.sh: make its "-s FILE" option more useful
31975         * build-aux/gendocs.sh: When honoring the -s FILE option, update
31976         $PACKAGE to reflect the probably-different basename of "FILE".
31977
31978 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
31979
31980         bootstrap: don't ignore download_po_files failure
31981         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
31982         failure.
31983
31984 2010-05-03  Jim Meyering  <meyering@redhat.com>
31985
31986         maint.mk: allow to pass options to gendocs.sh
31987         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
31988         (gendocs_options_): New overridable variable.
31989
31990         gnu-web-doc-update: don't ignore configure or build failure
31991         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
31992
31993         announce-gen: backslash-escape '@'s in --help output
31994         * build-aux/announce-gen: Fix syntax errors.
31995
31996         maint.mk, announce-gen: allow project-specific announcement mail headers
31997         * top/maint.mk (translation_project_): Define default.
31998         (announcement_Cc_, announcement_mail_headers_): Likewise.
31999         (announcement): Invoke announce-gen with new --mail-headers option.
32000         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
32001
32002         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
32003         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
32004         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
32005         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
32006         line in the "err2" output file when running "make check" in verbose
32007         mode (i.e., with set -x enabled).
32008
32009 2010-05-03  Bruno Haible  <bruno@clisp.org>
32010
32011         wctob: Fix for weird platforms.
32012         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
32013         argument value.
32014
32015 2010-05-03  Jim Meyering  <meyering@redhat.com>
32016
32017         maint.mk: prohibit unwarranted use of <strings.h>
32018         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
32019         strings.h in a file that does not also use strcasecmp, strncasecmp,
32020         ffs or ffsll.
32021
32022         maint.mk: remove obsolete comments
32023         * top/maint.mk: Remove stale, commented-out rules.
32024
32025 2010-05-02  Bruno Haible  <bruno@clisp.org>
32026
32027         wcwidth: Declare also when it's aliased.
32028         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
32029         macro.
32030
32031 2010-05-02  Bruno Haible  <bruno@clisp.org>
32032
32033         Fix regression from 2010-04-25.
32034         * gnulib-tool (func_modules_transitive_closure): Check the status of
32035         all modules, not only of the tests that are of the form foo-tests where
32036         foo is a module.
32037
32038 2010-05-02  Bruno Haible  <bruno@clisp.org>
32039
32040         wctob: Work around nasty Cygwin 1.7.2 bug.
32041         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
32042         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
32043
32044 2010-05-01  Bruno Haible  <bruno@clisp.org>
32045
32046         fpurge: Sharper test.
32047         * tests/test-fpurge.c (main): Add one more ftell check.
32048         * modules/fpurge-tests (Depends-on): Add ftell.
32049         Suggested by Eric Blake.
32050
32051 2010-05-01  Bruno Haible  <bruno@clisp.org>
32052
32053         ftello: Another test.
32054         * tests/test-ftello3.c: New file.
32055         * modules/ftello-tests (Files): Add it.
32056         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
32057         MOSTLYCLEANFILES.
32058
32059         ftell: Another test.
32060         * tests/test-ftell3.c: New file.
32061         * modules/ftell-tests (Files): Add it.
32062         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
32063         MOSTLYCLEANFILES.
32064
32065 2010-05-01  Bruno Haible  <bruno@clisp.org>
32066
32067         ftell, ftello: Work around Solaris bug.
32068         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
32069         * lib/ftello.c: Include stdio-impl.h.
32070         (ftello): On Solaris, when _IOWRT is set, compute the result without
32071         looking at _IOREAD.
32072         * modules/ftello (Files): Add lib/stdio-impl.h.
32073         * doc/posix-functions/ftell.texi: Mention Solaris bug.
32074         * doc/posix-functions/ftello.texi: Likewise.
32075         Reported by Eric Blake.
32076
32077 2010-05-01  Bruno Haible  <bruno@clisp.org>
32078
32079         freading: Adapt to special meaning of _IOREAD flag on Solaris.
32080         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
32081         the _IOWRT flag is also set.
32082
32083 2010-05-01  Bruno Haible  <bruno@clisp.org>
32084
32085         Fix doc about a HP-UX stdio bug.
32086         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
32087         * doc/posix-functions/ftello.texi: Likewise.
32088
32089 2010-05-01  Bruno Haible  <bruno@clisp.org>
32090
32091         lseek test: Fix failure on Solaris.
32092         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
32093         output.
32094
32095 2010-04-30  Jim Meyering  <meyering@redhat.com>
32096
32097         bootstrap: don't ignore failure to generate po*/Makevars
32098         * build-aux/bootstrap (with_gettext): Don't ignore failure
32099         to create po/Makevars or runtime-po/Makevars.
32100
32101 2010-04-29  Eric Blake  <eblake@redhat.com>
32102
32103         headers: relax license to LGPLv2+
32104         * modules/fcntl-h (License): Relax license.
32105         * modules/getopt-posix (License): Likewise.
32106         * modules/locale (License): Likewise.
32107         * modules/math (License): Likewise.
32108         * modules/pty (License): Likewise.
32109         * modules/sched (License): Likewise.
32110         * modules/search (License): Likewise.
32111         * modules/spawn (License): Likewise.
32112         * modules/stdarg (License): Likewise.
32113         * modules/sysexits (License): Likewise.
32114
32115 2010-04-29  Jim Meyering  <meyering@redhat.com>
32116
32117         inttypes: relax license to LGPLv2+
32118         * modules/inttypes (License): Relax license.
32119
32120 2010-04-29  Simon Josefsson  <simon@josefsson.org>
32121
32122         * top/maint.mk (indent): Run twice to produce idempotent results.
32123
32124 2010-04-28  Bruno Haible  <bruno@clisp.org>
32125
32126         getdate: Generate getdate.c in the source directory.
32127         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
32128         MOSTLYCLEANFILES.
32129         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
32130
32131 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
32132
32133         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
32134         is not declared as a const *; avoid warnings in that case.
32135
32136 2010-04-28  Eric Blake  <eblake@redhat.com>
32137
32138         canonicalize-lgpl: avoid compiler warning
32139         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
32140         declaration' / 'extraneous semicolon' warning with some compilers.
32141         Reported by Andreas Gruenbacher.
32142
32143 2010-04-28  Jim Meyering  <meyering@redhat.com>
32144
32145         init.sh: ensure a more reliable exit status when exiting via trap
32146         * tests/init.sh (setup_): Don't rely on $? in signal handler.
32147         Inspired by patches from Dmitry V. Levin.
32148         Also trap on signal 3 (SIGQUIT).
32149
32150 2010-04-27  Bruno Haible  <bruno@clisp.org>
32151
32152         Update doc about utimes().
32153         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
32154         'utimens' module.
32155         Reported by Andreas Gruenbacher <agruen@suse.de>.
32156
32157 2010-04-27  Eric Blake  <eblake@redhat.com>
32158
32159         full-read, full-write: relax license
32160         * modules/full-read (License): Drop to LGPLv2+.
32161         * modules/full-write (License): Likewise.
32162         * modules/safe-read (License): Likewise.
32163         * modules/safe-write (License): Likewise.
32164
32165         pthread: mention library for linking
32166         * modules/pthread (Link): Mention $(LIB_PTHREAD).
32167
32168 2010-04-27  Jim Meyering  <meyering@redhat.com>
32169
32170         maint.mk: fix a bug introduced in last change
32171         * top/maint.mk (gl_assured_headers_): Now that all names are on
32172         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
32173         is not anchored to end of word, it should be adequate.
32174
32175         maint.mk: avoid side-effect in latest syntax-check
32176         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
32177         to run commands via $(shell...), and hence to incur cost only when
32178         the new rule is actually run.
32179
32180         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
32181         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
32182         and use that to create a regexp used to detect all #if HAVE_..._H uses.
32183         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
32184         (gl_assured_headers_, az_, AZ_): Define.
32185         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
32186
32187 2010-04-26  Jim Meyering  <jim@meyering.net>
32188             Bruno Haible  <bruno@clisp.org>
32189
32190         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
32191         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
32192         Prompted by an exchange with Gilles Espinasse.
32193
32194 2010-04-26  Jim Meyering  <meyering@redhat.com>
32195
32196         git-version-gen: aesthetic tweak
32197         * build-aux/git-version-gen: Use "$nl" rather than a literal,
32198         so that the command remains on a single line.
32199
32200 2010-04-26  Eric Blake  <eblake@redhat.com>
32201
32202         git-version-gen: allow use on EBCDIC hosts
32203         * build-aux/git-version-gen (dirty): Use literal rather than tying
32204         ourselves to ascii.
32205         Reported by Steve Goetze.
32206
32207 2010-04-25  Bruno Haible  <bruno@clisp.org>
32208
32209         netdb: Add support for GNULIB_POSIXCHECK.
32210         * lib/netdb.in.h: Include warn-on-use.h.
32211         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
32212         functions are used when GNULIB_POSIXCHECK is defined and the
32213         getaddrinfo module is not in use.
32214         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
32215         freeaddrinfo, gai_strerror, getnameinfo are declared.
32216         * modules/netdb (Depends-on): Add warn-on-use.
32217         (Makefile.am): Include warn-on-use.h in netdb.h.
32218
32219 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
32220
32221         build: avoid "make check" failure without .git/ directory
32222         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
32223         there is no .git/ directory.
32224
32225 2010-04-25  Bruno Haible  <bruno@clisp.org>
32226
32227         ptsname: Fix misuse of ttyname_r.
32228         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
32229         of errno.
32230
32231 2010-04-25  Bruno Haible  <bruno@clisp.org>
32232
32233         ttyname_r: Make it work on Solaris 10.
32234         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
32235         if the system function has the POSIX declaration. Test whether the
32236         function fails if the buffer is less than 128 bytes large.
32237         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
32238         system's ttyname_r function. Provide a reasonably large buffer.
32239         * modules/ttyname_r (Depends-on): Add extensions.
32240         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
32241
32242 2010-04-25  Bruno Haible  <bruno@clisp.org>
32243
32244         Use the 'extensions' module for some more functions on Solaris.
32245         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
32246         module.
32247         * doc/posix-functions/ctime_r.texi: Likewise.
32248         * doc/posix-functions/getgrgid_r.texi: Likewise.
32249         * doc/posix-functions/getgrnam_r.texi: Likewise.
32250         * doc/posix-functions/getpwnam_r.texi: Likewise.
32251         * doc/posix-functions/getpwuid_r.texi: Likewise.
32252         * doc/posix-functions/readdir_r.texi: Likewise.
32253         * doc/posix-functions/sigwait.texi: Likewise.
32254         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
32255         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
32256
32257 2010-04-25  Bruno Haible  <bruno@clisp.org>
32258
32259         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
32260         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
32261         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
32262         * lib/ttyname_r.c: Include <limits.h>.
32263         (ttyname_r): Define using the system's ttyname_r function, if it exists
32264         and not on Solaris.
32265         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
32266         set.
32267         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
32268         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
32269         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
32270         Reported by Simon Josefsson.
32271
32272 2010-04-25  Bruno Haible  <bruno@clisp.org>
32273
32274         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
32275         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
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/getlogin_r.texi: Likewise.
32280         * doc/posix-functions/getpwnam_r.texi: Likewise.
32281         * doc/posix-functions/getpwuid_r.texi: Likewise.
32282         * doc/posix-functions/readdir_r.texi: Likewise.
32283         * doc/posix-functions/sigwait.texi: Likewise.
32284         * doc/posix-functions/ttyname_r.texi: Likewise.
32285         Reported by Simon Josefsson.
32286
32287 2010-04-25  Bruno Haible  <bruno@clisp.org>
32288
32289         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
32290         * gnulib-tool (func_usage): Document that --with-*-tests options apply
32291         also to --create-testdir.
32292         (func_acceptable): Don't consider the status of *-tests modules here.
32293         (func_modules_transitive_closure): Consider it here, before including a
32294         test module.
32295         (func_import, func_create_testdir): Set inc_all_direct_tests,
32296         inc_all_indirect_tests.
32297         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
32298         --create-testdir and --create-megatestdir.
32299
32300 2010-04-25  Bruno Haible  <bruno@clisp.org>
32301
32302         gnulib-tool: Add --without-*-tests options.
32303         * gnulib-tool (func_usage): Document the --without-*-tests options.
32304         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
32305         excl_unportable_tests): New variables.
32306         Fail if they are specified with --import or --update.
32307         (func_acceptable): Respect the excl_*_tests variables.
32308         (func_import): Set the excl_*_tests variables to empty.
32309
32310 2010-04-25  Simon Josefsson  <simon@josefsson.org>
32311             Bruno Haible  <bruno@clisp.org>
32312
32313         Work around a MacOS X 10.4 bug with openpty.
32314         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
32315         * tests/test-openpty.c (main): Close the master side explicitly.
32316
32317 2010-04-25  Bruno Haible  <bruno@clisp.org>
32318
32319         strnlen: Fix a C++ test error on MacOS X and Solaris.
32320         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
32321         the function is not declared.
32322         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
32323         Simon Josefsson.
32324
32325 2010-04-24  Bruno Haible  <bruno@clisp.org>
32326
32327         Avoid a gcc warning.
32328         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
32329         of correct type for %08lx directive.
32330         Reported by Eric Blake.
32331
32332 2010-04-24  Bruno Haible  <bruno@clisp.org>
32333
32334         vasnprintf: Correct errno value in case of out-of-memory.
32335         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
32336         or sprintf. Use the errno value from SNPRINTF or sprintf.
32337         Reported by Ian Beckwith <ianb@erislabs.net>.
32338
32339 2010-04-24  Bruno Haible  <bruno@clisp.org>
32340
32341         ansi-c++-opt: Find correct compiler when cross-compiling.
32342         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
32343         AC_CHECK_PROGS.
32344         Reported by Simon Josefsson.
32345
32346 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
32347
32348         vc-list-files: Add support for subversion
32349         * build-aux/vc-list-files: Use "svn list" to generate the list of
32350         files controlled by subversion.
32351
32352 2010-04-23  Jim Meyering  <meyering@redhat.com>
32353
32354         vc-list-files tests: convert to use init.sh
32355         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
32356         path_prepend_.
32357         Use Exit, not exit.
32358         Use skip_ rather than open coding it.
32359         Remove trap set-up and compare definitions.
32360         * tests/test-vc-list-files-git.sh: Likewise.
32361         * modules/vc-list-files-tests (Files): Add tests/init.sh.
32362
32363 2010-04-22  Simon Josefsson  <simon@josefsson.org>
32364
32365         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
32366         backup files.
32367
32368 2010-04-21  Simon Josefsson  <simon@josefsson.org>
32369
32370         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
32371
32372 2010-04-20  Eric Blake  <eblake@redhat.com>
32373
32374         tests: be robust to ignored SIGPIPE
32375         * tests/test-select-in.sh: Consume all output.
32376         * tests/test-lseek.sh: Check correct exit status, while avoiding
32377         EPIPE.
32378
32379 2010-04-20  Simon Josefsson  <simon@josefsson.org>
32380             Bruno Haible  <bruno@clisp.org>
32381
32382         visibility: Don't use -fvisibility if it leads to a warning.
32383         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
32384         yes, don't pretend that visibility works if it leads to a warning.
32385         Reported by Mike Gran <spk121@yahoo.com>.
32386
32387 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
32388
32389         * build-aux/bootstrap: Use "git -h" for testing for supported options
32390         instead of "git --help".  The short-form option only shows a summary,
32391         and doesn't layout the full man page.  Grep for the full option name
32392         in the summary, too.
32393
32394 2010-04-19  Bruno Haible  <bruno@clisp.org>
32395
32396         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
32397         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
32398         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
32399         mention of RELOCATABLE_STRIP.
32400         Reported by Sylvain Beucler <beuc@beuc.net>.
32401
32402 2010-04-19  Bruno Haible  <bruno@clisp.org>
32403
32404         * lib/diffseq.h: Fix typo in comment.
32405         Reported by Eric Blake.
32406
32407 2010-04-19  Bruno Haible  <bruno@clisp.org>
32408
32409         ioctl: Move autoconf macro to a .m4 file.
32410         * m4/ioctl.m4: New file, extracted from modules/ioctl.
32411         * modules/ioctl (Files): Add it.
32412         (configure.ac): Simply invoke gl_FUNC_IOCTL.
32413         Reported by Ian Beckwith <ianb@erislabs.net>.
32414
32415 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
32416             Bruno Haible  <bruno@clisp.org>
32417
32418         diffseq: Accommodate use-case with abstract arrays.
32419         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
32420         is not defined.
32421         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
32422         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
32423
32424 2010-04-18  Bruno Haible  <bruno@clisp.org>
32425
32426         * doc/posix-headers/stdbool.texi: More precise wording.
32427
32428 2010-04-17  Jim Meyering  <meyering@redhat.com>
32429
32430         maint.mk: use gnu-style indentation in an embedded perl script
32431         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
32432         Rename variable: s/two/last_two_bytes/
32433
32434 2010-04-16  Eric Blake  <eblake@redhat.com>
32435
32436         test-stdbool: skip test that fails with Solaris CC
32437         * tests/test-stdbool.c (f): Skip test that causes compilation
32438         error under buggy C++ compiler.
32439         * lib/stdbool.in.h: Document the limitation.
32440         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
32441
32442         setenv: allow compilation with C++
32443         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
32444         register keyword.
32445
32446         stdint: allow test to pass with C++
32447         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
32448
32449         getopt: allow compilation with C++
32450         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
32451         struct.
32452         * lib/getopt.c (_getopt_internal_r): Use correct type.
32453         Reported by Dagobert Michelson, via Joel E. Denny.
32454
32455 2010-04-16  Bruno Haible  <bruno@clisp.org>
32456
32457         Override netdb.h always.
32458         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
32459         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
32460         Reported by Ludovic Courtès <ludo@gnu.org>.
32461
32462 2010-04-15  Bruno Haible  <bruno@clisp.org>
32463
32464         openpty: Fix mistake from 2010-03-21.
32465         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
32466         Reported by Simon Josefsson.
32467
32468 2010-04-15  Eric Blake  <eblake@redhat.com>
32469
32470         test-forkpty: fix expected signature
32471         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
32472         Reported by Simon Josefsson.
32473
32474 2010-04-15  Jim Meyering  <meyering@redhat.com>
32475
32476         maint.mk: texinfo_suffix_re_: correct the default regexp
32477         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
32478
32479         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
32480         make it configurable via texinfo_suffix_re_.
32481
32482 2010-04-14  Eric Blake  <eblake@redhat.com>
32483
32484         strtok_r: relax license to LGPLv2+
32485         * modules/strtok_r (License): Relax license.
32486         Reported by Matthias Bolte.
32487
32488 2010-04-14  Simon Josefsson  <simon@josefsson.org>
32489
32490         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
32491         version 1.4.4 by default instead of requiring the libgcrypt
32492         version used during build.  This makes it possible to use the
32493         application with older but still binary compatible libgcrypt
32494         versions.
32495
32496 2010-04-13  Eric Blake  <eblake@redhat.com>
32497
32498         getopt-gnu: match recent glibc fixes and posix ruling
32499         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
32500         '+' handling, when requesting extensions.
32501         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
32502         'W;' handling.
32503         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
32504         * doc/posix-functions/getopt.texi (getopt): Document this.
32505         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
32506         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
32507         Likewise.
32508
32509         getopt: merge bug fixes from glibc
32510         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
32511         diagnostics.  Honor '+:' correctly.  Reject ';'.
32512
32513         getopt-posix: detect MacOS bug
32514         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
32515         optind when missing a required argument.
32516         * doc/posix-functions/getopt.texi (getopt): Document the bug.
32517         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
32518         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
32519         Likewise.
32520
32521         getopt-posix: avoid spurious failure on Solaris
32522         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
32523         an indicator that setting optind=1 is sufficient for reset.
32524
32525         getopt-posix: avoid spurious failure on FreeBSD
32526         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
32527         in POSIX mode, since the m4 test uses it.
32528
32529         gnulib-tool: silence warning on BSD sh
32530         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
32531
32532 2010-04-13  Jim Meyering  <meyering@redhat.com>
32533
32534         doc: users.txt: GNU patch now uses gnulib
32535         * users.txt: Add patch.
32536
32537 2010-04-12  Jim Meyering  <meyering@redhat.com>
32538
32539         maint.mk: generate more concise timing data for syntax-check rules
32540         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
32541         " done" from each line that reports a syntax-check test duration.
32542
32543 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
32544
32545         git-version-gen: use "git update-index..." rather than "git status"
32546         * build-aux/git-version-gen: Use git update-index --refresh, not
32547         "git status".  With some versions of git, "git status" would fail
32548         to update the index and result in an unwarranted "-dirty" suffix.
32549
32550 2010-04-11  Jim Meyering  <meyering@redhat.com>
32551
32552         openat: correct formatting (no semantic change)
32553         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
32554         Suggested by Bruno Haible.
32555
32556 2010-04-11  Bruno Haible  <bruno@clisp.org>
32557
32558         Stricter declaration checking in testdirs.
32559         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
32560         If for_tests is true, augment AM_CPPFLAGS to define
32561         GNULIB_STRICT_CHECKING.
32562         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
32563         GNULIB_STRICT_CHECKING is defined, verify that the function is
32564         declared.
32565
32566 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
32567             Bruno Haible  <bruno@clisp.org>
32568
32569         libunistring: Improve configure output.
32570         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
32571         Don't say "consider installing GNU libunistring" when checking again
32572         with libiconv.
32573
32574 2010-04-11  Bruno Haible  <bruno@clisp.org>
32575
32576         libunistring: Correct value of $LTLIBUNISTRING.
32577         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
32578         correct the value of $LTLIBUNISTRING.
32579
32580 2010-04-11  Bruno Haible  <bruno@clisp.org>
32581
32582         havelib: Add static libraries to LIBS in the right order.
32583         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
32584         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
32585
32586 2010-04-11  Bruno Haible  <bruno@clisp.org>
32587
32588         libunistring: Detect libunistring also when it depends on libiconv.
32589         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
32590         the second AC_LIB_HAVE_LINKFLAGS invocation.
32591
32592 2010-04-11  James Youngman  <jay@gnu.org>
32593
32594         close-stream: declare local scalars to be "const"
32595         * lib/close-stream.c (close_stream): Make boolean variables const
32596         to document the fact that we set but do not change them.
32597
32598 2010-04-11  Bruno Haible  <bruno@clisp.org>
32599
32600         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
32601
32602 2010-04-11  Jim Meyering  <meyering@redhat.com>
32603
32604         maint.mk: don't include dist-check.mk
32605         * top/maint.mk: Remove bogus include directive.
32606
32607         maint.mk: improve empty-line-at-EOF check
32608         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
32609         solution, rather than tail+Perl-based one.  The latter would read
32610         a few kilobytes from the end of each file, and did not handle empty
32611         files properly.
32612
32613         maint.mk: print the elapsed time for each syntax-check rule
32614         * top/maint.mk (sc_m_rules_): Save start time in a file.
32615         (sc_z_rules_): New rules: remove temp file and print elapsed time.
32616         (local-check): Interpose the .z rules
32617
32618 2010-04-11  Jim Meyering  <meyering@redhat.com>
32619
32620         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
32621         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
32622         empty file with one that ends in an empty line.
32623
32624 2010-04-10  Bruno Haible  <bruno@clisp.org>
32625
32626         mkdir: Make it work on mingw64.
32627         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
32628         * lib/mkdir.c: Update comment.
32629         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
32630
32631 2010-04-10  Bruno Haible  <bruno@clisp.org>
32632
32633         Don't override improved macro from newer autoconf.
32634         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
32635         autoconf >= 2.62.
32636         Reported by Joel E. Denny <jdenny@clemson.edu>.
32637
32638 2010-04-10  Jim Meyering  <meyering@redhat.com>
32639
32640         maint.mk: new syntax-check rule: prohibit empty lines at end of file
32641         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
32642
32643         maint.mk: correct a diagnostic
32644         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
32645         in diagnostic; now use $prohibit.
32646
32647 2010-04-10  Bruno Haible  <address@hidden>
32648
32649         fchownat: Fix a C++ test error on Solaris 8.
32650         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
32651         the function does not exist.
32652
32653 2010-04-10  Bruno Haible  <bruno@clisp.org>
32654
32655         vasnprintf: Add more tests.
32656         * tests/test-vasnprintf-posix.c: Include <errno.h>.
32657         (test_function): Test converting an invalid wide string.
32658
32659         vasnprintf: Correct handling of unconvertible wide string arguments.
32660         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
32661         VASNPRINTF.
32662         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
32663         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
32664         smaller than the expected maximum need for the directive. Set errno to
32665         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
32666         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
32667         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
32668         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
32669         * modules/vasnprintf (Files): Add m4/printf.m4.
32670         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
32671
32672 2010-04-10  Bruno Haible  <bruno@clisp.org>
32673
32674         vasnprintf: Fix crash in %ls directive.
32675         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
32676         string is passed as argument to %ls, with no precision and no width.
32677         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
32678
32679 2010-04-10  Bruno Haible  <bruno@clisp.org>
32680
32681         vasnprintf: Fix multiple test failures on mingw.
32682         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
32683         _snprintf, or snwprintf, not _snwprintf.
32684
32685 2010-04-10  Bruno Haible  <bruno@clisp.org>
32686
32687         write: Fix a C++ test error on mingw.
32688         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
32689
32690 2010-04-10  Bruno Haible  <bruno@clisp.org>
32691
32692         vasnprintf test: Reduce code duplication.
32693         * tests/test-vasnprintf.c (test_function): New function, extracted from
32694         test_vasnprintf.
32695         (test_vasnprintf, test_asnprintf): Invoke it.
32696
32697 2010-04-10  Bruno Haible  <bruno@clisp.org>
32698
32699         strnlen: Fix warning in C++ mode on MacOS X.
32700         * lib/string.in.h (strnlen): Use the modern idiom.
32701         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
32702         defining strnlen as a macro already in <config.h>.
32703         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
32704         REPLACE_STRNLEN.
32705         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
32706         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
32707
32708 2010-04-08  James Youngman  <jay@gnu.org>
32709
32710         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
32711         the example.
32712
32713 2010-04-09  Jim Meyering  <meyering@redhat.com>
32714
32715         maint.mk: print better diagnostic when there is no $(_hv_file)
32716         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
32717         announce that when $(_hv_file) (aka help-version) does not exist.
32718
32719         init.sh: run tr in the "C" locale to avoid multibyte interpretation
32720         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
32721         not try to interpret its random input bytes.  Jarno Rajahalme reported
32722         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
32723         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
32724         (mktempd_): Likewise, just in case.
32725
32726         ftruncate: add two years to projected module removal date: 2012
32727         * m4/ftruncate.m4: Adjust comments.
32728
32729         ftruncate: mark module as obsolete; even MinGW provides it, now
32730         * modules/ftruncate (Status): Obsolete.
32731         (Notice): Say that.
32732         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
32733         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
32734
32735 2010-04-08  Bruno Haible  <bruno@clisp.org>
32736
32737         Fix side effects from tests-related modules.
32738         * modules/dprintf-posix (Comment): New section.
32739         * modules/fprintf-posix (Comment): Likewise.
32740         * modules/obstack-printf-posix (Comment): Likewise.
32741         * modules/printf-posix (Comment): Likewise.
32742         * modules/snprintf-posix (Comment): Likewise.
32743         * modules/sprintf-posix (Comment): Likewise.
32744         * modules/vasnprintf-posix (Comment): Likewise.
32745         * modules/vasprintf-posix (Comment): Likewise.
32746         * modules/vdprintf-posix (Comment): Likewise.
32747         * modules/vfprintf-posix (Comment): Likewise.
32748         * modules/vprintf-posix (Comment): Likewise.
32749         * modules/vsnprintf-posix (Comment): Likewise.
32750         * modules/vsprintf-posix (Comment): Likewise.
32751         * modules/xprintf-posix (Comment): Likewise.
32752         * modules/xvasprintf-posix (Comment): Likewise.
32753         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
32754         * modules/floorf-tests (Depends-on): Likewise.
32755         * modules/round-tests (Depends-on): Likewise.
32756         * modules/roundf-tests (Depends-on): Likewise.
32757         * modules/trunc-tests (Depends-on): Likewise.
32758         * modules/truncf-tests (Depends-on): Likewise.
32759         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
32760         'fprintf-posix' module is not present.
32761         * tests/test-floorf2.c (check): Likewise.
32762         * tests/test-trunc2.c (check): Likewise.
32763         * tests/test-truncf2.c (check): Likewise.
32764         * tests/test-round2.c (equal): Likewise.
32765         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
32766
32767 2010-04-07  Karl Berry  <karl@gnu.org>
32768
32769         * config/srclist.txt,
32770         * config/srclistvars.sh,
32771         * config/srclist-update: doc fixes.
32772
32773 2010-04-07  Jim Meyering  <meyering@redhat.com>
32774
32775         maint.mk: add a PATH crosschecking syntax-check rule
32776         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
32777         Useful if you use a test like the one in help-version (coreutils,
32778         diffutils, grep, gzip) that ensures $(VERSION) matches what is
32779         printed by prog --version.
32780
32781 2010-04-06  Bruno Haible  <bruno@clisp.org>
32782
32783         Fix link error on mingw.
32784         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
32785         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
32786
32787 2010-04-06  Bruno Haible  <bruno@clisp.org>
32788
32789         Assume rmdir exists.
32790         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
32791
32792 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
32793
32794         doc: update users.txt
32795         * users.txt: Add gcal.
32796
32797 2010-04-06  Jim Meyering  <meyering@redhat.com>
32798
32799         init.sh: simply unset TMPDIR rather than risking env -i
32800         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
32801         although it probably works fine on all Unix-based systems, some
32802         systems (Cygwin?) cannot tolerate a totally cleared environment.
32803         Suggestion from Eric Blake.
32804
32805 2010-04-06  Jim Meyering  <meyering@redhat.com>
32806
32807         init.sh: portability fix: use env's POSIX-specified -i option not -u
32808         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
32809         than unportable env -u.  Solaris 5.11's env lacks support for -u.
32810
32811 2010-04-05  Bruno Haible  <bruno@clisp.org>
32812
32813         btowc: Work around Cygwin 1.7.2 bug.
32814         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
32815         does not map NUL to 0.
32816         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
32817
32818 2010-04-05  Bruno Haible  <bruno@clisp.org>
32819
32820         Make the multithread modules work on Cygwin 1.7.2.
32821         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
32822         imported symbols can be declared weak, so that it returns "no" on
32823         Cygwin 1.7.2.
32824
32825 2010-04-05  Bruno Haible  <bruno@clisp.org>
32826
32827         Use the module 'strncat'.
32828         * modules/unistr/u8-strncat (Depends-on): Add strncat.
32829
32830         Tests for module 'strncat'.
32831         * modules/strncat-tests: New file.
32832         * tests/test-strncat.c: New file.
32833
32834         New module 'strncat'.
32835         * lib/string.in.h (strncat): New declaration.
32836         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
32837         * m4/strncat.m4: New file, based on m4/memchr.m4.
32838         * modules/strncat: New file.
32839         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
32840         is declared.
32841         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
32842         REPLACE_STRNCAT.
32843         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
32844         REPLACE_STRNCAT.
32845         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
32846         module.
32847         * tests/test-string-c++.cc: Check signature of strncat.
32848
32849 2010-04-05  Jim Meyering  <meyering@redhat.com>
32850
32851         xstrtoumax-tests: convert to use init.sh
32852         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
32853         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
32854         Use Exit, not exit.
32855         Remove uses of $EXEEXT and "./" to run a program in the current dir.
32856
32857         xstrtoimax-tests: convert to use init.sh
32858         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
32859         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
32860         Use Exit, not exit.
32861         Remove uses of $EXEEXT and "./" to run a program in the current dir.
32862
32863 2010-04-05  Bruno Haible  <bruno@clisp.org>
32864
32865         sys_socket: Avoid #define replacements in C++ mode.
32866         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
32867         warning to the function if possible, rather than #defining the symbol
32868         to a dysfunctional alias.
32869
32870 2010-04-05  Bruno Haible  <bruno@clisp.org>
32871
32872         fseeko: Fix C++ test error on mingw.
32873         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
32874         gl_FUNC_FSEEKO.
32875         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
32876         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
32877         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
32878         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
32879
32880 2010-04-05  Bruno Haible  <bruno@clisp.org>
32881
32882         duplocale: Improve test output.
32883         * tests/test-duplocale.c (main): Print reason for skipped test.
32884
32885 2010-04-05  Bruno Haible  <bruno@clisp.org>
32886
32887         Assume rmdir exists.
32888         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
32889         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
32890
32891 2010-04-05  Bruno Haible  <bruno@clisp.org>
32892
32893         Fix link error on Solaris 8 with cc.
32894         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
32895
32896 2010-04-05  Bruno Haible  <bruno@clisp.org>
32897
32898         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
32899         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
32900
32901 2010-04-05  Bruno Haible  <bruno@clisp.org>
32902
32903         vasprintf: Update documentation.
32904         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
32905
32906 2010-04-05  Bruno Haible  <bruno@clisp.org>
32907
32908         ptsname: Improve test.
32909         * tests/test-ptsname.c (main): Also try the various master names of BSD
32910         systems.
32911
32912 2010-04-05  Bruno Haible  <bruno@clisp.org>
32913
32914         memchr: Avoid a possible C++ test error.
32915         * lib/string.in.h (memchr): Provide declaration if function is missing.
32916         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
32917         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
32918         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
32919         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
32920
32921 2010-04-05  Bruno Haible  <bruno@clisp.org>
32922
32923         strtok_r: Improve idiom.
32924         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
32925         AC_LIBOBJ is used.
32926
32927 2010-04-05  Bruno Haible  <bruno@clisp.org>
32928
32929         strdup: Improve idiom.
32930         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
32931         AC_LIBOBJ is used.
32932         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
32933         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
32934         when AC_LIBOBJ is used.
32935
32936 2010-04-05  Bruno Haible  <bruno@clisp.org>
32937
32938         mbsinit, mbrtowc, wcrtomb: Improve idioms.
32939         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
32940         don't set REPLACE_MBSINIT to 1.
32941         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
32942         don't set REPLACE_MBRTOWC to 1.
32943         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
32944         exist, don't set REPLACE_MBSRTOWCS to 1.
32945         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
32946         exist, don't set REPLACE_MBSNRTOWCS to 1.
32947         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
32948         don't set REPLACE_WCRTOMB to 1.
32949         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
32950         exist, don't set REPLACE_WCSRTOMBS to 1.
32951         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
32952         exist, don't set REPLACE_WCSNRTOMBS to 1.
32953
32954 2010-04-05  Bruno Haible  <bruno@clisp.org>
32955
32956         ldexpl: Improve idiom.
32957         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
32958         make sure to set HAVE_DECL_LDEXPL to 0.
32959
32960 2010-04-05  Jim Meyering  <meyering@redhat.com>
32961
32962         xstrtol-tests: convert to use init.sh
32963         * modules/xstrtol-tests (Files): Add tests/init.sh.
32964         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
32965         Use Exit, not exit.
32966         Remove uses of $EXEEXT and "./" to run a program in the current dir.
32967
32968         atexit-tests: convert to use init.sh
32969         * modules/atexit-tests (Files): Add tests/init.sh.
32970         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
32971         Use Exit, not exit.
32972         Remove uses of $EXEEXT and "./" to run a program in the current dir.
32973
32974         init.sh: fix typo
32975         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
32976
32977         init.sh: make it easier for a test script to write to the tty, ...
32978         when using automake's parallel-tests mode.
32979         * tests/init.sh (stderr_fileno_): Define overridable variable.
32980         (warn_): New function, to use it.
32981         (fail_, skip_, framework_failure_): Use warn_.
32982
32983 2010-04-04  Bruno Haible  <bruno@clisp.org>
32984
32985         btowc: Avoid warning.
32986         * lib/btowc.c: Include <stdlib.h>.
32987         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
32988
32989 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
32990             Bruno Haible  <bruno@clisp.org>
32991
32992         wchar: Port to NetBSD 1.5.
32993         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
32994         * lib/wctype.in.h (WEOF): Likewise.
32995
32996 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
32997             Bruno Haible  <bruno@clisp.org>
32998
32999         Port extended stdio to NetBSD 1.5.
33000         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
33001         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
33002         older.
33003
33004 2010-04-04  Bruno Haible  <bruno@clisp.org>
33005
33006         string: Remove unused substitution.
33007         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
33008         HAVE_DECL_STRERROR.
33009         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
33010
33011 2010-04-04  Bruno Haible  <bruno@clisp.org>
33012
33013         strtod: Avoid a possible C++ test error.
33014         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
33015         set REPLACE_STRTOD.
33016
33017 2010-04-04  Bruno Haible  <bruno@clisp.org>
33018
33019         strerror: Update documentation.
33020         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
33021
33022 2010-04-04  Bruno Haible  <bruno@clisp.org>
33023
33024         stdio: Fix some C++ test errors on Solaris 8 with GCC.
33025         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
33026         _GL_CXXALIAS_SYS_CAST.
33027
33028 2010-04-04  Bruno Haible  <bruno@clisp.org>
33029
33030         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
33031         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
33032         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
33033         REPLACE_FREXPL to 1.
33034         * doc/posix-functions/frexpl.texi: Update documentation.
33035
33036 2010-04-04  Bruno Haible  <bruno@clisp.org>
33037
33038         math: Fix some C++ test errors on Solaris 8 and Cygwin.
33039         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
33040
33041 2010-04-04  Bruno Haible  <bruno@clisp.org>
33042
33043         Implement nanosleep for native Windows.
33044         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
33045
33046 2010-04-04  Bruno Haible  <bruno@clisp.org>
33047
33048         math: Fix some C++ test errors on Solaris 8.
33049         * lib/math.in.h (truncf, trunc): Use simpler idiom.
33050
33051 2010-04-04  Bruno Haible  <bruno@clisp.org>
33052
33053         math: Fix some C++ test errors on Cygwin.
33054         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
33055         truncl): Provide declaration if the system does not have it.
33056         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
33057         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
33058         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
33059         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
33060         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
33061         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
33062         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
33063         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
33064         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
33065         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
33066         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
33067         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
33068         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
33069         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
33070         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
33071         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
33072         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
33073         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
33074         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
33075         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
33076         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
33077         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
33078
33079 2010-04-04  Bruno Haible  <bruno@clisp.org>
33080
33081         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
33082         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
33083         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
33084         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
33085         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
33086         * m4/isinf.m4 (gl_ISINF): Likewise.
33087         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
33088
33089 2010-04-04  Bruno Haible  <bruno@clisp.org>
33090
33091         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
33092         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
33093
33094 2010-04-04  Bruno Haible  <bruno@clisp.org>
33095
33096         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
33097         * modules/tmpfile (configure.ac): Update.
33098
33099         tmpfile: Fix C++ test error on mingw.
33100         * lib/stdio.in.h (tmpfile): New declaration.
33101         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
33102         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
33103         * modules/tmpfile (Depends-on): Add stdio.
33104         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
33105         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
33106         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
33107         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
33108         REPLACE_TMPFILE.
33109         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
33110
33111 2010-04-04  Bruno Haible  <bruno@clisp.org>
33112
33113         ioctl: Fix C++ test error on mingw.
33114         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
33115         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
33116         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
33117
33118 2010-04-03  Bruno Haible  <bruno@clisp.org>
33119
33120         wcwidth: Fix C++ test error on mingw.
33121         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
33122         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
33123         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
33124
33125 2010-04-03  Bruno Haible  <bruno@clisp.org>
33126
33127         nanosleep: Fix C++ test error on mingw.
33128         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
33129         * lib/time.in.h (nanosleep): Use modern idiom.
33130         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
33131         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
33132         REPLACE_NANOSLEEP to 1.
33133         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
33134         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
33135
33136 2010-04-03  Bruno Haible  <bruno@clisp.org>
33137
33138         strptime: Fix C++ test error on mingw.
33139         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
33140         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
33141         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
33142         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
33143         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
33144         not REPLACE_STRPTIME.
33145         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
33146         REPLACE_STRPTIME.
33147
33148 2010-04-03  Bruno Haible  <bruno@clisp.org>
33149
33150         timegm: Fix C++ test error on mingw.
33151         * lib/time.in.h (timegm): Use modern idiom.
33152         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
33153         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
33154         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
33155         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
33156
33157 2010-04-03  Bruno Haible  <bruno@clisp.org>
33158
33159         timegm: Assume declaration if function exists.
33160         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
33161         if it exists. Don't clobber ac_cv_func_timegm.
33162
33163 2010-04-03  Bruno Haible  <bruno@clisp.org>
33164
33165         time_r: Fix C++ test error on mingw.
33166         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
33167         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
33168         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
33169         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
33170         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
33171
33172 2010-04-03  Bruno Haible  <bruno@clisp.org>
33173
33174         time_r: Minor updates.
33175         * modules/time_r (Description): Mention the provided functions.
33176         * lib/time_r.c: Don't include <string.h>.
33177         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
33178         * doc/posix-functions/localtime_r.texi: Likewise.
33179
33180 2010-04-03  Bruno Haible  <bruno@clisp.org>
33181
33182         time: Fix regression introduced on 2010-03-08.
33183         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
33184         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
33185
33186 2010-04-03  Jim Meyering  <meyering@redhat.com>
33187
33188         maint.mk: don't silently disable project-specific syntax-check rules
33189         * top/maint.mk (_prohibit_regexp): Define, to help people realize
33190         that they need to convert their project-specific syntax-check rules
33191         to use the new _sc_search_regexp.
33192
33193 2010-04-03  Bruno Haible  <bruno@clisp.org>
33194
33195         fchdir: Fix regression introduced on 2010-03-08.
33196         * lib/unistd.in.h (fchdir): Fix declaration.
33197         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
33198         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
33199         REPLACE_FCHDIR.
33200         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
33201         REPLACE_FCHDIR.
33202
33203 2010-04-03  Bruno Haible  <bruno@clisp.org>
33204
33205         getpagesize: Fix C++ test error on mingw.
33206         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
33207         system does not declare the function.
33208         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
33209         declared.
33210         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
33211         HAVE_DECL_GETPAGESIZE.
33212         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
33213
33214 2010-04-03  Bruno Haible  <bruno@clisp.org>
33215
33216         stdio: Make C++ tests work on mingw.
33217         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
33218         does not declare the function.
33219
33220 2010-04-03  Bruno Haible  <bruno@clisp.org>
33221
33222         ftello: Fix C++ test error on mingw.
33223         * lib/stdio.in.h (ftello): Use modern idiom.
33224         * lib/ftello.c (ftello): Renamed from rpl_ftello.
33225         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
33226         is missing and that it needs to be replaced.
33227         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
33228         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
33229         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
33230
33231 2010-04-03  Bruno Haible  <bruno@clisp.org>
33232
33233         fseeko: Fix C++ test error on mingw.
33234         * lib/stdio.in.h (fseeko): Use modern idiom.
33235         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
33236         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
33237         is missing and that it needs to be replaced.
33238         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
33239         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
33240         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
33241
33242 2010-04-03  Bruno Haible  <bruno@clisp.org>
33243
33244         mkstemp: Fix C++ test error on mingw.
33245         * lib/stdlib.in.h (mkstemp): Use modern idiom.
33246         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
33247         function is missing and that it needs to be replaced.
33248         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
33249         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
33250
33251 2010-04-03  Bruno Haible  <bruno@clisp.org>
33252
33253         stpncpy: Fix C++ test error on mingw.
33254         * lib/string.in.h (stpncpy): Use modern idiom.
33255         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
33256         function is missing and that it needs to be replaced.
33257         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
33258         REPLACE_STPNCPY.
33259         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
33260
33261 2010-04-03  Bruno Haible  <bruno@clisp.org>
33262
33263         sys_stat: Fix C++ test error on mingw.
33264         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
33265         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
33266
33267 2010-04-03  Bruno Haible  <bruno@clisp.org>
33268
33269         pty: Update doc.
33270         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
33271
33272 2010-04-03  Bruno Haible  <bruno@clisp.org>
33273
33274         unistd: Fix C++ test error on mingw.
33275         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
33276
33277 2010-04-03  Bruno Haible  <bruno@clisp.org>
33278
33279         Update doc regarding mingw.
33280         * doc/glibc-functions/openpty.texi: Update regarding mingw.
33281         * doc/glibc-functions/login_tty.texi: Likewise.
33282         * doc/glibc-functions/forkpty.texi: Likewise.
33283
33284 2010-04-03  Bruno Haible  <bruno@clisp.org>
33285
33286         stdlib: Avoid compilation failure of c-strtold on mingw.
33287         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
33288
33289 2010-04-03  Bruno Haible  <bruno@clisp.org>
33290
33291         locale: Make C++ tests work on Cygwin and mingw.
33292         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
33293         cannot provide the function.
33294         Reported by Simon Josefsson.
33295
33296 2010-04-03  Bruno Haible  <bruno@clisp.org>
33297
33298         localename: Port to MacOS X 10.6.
33299         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
33300         memory layout of the locales in MacOS X 10.6 as well.
33301         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
33302
33303 2010-04-02  Bruno Haible  <bruno@clisp.org>
33304
33305         gnulib-tool: Ensure that long-running tests are executed last.
33306         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
33307         running tests after the one for the other tests.
33308
33309 2010-04-02  Bruno Haible  <bruno@clisp.org>
33310
33311         gnulib-tool: Ensure the tests in the main directory are executed first.
33312         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
33313         start with the current directory.
33314
33315 2010-04-02  Bruno Haible  <bruno@clisp.org>
33316
33317         Tests for module 'havelib', moved here from GNU gettext.
33318         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
33319         modifications.
33320         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
33321         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
33322         with modifications.
33323         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
33324         modifications.
33325         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
33326         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
33327         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
33328         with modifications.
33329         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
33330         with modifications.
33331         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
33332         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
33333         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
33334         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
33335         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
33336         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
33337         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
33338         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
33339         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
33340         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
33341         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
33342         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
33343         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
33344         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
33345         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
33346         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
33347         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
33348         with modifications.
33349         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
33350         with modifications.
33351         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
33352         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
33353         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
33354         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
33355         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
33356         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
33357         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
33358         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
33359         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
33360         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
33361         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
33362         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
33363         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
33364         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
33365         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
33366         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
33367         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
33368         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
33369         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
33370         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
33371         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
33372         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
33373         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
33374         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
33375         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
33376         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
33377         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
33378         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
33379         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
33380         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
33381         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
33382         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
33383         * tests/havelib/rpathx/rpathx.c: New file, from
33384         gettext/autoconf-lib-link.
33385         * tests/havelib/rpathx/Makefile.am: New file, from
33386         gettext/autoconf-lib-link.
33387         * tests/havelib/rpathx/configure.ac: New file, from
33388         gettext/autoconf-lib-link with modifications.
33389         * tests/havelib/rpathy/rpathy.c: New file, from
33390         gettext/autoconf-lib-link.
33391         * tests/havelib/rpathy/Makefile.am: New file, from
33392         gettext/autoconf-lib-link.
33393         * tests/havelib/rpathy/configure.ac: New file, from
33394         gettext/autoconf-lib-link with modifications.
33395         * tests/havelib/rpathz/rpathz.c: New file, from
33396         gettext/autoconf-lib-link.
33397         * tests/havelib/rpathz/Makefile.am: New file, from
33398         gettext/autoconf-lib-link.
33399         * tests/havelib/rpathz/configure.ac: New file, from
33400         gettext/autoconf-lib-link with modifications.
33401         * tests/havelib/rpathlx/usex.c: New file, from
33402         gettext/autoconf-lib-link.
33403         * tests/havelib/rpathlx/Makefile.am: New file, from
33404         gettext/autoconf-lib-link.
33405         * tests/havelib/rpathlx/configure.ac: New file, from
33406         gettext/autoconf-lib-link with modifications.
33407         * tests/havelib/rpathly/usey.c: New file, from
33408         gettext/autoconf-lib-link.
33409         * tests/havelib/rpathly/Makefile.am: New file, from
33410         gettext/autoconf-lib-link.
33411         * tests/havelib/rpathly/configure.ac: New file, from
33412         gettext/autoconf-lib-link with modifications.
33413         * tests/havelib/rpathlz/usez.c: New file, from
33414         gettext/autoconf-lib-link.
33415         * tests/havelib/rpathlz/Makefile.am: New file, from
33416         gettext/autoconf-lib-link.
33417         * tests/havelib/rpathlz/configure.ac: New file, from
33418         gettext/autoconf-lib-link with modifications.
33419         * tests/havelib/rpathlyx/usey.c: New file, from
33420         gettext/autoconf-lib-link.
33421         * tests/havelib/rpathlyx/Makefile.am: New file, from
33422         gettext/autoconf-lib-link.
33423         * tests/havelib/rpathlyx/configure.ac: New file, from
33424         gettext/autoconf-lib-link with modifications.
33425         * tests/havelib/rpathlzyx/usez.c: New file, from
33426         gettext/autoconf-lib-link.
33427         * tests/havelib/rpathlzyx/Makefile.am: New file, from
33428         gettext/autoconf-lib-link.
33429         * tests/havelib/rpathlzyx/configure.ac: New file, from
33430         gettext/autoconf-lib-link with modifications.
33431         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
33432         with modifications.
33433
33434 2010-04-02  Bruno Haible  <bruno@clisp.org>
33435
33436         gnulib-tool: Create distributed built sources also for the tests.
33437         * gnulib-tool (func_create_testdir): Also generate distributed built
33438         sources in the tests directory.
33439
33440 2010-04-02  Bruno Haible  <bruno@clisp.org>
33441
33442         gnulib-tool: Obey user's environment variables.
33443         * gnulib-tool (func_create_testdir): When creating built sources,
33444         respect the environment variables for autoconf, automake, etc. given by
33445         the user.
33446
33447 2010-04-02  Bruno Haible  <bruno@clisp.org>
33448
33449         gnulib-tool: Provide the value of --m4-base to modules.
33450         * gnulib-tool (func_import, func_create_testdir): Emit a definition
33451         of gl_m4_base.
33452
33453 2010-04-02  Eric Blake  <eblake@redhat.com>
33454
33455         maint.mk: fix some fallout
33456         * NEWS: Document the incompatible change, and its effect on cfg.mk.
33457         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
33458
33459 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
33460
33461         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
33462         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
33463         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
33464         (sc_cast_of_x_alloc_return_value): Likewise.
33465         (sc_cast_of_alloca_return_value): Likewise.
33466         (sc_space_tab): Likewise.
33467         (sc_prohibit_atoi_atof): Likewise.
33468         (sc_prohibit_magic_number_exit): Likewise.
33469         (sc_error_exit_success): Likewise.
33470         (sc_file_system): Likewise.
33471         (sc_prohibit_have_config_h): Likewise.
33472         (sc_require_config_h): Likewise.
33473         (sc_prohibit_HAVE_MBRTOWC): Likewise.
33474         (sc_obsolete_symbols): Likewise.
33475         (sc_changelog): Likewise.
33476         (sc_program_name): Likewise.
33477         (sc_the_the): Likewise.
33478         (sc_trailing_blank): Likewise.
33479         (sc_two_space_separator_in_usage): Likewise.
33480         (sc_useless_cpp_parens): Likewise.
33481         (sc_GPL_version): Likewise.
33482         (sc_GFDL_version): Likewise.
33483         (sc_texinfo_acronym): Likewise.
33484         (sc_prohibit_cvs_keyword): Likewise.
33485         (sc_prohibit_stat_st_blocks): Likewise.
33486         (sc_prohibit_S_IS_definition): Likewise.
33487         (sc_redundant_const): Likewise.
33488         (sc_makefile_TAB_only_indentation): Likewise.
33489         (sc_m4_quote_check): Likewise.
33490         (sc_makefile_path_separator_check): Likewise.
33491         (sc_copyright_check): Likewise.
33492         (sc_Wundef_boolean): Likewise.
33493         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
33494
33495         maint.mk: match 0 or more whitespace-before-function-call '('
33496         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
33497         that have zero or two-and-more spaces between the function name
33498         and the open parenthesis.
33499         (sc_error_message_warn_fatal): Likewise.
33500         (sc_error_message_uppercase): Likewise.
33501         (sc_error_message_period): Likewise.
33502
33503 2010-03-31  Eric Blake  <eblake@redhat.com>
33504
33505         maint.mk: check for [ as well as test
33506         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
33507         Based on a libvirt report by Matthias Bolte.
33508
33509         gnumakefile: don't squelch _version output
33510         * top/GNUmakefile (_version): Create one-shot dependency rather
33511         than using $(shell) when version must be regenerated.
33512         (_autoreconf): Run verbosely, by default.
33513
33514         sys_time: avoid compiler warnings
33515         * lib/sys_time.in.h (includes): Ensure gcc pragma is
33516         unconditional, fixing regression from 2010-03-29.
33517         Reported by Simon Josefsson.
33518
33519 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
33520
33521         maint.mk: s/_header_without_use/_sc_header_without_use/
33522         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
33523         (sc_prohibit_assert_without_use): Use the new name.
33524         (sc_prohibit_close_stream_without_use): Likewise.
33525         (sc_prohibit_getopt_without_use): Likewise.
33526         (sc_prohibit_quotearg_without_use): Likewise.
33527         (sc_prohibit_quote_without_use): Likewise.
33528         (sc_prohibit_long_options_without_use): Likewise.
33529         (sc_prohibit_inttostr_without_use): Likewise.
33530         (sc_prohibit_ignore_value_without_use): Likewise.
33531         (sc_prohibit_error_without_use): Likewise.
33532         (sc_prohibit_xalloc_without_use): Likewise.
33533         (sc_prohibit_hash_without_use): Likewise.
33534         (sc_prohibit_hash_pjw_without_use): Likewise.
33535         (sc_prohibit_safe_read_without_use): Likewise.
33536         (sc_prohibit_argmatch_without_use): Likewise.
33537         (sc_prohibit_canonicalize_without_use): Likewise.
33538         (sc_prohibit_root_dev_ino_without_use): Likewise.
33539         (sc_prohibit_openat_without_use): Likewise.
33540         (sc_prohibit_c_ctype_without_use): Likewise.
33541         (sc_prohibit_signal_without_use): Likewise.
33542         (sc_prohibit_intprops_without_use): Likewise.
33543
33544 2010-03-30  Eric Blake  <eblake@redhat.com>
33545
33546         maint: improve module indicators
33547         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
33548         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
33549         columns, and avoid extra macro expansion.
33550
33551         fdopendir: work around FreeBSD bug
33552         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
33553         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
33554         * modules/dirent (Makefile.am): Substitute it.
33555         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
33556         declaration.
33557         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
33558         fix.
33559         Reported by Christian Weisgerber <naddy@mips.inka.de>.
33560
33561 2010-03-29  Bruno Haible  <bruno@clisp.org>
33562
33563         Emit #pragma system_header after the inclusion guard, not before.
33564         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
33565         guard that spans the entire file, not before. This enables an
33566         optimization in GCC's preprocessor.
33567         * lib/ctype.in.h: Likewise.
33568         * lib/dirent.in.h: Likewise.
33569         * lib/errno.in.h: Likewise.
33570         * lib/float.in.h: Likewise.
33571         * lib/getopt.in.h: Likewise.
33572         * lib/iconv.in.h: Likewise.
33573         * lib/langinfo.in.h: Likewise.
33574         * lib/locale.in.h: Likewise.
33575         * lib/math.in.h: Likewise.
33576         * lib/netdb.in.h: Likewise.
33577         * lib/netinet_in.in.h: Likewise.
33578         * lib/pty.in.h: Likewise.
33579         * lib/sched.in.h: Likewise.
33580         * lib/se-selinux.in.h: Likewise.
33581         * lib/search.in.h: Likewise.
33582         * lib/spawn.in.h: Likewise.
33583         * lib/stdarg.in.h: Likewise.
33584         * lib/stdint.in.h: Likewise.
33585         * lib/string.in.h: Likewise.
33586         * lib/strings.in.h: Likewise.
33587         * lib/sys_file.in.h: Likewise.
33588         * lib/sys_ioctl.in.h: Likewise.
33589         * lib/sys_time.in.h: Likewise.
33590         * lib/sys_times.in.h: Likewise.
33591         * lib/sys_utsname.in.h: Likewise.
33592         * lib/sys_wait.in.h: Likewise.
33593         * lib/sysexits.in.h: Likewise.
33594         * lib/wctype.in.h: Likewise.
33595
33596 2010-03-28  James Youngman  <jay@gnu.org>
33597
33598         save-cwd: don't leak a file descriptor when the caller execs.
33599         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
33600         saved file descriptor.
33601         * modules/save-cwd (Depends-on): Depend on cloexec.
33602
33603 2010-03-29  Bruno Haible  <bruno@clisp.org>
33604
33605         Remove vestiges of fts-lgpl module.
33606         * lib/fts_.h: Assume GNULIB_FTS is 1.
33607         * lib/fts.c: Likewise.
33608         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
33609
33610 2010-03-28  Bruno Haible  <bruno@clisp.org>
33611
33612         Fix definition of tests witness macro.
33613         * gnulib-tool (func_import): Fix definition of witness macro.
33614
33615 2010-03-28  Bruno Haible  <bruno@clisp.org>
33616
33617         Fix ioctl's protoype on glibc systems.
33618         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
33619         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
33620         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
33621         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
33622         signature. If not, arrange to replace the ioctl function.
33623         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
33624         REPLACE_IOCTL.
33625         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
33626         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
33627         Reported by Ludovic Courtès <ludo@gnu.org>.
33628
33629 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
33630
33631         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
33632         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
33633         made it so grep -r --include=GLOB* ... did not work.
33634
33635 2010-03-26  Jim Meyering  <meyering@redhat.com>
33636             Eric Blake  <eblake@redhat.com>
33637
33638         maint.mk: prohibit use of test's -o and -a operators
33639         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
33640
33641 2010-03-28  Bruno Haible  <bruno@clisp.org>
33642
33643         Remove unused GNULIB_XYZ macro definitions.
33644         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
33645         invocation.
33646
33647 2010-03-28  Bruno Haible  <bruno@clisp.org>
33648
33649         Mark privileged tests modules.
33650         * modules/idpriv-drop-tests (Status): New section.
33651         * modules/idpriv-droptemp-tests (Status): New section.
33652
33653 2010-03-28  Bruno Haible  <bruno@clisp.org>
33654
33655         Split C++ tests into separate tests modules.
33656         * modules/dirent-c++-tests: New file, extracted from
33657         modules/dirent-tests.
33658         * modules/dirent-tests: Depend on it.
33659         * modules/fcntl-h-c++-tests: New file, extracted from
33660         modules/fcntl-h-tests.
33661         * modules/fcntl-h-tests: Depend on it.
33662         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
33663         * modules/glob-tests: Depend on it.
33664         * modules/iconv-h-c++-tests: New file, extracted from
33665         modules/iconv-h-tests.
33666         * modules/iconv-h-tests: Depend on it.
33667         * modules/langinfo-c++-tests: New file, extracted from
33668         modules/langinfo-tests.
33669         * modules/langinfo-tests: Depend on it.
33670         * modules/locale-c++-tests: New file, extracted from
33671         modules/locale-tests.
33672         * modules/locale-tests: Depend on it.
33673         * modules/math-c++-tests: New file, extracted from modules/math-tests.
33674         * modules/math-tests: Depend on it.
33675         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
33676         * modules/pty-tests: Depend on it.
33677         * modules/search-c++-tests: New file, extracted from
33678         modules/search-tests.
33679         * modules/search-tests: Depend on it.
33680         * modules/signal-c++-tests: New file, extracted from
33681         modules/signal-tests.
33682         * modules/signal-tests: Depend on it.
33683         * modules/spawn-c++-tests: New file, extracted from
33684         modules/spawn-tests.
33685         * modules/spawn-tests: Depend on it.
33686         * modules/stdio-c++-tests: New file, extracted from
33687         modules/stdio-tests.
33688         * modules/stdio-tests: Depend on it.
33689         * modules/stdlib-c++-tests: New file, extracted from
33690         modules/stdlib-tests.
33691         * modules/stdlib-tests: Depend on it.
33692         * modules/string-c++-tests: New file, extracted from
33693         modules/string-tests.
33694         * modules/string-tests: Depend on it.
33695         * modules/sys_ioctl-c++-tests: New file, extracted from
33696         modules/sys_ioctl-tests.
33697         * modules/sys_ioctl-tests: Depend on it.
33698         * modules/sys_select-c++-tests: New file, extracted from
33699         modules/sys_select-tests.
33700         * modules/sys_select-tests: Depend on it.
33701         * modules/sys_socket-c++-tests: New file, extracted from
33702         modules/sys_socket-tests.
33703         * modules/sys_socket-tests: Depend on it.
33704         * modules/sys_stat-c++-tests: New file, extracted from
33705         modules/sys_stat-tests.
33706         * modules/sys_stat-tests: Depend on it.
33707         * modules/sys_time-c++-tests: New file, extracted from
33708         modules/sys_time-tests.
33709         * modules/sys_time-tests: Depend on it.
33710         * modules/time-c++-tests: New file, extracted from modules/time-tests.
33711         * modules/time-tests: Depend on it.
33712         * modules/unistd-c++-tests: New file, extracted from
33713         modules/unistd-tests.
33714         * modules/unistd-tests: Depend on it.
33715         * modules/wchar-c++-tests: New file, extracted from
33716         modules/wchar-tests.
33717         * modules/wchar-tests: Depend on it.
33718         * modules/wctype-c++-tests: New file, extracted from
33719         modules/wctype-tests.
33720         * modules/wctype-tests: Depend on it.
33721         Reported by Simon Josefsson.
33722
33723 2010-03-28  Bruno Haible  <bruno@clisp.org>
33724
33725         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
33726         * gnulib-tool (func_exists_module): New function, extracted from
33727         func_verify_module.
33728         (func_verify_module): Use it.
33729         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
33730         'foo' only if 'foo' exists.
33731         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
33732         module.
33733
33734 2010-03-28  Bruno Haible  <bruno@clisp.org>
33735
33736         gnulib-tool: Add support for special categories of tests.
33737         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
33738         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
33739         (func_usage): Document them.
33740         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
33741         inc_unportable_tests, inc_all_tests): New variables.
33742         (func_acceptable): Consider these variables.
33743         (func_modules_transitive_closure): Make it work when the 'Status' field
33744         consists of multiple words.
33745         (func_import): Store and restore the values of inc_cxx_tests,
33746         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
33747         inc_all_tests in gnulib-comp.m4.
33748         (func_create_testdir): Set inc_all_tests to true.
33749         * doc/gnulib.texi (Extra tests modules): New section.
33750         Suggested by Jim Meyering.
33751
33752 2010-03-28  Bruno Haible  <bruno@clisp.org>
33753
33754         ansi-c++-opt: Allow turning off the C++ build by default.
33755         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
33756         gl_CXX_CHOICE_DEFAULT_NO is defined.
33757         Requested by Eric Blake.
33758
33759 2010-03-28  Bruno Haible  <bruno@clisp.org>
33760
33761         unistd: Avoid #define replacements in C++ mode.
33762         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
33763         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
33764         setsockopt, shutdown, select): In C++, attach a warning to the function
33765         if possible, rather than #defining the symbol to a dysfunctional alias.
33766         Reported by John W. Eaton <jwe@gnu.org>.
33767
33768 2010-03-28  Bruno Haible  <bruno@clisp.org>
33769
33770         Fix link errors on mingw.
33771         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
33772         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
33773         $(LIBSOCKET).
33774         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
33775         $(LIBSOCKET).
33776
33777 2010-03-28  Bruno Haible  <bruno@clisp.org>
33778             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33779
33780         lib-ignore: Determine different options for different compilers.
33781         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
33782         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
33783         Add comments.
33784         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
33785         * NEWS: Mention the change.
33786
33787 2010-03-27  Bruno Haible  <bruno@clisp.org>
33788
33789         Remove unused GNULIB_XYZ macro definitions.
33790         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
33791         * modules/fseek (configure.ac): Likewise.
33792         * modules/ioctl (configure.ac): Likewise.
33793         * modules/open (configure.ac): Likewise.
33794         * modules/stdlib-safer (configure.ac): Likewise.
33795
33796 2010-03-27  Bruno Haible  <bruno@clisp.org>
33797
33798         Add a remark about certain modules.
33799         * modules/malloc (Comment): New section.
33800         * modules/realloc (Comment): Likewise.
33801         * modules/sigpipe (Comment): Likewise.
33802
33803 2010-03-27  Bruno Haible  <bruno@clisp.org>
33804
33805         Resolve conflict between the two kinds of module indicators.
33806         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
33807         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
33808         * modules/canonicalize (configure.ac): Invoke
33809         gl_MODULE_INDICATOR_FOR_TESTS.
33810         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
33811         GNULIB_XYZ.
33812         * tests/test-dirent-c++.cc: Likewise.
33813         * tests/test-dirent-safer.c: Likewise.
33814         * tests/test-dup2.c: Likewise.
33815         * tests/test-fchdir.c: Likewise.
33816         * tests/test-fcntl-h-c++.cc: Likewise.
33817         * tests/test-getopt.c: Likewise.
33818         * tests/test-getopt.h: Likewise.
33819         * tests/test-langinfo-c++.cc: Likewise.
33820         * tests/test-locale-c++.cc: Likewise.
33821         * tests/test-math-c++.cc: Likewise.
33822         * tests/test-pty-c++.cc: Likewise.
33823         * tests/test-search-c++.cc: Likewise.
33824         * tests/test-signal-c++.cc: Likewise.
33825         * tests/test-spawn-c++.cc: Likewise.
33826         * tests/test-stdio-c++.cc: Likewise.
33827         * tests/test-stdlib-c++.cc: Likewise.
33828         * tests/test-string-c++.cc: Likewise.
33829         * tests/test-sys_ioctl-c++.cc: Likewise.
33830         * tests/test-sys_select-c++.cc: Likewise.
33831         * tests/test-sys_socket-c++.cc: Likewise.
33832         * tests/test-sys_stat-c++.cc: Likewise.
33833         * tests/test-sys_time-c++.cc: Likewise.
33834         * tests/test-time-c++.cc: Likewise.
33835         * tests/test-unistd-c++.cc: Likewise.
33836         * tests/test-wchar-c++.cc: Likewise.
33837         * tests/uninorm/test-u8-nfc.c: Likewise.
33838         * tests/uninorm/test-u8-nfd.c: Likewise.
33839         * tests/uninorm/test-u8-nfkc.c: Likewise.
33840         * tests/uninorm/test-u8-nfkd.c: Likewise.
33841         * tests/uninorm/test-u16-nfc.c: Likewise.
33842         * tests/uninorm/test-u16-nfd.c: Likewise.
33843         * tests/uninorm/test-u16-nfkc.c: Likewise.
33844         * tests/uninorm/test-u16-nfkd.c: Likewise.
33845         * tests/uninorm/test-u32-nfc.c: Likewise.
33846         * tests/uninorm/test-u32-nfc-big.c: Likewise.
33847         * tests/uninorm/test-u32-nfd.c: Likewise.
33848         * tests/uninorm/test-u32-nfd-big.c: Likewise.
33849         * tests/uninorm/test-u32-nfkc.c: Likewise.
33850         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
33851         * tests/uninorm/test-u32-nfkd.c: Likewise.
33852         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
33853         * tests/uninorm/test-u32-normalize-big.c: Likewise.
33854
33855 2010-03-27  Bruno Haible  <bruno@clisp.org>
33856
33857         Distinguish two kinds of module indicators.
33858         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
33859         gl_MODULE_INDICATOR.
33860         (gl_MODULE_INDICATOR): New macro.
33861         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
33862         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
33863         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
33864         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
33865         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
33866         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
33867         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
33868         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
33869         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
33870         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
33871         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
33872         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
33873         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
33874         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
33875         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
33876         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
33877         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
33878         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
33879         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
33880         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
33881         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
33882         * modules/cloexec (configure.ac): Likewise.
33883         * modules/getopt-gnu (configure.ac): Likewise.
33884         * modules/uninorm/u8-normalize (configure.ac): Likewise.
33885         * modules/uninorm/u16-normalize (configure.ac): Likewise.
33886         * modules/uninorm/u32-normalize (configure.ac): Likewise.
33887         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
33888
33889 2010-03-27  Bruno Haible  <bruno@clisp.org>
33890
33891         New module description field 'Comment'.
33892         * gnulib-tool: New option --extract-comment.
33893         (func_usage): Document it.
33894         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
33895         (func_get_comment): New function.
33896         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
33897
33898 2010-03-27  Bruno Haible  <bruno@clisp.org>
33899
33900         Addendum to 2010-02-07 commit.
33901         * gnulib-tool (func_usage): Document --extract-applicability option.
33902
33903 2010-03-27  Bruno Haible  <bruno@clisp.org>
33904
33905         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
33906         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
33907         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
33908         rather than link errors.
33909
33910 2010-03-27  Bruno Haible  <bruno@clisp.org>
33911
33912         Avoid side effects from tests-related modules on the compilation of lib.
33913         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
33914         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
33915         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
33916         parameter. Emit into AM_CPPFLAGS a definition of the designated C
33917         macro.
33918         (func_import): Define a witness macro. Assign it a value that depends
33919         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
33920         tests-related modules.
33921         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
33922         Reported by Jim Meyering.
33923
33924 2010-03-27  Bruno Haible  <bruno@clisp.org>
33925
33926         Factorize common .m4 code.
33927         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
33928         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
33929         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
33930         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
33931         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
33932         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
33933         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
33934         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
33935         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
33936         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
33937         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
33938         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
33939         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
33940         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
33941         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
33942         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
33943         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
33944         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
33945         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
33946         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
33947         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
33948         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
33949         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
33950         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
33951         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
33952         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
33953         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
33954         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
33955         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
33956         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
33957         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
33958         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
33959
33960 2010-03-27  Bruno Haible  <bruno@clisp.org>
33961
33962         Fix a compilation error on Cygwin with g++ >= 4.3.
33963         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
33964         if it is undefined or if we alias it to chmod.
33965         (lstat): Don't warn about the use of this function if it is undefined
33966         or if we alias it to stat.
33967         Reported by Simon Josefsson.
33968
33969 2010-03-27  Bruno Haible  <bruno@clisp.org>
33970
33971         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
33972         * modules/getlogin (configure.ac): Update.
33973
33974         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
33975         * modules/getlogin_r (configure.ac): Update.
33976
33977         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
33978         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
33979         * modules/inet_ntop (configure.ac): Update.
33980
33981         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
33982         * modules/inet_pton (configure.ac): Update.
33983
33984         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
33985         * modules/mbslen (configure.ac): Update.
33986
33987         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
33988         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
33989         * modules/forkpty (configure.ac): Update.
33990         * modules/openpty (configure.ac): Update.
33991
33992 2010-03-26  Simon Josefsson  <simon@josefsson.org>
33993
33994         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
33995         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
33996
33997 2010-03-25  Eric Blake  <eblake@redhat.com>
33998
33999         maint: use pragma consistently across replacement headers
34000         * lib/ctype.in.h (system_header): Hoist for consistent placement.
34001         * lib/dirent.in.h (system_header): Likewise.
34002         * lib/errno.in.h (system_header): Likewise.
34003         * lib/float.in.h (system_header): Likewise.
34004         * lib/getopt.in.h (system_header): Likewise.
34005         * lib/iconv.in.h (system_header): Likewise.
34006         * lib/inttypes.in.h (system_header): Likewise.
34007         * lib/langinfo.in.h (system_header): Likewise.
34008         * lib/locale.in.h (system_header): Likewise.
34009         * lib/math.in.h (system_header): Likewise.
34010         * lib/netdb.in.h (system_header): Likewise.
34011         * lib/netinet_in.in.h (system_header): Likewise.
34012         * lib/pty.in.h (system_header): Likewise.
34013         * lib/sched.in.h (system_header): Likewise.
34014         * lib/se-selinux.in.h (system_header): Likewise.
34015         * lib/search.in.h (system_header): Likewise.
34016         * lib/spawn.in.h (system_header): Likewise.
34017         * lib/stdarg.in.h (system_header): Likewise.
34018         * lib/stdint.in.h (system_header): Likewise.
34019         * lib/string.in.h (system_header): Likewise.
34020         * lib/strings.in.h (system_header): Likewise.
34021         * lib/sys_file.in.h (system_header): Likewise.
34022         * lib/sys_ioctl.in.h (system_header): Likewise.
34023         * lib/sys_socket.in.h (system_header): Likewise.
34024         * lib/sys_times.in.h (system_header): Likewise.
34025         * lib/sys_utsname.in.h (system_header): Likewise.
34026         * lib/sys_wait.in.h (system_header): Likewise.
34027         * lib/sysexits.in.h (system_header): Likewise.
34028         * lib/unistd.in.h (system_header): Likewise.
34029         * lib/wctype.in.h (system_header): Likewise.
34030
34031         arpa/inet: fix mingw compilation warning
34032         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
34033         Reported by Matthew Bolte.
34034
34035 2010-03-25  Bruno Haible  <bruno@clisp.org>
34036
34037         Avoid collision between gnulib wrapper and libintl wrapper.
34038         * lib/printf.c (printf): Don't define if a printf wrapper is already
34039         defined in intl/printf.c.
34040         Reported by Michel Boaventura <michel@michelboaventura.com>.
34041
34042 2010-03-25  Bruno Haible  <bruno@clisp.org>
34043
34044         Use ANSI C.
34045         * lib/readutmp.h (getutent): Provide ANSI C prototype.
34046
34047 2010-03-25  Bruno Haible  <bruno@clisp.org>
34048
34049         Minor formatting changes.
34050         * lib/acosl.c: Insert space before function argument list.
34051         * lib/argz.c: Likewise.
34052         * lib/asinl.c: Likewise.
34053         * lib/expl.c: Likewise.
34054         * lib/gen-uni-tables.c: Likewise.
34055         * lib/gettext.h: Likewise.
34056         * lib/glthread/lock.h: Likewise.
34057         * lib/tanl.c: Likewise.
34058         * lib/uniname/uniname.c: Likewise.
34059         * tests/test-idpriv-drop.c: Likewise.
34060         * tests/test-idpriv-droptemp.c: Likewise.
34061         * tests/test-lock.c: Likewise.
34062         * tests/test-tls.c: Likewise.
34063         * lib/argp-help.c: Insert space before function-like macro argument
34064         list.
34065         * lib/memcmp.c: Likewise.
34066         * tests/test-base64.c: Likewise.
34067         * lib/localename.c: Insert space before sizeof's argument list.
34068         * lib/safe-alloc.h: Likewise.
34069         * lib/file-set.h: Insert space before macro argument list.
34070         * tests/test-argp.c: Likewise.
34071         * lib/argp-namefrob.h: Insert space before function parameter list.
34072         * lib/getaddrinfo.c: Likewise.
34073         * lib/netdb.in.h: Likewise.
34074         * lib/parse-duration.h: Likewise.
34075         * lib/parse-duration.c: Likewise.
34076         * lib/poll.c: Likewise.
34077         * lib/select.c: Likewise.
34078         * lib/trim.h: Likewise.
34079         * tests/test-usleep.c: Likewise.
34080         * lib/ldexpl.c: Insert space before function parameter list and before
34081         function argument list.
34082         * lib/logl.c: Likewise.
34083         * lib/sqrtl.c: Likewise.
34084         * lib/trim.c: Likewise.
34085         * lib/cosl.c: Use GNU style indentation. Insert space before function
34086         argument list.
34087         * lib/sinl.c: Likewise.
34088         * lib/tsearch.c: Insert space after 'for'.
34089         Reported by Jim Meyering.
34090
34091 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
34092
34093         * maint.mk (sc_Wundef_boolean): Check for the presence of the
34094         config header before grepping, as it's not present before
34095         autoreconf/configure are run.  Reported by Simon Josefsson.
34096
34097 2010-03-23  Bruno Haible  <bruno@clisp.org>
34098
34099         pt_chown: Make it work with automake < 1.11.
34100         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
34101         Reported by Simon Josefsson.
34102
34103 2010-03-23  Bruno Haible  <bruno@clisp.org>
34104
34105         pt_chown: Don't depend on GPLed modules.
34106         * lib/pt_chown.c: Don't include idpriv.h.
34107         (main): Don't drop privileges.
34108         * modules/pt_chown (Depends-on): Remove idpriv-drop.
34109         Reported by Simon Josefsson.
34110
34111 2010-03-24  Simon Josefsson  <simon@josefsson.org>
34112
34113         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
34114         suggestions from karl@freefriends.org (Karl Berry).
34115
34116 2010-03-22  Eric Blake  <eblake@redhat.com>
34117
34118         gethostname: further tweaks
34119         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
34120         are overriding gethostname.
34121         Suggested by Bruno Haible.
34122
34123 2010-03-21  Bruno Haible  <bruno@clisp.org>
34124
34125         Fix comments.
34126         * lib/forkpty.c (rpl_forkpty): Fix comment.
34127         * lib/openpty.c (rpl_openpty): Likewise.
34128         Reported by Eric Blake.
34129
34130 2010-03-22  Eric Blake  <eblake@redhat.com>
34131
34132         gethostname: fix build on mingw
34133         * lib/unistd.in.h (includes): Work around fact that mingw
34134         <winsock2.h> re-includes <unistd.h>, by avoiding any
34135         redeclarations if we are being included by <winsock2.h>.
34136         Reported by Matthias Bolte.
34137
34138 2010-03-21  Bruno Haible  <bruno@clisp.org>
34139
34140         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
34141         * lib/forkpty.c (forkpty): New replacement function, from glibc with
34142         modifications.
34143         * lib/pty.in.h (forkpty): Update declaration. Add comments.
34144         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
34145         provide the replacement.
34146         * modules/forkpty (Depends-on): Add openpty, login_tty.
34147         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
34148         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
34149         * doc/glibc-functions/forkpty.texi: More supported platforms.
34150         * config/srclist.txt: Add forkpty.c (commented).
34151
34152 2010-03-21  Bruno Haible  <bruno@clisp.org>
34153
34154         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
34155         (Makefile.am): Verify that PTY_LIB is defined.
34156
34157         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
34158
34159 2010-03-21  Bruno Haible  <bruno@clisp.org>
34160
34161         Tests for module 'login_tty'.
34162         * modules/login_tty-tests: New file.
34163         * tests/test-login_tty.c: New file.
34164
34165         New module 'login_tty'.
34166         * lib/login_tty.c: New file.
34167         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
34168         * modules/login_tty: New file.
34169         * doc/glibc-functions/login_tty.texi: Mention the new module.
34170
34171 2010-03-21  Bruno Haible  <bruno@clisp.org>
34172
34173         login_tty: Documentation.
34174         * doc/glibc-functions/login_tty.texi: New file.
34175         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
34176
34177 2010-03-21  Bruno Haible  <bruno@clisp.org>
34178
34179         pty: Consistent macro naming.
34180         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
34181         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
34182         * modules/pty (configure.ac): Update.
34183
34184 2010-03-21  Bruno Haible  <bruno@clisp.org>
34185
34186         Tests for openpty: Make stricter.
34187         * tests/test-openpty.c (main): Add test of canonical processing and
34188         erase.
34189         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
34190
34191         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
34192         * lib/openpty.c (openpty): New replacement function.
34193         * lib/pty.in.h: Include <termios.h>.
34194         (openpty): Update declaration. Add comments.
34195         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
34196         is not declared, arrange to provide the replacement. Check for _getpty
34197         and posix_openpt.
34198         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
34199         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
34200         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
34201         * modules/pty-tests (test_pty_c___LDADD): New variable.
34202         * doc/glibc-functions/openpty.texi: More supported platforms.
34203
34204 2010-03-21  Bruno Haible  <bruno@clisp.org>
34205
34206         setenv: Tweaks.
34207         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
34208         the test program.
34209         * doc/posix-functions/setenv.texi: Update platforms list.
34210
34211 2010-03-21  Bruno Haible  <bruno@clisp.org>
34212
34213         New module 'unlockpt'.
34214         * lib/unlockpt.c: New file, from glibc with modifications.
34215         * m4/unlockpt.m4: New file.
34216         * modules/unlockpt: New file.
34217         * lib/stdlib.in.h (unlockpt): New declaration.
34218         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
34219         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
34220         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
34221         HAVE_UNLOCKPT.
34222         * doc/posix-functions/unlockpt.texi: Mention the new module.
34223         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
34224         * config/srclist.txt: Add unlockpt.c (commented).
34225
34226 2010-03-21  Jim Meyering  <meyering@redhat.com>
34227
34228         maint.mk: prohibit inclusion of "intprops.h" without use
34229         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
34230
34231 2010-03-21  Bruno Haible  <bruno@clisp.org>
34232
34233         New module 'grantpt'.
34234         * lib/grantpt.c: New file, from glibc with modifications.
34235         * m4/grantpt.m4: New file.
34236         * modules/grantpt: New file.
34237         * lib/stdlib.in.h (grantpt): New declaration.
34238         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
34239         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
34240         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
34241         HAVE_GRANTPT.
34242         * doc/posix-functions/grantpt.texi: Mention the new module.
34243         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
34244         * config/srclist.txt: Add grantpt.c (commented).
34245
34246 2010-03-21  Bruno Haible  <bruno@clisp.org>
34247
34248         New module 'pt_chown'.
34249         * lib/pt_chown.c: New file, from glibc with modifications.
34250         * lib/pty-private.h: New file, from glibc with modifications.
34251         * modules/pt_chown: New file.
34252         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
34253
34254 2010-03-21  Bruno Haible  <bruno@clisp.org>
34255
34256         Tests for module 'ptsname'.
34257         * modules/ptsname-tests: New file.
34258         * tests/test-ptsname.c: New file.
34259
34260         New module 'ptsname'.
34261         * lib/ptsname.c: New file, from glibc with modifications.
34262         * m4/ptsname.m4: New file.
34263         * modules/ptsname: New file.
34264         * lib/stdlib.in.h (ptsname): New declaration.
34265         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
34266         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
34267         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
34268         HAVE_PTSNAME.
34269         * doc/posix-functions/ptsname.texi: Mention the new module.
34270         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
34271         * config/srclist.txt: Add ptsname.c (commented).
34272
34273 2010-03-21  Bruno Haible  <bruno@clisp.org>
34274
34275         Tests for module 'ttyname_r'.
34276         * modules/ttyname_r-tests: New file.
34277         * tests/test-ttyname_r.c: New file.
34278
34279         New module 'ttyname_r'.
34280         * lib/ttyname_r.c: New file.
34281         * m4/ttyname_r.m4: New file.
34282         * modules/ttyname_r: New file.
34283         * lib/unistd.in.h (ttyname_r): New declaration.
34284         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
34285         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
34286         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
34287         HAVE_TTYNAME_R.
34288         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
34289         * doc/posix-functions/ttyname_r.texi: Mention the new module.
34290
34291 2010-03-20  Bruno Haible  <bruno@clisp.org>
34292
34293         signal: Undefine macro definitions in C++ mode.
34294         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
34295         sigfillset): Undefine macro definitions from the system header in C++
34296         mode.
34297         Reported by John W. Eaton <jwe@gnu.org>.
34298
34299 2010-03-20  Bruno Haible  <bruno@clisp.org>
34300
34301         Ensure no #include statements inside extern "C" { ... }.
34302         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
34303         contain #include statements.
34304         * lib/time.in.h: Likewise.
34305
34306 2010-03-20  Bruno Haible  <bruno@clisp.org>
34307
34308         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
34309         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
34310         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
34311         Reported by John W. Eaton <jwe@gnu.org>.
34312
34313 2010-03-20  Bruno Haible  <bruno@clisp.org>
34314
34315         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
34316         Reported by Jim Meyering.
34317
34318 2010-03-20  Bruno Haible  <bruno@clisp.org>
34319
34320         pipe: Set errno upon failure.
34321         * lib/pipe.h: Specify that when -1 is returned, errno is set.
34322         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
34323         errno value in error message.
34324
34325 2010-03-20  Bruno Haible  <bruno@clisp.org>
34326             Jim Meyering  <meyering@redhat.com>
34327
34328         lchown: Avoid "unused variable" warning.
34329         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
34330
34331 2010-03-20  Bruno Haible  <bruno@clisp.org>
34332
34333         Work around unlink() bug on MacOS X 10.5.6.
34334         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
34335         attempting to unlink a parent directory.
34336         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
34337         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
34338         activate for the replacement function.
34339         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
34340
34341 2010-03-20  Bruno Haible  <bruno@clisp.org>
34342
34343         Fix link errors on Solaris 8.
34344         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
34345         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
34346
34347 2010-03-19  Jim Meyering  <meyering@redhat.com>
34348
34349         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
34350         The _LIBC implementation of build_range_exp correctly honors the
34351         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
34352         However, the non-_LIBC implementation would ignore that syntax-bit
34353         flag and return REG_ERANGE unconditionally.
34354         This change makes it honor that flag.
34355         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
34356         Make two pointer parameters "const".
34357         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
34358         (parse_bracket_exp): Update caller.
34359
34360         regex.m4: correct the reversed range endpoint ([b-a]) test
34361         * m4/regex.m4: When requiring that [b-a] evoke failure,
34362         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
34363         test pass once again for x86-based systems.
34364
34365 2010-03-19  Bruno Haible  <bruno@clisp.org>
34366
34367         scandir: Fix link error on Solaris 8.
34368         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
34369         macros.
34370
34371 2010-03-19  Bruno Haible  <bruno@clisp.org>
34372
34373         getusershell: Fix documentation.
34374         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
34375         module.
34376         * doc/glibc-functions/setusershell.texi: Likewise.
34377
34378         getusershell: Provide declaration, missing on Solaris 9.
34379         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
34380         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
34381         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
34382         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
34383         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
34384         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
34385         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
34386         HAVE_GETUSERSHELL.
34387         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
34388
34389 2010-03-19  Bruno Haible  <bruno@clisp.org>
34390
34391         wctype: Provide iswblank function.
34392         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
34393         exists and is fine.
34394         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
34395         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
34396         * tests/test-wctype.c (main): Re-enable the iswblank tests.
34397         * doc/posix-functions/iswblank.texi: Update.
34398
34399 2010-03-19  Bruno Haible  <bruno@clisp.org>
34400
34401         Tests of module 'pty' in C++ mode.
34402         * modules/pty-tests: New file.
34403         * tests/test-pty-c++.cc: New file.
34404         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
34405
34406 2010-03-19  Eric Blake  <eblake@redhat.com>
34407
34408         logb: fix documentation
34409         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
34410         1.5 declaration bug.
34411
34412         forkpty, openpty: prefer glibc's const-safe prototype
34413         * lib/forkpty.c (rpl_forkpty): New file.
34414         * lib/openpty.c (rpl_openpty): Likewise.
34415         * modules/forkpty (Files): Distribute it.
34416         * modules/openpty (Files): Likewise.
34417         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
34418         check...
34419         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
34420         replacement for for non-const BSD signature.
34421         * modules/pty (Makefile.am): Substitute witnesses.
34422         * lib/pty.in.h (forkpty, openpty): Declare replacements.
34423         * tests/test-forkpty.c: Update signature check.
34424         * tests/test-openpty.c: Likewise.
34425         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
34426         * doc/glibc-functions/openpty.texi (openpty): Likewise.
34427
34428         forkpty, openpty: split functions into new modules
34429         * modules/pty (Makefile.am): Substitute new witnesses.
34430         (Libraries): Move library detection...
34431         * modules/forkpty: ...into new module.
34432         * modules/openpty: Another new module.
34433         * modules/pty-tests: Rename and split...
34434         * modules/forkpty-tests: ...to this...
34435         * modules/openpty-tests: ...and this.
34436         * tests/test-pty.c: Rename and split...
34437         * tests/test-forkpty.c: ...to this...
34438         * tests/test-openpty.c: ...and this.
34439         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
34440         (gl_PTY): Split library searching...
34441         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
34442         (gl_FORKPTY, gl_OPENPTY): New macros.
34443         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
34444         * NEWS: Mention the split.
34445         * MODULES.html.sh (Misc): Document the modules.
34446         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
34447         * doc/glibc-functions/openpty.texi (openpty): Likewise.
34448
34449         pty: improve replacement header
34450         * lib/pty.in.h: New file.
34451         * modules/pty (Files): Ship it.
34452         (Makefile.am): Always build replacement.
34453         * m4/pty.m4: Rename...
34454         * m4/pty_h.m4: ...to this.
34455         (gl_PTY): Modernize setting of witness macros; update check of
34456         forkpty to take proper advantage of cache.
34457         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
34458
34459         getopt: avoid compiler warning
34460         * lib/getopt.c (attribute_hidden): Remove unused macro.
34461
34462 2010-03-18  Bruno Haible  <bruno@clisp.org>
34463
34464         Fix link errors on Solaris 8.
34465         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
34466         * modules/search-tests (test_search_c___LDADD): Likewise.
34467         * modules/signal-tests (test_signal_c___LDADD): Likewise.
34468         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
34469         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
34470         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
34471         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
34472         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
34473         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
34474
34475 2010-03-18  Bruno Haible  <bruno@clisp.org>
34476
34477         Fix bug introduced on 2010-03-14.
34478         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
34479         (gl_SPAWN_H): Require it.
34480         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
34481         Reported by Simon Josefsson.
34482
34483 2010-03-18  Bruno Haible  <bruno@clisp.org>
34484
34485         Fix typo introduced on 2009-12-31.
34486         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
34487         posix_spawn_file_actions_adddup2.
34488
34489 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
34490         and Eric Blake  <eblake@redhat.com>
34491
34492         test-vc-list-files-git: make more robust
34493         * tests/test-vc-list-files-git.sh: Unset problematic environment
34494         variables.  Chain commands together.
34495
34496 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
34497
34498         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
34499         `AC_CHECK_DECL' invocation.
34500
34501 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
34502
34503         * lib/inttostr.c (inttostr): Make sure the invocation of verify
34504         appears before executable statements. Suggested by Petr Sumbera
34505         <Petr.Sumbera@Sun.COM>.
34506
34507 2010-03-14  Bruno Haible  <bruno@clisp.org>
34508
34509         * tests/test-flock.c (test_exclusive): Comment out a test that causes
34510         portability problems. Instead use a simpler test.
34511         (main): Check that invalid arguments are rejected only on Linux.
34512
34513 2010-03-14  Bruno Haible  <bruno@clisp.org>
34514
34515         Fix bug introduced on 2009-12-31.
34516         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
34517         gl_PREREQ_SYS_H_WINSOCK2 always.
34518         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
34519         SYS_SOCKET_H variable.
34520         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
34521         Update comments.
34522         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
34523         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
34524         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
34525         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
34526         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
34527
34528 2010-03-14  Bruno Haible  <bruno@clisp.org>
34529
34530         Fix values returned by sinl, cosl.
34531         * lib/trigl.h: Add specification comments.
34532         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
34533         that combines the values from the precomputed table with the values of
34534         the Chebyshev polynomials.
34535
34536 2010-03-14  Bruno Haible  <bruno@clisp.org>
34537
34538         Fix compilation error when modules 'posix_spawn[p]' are not used.
34539         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
34540         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
34541
34542 2010-03-14  Bruno Haible  <bruno@clisp.org>
34543
34544         Fix compilation error on mingw when module 'time_r' is not used.
34545         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
34546         is 1.
34547         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
34548         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
34549         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
34550         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
34551
34552 2010-03-14  Bruno Haible  <bruno@clisp.org>
34553
34554         Fix compilation error with Sun C.
34555         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
34556         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
34557         instead of GCC specific ULONG_LONG_MAX.
34558         * lib/xstrtoll.c: Likewise.
34559         * lib/xstrtoull.c: Likewise.
34560
34561 2010-03-13  Bruno Haible  <bruno@clisp.org>
34562
34563         Allow the user to disable C++ code and tests.
34564         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
34565         (gl_PROG_ANSI_CXX): Require it.
34566
34567 2010-03-13  Bruno Haible  <bruno@clisp.org>
34568
34569         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
34570         cases.
34571
34572 2010-03-13  Bruno Haible  <bruno@clisp.org>
34573
34574         Test that gnulib does not break the standard C++ headers.
34575         * tests/test-locale-c++2.cc: New file.
34576         * modules/locale-tests (Files): Add it.
34577         (Makefile.am): Compile it for test-locale-c++.
34578         * tests/test-math-c++2.cc: New file.
34579         * modules/math-tests (Files): Add it.
34580         (Makefile.am): Compile it for test-math-c++.
34581         * tests/test-signal-c++2.cc: New file.
34582         * modules/signal-tests (Files): Add it.
34583         (Makefile.am): Compile it for test-signal-c++.
34584         * tests/test-stdio-c++2.cc: New file.
34585         * modules/stdio-tests (Files): Add it.
34586         (Makefile.am): Compile it for test-stdio-c++.
34587         * tests/test-stdlib-c++2.cc: New file.
34588         * modules/stdlib-tests (Files): Add it.
34589         (Makefile.am): Compile it for test-stdlib-c++.
34590         * tests/test-string-c++2.cc: New file.
34591         * modules/string-tests (Files): Add it.
34592         (Makefile.am): Compile it for test-string-c++.
34593         * tests/test-time-c++2.cc: New file.
34594         * modules/time-tests (Files): Add it.
34595         (Makefile.am): Compile it for test-time-c++.
34596         Reported by John W. Eaton <jwe@gnu.org>.
34597
34598 2010-03-13  Bruno Haible  <bruno@clisp.org>
34599
34600         * gnulib-tool (func_usage): Clarify which options are available for
34601         --create-testdir and --create-megatestdir.
34602
34603 2010-03-13  Bruno Haible  <bruno@clisp.org>
34604
34605         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
34606         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
34607         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
34608         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
34609         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
34610         when appropriate.
34611         Reported by Jim Meyering.
34612
34613 2010-03-12  Simon Josefsson  <simon@josefsson.org>
34614
34615         * gnulib-tool (func_import): Explain origin of code.
34616
34617 2010-03-12  Bruno Haible  <bruno@clisp.org>
34618
34619         Fix problem with automake's definition of CXXLINK.
34620         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
34621         Reported by Simon Josefsson and Ludovic Courtès.
34622
34623 2010-03-12  Bruno Haible  <bruno@clisp.org>
34624
34625         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
34626         stable releases.
34627
34628 2010-03-11  Bruno Haible  <bruno@clisp.org>
34629
34630         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
34631         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
34632         whether the system provides one variant or multiple variants of the
34633         function.
34634         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
34635         C++ compilers.
34636         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
34637         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
34638         Reported by Jim Meyering.
34639
34640 2010-03-09  Simon Josefsson  <simon@josefsson.org>
34641
34642         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
34643
34644 2010-03-08  Bruno Haible  <bruno@clisp.org>
34645
34646         gnulib-tool: Add support for --libtool in --create-testdir.
34647         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
34648         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
34649
34650 2010-03-08  Eric Blake  <eblake@redhat.com>
34651
34652         gnulib-tool.texi: mention possibility of git submodule
34653         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
34654         submodules.
34655         * doc/.gitignore: Ignore another generated file.
34656
34657 2010-03-08  Karl Berry  <karl@gnu.org>
34658
34659         * doc/gnulib-tool.texi (VCS Issues): Mention third option
34660         of committing gnulib files while skipping others.
34661
34662 2010-03-07  Bruno Haible  <bruno@clisp.org>
34663
34664         Tests of module 'wctype' in C++ mode.
34665         * tests/test-wctype-c++.cc: New file.
34666         * modules/wctype-tests (Files): Add it and tests/signature.h.
34667         (Depends-on): Add ansi-c++-opt.
34668         (Makefile.am): Arrange to compile and run test-wctype-c++.
34669
34670         Tests of module 'wchar' in C++ mode.
34671         * tests/test-wchar-c++.cc: New file.
34672         * modules/wchar-tests (Files): Add it and tests/signature.h.
34673         (Depends-on): Add ansi-c++-opt.
34674         (Makefile.am): Arrange to compile and run test-wchar-c++.
34675         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
34676         gl_MODULE_INDICATOR.
34677
34678         Tests of module 'unistd' in C++ mode.
34679         * tests/test-unistd-c++.cc: New file.
34680         * modules/unistd-tests (Files): Add it and tests/signature.h.
34681         (Depends-on): Add ansi-c++-opt.
34682         (Makefile.am): Arrange to compile and run test-unistd-c++.
34683         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
34684         gl_MODULE_INDICATOR.
34685
34686         Tests of module 'time' in C++ mode.
34687         * tests/test-time-c++.cc: New file.
34688         * modules/time-tests (Files): Add it and tests/signature.h.
34689         (Depends-on): Add ansi-c++-opt.
34690         (Makefile.am): Arrange to compile and run test-time-c++.
34691         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
34692
34693         Tests of module 'sys_time' in C++ mode.
34694         * tests/test-sys_time-c++.cc: New file.
34695         * modules/sys_time-tests (Files): Add it and tests/signature.h.
34696         (Depends-on): Add ansi-c++-opt.
34697         (Makefile.am): Arrange to compile and run test-sys_time-c++.
34698         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
34699         gl_MODULE_INDICATOR.
34700
34701         Tests of module 'sys_stat' in C++ mode.
34702         * tests/test-sys_stat-c++.cc: New file.
34703         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
34704         (Depends-on): Add ansi-c++-opt.
34705         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
34706         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
34707         gl_MODULE_INDICATOR.
34708
34709         Tests of module 'sys_socket' in C++ mode.
34710         * tests/test-sys_socket-c++.cc: New file.
34711         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
34712         (Depends-on): Add ansi-c++-opt.
34713         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
34714         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
34715         gl_MODULE_INDICATOR.
34716
34717         Tests of module 'sys_select' in C++ mode.
34718         * tests/test-sys_select-c++.cc: New file.
34719         * modules/sys_select-tests (Files): Add it and tests/signature.h.
34720         (Depends-on): Add ansi-c++-opt.
34721         (Makefile.am): Arrange to compile and run test-sys_select-c++.
34722         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
34723         gl_MODULE_INDICATOR.
34724
34725         Tests of module 'sys_ioctl' in C++ mode.
34726         * tests/test-sys_ioctl-c++.cc: New file.
34727         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
34728         (Depends-on): Add ansi-c++-opt.
34729         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
34730         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
34731         gl_MODULE_INDICATOR.
34732
34733         Tests of module 'string' in C++ mode.
34734         * tests/test-string-c++.cc: New file.
34735         * modules/string-tests (Files): Add it and tests/signature.h.
34736         (Depends-on): Add ansi-c++-opt.
34737         (Makefile.am): Arrange to compile and run test-string-c++.
34738         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
34739         gl_MODULE_INDICATOR.
34740
34741         Tests of module 'stdlib' in C++ mode.
34742         * tests/test-stdlib-c++.cc: New file.
34743         * modules/stdlib-tests (Files): Add it and tests/signature.h.
34744         (Depends-on): Add ansi-c++-opt.
34745         (Makefile.am): Arrange to compile and run test-stdlib-c++.
34746         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
34747         gl_MODULE_INDICATOR.
34748
34749         Tests of module 'stdio' in C++ mode.
34750         * tests/test-stdio-c++.cc: New file.
34751         * modules/stdio-tests (Files): Add it and tests/signature.h.
34752         (Depends-on): Add ansi-c++-opt.
34753         (Makefile.am): Arrange to compile and run test-stdio-c++.
34754         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
34755         gl_MODULE_INDICATOR.
34756
34757         Tests of module 'spawn' in C++ mode.
34758         * tests/test-spawn-c++.cc: New file.
34759         * modules/spawn-tests (Files): Add it and tests/signature.h.
34760         (Depends-on): Add ansi-c++-opt.
34761         (Makefile.am): Arrange to compile and run test-spawn-c++.
34762         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
34763         gl_MODULE_INDICATOR.
34764
34765         Tests of module 'signal' in C++ mode.
34766         * tests/test-signal-c++.cc: New file.
34767         * modules/signal-tests (Files): Add it and tests/signature.h.
34768         (Depends-on): Add ansi-c++-opt.
34769         (Makefile.am): Arrange to compile and run test-signal-c++.
34770         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
34771         gl_MODULE_INDICATOR.
34772
34773         Tests of module 'search' in C++ mode.
34774         * tests/test-search-c++.cc: New file.
34775         * modules/search-tests (Files): Add it and tests/signature.h.
34776         (Depends-on): Add ansi-c++-opt.
34777         (Makefile.am): Arrange to compile and run test-search-c++.
34778         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
34779         gl_MODULE_INDICATOR.
34780
34781         Tests of module 'math' in C++ mode.
34782         * tests/test-math-c++.cc: New file.
34783         * modules/math-tests (Files): Add it and tests/signature.h.
34784         (Depends-on): Add ansi-c++-opt.
34785         (Makefile.am): Arrange to compile and run test-math-c++.
34786         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
34787
34788         Tests of module 'locale' in C++ mode.
34789         * tests/test-locale-c++.cc: New file.
34790         * modules/locale-tests (Files): Add it and tests/signature.h.
34791         (Depends-on): Add ansi-c++-opt.
34792         (Makefile.am): Arrange to compile and run test-locale-c++.
34793         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
34794         gl_MODULE_INDICATOR.
34795
34796         Tests of module 'langinfo' in C++ mode.
34797         * tests/test-langinfo-c++.cc: New file.
34798         * modules/langinfo-tests (Files): Add it and tests/signature.h.
34799         (Depends-on): Add ansi-c++-opt.
34800         (Makefile.am): Arrange to compile and run test-langinfo-c++.
34801         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
34802         gl_MODULE_INDICATOR.
34803
34804         Tests of module 'iconv-h' in C++ mode.
34805         * tests/test-iconv-h-c++.cc: New file.
34806         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
34807         (Depends-on): Add ansi-c++-opt.
34808         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
34809
34810         Tests of module 'glob' in C++ mode.
34811         * tests/test-glob-c++.cc: New file.
34812         * modules/glob-tests (Files): Add it.
34813         (Depends-on): Add ansi-c++-opt.
34814         (Makefile.am): Arrange to compile and run test-glob-c++.
34815
34816         Tests of module 'fcntl-h' in C++ mode.
34817         * tests/test-fcntl-h-c++.cc: New file.
34818         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
34819         (Depends-on): Add ansi-c++-opt.
34820         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
34821         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
34822         gl_MODULE_INDICATOR.
34823
34824         Tests of module 'dirent' in C++ mode.
34825         * tests/test-dirent-c++.cc: New file.
34826         * modules/dirent-tests (Files): Add it and tests/signature.h.
34827         (Depends-on): Add ansi-c++-opt.
34828         (Makefile.am): Arrange to compile and run test-dirent-c++.
34829         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
34830         gl_MODULE_INDICATOR.
34831
34832         New module 'ansi-c++-opt'.
34833         * modules/ansi-c++-opt: New file.
34834         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
34835
34836         Document C++ namespace mode.
34837         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
34838
34839         wctype: Avoid #define replacements in C++ mode.
34840         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
34841         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
34842         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
34843         In C++, define a namespaced alias symbol.
34844         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
34845         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
34846         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
34847         rule.
34848
34849         wchar: Avoid #define replacements in C++ mode.
34850         * lib/wchar.in.h: Include c++defs.h.
34851         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
34852         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
34853         symbol.
34854         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
34855         * modules/wchar (Depends-on): Add c++defs.
34856         (Makefile.am): Update wchar.h rule.
34857
34858         unistd: Avoid #define replacements in C++ mode.
34859         * lib/unistd.in.h: Include c++defs.h.
34860         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
34861         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
34862         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
34863         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
34864         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
34865         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
34866         symbol.
34867         (environ): Update.
34868         * modules/unistd (Depends-on): Add c++defs.
34869         (Makefile.am): Update unistd.h rule.
34870
34871         time: Avoid #define replacements in C++ mode.
34872         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
34873         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
34874         define a namespaced alias symbol.
34875         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
34876         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
34877         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
34878         * modules/time (Depends-on): Add c++defs, warn-on-use.
34879         (Makefile.am): Update time.h rule.
34880         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
34881         * modules/nanosleep (configure.ac): Likewise.
34882         * modules/strptime (configure.ac): Likewise.
34883         * modules/timegm (configure.ac): Likewise.
34884
34885         sys_time: Avoid #define replacements in C++ mode.
34886         * lib/sys_time.in.h: Include c++defs.h.
34887         (gettimeofday): In C++, define a namespaced alias symbol.
34888         * modules/sys_time (Depends-on): Add c++defs.
34889         (Makefile.am): Update sys/time.h rule.
34890
34891         sys_stat: Avoid #define replacements in C++ mode.
34892         * lib/sys_stat.in.h: Include c++defs.h.
34893         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
34894         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
34895         namespaced alias symbol.
34896         In C++, define a namespaced alias symbol.
34897         * modules/sys_stat (Depends-on): Add c++defs.
34898         (Makefile.am): Update sys/stat.h rule.
34899
34900         sys_socket: Avoid #define replacements in C++ mode.
34901         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
34902         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
34903         definitions also when the system has a <sys/socket.h>.
34904         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
34905         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
34906         In C++, define a namespaced alias symbol.
34907         * modules/sys_socket (Depends-on): Add c++defs.
34908         (Makefile.am): Update sys/socket.h rule.
34909
34910         sys_select: Avoid #define replacements in C++ mode.
34911         * lib/sys_select.in.h: Include c++defs.h. Enable the function
34912         definitions also when the system has a <sys/select.h>.
34913         (select): In C++, define a namespaced alias symbol.
34914         * modules/sys_select (Depends-on): Add c++defs.
34915         (Makefile.am): Update sys/select.h rule.
34916
34917         sys_ioctl: Avoid #define replacements in C++ mode.
34918         * lib/sys_ioctl.in.h: Include c++defs.h.
34919         (ioctl): In C++, define a namespaced alias symbol.
34920         * modules/sys_ioctl (Depends-on): Add c++defs.
34921         (Makefile.am): Update sys/ioctl.h rule.
34922
34923         string: Avoid #define replacements in C++ mode.
34924         * lib/string.in.h: Include c++defs.h.
34925         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
34926         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
34927         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
34928         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
34929         strsignal, strverscmp): In C++, define a namespaced alias symbol.
34930         * modules/string (Depends-on): Add c++defs.
34931         (Makefile.am): Update string.h rule.
34932
34933         stdlib: Avoid #define replacements in C++ mode.
34934         * lib/stdlib.in.h: Include c++defs.h.
34935         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
34936         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
34937         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
34938         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
34939         symbol.
34940         * modules/stdlib (Depends-on): Add c++defs.
34941         (Makefile.am): Update stdlib.h rule.
34942
34943         stdio: Avoid #define replacements in C++ mode.
34944         * lib/stdio.in.h: Include c++defs.h.
34945         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
34946         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
34947         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
34948         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
34949         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
34950         namespaced alias symbol.
34951         * modules/stdio (Depends-on): Add c++defs.
34952         (Makefile.am): Update stdio.h rule.
34953
34954         spawn: Avoid #define replacements in C++ mode.
34955         * lib/spawn.in.h: Include c++defs.h.
34956         (posix_spawn, posix_spawnp, posix_spawnattr_init,
34957         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
34958         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
34959         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
34960         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
34961         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
34962         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
34963         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
34964         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
34965         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
34966         In C++, define a namespaced alias symbol.
34967         * modules/spawn (Depends-on): Add c++defs.
34968         (Makefile.am): Update spawn.h rule.
34969
34970         signal: Avoid #define replacements in C++ mode.
34971         * lib/signal.in.h: Include c++defs.h.
34972         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
34973         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
34974         namespaced alias symbol.
34975         * modules/signal (Depends-on): Add c++defs.
34976         (Makefile.am): Update signal.h rule.
34977
34978         search: Avoid #define replacements in C++ mode.
34979         * lib/search.in.h: Include c++defs.h.
34980         (_gl_search_compar_fn, _gl_search_action_fn): New types.
34981         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
34982         symbol.
34983         * modules/search (Depends-on): Add c++defs.
34984         (Makefile.am): Update search.h rule.
34985
34986         math: Avoid #define replacements in C++ mode.
34987         * lib/math.in.h: Include c++defs.h.
34988         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
34989         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
34990         trunc, truncl): In C++, define a namespaced alias symbol.
34991         * modules/math (Depends-on): Add c++defs.
34992         (Makefile.am): Update math.h rule.
34993
34994         locale: Avoid #define replacements in C++ mode.
34995         * lib/locale.in.h: Include c++defs.h.
34996         (duplocale): In C++, define a namespaced alias symbol.
34997         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
34998         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
34999         * modules/locale (Depends-on): Add c++defs.
35000         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
35001
35002         langinfo: Avoid #define replacements in C++ mode.
35003         * lib/langinfo.in.h: Include c++defs.h.
35004         (nl_langinfo): In C++, define a namespaced alias symbol.
35005         * modules/langinfo (Depends-on): Add c++defs.
35006         (Makefile.am): Update langinfo.h rule.
35007
35008         iconv-h: Avoid #define replacements in C++ mode.
35009         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
35010         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
35011         symbol.
35012         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
35013         whenever iconv is present.
35014         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
35015         (Makefile.am): Update iconv.h rule.
35016
35017         glob: Avoid #define replacements in C++ mode.
35018         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
35019         (_gl_glob_errfunc_fn): New type.
35020         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
35021         symbol.
35022         * modules/glob (Depends-on): Add c++defs, warn-on-use.
35023         (Makefile.am): Update glob.h rule.
35024
35025         fcntl-h: Avoid #define replacements in C++ mode.
35026         * lib/fcntl.in.h: Include c++defs.h.
35027         (fcntl, open, openat): In C++, define a namespaced alias symbol.
35028         * modules/fcntl-h (Depends-on): Add c++defs.
35029         (Makefile.am): Update fcntl.h rule.
35030
35031         dirent: Avoid #define replacements in C++ mode.
35032         * lib/dirent.in.h: Include c++defs.h.
35033         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
35034         namespaced alias symbol.
35035         (dirfd): Update declaration.
35036         * modules/dirent (Depends-on): Add c++defs.
35037         (Makefile.am): Update dirent.h rule.
35038
35039         ctype: Make it usable in C++ code.
35040         * lib/ctype.in.h: Include c++defs.h.
35041         (isblank): Declare as extern "C".
35042         * modules/ctype (Depends-on): Add c++defs.
35043         (Makefile.am): Update ctype.h rule.
35044
35045         New module 'c++defs'.
35046         * modules/c++defs: New file.
35047         * build-aux/c++defs.h: New file.
35048         Reported by John W. Eaton <jwe@gnu.org>.
35049
35050 2010-03-07  Bruno Haible  <bruno@clisp.org>
35051
35052         logb: Provide missing declaration for Cygwin.
35053         * lib/math.in.h (logb): New declaration.
35054         * m4/logb.m4: New file.
35055         * modules/logb (Files): Add m4/logb.m4.
35056         (Depends-on): Add math.
35057         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
35058         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
35059         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
35060         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
35061         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
35062
35063 2010-03-07  Bruno Haible  <bruno@clisp.org>
35064
35065         Fix test-cond link error.
35066         * tests/test-cond.c: Include <stdio.h>.
35067
35068 2010-03-07  Bruno Haible  <bruno@clisp.org>
35069
35070         Fix test-dirent-safer link error.
35071         * modules/dirent-safer-tests (Makefile.am): Define
35072         test_dirent_safer_LDADD.
35073
35074 2010-03-07  Bruno Haible  <bruno@clisp.org>
35075
35076         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
35077         among default module list.
35078
35079 2010-03-07  Bruno Haible  <bruno@clisp.org>
35080
35081         Fix link error on platforms with GNU libiconv.
35082         * modules/unistr/u8-strcoll-tests (Makefile): Define
35083         test_u8_strcoll_LDADD.
35084         * modules/unistr/u16-strcoll-tests (Makefile): Define
35085         test_u16_strcoll_LDADD.
35086         * modules/unistr/u32-strcoll-tests (Makefile): Define
35087         test_u32_strcoll_LDADD.
35088
35089 2010-03-07  Bruno Haible  <bruno@clisp.org>
35090
35091         Use POSIX declarations for socket functions.
35092         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
35093         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
35094         rpl_sendto): Change declaration to match POSIX.
35095         * lib/connect.c (rpl_connect): Likewise.
35096         * lib/accept.c (rpl_accept): Likewise.
35097         * lib/bind.c (rpl_bind): Likewise.
35098         * lib/getpeername.c (rpl_getpeername): Likewise.
35099         * lib/getsockname.c (rpl_getsockname): Likewise.
35100         * lib/recv.c (rpl_recv): Likewise.
35101         * lib/send.c (rpl_send): Likewise.
35102         * lib/recvfrom.c (rpl_recvfrom): Likewise.
35103         * lib/sendto.c (rpl_sendto): Likewise.
35104
35105 2010-03-06  Bruno Haible  <bruno@clisp.org>
35106
35107         Clarify access, euidaccess, faccessat.
35108         * doc/posix-functions/faccessat.texi: Mention security problem under
35109         "Other problems", not "Portability problems".
35110         * doc/posix-functions/access.texi: Likewise. Mention a related security
35111         problem.
35112         * doc/glibc-functions/euidaccess.texi: Mention security problems.
35113         * lib/euidaccess.c: Add comments about platforms.
35114         * lib/unistd.in.h (access, euidaccess): Add warnings.
35115
35116 2010-03-07  Bruno Haible  <bruno@clisp.org>
35117
35118         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
35119         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
35120         (POSIX_SPAWN_SETSCHEDULER): Likewise.
35121         (POSIX_SPAWN_USEVFORK): Define in a way that works when
35122         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
35123         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
35124         declare when POSIX_SPAWN_SETSCHEDULER is zero.
35125         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
35126         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
35127         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
35128         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
35129         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
35130         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
35131         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
35132         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
35133         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
35134         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
35135         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
35136         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
35137         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
35138         Likewise.
35139         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
35140         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
35141         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
35142         Likewise.
35143         * tests/test-spawn.c (main): Make it work when
35144         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
35145
35146 2010-03-07  Bruno Haible  <bruno@clisp.org>
35147
35148         Fix incorrect Makefile.am generation in German locale.
35149         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
35150         Execute sed command with character range in C locale.
35151
35152 2010-03-06  Bruno Haible  <bruno@clisp.org>
35153
35154         Tests for module 'iconv-h'.
35155         * modules/iconv-h-tests: New file.
35156         * tests/test-iconv-h.c: New file.
35157
35158         New module 'iconv-h'.
35159         * modules/iconv-h: New file.
35160         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
35161         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
35162         (configure.ac): Remove gl_ICONV_H.
35163         (Makefile.am): Remove rule for iconv.h.
35164
35165 2010-03-06  Bruno Haible  <bruno@clisp.org>
35166
35167         More consistent naming of *.m4 files.
35168         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
35169         * modules/wctype (Files): Update.
35170
35171         More consistent naming of *.m4 files.
35172         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
35173         * modules/wchar (Files): Update.
35174
35175 2010-03-06  Jim Meyering  <meyering@redhat.com>
35176
35177         euidaccess: relax license to LGPLv2+
35178         * modules/euidaccess (License): Relax to LGPLv2+.
35179
35180 2010-03-06  Bruno Haible  <bruno@clisp.org>
35181
35182         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
35183         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
35184         (Makefile.am): Augment lib_SOURCES instead.
35185
35186 2010-03-04  Jim Meyering  <meyering@redhat.com>
35187
35188         utime: remove obsolete module
35189         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
35190         unnecessary for years, and has been marked as obsolete for 10 months.
35191         * modules/utime: Remove file.
35192         * lib/utime.c: Remove file.
35193         * m4/utime.m4: Remove file.
35194         * m4/utimes-null.m4: Remove file.
35195         * doc/posix-functions/utime.texi (utime): Remove reference to
35196         the module.  Move the sole "fixed by gnulib" item into the
35197         "problems not fixed by Gnulib" list.
35198         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
35199
35200 2010-03-05  Simon Josefsson  <simon@josefsson.org>
35201
35202         * modules/exit (License): Relax license to LGPLv2+.
35203         (Status): Mark as obsolete.
35204         * NEWS: Mention deprecated 'exit' module.
35205         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
35206         of now obsolete 'exit'.
35207
35208 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35209
35210         fts-lgpl: remove unused module
35211         * modules/fts-lgpl: Remove.
35212         * MODULES.html.sh (func_all_modules): Adjust.
35213         * check-module (find_included_lib_files): Adjust.
35214         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
35215
35216 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
35217
35218         copy-acl: enhance Solaris ACL error handling
35219         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
35220         * lib/set-mode-acl.c (qset_acl): Likewise.
35221
35222 2010-03-02  Bruno Haible  <bruno@clisp.org>
35223
35224         spawn: Don't override the system defined values on FreeBSD 8.
35225         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
35226         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
35227         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
35228         if HAVE_POSIX_SPAWN is 1.
35229         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
35230
35231 2010-03-01  Bruno Haible  <bruno@clisp.org>
35232
35233         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
35234         regarding Automake.
35235
35236 2010-02-25  Bruno Haible  <bruno@clisp.org>
35237
35238         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
35239         * gnulib-tool: Define 'echo' as a function only before the ksh alias
35240         setting, not afterwards.
35241         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
35242
35243 2010-02-24  Eric Blake  <eblake@redhat.com>
35244
35245         bootstrap, git-version-gen: use timestamp
35246         * build-aux/git-version-gen (scriptversion): Force UTC.
35247         * build-aux/bootstrap (scriptversion): New variable.
35248
35249         bootstrap: allow older git
35250         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
35251         older than 1.6.4.  Requested by the libvirt project.
35252
35253 2010-02-23  Eric Blake  <eblake@redhat.com>
35254
35255         warn-on-use: work with old autoconf
35256         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
35257         AS_VAR semantics of autoconf 2.60.
35258         Reported by Bruno Haible.
35259
35260         bootstrap: improve some comments
35261         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
35262         clarification comments.
35263
35264         gettimeofday: provide correct function
35265         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
35266         when replacement is declared, otherwise provide gettimeofday.
35267         Reported by Michael Goffioul.
35268
35269 2010-02-23  Jim Meyering  <meyering@redhat.com>
35270
35271         lib-ignore: relax license to "unlimited", not LGPLv2+
35272         * modules/lib-ignore (License): Relax to "unlimited".
35273
35274 2010-02-23  Jim Meyering  <meyering@redhat.com>
35275
35276         lib-ignore: relax license to LGPLv2+
35277         * modules/lib-ignore (License): Relax to LGPLv2+.
35278
35279 2010-02-22  Eric Blake  <eblake@redhat.com>
35280
35281         lseek: avoid bash 3.2 broken pipe bug
35282         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
35283         warning from bash 3.2.
35284         Reported by Ben Pfaff, with analysis from Bruno Haible.
35285
35286         bootstrap: support non-FSF copyright holder
35287         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
35288         bootstrap.conf override of COPYRIGHT_HOLDER.
35289         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
35290
35291         bootstrap: interoperate with gettext 0.14.1
35292         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
35293
35294         bootstrap: allow for alternate submodule location
35295         * build-aux/bootstrap (gnulib_path): New variable; use instead of
35296         hardcoding submodule location.
35297         (gnulib_mk): Allow direct use of Makefile.am.
35298
35299         bootstrap: use GNULIB_SRCDIR to reduce disk usage
35300         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
35301         rather than reconfiguring where the submodule points.
35302
35303         gettimeofday: restore support for platforms that lack function
35304         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
35305         replacement if function is missing.
35306         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
35307         * modules/sys_time (Makefile.am): Substitute it.
35308         * lib/sys_time.in.h (gettimeofday): Check it.
35309         Reported by Michael Goffioul.
35310
35311 2010-02-21  Bruno Haible  <bruno@clisp.org>
35312
35313         * lib/stdio.in.h (obstack_printf): Fix typo.
35314
35315 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
35316
35317         vc-list-files: use bzr ls's -R option
35318         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
35319         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
35320
35321 2010-02-21  Jim Meyering  <meyering@redhat.com>
35322
35323         init.sh: fix EXEEXT shims to work also for names like test-prog
35324         * tests/init.sh: Re-exec a better shell, when needed.
35325         If the current shell lacks support for posix $(...), an init.sh-using
35326         test will now try to find a shell that supports that.  If EXEEXT is
35327         nonempty, we also require support for hyphen-in-alias-name and shell
35328         substitutions like ${var#glob}.  Failure to find such a shell results
35329         in a skipped test.
35330
35331 2010-02-21  Bruno Haible  <bruno@clisp.org>
35332
35333         Really work around around "broken pipe" error message from bash 3.2.
35334         * gnulib-tool (func_reset_sigpipe): Remove function.
35335         (echo): In bash 3.2, define to a function that uses printf.
35336         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
35337
35338 2010-02-20  Bruno Haible  <bruno@clisp.org>
35339
35340         Restore support for automake 1.9.6 with autoconf 2.61.
35341         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
35342         Reported by James Youngman <jay@gnu.org>.
35343
35344 2010-02-20  Bruno Haible  <bruno@clisp.org>
35345
35346         Improve *printf warning condition.
35347         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
35348         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
35349         and the function is overridden due to SIGPIPE emulation.
35350
35351 2010-02-20  Bruno Haible  <bruno@clisp.org>
35352
35353         * lib/stdio.in.h: Tweak comments.
35354
35355 2010-02-19  Bruno Haible  <bruno@clisp.org>
35356
35357         Make it easier to find modules. New gnulib-tool option '--find'.
35358         * gnulib-tool: New option --find.
35359         (func_usage): Document it.
35360         (func_sanitize_modulelist): New function, extracted from
35361         func_all_modules.
35362         (func_all_modules): Invoke it.
35363         * doc/gnulib-tool.texi (Which modules?): New node.
35364
35365 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
35366
35367         * lib/sys_select.in.h: Provide select replacement even if
35368         sys/select.h exists on a system, for Interix.
35369
35370 2010-02-18  Jim Meyering  <meyering@redhat.com>
35371
35372         init.sh: don't use $(...) just yet
35373         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
35374         to accommodate e.g., Solaris' /bin/sh.
35375
35376 2010-02-17  Bruno Haible  <bruno@clisp.org>
35377
35378         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
35379         Reported by Ludovic Courtès <ludo@gnu.org>.
35380
35381 2010-02-16  Simon Josefsson  <simon@josefsson.org>
35382
35383         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
35384         linking with -lintl.
35385
35386 2010-02-17  Simon Josefsson  <simon@josefsson.org>
35387
35388         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
35389         if not provided by the system's netdb.h.  Reported by
35390         ludo@gnu.org (Ludovic Courtès).
35391
35392 2010-02-15  Jim Meyering  <meyering@redhat.com>
35393
35394         init.sh: improve portability and efficiency
35395         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
35396         "dummy" in a for loop.
35397         Use '!', not '^' to select the complement of a character set used
35398         in a "case" statement.
35399         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
35400         Suggestions from Eric Blake.
35401
35402         init.sh: automatically accommodate programs with the .exe suffix
35403         Automatically arrange for an invocation of "prog" to execute the
35404         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
35405         may use the simpler "prog", yet still work when built on a system
35406         that requires specifying the added suffix.
35407         Do this by constructing a function named "prog" that invokes
35408         "prog.exe" for each .exe file in selected directories.
35409         * tests/init.sh (find_exe_basenames_): New function.
35410         (create_exe_shim_functions_): New function.
35411         (path_prepend_): Use it.
35412
35413         maint.mk: mark syntax-check sc_*.m rules as .PHONY
35414         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
35415         "make -t syntax-check" doesn't create a ton of sc_*.m files.
35416
35417 2010-02-14  Jim Meyering  <meyering@redhat.com>
35418
35419         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
35420         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
35421         (sc_prohibit_hash_pjw_without_use): New rule.
35422
35423         maint.mk: allow the default upload destination dir to be overridden
35424         * top/maint.mk (upload_dest_dir_): Define with a default that
35425         preserves the status quo.
35426         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
35427         Reported by Peter Simons.
35428
35429         maint.mk: prohibit inclusion of "hash.h" without_use
35430         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
35431
35432 2010-02-10  Jim Meyering  <meyering@redhat.com>
35433
35434         maint.mk: prohibit inclusion of "ignore-value.h" without_use
35435         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
35436
35437 2010-02-09  Eric Blake  <ebb9@byu.net>
35438         and Bruno Haible  <bruno@clisp.org>
35439
35440         obstack-printf-posix: ensure declaration
35441         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
35442         extracted from gl_FUNC_OBSTACK_PRINTF.
35443         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
35444         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
35445         Likewise.
35446         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
35447         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
35448         0.
35449
35450 2010-02-08  Bruno Haible  <bruno@clisp.org>
35451
35452         gnulib-tool: Fix typo in 2010-02-07 commit.
35453         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
35454         Reported by Eric Blake.
35455
35456 2010-02-07  Bruno Haible  <bruno@clisp.org>
35457
35458         gnulib-tool: Fix up caching patches.
35459         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
35460         option --no-cache. Use associative arrays when supported by the shell.
35461         (sed_comments): New variable.
35462         (modcache): Renamed from do_cache.
35463         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
35464         abbreviate unnecessarily.
35465         (have_associative): New variable.
35466         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
35467         way also for ksh and zsh.
35468         (func_init_sed_convert_to_cache_statements): New function, extracted
35469         from func_cache_lookup_module. Add support for associative arrays.
35470         Don't set the c_MODULE_cached variable here. Ignore all lines before
35471         the first field header. Remove only the final newline, not all trailing
35472         newlines. Support empty fields correctly. Limit the use of 'eval' to
35473         assignments.
35474         (func_get_description, func_get_status, func_get_notice,
35475         func_get_applicability, func_get_filelist, func_get_dependencies,
35476         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
35477         func_get_automake_snippet, func_get_include_directive,
35478         func_get_link_directive, func_get_license, func_get_maintainer):
35479         Update documentation. List the unoptimized code first. Add support for
35480         associative arrays. Limit the use of 'eval' to assignments.
35481         (func_get_applicability): Undo stylistic pessimisations.
35482         (func_get_automake_snippet, func_get_include_directive): Reduce code
35483         duplication.
35484         (func_modules_transitive_closure, func_modules_add_dummy,
35485         func_modules_notice, func_modules_to_filelist, func_add_file,
35486         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
35487         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
35488         func_create_testdir, func_create_megatestdir): Update documentation.
35489
35490 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35491
35492         * gnulib-tool (func_cache_lookup_module): Store the module name
35493         belonging to the cache variable; error out if two different
35494         module names map to the same cache variable name.
35495
35496 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35497
35498         gnulib-tool: Make caching optional.
35499         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
35500         Update matching short versions of --no-changelog.
35501         (func_usage): Update.
35502         (sed_extract_cache_prog): Renamed from ...
35503         (sed_extract_prog): ... this; revert to old extraction script.
35504         (func_get_description, func_get_status)
35505         (func_get_notice, func_get_applicability, func_get_filelist)
35506         (func_get_dependencies, func_get_autoconf_early_snippet)
35507         (func_get_autoconf_snippet, func_get_automake_snippet)
35508         (func_get_include_directive, func_get_link_directive)
35509         (func_get_license, func_get_maintainer): If $do_cache is false,
35510         use old, non-caching extraction scripts.
35511         Suggestion by Bruno Haible.
35512
35513 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35514
35515         gnulib-tool: cache module metainformation.
35516         * gnulib-tool (sed_extract_prog): Match newline before each
35517         header, and rewrite header to a shell variable suffix.
35518         (func_cache_var, func_cache_lookup_module): New functions,
35519         to turn a module name into a cache variable prefix, and to
35520         look up and cache module metainformation.
35521         (func_get_description, func_get_status)
35522         (func_get_notice, func_get_applicability, func_get_filelist)
35523         (func_get_dependencies, func_get_autoconf_early_snippet)
35524         (func_get_autoconf_snippet, func_get_automake_snippet)
35525         (func_get_include_directive, func_get_link_directive)
35526         (func_get_license, func_get_maintainer): Use
35527         func_cache_lookup_module.
35528
35529 2010-02-07  Bruno Haible  <bruno@clisp.org>
35530
35531         fnctl: Fix missing dependency.
35532         * modules/fcntl (Depends-on): Add getdtablesize.
35533         Reported by John W. Eaton <jwe@gnu.org>.
35534
35535 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
35536
35537         Argp: fix recognition of short alias options.
35538
35539         * lib/argp-parse.c (convert_options): Fix improper use of
35540         `|' between character values.
35541         * tests/test-argp.c (group1_option): New alias option
35542         --read (-r).
35543         (group1_parser): Special handling for 'r'.
35544         (test15): New test case.
35545         (test_fun): Add test15.
35546         * tests/test-argp-2.sh: Update expected --help and --usage
35547         outputs.
35548
35549 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
35550
35551         * tests/test-argp.c: Fix indentation.
35552
35553 2010-02-04  Eric Blake  <ebb9@byu.net>
35554
35555         gettimeofday: expose type of second argument
35556         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
35557         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
35558         * tests/test-gettimeofday.c: Use it to silence warning.
35559         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
35560         the issue.
35561
35562 2010-02-03  Jim Meyering  <meyering@redhat.com>
35563
35564         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
35565         * lib/regcomp.c (TYPE_SIGNED): Define.
35566         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
35567
35568         regcomp.c: avoid a new -Wshadow warning
35569         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
35570
35571 2010-02-01  Jim Meyering  <meyering@redhat.com>
35572
35573         removing useless parentheses in cpp #define directives
35574         For motivation, see commit c0221df4, "define STREQ(a,b)
35575         consistently, removing useless parentheses"
35576         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
35577         * lib/mountlist.c (MNT_IGNORE): Likewise.
35578         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
35579
35580 2010-02-01  Eric Blake  <ebb9@byu.net>
35581
35582         sys_time: use link-warning
35583         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
35584         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
35585         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
35586         * modules/sys_time (Depends-on): Add warn-on-use.
35587         (Makefile.am): Always build replacement.
35588         (configure.ac): Update substitutions.
35589         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
35590         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
35591         bother with SYS_TIME_H.
35592         * modules/gettimeofday (configure.ac): Declare indicator.
35593         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
35594         in use.
35595
35596         closein-tests: silence compiler warning
35597         * tests/test-closein.c (main): Ignore fread result.
35598         * modules/closein-tests (Depends-on): Add ignore-value.
35599
35600         tests: silence warning about system return
35601         * tests/test-areadlink-with-size.c (main): Ignore system result.
35602         * tests/test-areadlink.c (main): Likewise.
35603         * tests/test-areadlinkat-with-size.c (main): Likewise.
35604         * tests/test-areadlinkat.c (main): Likewise.
35605         * tests/test-canonicalize-lgpl.c (main): Likewise.
35606         * tests/test-canonicalize.c (main): Likewise.
35607         * tests/test-chown.c (main): Likewise.
35608         * tests/test-fchownat.c (main): Likewise.
35609         * tests/test-fdutimensat.c (main): Likewise.
35610         * tests/test-fstatat.c (main): Likewise.
35611         * tests/test-futimens.c (main): Likewise.
35612         * tests/test-lchown.c (main): Likewise.
35613         * tests/test-link.c (main): Likewise.
35614         * tests/test-linkat.c (main): Likewise.
35615         * tests/test-lstat.c (main): Likewise.
35616         * tests/test-mkdir.c (main): Likewise.
35617         * tests/test-mkdirat.c (main): Likewise.
35618         * tests/test-mkfifo.c (main): Likewise.
35619         * tests/test-mkfifoat.c (main): Likewise.
35620         * tests/test-mknod.c (main): Likewise.
35621         * tests/test-readlink.c (main): Likewise.
35622         * tests/test-remove.c (main): Likewise.
35623         * tests/test-rename.c (main): Likewise.
35624         * tests/test-renameat.c (main): Likewise.
35625         * tests/test-rmdir.c (main): Likewise.
35626         * tests/test-symlink.c (main): Likewise.
35627         * tests/test-symlinkat.c (main): Likewise.
35628         * tests/test-unlink.c (main): Likewise.
35629         * tests/test-unlinkat.c (main): Likewise.
35630         * tests/test-utimens.c (main): Likewise.
35631         * tests/test-utimensat.c (main): Likewise.
35632         * modules/areadlink-tests (Depends-on): Add ignore-value.
35633         * modules/areadlink-with-size-tests (Depends-on): Likewise.
35634         * modules/areadlinkat-tests (Depends-on): Likewise.
35635         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
35636         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
35637         * modules/canonicalize-tests (Depends-on): Likewise.
35638         * modules/chown-tests (Depends-on): Likewise.
35639         * modules/fdutimensat-tests (Depends-on): Likewise.
35640         * modules/futimens-tests (Depends-on): Likewise.
35641         * modules/lchown-tests (Depends-on): Likewise.
35642         * modules/link-tests (Depends-on): Likewise.
35643         * modules/linkat-tests (Depends-on): Likewise.
35644         * modules/lstat-tests (Depends-on): Likewise.
35645         * modules/mkdir-tests (Depends-on): Likewise.
35646         * modules/mkfifo-tests (Depends-on): Likewise.
35647         * modules/mkfifoat-tests (Depends-on): Likewise.
35648         * modules/mknod-tests (Depends-on): Likewise.
35649         * modules/openat-tests (Depends-on): Likewise.
35650         * modules/readlink-tests (Depends-on): Likewise.
35651         * modules/remove-tests (Depends-on): Likewise.
35652         * modules/rename-tests (Depends-on): Likewise.
35653         * modules/renameat-tests (Depends-on): Likewise.
35654         * modules/rmdir-tests (Depends-on): Likewise.
35655         * modules/symlink-tests (Depends-on): Likewise.
35656         * modules/symlinkat-tests (Depends-on): Likewise.
35657         * modules/unlink-tests (Depends-on): Likewise.
35658         * modules/utimens-tests (Depends-on): Likewise.
35659         * modules/utimensat-tests (Depends-on): Likewise.
35660
35661 2010-01-31  Bruno Haible  <bruno@clisp.org>
35662
35663         Perform the same test for many <math.h> functions.
35664         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
35665         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
35666         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
35667         of gl_MATHFUNC.
35668         * modules/acos (configure.ac): Likewise.
35669         * modules/asin (configure.ac): Likewise.
35670         * modules/atan (configure.ac): Likewise.
35671         * modules/atan2 (configure.ac): Likewise.
35672         * modules/cbrt (configure.ac): Likewise.
35673         * modules/copysign (configure.ac): Likewise.
35674         * modules/cos (configure.ac): Likewise.
35675         * modules/cosh (configure.ac): Likewise.
35676         * modules/erf (configure.ac): Likewise.
35677         * modules/erfc (configure.ac): Likewise.
35678         * modules/exp (configure.ac): Likewise.
35679         * modules/fmod (configure.ac): Likewise.
35680         * modules/hypot (configure.ac): Likewise.
35681         * modules/j0 (configure.ac): Likewise.
35682         * modules/j1 (configure.ac): Likewise.
35683         * modules/jn (configure.ac): Likewise.
35684         * modules/lgamma (configure.ac): Likewise.
35685         * modules/log (configure.ac): Likewise.
35686         * modules/log10 (configure.ac): Likewise.
35687         * modules/log1p (configure.ac): Likewise.
35688         * modules/pow (configure.ac): Likewise.
35689         * modules/remainder (configure.ac): Likewise.
35690         * modules/sin (configure.ac): Likewise.
35691         * modules/sinh (configure.ac): Likewise.
35692         * modules/tan (configure.ac): Likewise.
35693         * modules/tanh (configure.ac): Likewise.
35694         * modules/y0 (configure.ac): Likewise.
35695         * modules/y1 (configure.ac): Likewise.
35696         * modules/yn (configure.ac): Likewise.
35697         Suggested by Paolo Bonzini.
35698
35699 2010-01-31  Bruno Haible  <bruno@clisp.org>
35700
35701         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
35702
35703 2010-01-31  Bruno Haible  <bruno@clisp.org>
35704
35705         Work around getdelim() bug on FreeBSD 8.0.
35706         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
35707         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
35708         not work.
35709         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
35710         is 1.
35711         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
35712         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
35713         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
35714         a non-zero size.
35715         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
35716
35717 2010-01-31  Bruno Haible  <bruno@clisp.org>
35718
35719         Work around getline() bug on FreeBSD 8.0.
35720         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
35721         and a non-zero size.
35722         * tests/test-getline.c (main): Likewise.
35723         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
35724         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
35725
35726 2010-01-28  Eric Blake  <ebb9@byu.net>
35727
35728         regex: fix build failure
35729         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
35730         platforms.
35731
35732 2010-01-28  Jim Meyering  <meyering@redhat.com>
35733
35734         regex: do not ignore memory allocation failure
35735         * lib/regex_internal.c (create_cd_newstate): Detect
35736         re_node_set_init_copy failure.   Extracted from glibc commit
35737         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
35738
35739         regex: sync more white-space changes from libc
35740         * lib/regex_internal.c: White-space only changes.
35741         * lib/regexec.c: Likewise.
35742
35743         regex: add many uses of __attribute_warn_unused_result__
35744         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
35745         * lib/regexec.c: Likewise.
35746         Extracted from a messy glibc commit.
35747
35748         regcomp.c: spelling and merge-artifact from glibc
35749         * lib/regcomp.c: Merge remainder of glibc's
35750         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
35751
35752         regcomp.c: sync white-space changes from glibc
35753         * lib/regcomp.c: Merge to accommodate white space
35754         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
35755
35756         regcomp.c: do not ignore internal return values
35757         * lib/regcomp.c: Do not ignore internal return values.
35758         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
35759         but without its white-space changes and spelling fixes.
35760
35761         regex_internal.h: define __attribute_warn_unused_result__
35762         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
35763
35764         maint: add a syntax-check rule to check for vulnerable Makefile.in
35765         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
35766
35767 2010-01-27  Jim Meyering  <meyering@redhat.com>
35768
35769         ncftpput-ftp: clean up spaces
35770         * build-aux/ncftpput-ftp: Make Copyright line consistent.
35771         Remove trailing blanks.
35772
35773 2010-01-27  Simon Josefsson  <simon@josefsson.org>
35774
35775         * build-aux/git-version-gen: Fix copyright statement.
35776         * build-aux/gnupload: Likewise.
35777         * tests/test-arcfour.c: Likewise.
35778         * tests/test-arctwo.c: Likewise.
35779         * tests/test-count-one-bits.c: Likewise.
35780         * tests/test-crc.c: Likewise.
35781         * tests/test-des.c: Likewise.
35782         * tests/test-gc-arcfour.c: Likewise.
35783         * tests/test-gc-arctwo.c: Likewise.
35784         * tests/test-gc-des.c: Likewise.
35785         * tests/test-gc-hmac-md5.c: Likewise.
35786         * tests/test-gc-hmac-sha1.c: Likewise.
35787         * tests/test-gc-md2.c: Likewise.
35788         * tests/test-gc-md4.c: Likewise.
35789         * tests/test-gc-md5.c: Likewise.
35790         * tests/test-gc-pbkdf2-sha1.c: Likewise.
35791         * tests/test-gc-rijndael.c: Likewise.
35792         * tests/test-gc-sha1.c: Likewise.
35793         * tests/test-gc.c: Likewise.
35794         * tests/test-gethostname.c: Likewise.
35795         * tests/test-gettimeofday.c: Likewise.
35796         * tests/test-hash.c: Likewise.
35797         * tests/test-hmac-md5.c: Likewise.
35798         * tests/test-hmac-sha1.c: Likewise.
35799         * tests/test-md2.c: Likewise.
35800         * tests/test-md4.c: Likewise.
35801         * tests/test-md5.c: Likewise.
35802         * tests/test-memchr.c: Likewise.
35803         * tests/test-memchr2.c: Likewise.
35804         * tests/test-memcmp.c: Likewise.
35805         * tests/test-memmem.c: Likewise.
35806         * tests/test-memrchr.c: Likewise.
35807         * tests/test-rawmemchr.c: Likewise.
35808         * tests/test-read-file.c: Likewise.
35809         * tests/test-rijndael.c: Likewise.
35810         * tests/test-sockets.c: Likewise.
35811         * tests/test-strchrnul.c: Likewise.
35812         * tests/test-strstr.c: Likewise.
35813         * tests/test-strtod.c: Likewise.
35814         * build-aux/ncftpput-ftp: Likewise.
35815
35816 2010-01-26  Eric Blake  <ebb9@byu.net>
35817
35818         ignore-value: update recommended header name
35819         * modules/ignore-value (Include): Only use <> for headers that
35820         exist in glibc.
35821
35822 2010-01-26  Jim Meyering  <meyering@redhat.com>
35823
35824         test-userspec.c: avoid compiler warnings
35825         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
35826         and "initialization discards qualifiers..." warnings.
35827         Put the first "uid" in its own scope, and make char* members "const".
35828
35829 2010-01-25  Bruno Haible  <bruno@clisp.org>
35830
35831         gnulib-tool: Make warning diagnostics consistent.
35832         * gnulib-tool (func_warning): New function.
35833         Use it everywhere where gnulib-tool produces output to stderr and it is
35834         not a fatal error.
35835
35836 2010-01-25  Bruno Haible  <bruno@clisp.org>
35837
35838         Fix test dependencies.
35839         * modules/xstrtol-tests (Depends-on): Add inttypes.
35840         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
35841
35842 2010-01-25 Pádraig Brady <P@draigBrady.com>
35843
35844         syntax-check: detect incorrect boolean macro values in config.h
35845         * modules/maintainer-makefile (configure.ac): Parameterize the location
35846         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
35847         The logic is from Eric Blake and the location indicated by Jim Meyering.
35848         Note the more natural CONFIG_HEADER name is prohibited by automake
35849         for backwards compatibility reasons.
35850         * top/maint.mk (sc_Wundef_boolean): New rule.
35851
35852 2010-01-25  Jim Meyering  <meyering@redhat.com>
35853
35854         bootstrap: detect MacOS 10.6's shasum, too
35855         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
35856         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
35857
35858 2010-01-23  Jim Meyering  <meyering@redhat.com>
35859
35860         xstrtoll: new module
35861         * modules/xstrtoll: New file.
35862         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
35863         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
35864         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
35865         ./configure fails if you use this module and lack "long long".
35866         * modules/xstrtoll-tests: New module.
35867         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
35868         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
35869         new init.sh-based test framework.
35870
35871 2010-01-24  Bruno Haible  <bruno@clisp.org>
35872
35873         Tests for module 'yn'.
35874         * modules/yn-tests: New file.
35875         * tests/test-yn.c: New file.
35876
35877         Tests for module 'y1'.
35878         * modules/y1-tests: New file.
35879         * tests/test-y1.c: New file.
35880
35881         Tests for module 'y0'.
35882         * modules/y0-tests: New file.
35883         * tests/test-y0.c: New file.
35884
35885         Tests for module 'tanh'.
35886         * modules/tanh-tests: New file.
35887         * tests/test-tanh.c: New file.
35888
35889         Tests for module 'tan'.
35890         * modules/tan-tests: New file.
35891         * tests/test-tan.c: New file.
35892
35893         Tests for module 'sqrt'.
35894         * modules/sqrt-tests: New file.
35895         * tests/test-sqrt.c: New file.
35896
35897         Tests for module 'sinh'.
35898         * modules/sinh-tests: New file.
35899         * tests/test-sinh.c: New file.
35900
35901         Tests for module 'sin'.
35902         * modules/sin-tests: New file.
35903         * tests/test-sin.c: New file.
35904
35905         Tests for module 'rint'.
35906         * modules/rint-tests: New file.
35907         * tests/test-rint.c: New file.
35908
35909         Tests for module 'remainder'.
35910         * modules/remainder-tests: New file.
35911         * tests/test-remainder.c: New file.
35912
35913         Tests for module 'pow'.
35914         * modules/pow-tests: New file.
35915         * tests/test-pow.c: New file.
35916
35917         Tests for module 'nextafter'.
35918         * modules/nextafter-tests: New file.
35919         * tests/test-nextafter.c: New file.
35920
35921         Tests for module 'modf'.
35922         * modules/modf-tests: New file.
35923         * tests/test-modf.c: New file.
35924
35925         Tests for module 'logb'.
35926         * modules/logb-tests: New file.
35927         * tests/test-logb.c: New file.
35928
35929         Tests for module 'log1p'.
35930         * modules/log1p-tests: New file.
35931         * tests/test-log1p.c: New file.
35932
35933         Tests for module 'log10'.
35934         * modules/log10-tests: New file.
35935         * tests/test-log10.c: New file.
35936
35937         Tests for module 'log'.
35938         * modules/log-tests: New file.
35939         * tests/test-log.c: New file.
35940
35941         Tests for module 'lgamma'.
35942         * modules/lgamma-tests: New file.
35943         * tests/test-lgamma.c: New file.
35944
35945         Tests for module 'ldexp'.
35946         * modules/ldexp-tests: New file.
35947         * tests/test-ldexp.c: New file.
35948
35949         Tests for module 'jn'.
35950         * modules/jn-tests: New file.
35951         * tests/test-jn.c: New file.
35952
35953         Tests for module 'j1'.
35954         * modules/j1-tests: New file.
35955         * tests/test-j1.c: New file.
35956
35957         Tests for module 'j0'.
35958         * modules/j0-tests: New file.
35959         * tests/test-j0.c: New file.
35960
35961         Tests for module 'hypot'.
35962         * modules/hypot-tests: New file.
35963         * tests/test-hypot.c: New file.
35964
35965         Tests for module 'fmod'.
35966         * modules/fmod-tests: New file.
35967         * tests/test-fmod.c: New file.
35968
35969         Tests for module 'fabs'.
35970         * modules/fabs-tests: New file.
35971         * tests/test-fabs.c: New file.
35972
35973         Tests for module 'exp'.
35974         * modules/exp-tests: New file.
35975         * tests/test-exp.c: New file.
35976
35977         Tests for module 'erfc'.
35978         * modules/erfc-tests: New file.
35979         * tests/test-erfc.c: New file.
35980
35981         Tests for module 'erf'.
35982         * modules/erf-tests: New file.
35983         * tests/test-erf.c: New file.
35984
35985         Tests for module 'cosh'.
35986         * modules/cosh-tests: New file.
35987         * tests/test-cosh.c: New file.
35988
35989         Tests for module 'cos'.
35990         * modules/cos-tests: New file.
35991         * tests/test-cos.c: New file.
35992
35993         Tests for module 'copysign'.
35994         * modules/copysign-tests: New file.
35995         * tests/test-copysign.c: New file.
35996
35997         Tests for module 'cbrt'.
35998         * modules/cbrt-tests: New file.
35999         * tests/test-cbrt.c: New file.
36000
36001         Tests for module 'atan2'.
36002         * modules/atan2-tests: New file.
36003         * tests/test-atan2.c: New file.
36004
36005         Tests for module 'atan'.
36006         * modules/atan-tests: New file.
36007         * tests/test-atan.c: New file.
36008
36009         Tests for module 'asin'.
36010         * modules/asin-tests: New file.
36011         * tests/test-asin.c: New file.
36012
36013         Tests for module 'acos'.
36014         * modules/acos-tests: New file.
36015         * tests/test-acos.c: New file.
36016
36017 2010-01-24  Bruno Haible  <bruno@clisp.org>
36018
36019         Fix tests for common <math.h> functions.
36020         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
36021         code snippet that references the function pointer, rather than merely
36022         calling the function. Substitute the FUNC_LIBM variable.
36023         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
36024         * modules/acos (configure.ac): Likewise.
36025         * modules/asin (configure.ac): Likewise.
36026         * modules/atan (configure.ac): Likewise.
36027         * modules/atan2 (configure.ac): Likewise.
36028         * modules/cbrt (configure.ac): Likewise.
36029         * modules/copysign (configure.ac): Likewise.
36030         * modules/cos (configure.ac): Likewise.
36031         * modules/cosh (configure.ac): Likewise.
36032         * modules/erf (configure.ac): Likewise.
36033         * modules/erfc (configure.ac): Likewise.
36034         * modules/exp (configure.ac): Likewise.
36035         * modules/fabs (configure.ac): Likewise.
36036         * modules/fmod (configure.ac): Likewise.
36037         * modules/hypot (configure.ac): Likewise.
36038         * modules/j0 (configure.ac): Likewise.
36039         * modules/j1 (configure.ac): Likewise.
36040         * modules/jn (configure.ac): Likewise.
36041         * modules/ldexp (configure.ac): Likewise.
36042         * modules/lgamma (configure.ac): Likewise.
36043         * modules/log (configure.ac): Likewise.
36044         * modules/log10 (configure.ac): Likewise.
36045         * modules/log1p (configure.ac): Likewise.
36046         * modules/logb (configure.ac): Likewise.
36047         * modules/modf (configure.ac): Likewise.
36048         * modules/nextafter (configure.ac): Likewise.
36049         * modules/pow (configure.ac): Likewise.
36050         * modules/remainder (configure.ac): Likewise.
36051         * modules/rint (configure.ac): Likewise.
36052         * modules/sin (configure.ac): Likewise.
36053         * modules/sinh (configure.ac): Likewise.
36054         * modules/tan (configure.ac): Likewise.
36055         * modules/tanh (configure.ac): Likewise.
36056         * modules/y0 (configure.ac): Likewise.
36057         * modules/y1 (configure.ac): Likewise.
36058         * modules/yn (configure.ac): Likewise.
36059
36060 2010-01-24  Bruno Haible  <bruno@clisp.org>
36061
36062         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
36063         * tests/test-acosl.c (x): New variable.
36064         (main): Store argument in x and fetch it from x.
36065         * tests/test-asinl.c (x): New variable.
36066         (main): Store argument in x and fetch it from x.
36067         * tests/test-atanl.c (x): New variable.
36068         (main): Store argument in x and fetch it from x.
36069         * tests/test-cosl.c (x): New variable.
36070         (main): Store argument in x and fetch it from x.
36071         * tests/test-expl.c (x): New variable.
36072         (main): Store argument in x and fetch it from x.
36073         * tests/test-logl.c (x): New variable.
36074         (main): Store argument in x and fetch it from x.
36075         * tests/test-sinl.c (x): New variable.
36076         (main): Store argument in x and fetch it from x.
36077         * tests/test-sqrtl.c (x): New variable.
36078         (main): Store argument in x and fetch it from x.
36079         * tests/test-tanl.c (x): New variable.
36080         (main): Store argument in x and fetch it from x.
36081
36082 2010-01-24  Bruno Haible  <bruno@clisp.org>
36083
36084         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
36085         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
36086         assignments to the initial TESTS_ENVIRONMENT.
36087         * doc/gnulib.texi (Unit test modules): Document it.
36088         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
36089         TESTS_ENVIRONMENT.
36090         * modules/btowc-tests (Makefile.am): Likewise.
36091         * modules/c-stack-tests (Makefile.am): Likewise.
36092         * modules/c-strcase-tests (Makefile.am): Likewise.
36093         * modules/copy-file-tests (Makefile.am): Likewise.
36094         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
36095         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
36096         * modules/mbrtowc-tests (Makefile.am): Likewise.
36097         * modules/mbscasecmp-tests (Makefile.am): Likewise.
36098         * modules/mbscasestr-tests (Makefile.am): Likewise.
36099         * modules/mbschr-tests (Makefile.am): Likewise.
36100         * modules/mbscspn-tests (Makefile.am): Likewise.
36101         * modules/mbsinit-tests (Makefile.am): Likewise.
36102         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
36103         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
36104         * modules/mbspbrk-tests (Makefile.am): Likewise.
36105         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
36106         * modules/mbsrchr-tests (Makefile.am): Likewise.
36107         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
36108         * modules/mbsspn-tests (Makefile.am): Likewise.
36109         * modules/mbsstr-tests (Makefile.am): Likewise.
36110         * modules/nl_langinfo-tests (Makefile.am): Likewise.
36111         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
36112         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
36113         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
36114         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
36115         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
36116         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
36117         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
36118         * modules/wcrtomb-tests (Makefile.am): Likewise.
36119         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
36120         * modules/wcsrtombs-tests (Makefile.am): Likewise.
36121         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
36122         assignments from TESTS_ENVIRONMENT.
36123         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
36124         augmentation.
36125         * modules/argp-version-etc-tests (Makefile.am): Likewise.
36126         * modules/atexit-tests (Makefile.am): Likewise.
36127         * modules/binary-io-tests (Makefile.am): Likewise.
36128         * modules/closein-tests (Makefile.am): Likewise.
36129         * modules/dprintf-posix-tests (Makefile.am): Likewise.
36130         * modules/exclude-tests (Makefile.am): Likewise.
36131         * modules/fflush-tests (Makefile.am): Likewise.
36132         * modules/fpending-tests (Makefile.am): Likewise.
36133         * modules/fprintf-posix-tests (Makefile.am): Likewise.
36134         * modules/freadahead-tests (Makefile.am): Likewise.
36135         * modules/freadptr-tests (Makefile.am): Likewise.
36136         * modules/freadseek-tests (Makefile.am): Likewise.
36137         * modules/fseek-tests (Makefile.am): Likewise.
36138         * modules/fseeko-tests (Makefile.am): Likewise.
36139         * modules/ftell-tests (Makefile.am): Likewise.
36140         * modules/ftello-tests (Makefile.am): Likewise.
36141         * modules/idpriv-drop-tests (Makefile.am): Likewise.
36142         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
36143         * modules/lseek-tests (Makefile.am): Likewise.
36144         * modules/parse-duration-tests (Makefile.am): Likewise.
36145         * modules/perror-tests (Makefile.am): Likewise.
36146         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
36147         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
36148         * modules/pipe-tests (Makefile.am): Likewise.
36149         * modules/pread-tests (Makefile.am): Likewise.
36150         * modules/printf-posix-tests (Makefile.am): Likewise.
36151         * modules/select-tests (Makefile.am): Likewise.
36152         * modules/sigpipe-tests (Makefile.am): Likewise.
36153         * modules/tsearch-tests (Makefile.am): Likewise.
36154         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
36155         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
36156         * modules/uniname/uniname-tests (Makefile.am): Likewise.
36157         * modules/uniwidth/width-tests (Makefile.am): Likewise.
36158         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
36159         * modules/version-etc-tests (Makefile.am): Likewise.
36160         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
36161         * modules/vprintf-posix-tests (Makefile.am): Likewise.
36162         * modules/xalloc-die-tests (Makefile.am): Likewise.
36163         * modules/xprintf-posix-tests (Makefile.am): Likewise.
36164         * modules/xstrtoimax-tests (Makefile.am): Likewise.
36165         * modules/xstrtol-tests (Makefile.am): Likewise.
36166         * modules/xstrtoumax-tests (Makefile.am): Likewise.
36167         * modules/yesno-tests (Makefile.am): Likewise.
36168         Suggested by Jim Meyering.
36169
36170 2010-01-24  Bruno Haible  <bruno@clisp.org>
36171
36172         More documentation.
36173         * doc/gnulib.texi (Writing modules): New chapter.
36174         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
36175         the new chapter.
36176
36177 2010-01-24  Jim Meyering  <meyering@redhat.com>
36178
36179         maint.mk: do not prepend "./" after filtering
36180         * top/maint.mk (_prepend_srcdir_prefix): New variable
36181         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
36182         "./" when $(srcdir) is ".".
36183
36184         define STREQ(a,b) consistently, removing useless parentheses
36185         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
36186         since the only risk is that "a" or "b" contains an unparenthesized
36187         comma, but if either did that, STREQ would have 3 or more arguments.
36188         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
36189         * lib/fts.c (STREQ): Remove unnecessary parentheses.
36190         * lib/hash-triple.c (STREQ): Likewise.
36191         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
36192         * lib/getugroups.c (STREQ): Likewise.
36193
36194 2010-01-23  Jim Meyering  <meyering@redhat.com>
36195
36196         maint.mk: fix syntax-check in a non-srcdir build directory
36197         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
36198         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
36199
36200 2010-01-22  Jim Meyering  <meyering@redhat.com>
36201
36202         userspec: add unit tests
36203         * tests/test-userspec.c: New file.
36204         * modules/userspec-tests: Likewise.
36205
36206 2010-01-21  Jim Meyering  <meyering@redhat.com>
36207
36208         maint.mk: handle source file names containing "." robustly
36209         * top/maint.mk (_dot_escaped_srcdir): Define.
36210         (VC_LIST): Use it in LHS of sed substitution.
36211
36212 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
36213
36214         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
36215         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
36216         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
36217         from a non-srcdir build.
36218
36219 2010-01-20  Eric Blake  <ebb9@byu.net>
36220
36221         warn-on-use: use instead of link-warning
36222         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
36223         * modules/unistd (Depends-on, Makefile.am): Likewise.
36224         * modules/arpa_inet (Depends-on): Replace link-warning with
36225         warn-on-use.
36226         (Makefile.am): Update rules accordingly.
36227         * modules/ctype (Depends-on, Makefile.am): Likewise.
36228         * modules/dirent (Depends-on, Makefile.am): Likewise.
36229         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
36230         * modules/inttypes (Depends-on, Makefile.am): Likewise.
36231         * modules/langinfo (Depends-on, Makefile.am): Likewise.
36232         * modules/locale (Depends-on, Makefile.am): Likewise.
36233         * modules/math (Depends-on, Makefile.am): Likewise.
36234         * modules/search (Depends-on, Makefile.am): Likewise.
36235         * modules/signal (Depends-on, Makefile.am): Likewise.
36236         * modules/spawn (Depends-on, Makefile.am): Likewise.
36237         * modules/stdlib (Depends-on, Makefile.am): Likewise.
36238         * modules/string (Depends-on, Makefile.am): Likewise.
36239         * modules/strings (Depends-on, Makefile.am): Likewise.
36240         * modules/sys_file (Depends-on, Makefile.am): Likewise.
36241         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
36242         * modules/sys_select (Depends-on, Makefile.am): Likewise.
36243         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
36244         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
36245         * modules/sys_times (Depends-on, Makefile.am): Likewise.
36246         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
36247         * modules/wchar (Depends-on, Makefile.am): Likewise.
36248         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
36249         should be poisoned.
36250         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
36251         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
36252         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
36253         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
36254         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
36255         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
36256         * m4/math_h.m4 (gl_MATH_H): Likewise.
36257         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
36258         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
36259         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
36260         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
36261         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
36262         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
36263         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
36264         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
36265         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
36266         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
36267         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
36268         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
36269         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
36270         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
36271         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
36272         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
36273         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
36274         GL_LINK_WARNING.
36275         * lib/ctype.in.h: Likewise.
36276         * lib/dirent.in.h: Likewise.
36277         * lib/fcntl.in.h: Likewise.
36278         * lib/inttypes.in.h: Likewise.
36279         * lib/langinfo.in.h: Likewise.
36280         * lib/locale.in.h: Likewise.
36281         * lib/math.in.h: Likewise.
36282         * lib/search.in.h: Likewise.
36283         * lib/signal.in.h: Likewise.
36284         * lib/spawn.in.h: Likewise.
36285         * lib/stdio.in.h: Likewise.
36286         * lib/stdlib.in.h: Likewise.
36287         * lib/string.in.h: Likewise.
36288         * lib/strings.in.h: Likewise.
36289         * lib/sys_file.in.h: Likewise.
36290         * lib/sys_ioctl.in.h: Likewise.
36291         * lib/sys_select.in.h: Likewise.
36292         * lib/sys_socket.in.h: Likewise.
36293         * lib/sys_stat.in.h: Likewise.
36294         * lib/sys_times.in.h: Likewise.
36295         * lib/sys_utsname.in.h: Likewise.
36296         * lib/unistd.in.h: Likewise.
36297         * lib/wchar.in.h: Likewise.
36298
36299 2010-01-20  Bruno Haible  <bruno@clisp.org>
36300
36301         Avoid duplicate -lm.
36302         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
36303         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
36304         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
36305         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
36306         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
36307         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
36308         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
36309         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
36310         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
36311         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
36312         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
36313         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
36314         Reported by Paolo Bonzini.
36315
36316 2010-01-19  Bruno Haible  <bruno@clisp.org>
36317
36318         langinfo, nl_langinfo: Relicense under LGPLv2+.
36319         * modules/langinfo (License): Change to LGPLv2+.
36320         * modules/nl_langinfo (License): Likewise.
36321         Patch by David Lutterkort <lutter@redhat.com>.
36322
36323 2010-01-19  Bruno Haible  <bruno@clisp.org>
36324
36325         Avoid compilation error with cc on OSF/1 5.1.
36326         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
36327         statement, not before.
36328         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36329
36330 2010-01-18  Bruno Haible  <bruno@clisp.org>
36331
36332         Avoid a link error due to the __printf__ symbol.
36333         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
36334         and 2.6.x.
36335         (__format__, __printf__): Remove definitions.
36336         * lib/argp-fmtstream.h: Likewise.
36337         * lib/argp.h: Likewise.
36338         * lib/error.h: Likewise.
36339         * lib/vasnprintf.h: Likewise.
36340         * lib/xprintf.h: Likewise.
36341         * lib/xvasprintf.h: Likewise.
36342         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36343
36344 2010-01-18  Bruno Haible  <bruno@clisp.org>
36345
36346         Tests for module 'tanl'.
36347         * modules/tanl-tests: New file.
36348         * tests/test-tanl.c: New file.
36349
36350         Tests for module 'sqrtl'.
36351         * modules/sqrtl-tests: New file.
36352         * tests/test-sqrtl.c: New file.
36353
36354         Tests for module 'sinl'.
36355         * modules/sinl-tests: New file.
36356         * tests/test-sinl.c: New file.
36357
36358         Tests for module 'logl'.
36359         * modules/logl-tests: New file.
36360         * tests/test-logl.c: New file.
36361
36362         Tests for module 'expl'.
36363         * modules/expl-tests: New file.
36364         * tests/test-expl.c: New file.
36365
36366         Tests for module 'cosl'.
36367         * modules/cosl-tests: New file.
36368         * tests/test-cosl.c: New file.
36369
36370         Tests for module 'atanl'.
36371         * modules/atanl-tests: New file.
36372         * tests/test-atanl.c: New file.
36373
36374         Tests for module 'asinl'.
36375         * modules/asinl-tests: New file.
36376         * tests/test-asinl.c: New file.
36377
36378         Tests for module 'acosl'.
36379         * modules/acosl-tests: New file.
36380         * tests/test-acosl.c: New file.
36381
36382         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
36383         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
36384         tanl): Use the standard gnulib idiom.
36385         * lib/cosl.c: Don't include trigl.c and sincosl.c.
36386         * lib/sinl.c: Likewise.
36387         * lib/tanl.c: Don't include trigl.c.
36388         (kernel_tanl): Make static.
36389         * lib/sincosl.c: Include trigl.h first.
36390         * lib/trigl.c: Likewise.
36391         * m4/acosl.m4: New file.
36392         * m4/asinl.m4: New file.
36393         * m4/atanl.m4: New file.
36394         * m4/cosl.m4: New file.
36395         * m4/expl.m4: New file.
36396         * m4/logl.m4: New file.
36397         * m4/sinl.m4: New file.
36398         * m4/sqrtl.m4: New file.
36399         * m4/tanl.m4: New file.
36400         * m4/mathl.m4: Remove file.
36401         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
36402         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
36403         Don't initialize GNULIB_MATHL.
36404         * modules/acosl: New file.
36405         * modules/asinl: New file.
36406         * modules/atanl: New file.
36407         * modules/cosl: New file.
36408         * modules/expl: New file.
36409         * modules/logl: New file.
36410         * modules/sinl: New file.
36411         * modules/sqrtl: New file.
36412         * modules/tanl: New file.
36413         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
36414         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
36415         substitute GNULIB_MATHL.
36416         * modules/mathl: Rewritten.
36417         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
36418         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
36419         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
36420         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
36421         * doc/posix-functions/expl.texi: Mention the 'expl' module.
36422         * doc/posix-functions/logl.texi: Mention the 'logl' module.
36423         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
36424         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
36425         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
36426
36427 2010-01-18  Bruno Haible  <bruno@clisp.org>
36428
36429         sqrt: Make gl_FUNC_SQRT requirable.
36430         * m4/sqrt.m4: New file.
36431         * modules/sqrt (Files): Add it.
36432         (configure.ac): Invoke gl_FUNC_SQRT.
36433
36434 2010-01-18  Bruno Haible  <bruno@clisp.org>
36435
36436         New modules for common <math.h> functions.
36437         * m4/mathfunc.m4: New file.
36438         * modules/acos: New file.
36439         * modules/asin: New file.
36440         * modules/atan: New file.
36441         * modules/atan2: New file.
36442         * modules/cbrt: New file.
36443         * modules/copysign: New file.
36444         * modules/cos: New file.
36445         * modules/cosh: New file.
36446         * modules/erf: New file.
36447         * modules/erfc: New file.
36448         * modules/exp: New file.
36449         * modules/fabs: New file.
36450         * modules/fmod: New file.
36451         * modules/hypot: New file.
36452         * modules/j0: New file.
36453         * modules/j1: New file.
36454         * modules/jn: New file.
36455         * modules/ldexp: New file.
36456         * modules/lgamma: New file.
36457         * modules/log: New file.
36458         * modules/log10: New file.
36459         * modules/log1p: New file.
36460         * modules/logb: New file.
36461         * modules/modf: New file.
36462         * modules/nextafter: New file.
36463         * modules/pow: New file.
36464         * modules/remainder: New file.
36465         * modules/rint: New file.
36466         * modules/sin: New file.
36467         * modules/sinh: New file.
36468         * modules/sqrt: New file.
36469         * modules/tan: New file.
36470         * modules/tanh: New file.
36471         * modules/y0: New file.
36472         * modules/y1: New file.
36473         * modules/yn: New file.
36474         * doc/posix-functions/acos.texi: Mention the 'acos' module.
36475         * doc/posix-functions/asin.texi: Mention the 'asin' module.
36476         * doc/posix-functions/atan.texi: Mention the 'atan' module.
36477         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
36478         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
36479         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
36480         * doc/posix-functions/cos.texi: Mention the 'cos' module.
36481         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
36482         * doc/posix-functions/erf.texi: Mention the 'erf' module.
36483         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
36484         * doc/posix-functions/exp.texi: Mention the 'exp' module.
36485         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
36486         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
36487         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
36488         * doc/posix-functions/j0.texi: Mention the 'j0' module.
36489         * doc/posix-functions/j1.texi: Mention the 'j1' module.
36490         * doc/posix-functions/jn.texi: Mention the 'jn' module.
36491         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
36492         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
36493         * doc/posix-functions/log.texi: Mention the 'log' module.
36494         * doc/posix-functions/log10.texi: Mention the 'log10' module.
36495         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
36496         * doc/posix-functions/logb.texi: Mention the 'logb' module.
36497         * doc/posix-functions/modf.texi: Mention the 'modf' module.
36498         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
36499         * doc/posix-functions/pow.texi: Mention the 'pow' module.
36500         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
36501         * doc/posix-functions/rint.texi: Mention the 'rint' module.
36502         * doc/posix-functions/sin.texi: Mention the 'sin' module.
36503         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
36504         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
36505         * doc/posix-functions/tan.texi: Mention the 'tan' module.
36506         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
36507         * doc/posix-functions/y0.texi: Mention the 'y0' module.
36508         * doc/posix-functions/y1.texi: Mention the 'y1' module.
36509         * doc/posix-functions/yn.texi: Mention the 'yn' module.
36510
36511 2010-01-18  Jim Meyering  <meyering@redhat.com>
36512
36513         ignore-value: relax license to LGPLv2+
36514         * modules/ignore-value (License): Relax to LGPLv2+.
36515
36516         getdate: don't leak when TZ contains two or more '"'s
36517         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
36518         double quote in TZ after the first one.
36519
36520         readtokens: do not leak internal token_lengths buffer
36521         * lib/readtokens.c (readtokens): Free the local, lengths,
36522         when the supplied "token_lengths" parameter is NULL.
36523
36524 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36525
36526         Fix a couple of missing LIBTHREAD link failures on AIX.
36527         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
36528         $(LIBTHREAD).
36529         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
36530
36531         Link test-poll against INET_PTON_LIB.
36532         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
36533         for inet_pton on Solaris 10.
36534
36535 2010-01-17  Bruno Haible  <bruno@clisp.org>
36536
36537         unistdio/*-sprintf: Fix typo in module description.
36538         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
36539         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
36540         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
36541         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
36542         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
36543         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
36544         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
36545         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36546
36547 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36548
36549         gnulib-tool: fix filelist for AIX, HP-UX ksh.
36550         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
36551         variables in shell case patterns, for AIX and HP-UX ksh.
36552
36553         Split large sed scripts, for HP-UX sed.
36554         * modules/stdio: Split sed scripts around 50 sed commands,
36555         to avoid HP-UX limit of 99 commands, in the near future.
36556         * modules/string: Likewise.
36557         * modules/unistd: Likewise.
36558
36559         gnulib-tool: avoid writing in the current directory.
36560         * gnulib-tool (func_emit_lib_Makefile_am)
36561         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
36562         not in the current directory, so concurrent gnulib-tool
36563         instances do not interfere.
36564
36565 2010-01-16  Jim Meyering  <meyering@redhat.com>
36566
36567         doc: update users.txt
36568         * users.txt: Add grep.
36569         (diffutils, gzip): Update URLs.
36570
36571 2010-01-12  Bruno Haible  <bruno@clisp.org>
36572
36573         posix_spawn: Avoid test failure on Cygwin.
36574         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
36575         characters.
36576         Reported by Simon Josefsson.
36577
36578 2010-01-12  Bruno Haible  <bruno@clisp.org>
36579
36580         * tests/test-cond.c (main): When skipping the test, show the reason.
36581
36582 2010-01-12  Simon Josefsson  <simon@josefsson.org>
36583
36584         * lib/striconv.c (str_cd_iconv): Avoid if before free.
36585
36586 2010-01-12  Simon Josefsson  <simon@josefsson.org>
36587
36588         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
36589         VC_LIST_ALWAYS_EXCLUDE_REGEX.
36590
36591 2010-01-12  Eric Blake  <ebb9@byu.net>
36592
36593         build: guarantee AS_VAR_IF
36594         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
36595         (gl_AS_VAR_IF): Move...
36596         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
36597         Reported by Simon Josefsson.
36598
36599 2010-01-12  Simon Josefsson  <simon@josefsson.org>
36600
36601         * lib/stdio.in.h: Fix typo.
36602
36603 2010-01-12  Simon Josefsson  <simon@josefsson.org>
36604
36605         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
36606         libgpg-error.
36607
36608 2010-01-12  Simon Josefsson  <simon@josefsson.org>
36609
36610         * tests/test-xalloc-die.sh: Use $EXEEXT.
36611
36612 2010-01-12  Simon Josefsson  <simon@josefsson.org>
36613             Bruno Haible  <bruno@clisp.org>
36614
36615         getlogin, getlogin_r: Avoid test failure.
36616         * tests/test-getlogin.c: Include <stdio.h>.
36617         (main): Skip the test when the function fails because stdin is not a
36618         tty.
36619         * tests/test-getlogin_r.c: Include <stdio.h>.
36620         (main): Skip the test when the function fails because stdin is not a
36621         tty.
36622
36623 2010-01-11  Eric Blake  <ebb9@byu.net>
36624
36625         tests: avoid more large file warnings
36626         * tests/test-fflush.c: Avoid warning about ftell use.
36627         * tests/test-fseek.c: Avoid warning about fseek use.
36628
36629 2010-01-10  Bruno Haible  <bruno@clisp.org>
36630
36631         nproc: Work better on Linux when /proc and /sys are not mounted.
36632         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
36633         as lower bound when, on glibc/Linux systems,
36634         sysconf (_SC_NPROCESSORS_CONF) returns 1.
36635         Suggested by Pádraig Brady <P@draigbrady.com>.
36636         Reported by Dmitry V. Levin <ldv@altlinux.org>.
36637
36638         nproc: Refactor.
36639         * lib/nproc.c (num_processors_via_affinity_mask): New function,
36640         extracted from num_processors.
36641         (num_processors): Call it.
36642
36643 2010-01-11  Jim Meyering  <meyering@redhat.com>
36644
36645         utimecmp: avoid new warning from upcoming gcc-4.5.0
36646         * lib/utimecmp.c (BILLION): Define using #define rather than an
36647         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
36648
36649 2010-01-11  Eric Blake  <ebb9@byu.net>
36650
36651         math: add portability warnings for classification macros
36652         * modules/math (Depends-on): Add warn-on-use.
36653         (Makefile.am): Provide new substitutions.
36654         * m4/math_h.m4 (gl_MATH_H): Require inline.
36655         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
36656         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
36657         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
36658         implement warnings.
36659
36660         unistd: warn on use of environ without module
36661         * modules/unistd (Depends-on): Add warn-on-use.
36662         (Makefile.am): Provide new substitutions.
36663         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
36664         * lib/unistd.in.h (environ): Wrap with a warning helper function.
36665
36666         stdio: warn on suspicious uses
36667         * modules/stdio (Depends-on): Add warn-on-use.
36668         (Makefile.am): Provide new substitutions.
36669         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
36670         fseeko.
36671         * lib/stdio.in.h (gets): Always warn on use.
36672         (fseek, ftell): Adjust when warnings are issued, and honor
36673         _GL_NO_LARGE_FILES as a way to silence the warning.
36674         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
36675         any warning about large file offsets.
36676         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
36677         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
36678         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
36679         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
36680         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
36681         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
36682         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
36683         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
36684
36685         warn-on-use: new module
36686         * modules/warn-on-use: New file.
36687         * build-aux/warn-on-use.h: Likewise.
36688         * m4/warn-on-use.m4: Likewise.
36689         * MODULES.html.sh (Support for building): Mention it.
36690
36691 2010-01-10  Bruno Haible  <bruno@clisp.org>
36692
36693         Tests for module 'unistr/u32-strdup'.
36694         * modules/unistr/u32-strdup-tests: New file.
36695         * tests/unistr/test-u32-strdup.c: New file.
36696
36697         Tests for module 'unistr/u16-strdup'.
36698         * modules/unistr/u16-strdup-tests: New file.
36699         * tests/unistr/test-u16-strdup.c: New file.
36700
36701         Tests for module 'unistr/u8-strdup'.
36702         * modules/unistr/u8-strdup-tests: New file.
36703         * tests/unistr/test-u8-strdup.c: New file.
36704         * tests/unistr/test-strdup.h: New file.
36705
36706         Tests for module 'unistr/u32-strncmp'.
36707         * modules/unistr/u32-strncmp-tests: New file.
36708         * tests/unistr/test-u32-strncmp.c: New file.
36709
36710         Tests for module 'unistr/u16-strncmp'.
36711         * modules/unistr/u16-strncmp-tests: New file.
36712         * tests/unistr/test-u16-strncmp.c: New file.
36713
36714         Tests for module 'unistr/u8-strncmp'.
36715         * modules/unistr/u8-strncmp-tests: New file.
36716         * tests/unistr/test-u8-strncmp.c: New file.
36717         * tests/unistr/test-strncmp.h: New file.
36718
36719         Tests for module 'unistr/u32-strcoll'.
36720         * modules/unistr/u32-strcoll-tests: New file.
36721         * tests/unistr/test-u32-strcoll.c: New file.
36722
36723         Tests for module 'unistr/u16-strcoll'.
36724         * modules/unistr/u16-strcoll-tests: New file.
36725         * tests/unistr/test-u16-strcoll.c: New file.
36726
36727         Tests for module 'unistr/u8-strcoll'.
36728         * modules/unistr/u8-strcoll-tests: New file.
36729         * tests/unistr/test-u8-strcoll.c: New file.
36730
36731         Tests for module 'unistr/u32-strcmp'.
36732         * modules/unistr/u32-strcmp-tests: New file.
36733         * tests/unistr/test-u32-strcmp.c: New file.
36734         * tests/unistr/test-u32-strcmp.h: New file.
36735
36736         Tests for module 'unistr/u16-strcmp'.
36737         * modules/unistr/u16-strcmp-tests: New file.
36738         * tests/unistr/test-u16-strcmp.c: New file.
36739         * tests/unistr/test-u16-strcmp.h: New file.
36740
36741         Tests for module 'unistr/u8-strcmp'.
36742         * modules/unistr/u8-strcmp-tests: New file.
36743         * tests/unistr/test-u8-strcmp.c: New file.
36744         * tests/unistr/test-u8-strcmp.h: New file.
36745         * tests/unistr/test-strcmp.h: New file.
36746
36747         Tests for module 'unistr/u32-strncat'.
36748         * modules/unistr/u32-strncat-tests: New file.
36749         * tests/unistr/test-u32-strncat.c: New file.
36750
36751         Tests for module 'unistr/u16-strncat'.
36752         * modules/unistr/u16-strncat-tests: New file.
36753         * tests/unistr/test-u16-strncat.c: New file.
36754
36755         Tests for module 'unistr/u8-strncat'.
36756         * modules/unistr/u8-strncat-tests: New file.
36757         * tests/unistr/test-u8-strncat.c: New file.
36758         * tests/unistr/test-strncat.h: New file.
36759
36760         Tests for module 'unistr/u32-strcat'.
36761         * modules/unistr/u32-strcat-tests: New file.
36762         * tests/unistr/test-u32-strcat.c: New file.
36763
36764         Tests for module 'unistr/u16-strcat'.
36765         * modules/unistr/u16-strcat-tests: New file.
36766         * tests/unistr/test-u16-strcat.c: New file.
36767
36768         Tests for module 'unistr/u8-strcat'.
36769         * modules/unistr/u8-strcat-tests: New file.
36770         * tests/unistr/test-u8-strcat.c: New file.
36771         * tests/unistr/test-strcat.h: New file.
36772
36773         Tests for module 'unistr/u32-stpncpy'.
36774         * modules/unistr/u32-stpncpy-tests: New file.
36775         * tests/unistr/test-u32-stpncpy.c: New file.
36776
36777         Tests for module 'unistr/u16-stpncpy'.
36778         * modules/unistr/u16-stpncpy-tests: New file.
36779         * tests/unistr/test-u16-stpncpy.c: New file.
36780
36781         Tests for module 'unistr/u8-stpncpy'.
36782         * modules/unistr/u8-stpncpy-tests: New file.
36783         * tests/unistr/test-u8-stpncpy.c: New file.
36784         * tests/unistr/test-stpncpy.h: New file.
36785
36786         Tests for module 'unistr/u32-strncpy'.
36787         * modules/unistr/u32-strncpy-tests: New file.
36788         * tests/unistr/test-u32-strncpy.c: New file.
36789
36790         Tests for module 'unistr/u16-strncpy'.
36791         * modules/unistr/u16-strncpy-tests: New file.
36792         * tests/unistr/test-u16-strncpy.c: New file.
36793
36794         Tests for module 'unistr/u8-strncpy'.
36795         * modules/unistr/u8-strncpy-tests: New file.
36796         * tests/unistr/test-u8-strncpy.c: New file.
36797         * tests/unistr/test-strncpy.h: New file.
36798
36799         Tests for module 'unistr/u32-stpcpy'.
36800         * modules/unistr/u32-stpcpy-tests: New file.
36801         * tests/unistr/test-u32-stpcpy.c: New file.
36802
36803         Tests for module 'unistr/u16-stpcpy'.
36804         * modules/unistr/u16-stpcpy-tests: New file.
36805         * tests/unistr/test-u16-stpcpy.c: New file.
36806
36807         Tests for module 'unistr/u8-stpcpy'.
36808         * modules/unistr/u8-stpcpy-tests: New file.
36809         * tests/unistr/test-u8-stpcpy.c: New file.
36810         * tests/unistr/test-stpcpy.h: New file.
36811
36812         Tests for module 'unistr/u32-strcpy'.
36813         * modules/unistr/u32-strcpy-tests: New file.
36814         * tests/unistr/test-u32-strcpy.c: New file.
36815
36816         Tests for module 'unistr/u16-strcpy'.
36817         * modules/unistr/u16-strcpy-tests: New file.
36818         * tests/unistr/test-u16-strcpy.c: New file.
36819
36820         Tests for module 'unistr/u8-strcpy'.
36821         * modules/unistr/u8-strcpy-tests: New file.
36822         * tests/unistr/test-u8-strcpy.c: New file.
36823         * tests/unistr/test-strcpy.h: New file.
36824
36825         Tests for module 'unistr/u32-strnlen'.
36826         * modules/unistr/u32-strnlen-tests: New file.
36827         * tests/unistr/test-u32-strnlen.c: New file.
36828
36829         Tests for module 'unistr/u16-strnlen'.
36830         * modules/unistr/u16-strnlen-tests: New file.
36831         * tests/unistr/test-u16-strnlen.c: New file.
36832
36833         Tests for module 'unistr/u8-strnlen'.
36834         * modules/unistr/u8-strnlen-tests: New file.
36835         * tests/unistr/test-u8-strnlen.c: New file.
36836         * tests/unistr/test-strnlen.h: New file.
36837
36838         Tests for module 'unistr/u32-strlen'.
36839         * modules/unistr/u32-strlen-tests: New file.
36840         * tests/unistr/test-u32-strlen.c: New file.
36841
36842         Tests for module 'unistr/u16-strlen'.
36843         * modules/unistr/u16-strlen-tests: New file.
36844         * tests/unistr/test-u16-strlen.c: New file.
36845
36846         Tests for module 'unistr/u8-strlen'.
36847         * modules/unistr/u8-strlen-tests: New file.
36848         * tests/unistr/test-u8-strlen.c: New file.
36849
36850         Tests for module 'unistr/u32-prev'.
36851         * modules/unistr/u32-prev-tests: New file.
36852         * tests/unistr/test-u32-prev.c: New file.
36853
36854         Tests for module 'unistr/u16-prev'.
36855         * modules/unistr/u16-prev-tests: New file.
36856         * tests/unistr/test-u16-prev.c: New file.
36857
36858         Tests for module 'unistr/u8-prev'.
36859         * modules/unistr/u8-prev-tests: New file.
36860         * tests/unistr/test-u8-prev.c: New file.
36861
36862         Tests for module 'unistr/u32-next'.
36863         * modules/unistr/u32-next-tests: New file.
36864         * tests/unistr/test-u32-next.c: New file.
36865
36866         Tests for module 'unistr/u16-next'.
36867         * modules/unistr/u16-next-tests: New file.
36868         * tests/unistr/test-u16-next.c: New file.
36869
36870         Tests for module 'unistr/u8-next'.
36871         * modules/unistr/u8-next-tests: New file.
36872         * tests/unistr/test-u8-next.c: New file.
36873
36874         Tests for module 'unistr/u32-strmbtouc'.
36875         * modules/unistr/u32-strmbtouc-tests: New file.
36876         * tests/unistr/test-u32-strmbtouc.c: New file.
36877
36878         Tests for module 'unistr/u16-strmbtouc'.
36879         * modules/unistr/u16-strmbtouc-tests: New file.
36880         * tests/unistr/test-u16-strmbtouc.c: New file.
36881
36882         Tests for module 'unistr/u8-strmbtouc'.
36883         * modules/unistr/u8-strmbtouc-tests: New file.
36884         * tests/unistr/test-u8-strmbtouc.c: New file.
36885
36886         Tests for module 'unistr/u32-strmblen'.
36887         * modules/unistr/u32-strmblen-tests: New file.
36888         * tests/unistr/test-u32-strmblen.c: New file.
36889
36890         Tests for module 'unistr/u16-strmblen'.
36891         * modules/unistr/u16-strmblen-tests: New file.
36892         * tests/unistr/test-u16-strmblen.c: New file.
36893
36894         Tests for module 'unistr/u8-strmblen'.
36895         * modules/unistr/u8-strmblen-tests: New file.
36896         * tests/unistr/test-u8-strmblen.c: New file.
36897
36898         Tests for module 'unistr/u32-cpy-alloc'.
36899         * modules/unistr/u32-cpy-alloc-tests: New file.
36900         * tests/unistr/test-u32-cpy-alloc.c: New file.
36901
36902         Tests for module 'unistr/u16-cpy-alloc'.
36903         * modules/unistr/u16-cpy-alloc-tests: New file.
36904         * tests/unistr/test-u16-cpy-alloc.c: New file.
36905
36906         Tests for module 'unistr/u8-cpy-alloc'.
36907         * modules/unistr/u8-cpy-alloc-tests: New file.
36908         * tests/unistr/test-u8-cpy-alloc.c: New file.
36909         * tests/unistr/test-cpy-alloc.h: New file.
36910
36911         Tests for module 'unistr/u32-mbsnlen'.
36912         * modules/unistr/u32-mbsnlen-tests: New file.
36913         * tests/unistr/test-u32-mbsnlen.c: New file.
36914
36915         Tests for module 'unistr/u16-mbsnlen'.
36916         * modules/unistr/u16-mbsnlen-tests: New file.
36917         * tests/unistr/test-u16-mbsnlen.c: New file.
36918
36919         Tests for module 'unistr/u8-mbsnlen'.
36920         * modules/unistr/u8-mbsnlen-tests: New file.
36921         * tests/unistr/test-u8-mbsnlen.c: New file.
36922
36923         Tests for module 'unistr/u32-chr'.
36924         * modules/unistr/u32-chr-tests: New file.
36925         * tests/unistr/test-u32-chr.c: New file.
36926
36927         Tests for module 'unistr/u16-chr'.
36928         * modules/unistr/u16-chr-tests: New file.
36929         * tests/unistr/test-u16-chr.c: New file.
36930
36931         Tests for module 'unistr/u8-chr'.
36932         * modules/unistr/u8-chr-tests: New file.
36933         * tests/unistr/test-u8-chr.c: New file.
36934         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
36935
36936         Tests for module 'unistr/u32-cmp2'.
36937         * modules/unistr/u32-cmp2-tests: New file.
36938         * tests/unistr/test-u32-cmp2.c: New file.
36939
36940         Tests for module 'unistr/u16-cmp2'.
36941         * modules/unistr/u16-cmp2-tests: New file.
36942         * tests/unistr/test-u16-cmp2.c: New file.
36943
36944         Tests for module 'unistr/u8-cmp2'.
36945         * modules/unistr/u8-cmp2-tests: New file.
36946         * tests/unistr/test-u8-cmp2.c: New file.
36947         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
36948
36949         Tests for module 'unistr/u32-cmp'.
36950         * modules/unistr/u32-cmp-tests: New file.
36951         * tests/unistr/test-u32-cmp.c: New file.
36952
36953         Tests for module 'unistr/u16-cmp'.
36954         * modules/unistr/u16-cmp-tests: New file.
36955         * tests/unistr/test-u16-cmp.c: New file.
36956
36957         Tests for module 'unistr/u8-cmp'.
36958         * modules/unistr/u8-cmp-tests: New file.
36959         * tests/unistr/test-u8-cmp.c: New file.
36960         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
36961
36962         Tests for module 'unistr/u32-set'.
36963         * modules/unistr/u32-set-tests: New file.
36964         * tests/unistr/test-u32-set.c: New file.
36965
36966         Tests for module 'unistr/u16-set'.
36967         * modules/unistr/u16-set-tests: New file.
36968         * tests/unistr/test-u16-set.c: New file.
36969
36970         Tests for module 'unistr/u8-set'.
36971         * modules/unistr/u8-set-tests: New file.
36972         * tests/unistr/test-u8-set.c: New file.
36973         * tests/unistr/test-set.h: New file.
36974
36975         Tests for module 'unistr/u32-move'.
36976         * modules/unistr/u32-move-tests: New file.
36977         * tests/unistr/test-u32-move.c: New file.
36978
36979         Tests for module 'unistr/u16-move'.
36980         * modules/unistr/u16-move-tests: New file.
36981         * tests/unistr/test-u16-move.c: New file.
36982
36983         Tests for module 'unistr/u8-move'.
36984         * modules/unistr/u8-move-tests: New file.
36985         * tests/unistr/test-u8-move.c: New file.
36986         * tests/unistr/test-move.h: New file.
36987
36988         Tests for module 'unistr/u32-cpy'.
36989         * modules/unistr/u32-cpy-tests: New file.
36990         * tests/unistr/test-u32-cpy.c: New file.
36991
36992         Tests for module 'unistr/u16-cpy'.
36993         * modules/unistr/u16-cpy-tests: New file.
36994         * tests/unistr/test-u16-cpy.c: New file.
36995
36996         Tests for module 'unistr/u8-cpy'.
36997         * modules/unistr/u8-cpy-tests: New file.
36998         * tests/unistr/test-u8-cpy.c: New file.
36999         * tests/unistr/test-cpy.h: New file.
37000
37001 2010-01-09  Bruno Haible  <bruno@clisp.org>
37002
37003         Tests for module 'unistr/u32-uctomb'.
37004         * modules/unistr/u32-uctomb-tests: New file.
37005         * tests/unistr/test-u32-uctomb.c: New file.
37006
37007         Tests for module 'unistr/u16-uctomb'.
37008         * modules/unistr/u16-uctomb-tests: New file.
37009         * tests/unistr/test-u16-uctomb.c: New file.
37010
37011         Tests for module 'unistr/u8-uctomb'.
37012         * modules/unistr/u8-uctomb-tests: New file.
37013         * tests/unistr/test-u8-uctomb.c: New file.
37014
37015         Tests for module 'unistr/u32-mbtoucr'.
37016         * modules/unistr/u32-mbtoucr-tests: New file.
37017         * tests/unistr/test-u32-mbtoucr.c: New file.
37018
37019         Tests for module 'unistr/u16-mbtoucr'.
37020         * modules/unistr/u16-mbtoucr-tests: New file.
37021         * tests/unistr/test-u16-mbtoucr.c: New file.
37022
37023         Tests for module 'unistr/u8-mbtoucr'.
37024         * modules/unistr/u8-mbtoucr-tests: New file.
37025         * tests/unistr/test-u8-mbtoucr.c: New file.
37026
37027         Tests for module 'unistr/u32-mbtouc'.
37028         * modules/unistr/u32-mbtouc-tests: New file.
37029         * tests/unistr/test-u32-mbtouc.c: New file.
37030
37031         Tests for module 'unistr/u16-mbtouc'.
37032         * modules/unistr/u16-mbtouc-tests: New file.
37033         * tests/unistr/test-u16-mbtouc.c: New file.
37034
37035         Tests for module 'unistr/u8-mbtouc'.
37036         * modules/unistr/u8-mbtouc-tests: New file.
37037         * tests/unistr/test-u8-mbtouc.c: New file.
37038
37039         Tests for module 'unistr/u32-mbtouc-unsafe'.
37040         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
37041         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
37042         * tests/unistr/test-u32-mbtouc.h: New file.
37043
37044         Tests for module 'unistr/u16-mbtouc-unsafe'.
37045         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
37046         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
37047         * tests/unistr/test-u16-mbtouc.h: New file.
37048
37049         Tests for module 'unistr/u8-mbtouc-unsafe'.
37050         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
37051         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
37052         * tests/unistr/test-u8-mbtouc.h: New file.
37053
37054         Tests for module 'unistr/u32-mblen'.
37055         * modules/unistr/u32-mblen-tests: New file.
37056         * tests/unistr/test-u32-mblen.c: New file.
37057
37058         Tests for module 'unistr/u16-mblen'.
37059         * modules/unistr/u16-mblen-tests: New file.
37060         * tests/unistr/test-u16-mblen.c: New file.
37061
37062         Tests for module 'unistr/u8-mblen'.
37063         * modules/unistr/u8-mblen-tests: New file.
37064         * tests/unistr/test-u8-mblen.c: New file.
37065
37066         Tests for module 'unistr/u32-to-u16'.
37067         * modules/unistr/u32-to-u16-tests: New file.
37068         * tests/unistr/test-u32-to-u16.c: New file.
37069
37070         Tests for module 'unistr/u32-to-u8'.
37071         * modules/unistr/u32-to-u8-tests: New file.
37072         * tests/unistr/test-u32-to-u8.c: New file.
37073
37074         Tests for module 'unistr/u16-to-u32'.
37075         * modules/unistr/u16-to-u32-tests: New file.
37076         * tests/unistr/test-u16-to-u32.c: New file.
37077
37078         Tests for module 'unistr/u16-to-u8'.
37079         * modules/unistr/u16-to-u8-tests: New file.
37080         * tests/unistr/test-u16-to-u8.c: New file.
37081
37082         Tests for module 'unistr/u8-to-u32'.
37083         * modules/unistr/u8-to-u32-tests: New file.
37084         * tests/unistr/test-u8-to-u32.c: New file.
37085
37086         Tests for module 'unistr/u8-to-u16'.
37087         * modules/unistr/u8-to-u16-tests: New file.
37088         * tests/unistr/test-u8-to-u16.c: New file.
37089
37090         Tests for module 'unistr/u32-check'.
37091         * modules/unistr/u32-check-tests: New file.
37092         * tests/unistr/test-u32-check.c: New file.
37093
37094         Tests for module 'unistr/u16-check'.
37095         * modules/unistr/u16-check-tests: New file.
37096         * tests/unistr/test-u16-check.c: New file.
37097
37098         Tests for module 'unistr/u8-check'.
37099         * modules/unistr/u8-check-tests: New file.
37100         * tests/unistr/test-u8-check.c: New file.
37101
37102         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
37103         (category_equals): New function.
37104         (main): Add more tests.
37105         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
37106
37107         * tests/unictype/test-bidi_byname.c (main): Add more tests.
37108
37109 2010-01-10  Bruno Haible  <bruno@clisp.org>
37110
37111         unistr/u*-strcoll: Try harder to distinguish different strings.
37112         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
37113         compare s1 and s2 to see if they are different.
37114
37115 2010-01-10  Bruno Haible  <bruno@clisp.org>
37116
37117         unistr/u*-stpncpy: Fix the return value.
37118         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
37119         description of the return value consistent with stpncpy in glibc.
37120         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
37121         written non-NUL unit.
37122
37123 2010-01-10  Bruno Haible  <bruno@clisp.org>
37124
37125         unistr/u*-next: Add missing dependencies.
37126         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
37127         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
37128         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
37129
37130 2010-01-10  Bruno Haible  <bruno@clisp.org>
37131
37132         unistr/u8-mbsnlen: Fix return value for incomplete character.
37133         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
37134         u8_mblen.
37135         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
37136         Remove unistr/u8-mblen.
37137         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
37138         u16_mblen.
37139         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
37140         Remove unistr/u16-mblen.
37141
37142 2010-01-10  Bruno Haible  <bruno@clisp.org>
37143
37144         wchar: Fix compilation error when <wchar.h> is used from coreutils.
37145         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
37146         Reported by Brian Gough <bjg@gnu.org> and
37147         Chris Clayton <chris2553@googlemail.com> via
37148         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
37149
37150 2010-01-09  Bruno Haible  <bruno@clisp.org>
37151
37152         unistr/u16-to-u32: Reject invalid input.
37153         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
37154         u16_mbtouc.
37155         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
37156         Remove unistr/u16-mbtouc.
37157
37158         unistr/u16-to-u8: Reject invalid input.
37159         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
37160         u16_mbtouc.
37161         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
37162         Remove unistr/u16-mbtouc.
37163
37164         unistr/u8-to-u32: Reject invalid input.
37165         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
37166         u8_mbtouc.
37167         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
37168         Remove unistr/u8-mbtouc.
37169
37170         unistr/u8-to-u16: Reject invalid input.
37171         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
37172         u8_mbtouc.
37173         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
37174         Remove unistr/u8-mbtouc.
37175
37176 2010-01-09  Bruno Haible  <bruno@clisp.org>
37177
37178         Tests for module 'getlogin'.
37179         * modules/getlogin-tests: New file.
37180         * tests/test-getlogin.c: New file.
37181
37182         New module 'getlogin'.
37183         * lib/unistd.in.h (getlogin): New declaration.
37184         * lib/getlogin.c: New file.
37185         * m4/getlogin.m4: New file.
37186         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
37187         HAVE_GETLOGIN.
37188         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
37189         HAVE_GETLOGIN.
37190         * modules/getlogin: New file.
37191         * doc/posix-functions/getlogin.texi: Mention the new module.
37192         Reported by John W. Eaton <jwe@gnu.org>.
37193
37194 2010-01-09  Bruno Haible  <bruno@clisp.org>
37195
37196         getlogin_r: Support for native Windows.
37197         * lib/getlogin_r.c: Include <windows.h>
37198         (getlogin_r): Implement for native Windows.
37199         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
37200         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
37201         via John W. Eaton <jwe@gnu.org>.
37202
37203 2010-01-09  Bruno Haible  <bruno@clisp.org>
37204
37205         getlogin_r: Small fixes.
37206         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
37207         succeeds.
37208         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
37209         before testing whether getlogin_r is declared. No need to set
37210         HAVE_DECL_GETLOGIN_R to 1.
37211         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
37212
37213 2010-01-09  Bruno Haible  <bruno@clisp.org>
37214
37215         * lib/unistd.in.h (getlogin_r): Add comment.
37216
37217 2010-01-09  Bruno Haible  <bruno@clisp.org>
37218
37219         Tests for module 'getlogin_r'.
37220         * modules/getlogin_r-tests: New file.
37221         * tests/test-getlogin_r.c: New file.
37222
37223 2010-01-09  Jim Meyering  <meyering@redhat.com>
37224
37225         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
37226         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
37227         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
37228
37229 2010-01-08  Simon Josefsson  <simon@josefsson.org>
37230
37231         * lib/dup2.c (rpl_dup2): Improve comment.
37232
37233 2010-01-08  Eric Blake  <ebb9@byu.net>
37234
37235         maint.mk: allow packages to add makefile @@ exceptions
37236         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
37237         (sc_makefile_check): Rename...
37238         (sc_makefile_at_at_check): ...to this, and use hook.
37239
37240         dup2: work around mingw bug
37241         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
37242         Reported by Simon Josefsson.
37243
37244 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
37245
37246         glob: Fix C++ compilation.
37247         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
37248         C++.
37249
37250 2010-01-07  Bruno Haible  <bruno@clisp.org>
37251
37252         Fix indentation of wctype.in.h, broken since 2007-01-06.
37253         * lib/wctype.in.h: Fix indentation of preprocessor directives.
37254
37255 2010-01-07  Bruno Haible  <bruno@clisp.org>
37256
37257         mbslen: Avoid collision with system function.
37258         * lib/string.in.h [MirBSD]: Include <wchar.h>.
37259         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
37260         * m4/mbslen.m4: New file.
37261         * modules/mbslen (Files): Add it.
37262         (configure.ac): Invoke gl_MBSLEN.
37263         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
37264         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
37265         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
37266         via Ian Beckwith <ianb@erislabs.net>.
37267
37268 2010-01-07  Bruno Haible  <bruno@clisp.org>
37269
37270         dirent: Document the last fix.
37271         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
37272
37273 2010-01-07  Bruno Haible  <bruno@clisp.org>
37274
37275         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
37276         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
37277         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
37278         va_list are defined.
37279         * doc/posix-headers/stdio.texi: Document the bug of missing types.
37280         Reported by Eric Blake.
37281
37282 2010-01-07  Bruno Haible  <bruno@clisp.org>
37283
37284         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
37285         * modules/xlist (Depends-on): Add 'list',
37286         * modules/xoset (Depends-on): Add 'oset'.
37287         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37288
37289 2010-01-07  Bruno Haible  <bruno@clisp.org>
37290
37291         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
37292         * doc/posix-functions/strncasecmp.texi: Likewise.
37293
37294 2010-01-07  Bruno Haible  <bruno@clisp.org>
37295
37296         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
37297
37298 2010-01-07  John W. Eaton  <jwe@octave.org>
37299
37300         wctype: allow C++ use
37301         * lib/wctype.in.h: Add extern "C" block for C++.
37302
37303 2010-01-06  Eric Blake  <ebb9@byu.net>
37304
37305         maint.mk: detect incorrect GFDL usage
37306         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
37307
37308 2010-01-06  Jim Meyering  <meyering@redhat.com>
37309         and Eric Blake  <ebb9@byu.net>
37310
37311         maint.mk: ignore multi-line copyright in NEWS
37312         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
37313
37314 2010-01-06  Eric Blake  <ebb9@byu.net>
37315
37316         select: add missing dependency
37317         * modules/select-tests (Depends-on): Move sockets dependency...
37318         * modules/select (Depends-on): ...here.
37319         Reported by Ian Beckwith.
37320
37321         doc: regenerate INSTALL
37322         * doc/INSTALL: Reflect recent autoconf update.
37323         * doc/INSTALL.ISO: Likewise.
37324         * doc/INSTALL.UTF-8: Likewise.
37325
37326         pread: fix compilation on glibc
37327         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
37328         Reported by Ralf Wildenhues.
37329
37330         dirent: fix test failure
37331         * lib/dirent.in.h (includes): Guarantee ino_t.
37332         Reported by Ralf Wildenhues.
37333
37334 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
37335
37336         linkat, renameat: avoid bad free
37337         * lib/at-func2.c (at_func2): Fix typo.
37338         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
37339
37340 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37341
37342         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
37343         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
37344         to avoid failure of symlink test later.
37345
37346 2010-01-06  Eric Blake  <ebb9@byu.net>
37347
37348         stdio, unistd: guarantee ssize_t
37349         * lib/unistd.in.h (includes): Ensure that types required by POSIX
37350         2008 are exposed when needed.
37351         * lib/stdio.in.h (includes): Likewise.
37352         Reported by Ralf Wildenhues.
37353
37354 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
37355
37356         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
37357         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
37358         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
37359
37360 2010-01-06  Jim Meyering  <meyering@redhat.com>
37361
37362         readtokens: this module *does* require xalloc.h
37363         It uses only functions that were omitted by the old syntax-check rule.
37364         * lib/readtokens.c: Include "xalloc.h" once again.
37365         * modules/readtokens (Depends-on): Add xalloc.
37366         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
37367
37368 2010-01-05  Eric Blake  <ebb9@byu.net>
37369
37370         maint: support 'make announcement' from a VPATH build
37371         * top/maint.mk (announcement): Look for correct NEWS file.
37372
37373 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
37374
37375         utimens (fdutimens): ignore a negative FD, per contract
37376         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
37377         when we have a valid file descriptor.  Otherwise, using a brand
37378         new glibc (with just-patched futimens that now fails with EBADF)
37379         would cause this function to fail with ENOSYS.
37380         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
37381         See also http://bugzilla.redhat.com/552320.
37382
37383 2010-01-05  Eric Blake  <ebb9@byu.net>
37384
37385         strcase: document what it provides
37386         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
37387         gnulib module.
37388         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
37389         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
37390
37391 2010-01-05  Jim Meyering  <meyering@redhat.com>
37392
37393         maint: remove useless inclusions of "xalloc.h"
37394         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
37395         * lib/readtokens.c: Likewise.
37396         * lib/same.c: Likewise.
37397         * modules/getloadavg (Depends-on): Remove xalloc.
37398         * modules/readtokens: Likewise.
37399         * modules/same: Likewise.
37400
37401         maint.mk: include 4 more function names in alloca.h-checking regexp
37402         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
37403         regexp.  Before, we would give a false-positive (saying alloca.h
37404         is included unnecessarily) when the only uses involved omitted symbols.
37405
37406         xalloc.h: use consistent formatting
37407         * lib/xalloc.h: Move declarations to start in the first column.
37408
37409 2010-01-05  Eric Blake  <ebb9@byu.net>
37410
37411         mkdir: avoid xalloc
37412         * lib/mkdir.c (includes): Drop unused header.
37413         Reported by John W. Eaton.
37414
37415 2010-01-04  Jim Meyering  <meyering@redhat.com>
37416
37417         nl_langinfo: avoid configure-time syntax error
37418         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
37419         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
37420         the empty string.  Don't let that provoke a shell syntax error.
37421
37422         regcomp, regexec, fnmatch: avoid array bounds read error
37423         * lib/regcomp.c (build_equiv_class): From glibc:
37424         Use only the low 24 bits of a findidx return value as an index
37425         into the weights array.  Patch by Ulrich Drepper:
37426         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
37427         * lib/regexec.c (check_node_accept_bytes): Likewise.
37428         * lib/fnmatch_loop.c (FCT): Likewise.
37429
37430         regcomp: skip collseq lookup when there are no rules
37431         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
37432         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
37433
37434         regcomp: recognize ill-formed { } expressions
37435         * lib/regcomp.c (parse_dup_op): From glibc:
37436         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
37437
37438         regcomp: fix typo in comment
37439         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
37440         s/satisfy/satisfies/.
37441
37442         regcomp: sync from glibc: remove dead store
37443         * lib/regcomp.c (duplicate_node_closure): Remove useless
37444         search_duplicated_node call and dead store.
37445
37446         regcomp: sync from glibc; always use nl_langinfo
37447         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
37448         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
37449         * modules/regex (Depends-on): Add nl_langinfo.
37450
37451 2010-01-04  Eric Blake  <ebb9@byu.net>
37452
37453         fdopendir: fix configure test
37454         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
37455
37456 2010-01-01  Bruno Haible  <bruno@clisp.org>
37457
37458         wchar: Remove unused configure check.
37459         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
37460
37461 2010-01-01  Eric Blake  <ebb9@byu.net>
37462
37463         headers: make check of system header explicit
37464         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
37465         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
37466         ourselves.
37467         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
37468         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
37469         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
37470         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
37471         internals.
37472         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
37473         missing.
37474         Suggested by Bruno Haible.
37475
37476 2010-01-01  Jim Meyering  <meyering@redhat.com>
37477
37478         ChangeLog: tweak to eliminate unnecessary copyright line
37479         * ChangeLog: Remove a copyright line that was mistakenly updated
37480         by today's update-copyright run.  Reported by Eric Blake.
37481
37482         test-update-copyright: don't let envvar setting cause test failure
37483         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
37484
37485 2010-01-01  Bruno Haible  <bruno@clisp.org>
37486
37487         localename: Avoid gcc warning.
37488         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
37489         function if it is not used.
37490
37491 2010-01-01  Jim Meyering  <meyering@redhat.com>
37492
37493         update nearly all FSF copyright year lists to include 2010
37494         Use the same procedure as for 2009, outlined in
37495         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
37496
37497         version-etc: set COPYRIGHT_YEAR to 2010
37498         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
37499
37500 2009-12-31  Eric Blake  <ebb9@byu.net>
37501
37502         doc: correct availability of cygwin 1.5.x getopt
37503         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
37504         variables.
37505         * doc/posix-functions/opterr.texi (opterr): Likewise.
37506         * doc/posix-functions/optind.texi (optind): Likewise.
37507         * doc/posix-functions/optopt.texi (optopt): Likewise.
37508         * doc/posix-functions/tzname.texi (tzname): Likewise.
37509
37510         openat: update maintainer
37511         * modules/openat (Maintainer): Add myself.
37512
37513         utimens: avoid shadowing warning
37514         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
37515         buffers into one, to avoid shadowing, as well as avoiding a
37516         redundant stat.
37517         Reported by Jim Meyering.
37518
37519         test-dup2: avoid compiler warning
37520         * tests/test-dup2.c (is_inheritable): Only define if used.
37521
37522 2010-01-01  Bruno Haible  <bruno@clisp.org>
37523
37524         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
37525         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
37526         defined, use wctomb instead of wcrtomb.
37527
37528 2010-01-01  Bruno Haible  <bruno@clisp.org>
37529
37530         iconv: Reject native Solaris iconv.
37531         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
37532         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
37533
37534 2009-12-31  Bruno Haible  <bruno@clisp.org>
37535
37536         * tests/test-signal.c (main): Remove test of 'SIG'.
37537
37538 2009-12-31  Bruno Haible  <bruno@clisp.org>
37539
37540         spawn: Fix incomplete fix.
37541         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
37542         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
37543         warnings for GNULIB_POSIXCHECK again.
37544         Reported by Eric Blake.
37545
37546 2009-12-31  Bruno Haible  <bruno@clisp.org>
37547
37548         Avoid namespace pollution on glibc systems.
37549         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
37550         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
37551         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
37552         glibc systems.
37553
37554 2009-12-31  Bruno Haible  <bruno@clisp.org>
37555
37556         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
37557         (gl_REPLACE_WCHAR_H): Turn into a no-op.
37558         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
37559         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
37560         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
37561         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
37562         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
37563
37564 2009-12-31  Bruno Haible  <bruno@clisp.org>
37565
37566         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
37567         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
37568         afterwards.
37569
37570 2009-12-31  Bruno Haible  <bruno@clisp.org>
37571
37572         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
37573         SYS_UTSNAME_H.
37574
37575 2009-12-31  Bruno Haible  <bruno@clisp.org>
37576
37577         spawn: Fix misapplied patch.
37578         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
37579         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
37580         warnings for GNULIB_POSIXCHECK.
37581
37582 2009-12-31  Bruno Haible  <bruno@clisp.org>
37583
37584         times: Update after sys_times changed.
37585         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
37586         * modules/times (Files): Add it.
37587         (configure.ac): Invoke gl_FUNC_TIMES.
37588
37589 2009-12-31  Bruno Haible  <bruno@clisp.org>
37590
37591         Use AC_C_INLINE where necessary.
37592         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
37593         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
37594         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
37595         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
37596         * m4/mbfile.m4 (gl_MBFILE): Likewise.
37597         * m4/mbiter.m4 (gl_MBITER): Likewise.
37598         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
37599         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
37600         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
37601         * modules/u64 (configure.ac): Likewise.
37602
37603 2009-12-31  Bruno Haible  <bruno@clisp.org>
37604
37605         Use AC_C_INLINE instead of module 'inline' where possible.
37606         * modules/inline (Description): Clarify purpose.
37607         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
37608         * modules/count-one-bits (Depends-on): Remove inline.
37609         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
37610         * modules/openat (Depends-on): Remove inline.
37611         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
37612         instead of depending on module 'inline'.
37613         * modules/filevercmp (Depends-on, configure.ac): Likewise.
37614         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
37615         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
37616         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
37617         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
37618         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
37619         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
37620         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
37621         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
37622         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
37623         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
37624         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
37625         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
37626         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
37627         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
37628         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
37629         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
37630         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
37631         Likewise.
37632         * modules/unictype/property-ascii-hex-digit (Depends-on,
37633         configure.ac): Likewise.
37634         * modules/unictype/property-bidi-arabic-digit (Depends-on,
37635         configure.ac): Likewise.
37636         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
37637         configure.ac): Likewise.
37638         * modules/unictype/property-bidi-block-separator (Depends-on,
37639         configure.ac): Likewise.
37640         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
37641         configure.ac): Likewise.
37642         * modules/unictype/property-bidi-common-separator (Depends-on,
37643         configure.ac): Likewise.
37644         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
37645         Likewise.
37646         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
37647         configure.ac): Likewise.
37648         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
37649         configure.ac): Likewise.
37650         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
37651         configure.ac): Likewise.
37652         * modules/unictype/property-bidi-european-digit (Depends-on,
37653         configure.ac): Likewise.
37654         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
37655         configure.ac): Likewise.
37656         * modules/unictype/property-bidi-left-to-right (Depends-on,
37657         configure.ac): Likewise.
37658         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
37659         configure.ac): Likewise.
37660         * modules/unictype/property-bidi-other-neutral (Depends-on,
37661         configure.ac): Likewise.
37662         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
37663         Likewise.
37664         * modules/unictype/property-bidi-segment-separator (Depends-on,
37665         configure.ac): Likewise.
37666         * modules/unictype/property-bidi-whitespace (Depends-on,
37667         configure.ac): Likewise.
37668         * modules/unictype/property-combining (Depends-on, configure.ac):
37669         Likewise.
37670         * modules/unictype/property-composite (Depends-on, configure.ac):
37671         Likewise.
37672         * modules/unictype/property-currency-symbol (Depends-on,
37673         configure.ac): Likewise.
37674         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
37675         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
37676         Likewise.
37677         * modules/unictype/property-default-ignorable-code-point (Depends-on,
37678         configure.ac): Likewise.
37679         * modules/unictype/property-deprecated (Depends-on, configure.ac):
37680         Likewise.
37681         * modules/unictype/property-diacritic (Depends-on, configure.ac):
37682         Likewise.
37683         * modules/unictype/property-extender (Depends-on, configure.ac):
37684         Likewise.
37685         * modules/unictype/property-format-control (Depends-on, configure.ac):
37686         Likewise.
37687         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
37688         Likewise.
37689         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
37690         Likewise.
37691         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
37692         Likewise.
37693         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
37694         Likewise.
37695         * modules/unictype/property-hyphen (Depends-on, configure.ac):
37696         Likewise.
37697         * modules/unictype/property-id-continue (Depends-on, configure.ac):
37698         Likewise.
37699         * modules/unictype/property-id-start (Depends-on, configure.ac):
37700         Likewise.
37701         * modules/unictype/property-ideographic (Depends-on, configure.ac):
37702         Likewise.
37703         * modules/unictype/property-ids-binary-operator (Depends-on,
37704         configure.ac): Likewise.
37705         * modules/unictype/property-ids-trinary-operator (Depends-on,
37706         configure.ac): Likewise.
37707         * modules/unictype/property-ignorable-control (Depends-on,
37708         configure.ac): Likewise.
37709         * modules/unictype/property-iso-control (Depends-on, configure.ac):
37710         Likewise.
37711         * modules/unictype/property-join-control (Depends-on, configure.ac):
37712         Likewise.
37713         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
37714         Likewise.
37715         * modules/unictype/property-line-separator (Depends-on, configure.ac):
37716         Likewise.
37717         * modules/unictype/property-logical-order-exception (Depends-on,
37718         configure.ac): Likewise.
37719         * modules/unictype/property-lowercase (Depends-on, configure.ac):
37720         Likewise.
37721         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
37722         * modules/unictype/property-non-break (Depends-on, configure.ac):
37723         Likewise.
37724         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
37725         Likewise.
37726         * modules/unictype/property-numeric (Depends-on, configure.ac):
37727         Likewise.
37728         * modules/unictype/property-other-alphabetic (Depends-on,
37729         configure.ac): Likewise.
37730         * modules/unictype/property-other-default-ignorable-code-point
37731         (Depends-on, configure.ac): Likewise.
37732         * modules/unictype/property-other-grapheme-extend (Depends-on,
37733         configure.ac): Likewise.
37734         * modules/unictype/property-other-id-continue (Depends-on,
37735         configure.ac): Likewise.
37736         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
37737         Likewise.
37738         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
37739         Likewise.
37740         * modules/unictype/property-other-math (Depends-on, configure.ac):
37741         Likewise.
37742         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
37743         Likewise.
37744         * modules/unictype/property-paired-punctuation (Depends-on,
37745         configure.ac): Likewise.
37746         * modules/unictype/property-paragraph-separator (Depends-on,
37747         configure.ac): Likewise.
37748         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
37749         Likewise.
37750         * modules/unictype/property-pattern-white-space (Depends-on,
37751         configure.ac): Likewise.
37752         * modules/unictype/property-private-use (Depends-on, configure.ac):
37753         Likewise.
37754         * modules/unictype/property-punctuation (Depends-on, configure.ac):
37755         Likewise.
37756         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
37757         Likewise.
37758         * modules/unictype/property-radical (Depends-on, configure.ac):
37759         Likewise.
37760         * modules/unictype/property-sentence-terminal (Depends-on,
37761         configure.ac): Likewise.
37762         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
37763         Likewise.
37764         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
37765         * modules/unictype/property-terminal-punctuation (Depends-on,
37766         configure.ac): Likewise.
37767         * modules/unictype/property-titlecase (Depends-on, configure.ac):
37768         Likewise.
37769         * modules/unictype/property-unassigned-code-value (Depends-on,
37770         configure.ac): Likewise.
37771         * modules/unictype/property-unified-ideograph (Depends-on,
37772         configure.ac): Likewise.
37773         * modules/unictype/property-uppercase (Depends-on, configure.ac):
37774         Likewise.
37775         * modules/unictype/property-variation-selector (Depends-on,
37776         configure.ac): Likewise.
37777         * modules/unictype/property-white-space (Depends-on, configure.ac):
37778         Likewise.
37779         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
37780         Likewise.
37781         * modules/unictype/property-xid-start (Depends-on, configure.ac):
37782         Likewise.
37783         * modules/unictype/property-zero-width (Depends-on, configure.ac):
37784         Likewise.
37785         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
37786         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
37787         Likewise.
37788
37789 2009-12-31  Bruno Haible  <bruno@clisp.org>
37790
37791         Remove unnecessary AC_C_INLINE invocation.
37792         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
37793         since 2009-08-21.
37794
37795 2009-12-31  Jim Meyering  <meyering@redhat.com>
37796
37797         maint.mk: don't require explicit gpg_key_ID in cfg.mk
37798         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
37799         With this change, we can all remove the gpg_key_ID = ... definition
37800         from our respective cfg.mk files.
37801
37802         maint.mk: create announcement template in ~/, not in /tmp
37803         * top/maint.mk (emit_upload_commands): Adjust.
37804         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
37805         Remove temporary file, .ci-msg.
37806
37807 2009-12-31  Eric Blake  <ebb9@byu.net>
37808
37809         link-warning: always build headers with link warnings
37810         * modules/arpa_inet (Makefile.am): Always build replacement
37811         header.
37812         * modules/ctype (Makefile.am): Likewise.
37813         * modules/dirent (Makefile.am): Likewise.
37814         * modules/inttypes (Makefile.am): Likewise.
37815         * modules/langinfo (Makefile.am): Likewise.
37816         * modules/locale (Makefile.am): Likewise.
37817         * modules/spawn (Makefile.am): Likewise.
37818         * modules/sys_file (Makefile.am): Likewise.
37819         * modules/sys_ioctl (Makefile.am): Likewise.
37820         * modules/sys_select (Makefile.am): Likewise.
37821         * modules/sys_socket (Makefile.am): Likewise.
37822         * modules/sys_times (Makefile.am): Likewise.
37823         * modules/sys_utsname (Makefile.am): Likewise.
37824         * modules/sys_wait (Makefile.am): Likewise.
37825         * modules/wchar (Makefile.am): Likewise.
37826         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
37827         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
37828         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
37829         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
37830         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
37831         Likewise.
37832         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
37833         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
37834         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
37835         Likewise.
37836         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
37837         Likewise.
37838         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
37839         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
37840         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
37841         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
37842         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
37843         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
37844         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
37845         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
37846         (gl_WCHAR_H_DEFAULTS): Likewise.
37847
37848 2009-12-31  Eric Blake  <ebb9@byu.net>
37849
37850         signal, spawn: use link warnings
37851         * lib/signal.in.h (sigset_t): Make unconditional.
37852         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
37853         (sigpending, sigprocmask, sigaction): Add link warnings.
37854         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
37855         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
37856         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
37857         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
37858         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
37859         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
37860         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
37861         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
37862         (posix_spawn_file_actions_destroy)
37863         (posix_spawn_file_actions_addopen)
37864         (posix_spawn_file_actions_addclose)
37865         (posix_spawn_file_actions_adddup2): Likewise.
37866         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
37867         * tests/test-signal.c (main): Enhance test.
37868
37869         spawn: improve wrapper support
37870         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
37871         (gl_SPAWN_H_DEFAULTS): New defaults.
37872         * modules/spawn (Makefile.am): Substitute them.
37873         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
37874         Only declare if missing or broken.
37875
37876         sys_times, sys_utsname: use include_next
37877         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
37878         header.
37879         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
37880         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
37881         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
37882         * modules/sys_times (Depends-on): Add include_next.
37883         (Makefile.am): Substitute additional values.
37884         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
37885         * lib/sys_times.in.h (includes): Include native header, if
37886         available.
37887         * lib/sys_utsname.in.h (includes): Likewise.
37888         * tests/test-sys_times.c (main): Enhance test.
37889
37890         fdutimensat: revert prior patch
37891         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
37892         utimens.h.
37893         Reported by Bruno Haible.
37894
37895 2009-12-30  Eric Blake  <ebb9@byu.net>
37896
37897         sys_wait: drop link-warning dependency
37898         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
37899         link-warning efforts.
37900         * lib/sys_wait.in.h: Likewise.
37901
37902         fdutimensat: remove bogus dependency
37903         * modules/fdutimensat (Depends-on): Drop inline.
37904
37905         unistd: fix typo
37906         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
37907
37908 2009-12-30  Bruno Haible  <bruno@clisp.org>
37909
37910         Fix compilation error with Solaris cc.
37911         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
37912         * lib/unicase/u16-is-invariant.c: Likewise.
37913         * lib/unicase/u32-is-invariant.c: Likewise.
37914         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
37915
37916 2009-12-30  Bruno Haible  <bruno@clisp.org>
37917
37918         Fix test crash.
37919         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
37920         locales.
37921         Reported by Simon Josefsson <simon@josefsson.org>.
37922
37923 2009-12-30  Bruno Haible  <bruno@clisp.org>
37924
37925         Fix compilation error on most platforms.
37926         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
37927         Reported by Simon Josefsson <simon@josefsson.org>
37928         and Nelson H. F. Beebe <beebe@math.utah.edu>.
37929
37930 2009-12-30  Eric Blake  <ebb9@byu.net>
37931
37932         futimens, utimensat: work around ntfs-3g bug
37933         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
37934         a ctime bug is present, and expand workaround to cover ntfs-3g.
37935         * lib/utimens.c (fdutimens, lutimens): Likewise.
37936         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
37937         (validate_timespec): Adjust return value.
37938         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
37939         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
37940         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
37941
37942 2009-12-29  Eric Blake  <ebb9@byu.net>
37943
37944         link-warning: make usage consistent
37945         * modules/ctype (Depends-on): Add link-warning.
37946         (Makefile.am): Update rules accordingly.
37947         * modules/langinfo (Depends-on, Makefile.am): Likewise.
37948         * modules/locale (Depends-on, Makefile.am): Likewise.
37949         * modules/sys_file (Makefile.am): Likewise.
37950         * modules/getopt-posix (Makefile.am): Delete unused link warning
37951         efforts.
37952         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
37953         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
37954         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
37955         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
37956
37957         stdio: remove unused variables
37958         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
37959         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
37960         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
37961
37962         tests: test more substitute headers
37963         * modules/ctype-tests: New file.
37964         * modules/dirent-tests: Likewise.
37965         * modules/spawn-tests: Likewise.
37966         * modules/sys_file-tests: Likewise.
37967         * modules/sys_ioctl-tests: Likewise.
37968         * modules/sys_wait-tests: Likewise.
37969         * tests/test-ctype.c: Likewise.
37970         * tests/test-dirent.c: Likewise.
37971         * tests/test-spawn.c: Likewise.
37972         * tests/test-sys_file.c: Likewise.
37973         * tests/test-sys_ioctl.c: Likewise.
37974         * tests/test-sys_wait.c: Likewise.
37975         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
37976         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
37977         whether or not flock is in use.
37978
37979         tests: remove License section from module
37980         * modules/arpa_inet-tests: Remove unneeded section.
37981         * modules/byteswap-tests: Likewise.
37982         * modules/ceilf-tests: Likewise.
37983         * modules/ceill-tests: Likewise.
37984         * modules/crypto/des-tests: Likewise.
37985         * modules/crypto/gc-arcfour-tests: Likewise.
37986         * modules/crypto/gc-arctwo-tests: Likewise.
37987         * modules/crypto/gc-des-tests: Likewise.
37988         * modules/crypto/gc-hmac-md5-tests: Likewise.
37989         * modules/crypto/gc-hmac-sha1-tests: Likewise.
37990         * modules/crypto/gc-md2-tests: Likewise.
37991         * modules/crypto/gc-md4-tests: Likewise.
37992         * modules/crypto/gc-md5-tests: Likewise.
37993         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
37994         * modules/crypto/gc-rijndael-tests: Likewise.
37995         * modules/crypto/gc-sha1-tests: Likewise.
37996         * modules/crypto/gc-tests: Likewise.
37997         * modules/crypto/md2-tests: Likewise.
37998         * modules/crypto/md4-tests: Likewise.
37999         * modules/fcntl-h-tests: Likewise.
38000         * modules/floorf-tests: Likewise.
38001         * modules/floorl-tests: Likewise.
38002         * modules/frexp-nolibm-tests: Likewise.
38003         * modules/frexp-tests: Likewise.
38004         * modules/frexpl-nolibm-tests: Likewise.
38005         * modules/frexpl-tests: Likewise.
38006         * modules/getaddrinfo-tests: Likewise.
38007         * modules/inttypes-tests: Likewise.
38008         * modules/isfinite-tests: Likewise.
38009         * modules/isinf-tests: Likewise.
38010         * modules/ldexpl-tests: Likewise.
38011         * modules/locale-tests: Likewise.
38012         * modules/math-tests: Likewise.
38013         * modules/netdb-tests: Likewise.
38014         * modules/netinet_in-tests: Likewise.
38015         * modules/printf-frexp-tests: Likewise.
38016         * modules/printf-frexpl-tests: Likewise.
38017         * modules/priv-set-tests: Likewise.
38018         * modules/random_r-tests: Likewise.
38019         * modules/round-tests: Likewise.
38020         * modules/roundf-tests: Likewise.
38021         * modules/roundl-tests: Likewise.
38022         * modules/search-tests: Likewise.
38023         * modules/select-tests: Likewise.
38024         * modules/signal-tests: Likewise.
38025         * modules/stdbool-tests: Likewise.
38026         * modules/stddef-tests: Likewise.
38027         * modules/stdint-tests: Likewise.
38028         * modules/stdio-tests: Likewise.
38029         * modules/stdlib-tests: Likewise.
38030         * modules/string-tests: Likewise.
38031         * modules/strings-tests: Likewise.
38032         * modules/sys_select-tests: Likewise.
38033         * modules/sys_socket-tests: Likewise.
38034         * modules/sys_stat-tests: Likewise.
38035         * modules/sys_time-tests: Likewise.
38036         * modules/sys_utsname-tests: Likewise.
38037         * modules/sysexits-tests: Likewise.
38038         * modules/time-tests: Likewise.
38039         * modules/trunc-tests: Likewise.
38040         * modules/truncf-tests: Likewise.
38041         * modules/truncl-tests: Likewise.
38042         * modules/tsearch-tests: Likewise.
38043         * modules/unistd-tests: Likewise.
38044         * modules/wchar-tests: Likewise.
38045         * modules/wctype-tests: Likewise.
38046
38047         tests: fix license on several tests
38048         * tests/test-des.c: Update to GPLv3+.
38049         * tests/test-flock.c: Likewise.
38050         * tests/test-fsync.c: Likewise.
38051         * tests/test-futimens.h: Likewise.
38052         * tests/test-gc-arcfour.c: Likewise.
38053         * tests/test-gc-arctwo.c: Likewise.
38054         * tests/test-gc-des.c: Likewise.
38055         * tests/test-gc-hmac-md5.c: Likewise.
38056         * tests/test-gc-hmac-sha1.c: Likewise.
38057         * tests/test-gc-md2.c: Likewise.
38058         * tests/test-gc-md4.c: Likewise.
38059         * tests/test-gc-md5.c: Likewise.
38060         * tests/test-gc-pbkdf2-sha1.c: Likewise.
38061         * tests/test-gc-rijndael.c: Likewise.
38062         * tests/test-gc-sha1.c: Likewise.
38063         * tests/test-gc.c: Likewise.
38064         * tests/test-getcwd.c: Likewise.
38065         * tests/test-link.c: Likewise.
38066         * tests/test-link.h: Likewise.
38067         * tests/test-lutimens.h: Likewise.
38068         * tests/test-md2.c: Likewise.
38069         * tests/test-md4.c: Likewise.
38070         * tests/test-mkdir.h: Likewise.
38071         * tests/test-rename.c: Likewise.
38072         * tests/test-rename.h: Likewise.
38073         * tests/test-safe-alloc.c: Likewise.
38074         * tests/test-utimens-common.h: Likewise.
38075         * tests/test-utimens.h: Likewise.
38076
38077         maint: sync license texts
38078         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
38079         * doc/gpl-3.0.texi: Revert copyright year update.
38080         * doc/lgpl-3.0.texi: Likewise.
38081
38082 2009-12-29  Jim Meyering  <meyering@redhat.com>
38083
38084         update nearly all FSF copyright year lists to include 2009
38085         The files named by the following are exempted:
38086             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
38087               test -f "$dst" && { echo "$dst"; continue; }
38088               test -d "$dst" || continue
38089               echo "$dst"/$(basename "$src")
38090             done > exempt
38091             git ls-files tests/unictype >> exempt
38092         In the remaining files, convert to all-interval notation if
38093         - there is already at least one year interval like 2000-2003
38094         - the file is maintained by me
38095         - the file is in lib/uni*/, where that style already prevails
38096         Otherwise, use update-copyright's default.
38097
38098 2009-12-29  Simon Josefsson  <simon@josefsson.org>
38099         and Eric Blake  <ebb9@byu.net>
38100
38101         tests: don't require debug system() to pass
38102         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
38103         * tests/test-rmdir.h (test_rmdir_func): Likewise.
38104         * tests/test-unlink.h (test_unlink_func): Likewise.
38105         * tests/test-fstatat.c (main): ...into callers.
38106         * tests/test-lstat.c (main): Likewise.
38107         * tests/test-rmdir.c (main): Likewise.
38108         * tests/test-unlink.c (main): Likewise.
38109         * tests/test-unlinkat.c (main): Likewise.
38110         * tests/test-areadlink-with-size.c (main): Don't require a
38111         debug-only system call to pass, aiding cross-testing to mingw.
38112         * tests/test-areadlink.c (main): Likewise.
38113         * tests/test-areadlinkat-with-size.c (main): Likewise.
38114         * tests/test-areadlinkat.c (main): Likewise.
38115         * tests/test-canonicalize-lgpl.c (main): Likewise.
38116         * tests/test-canonicalize.c (main): Likewise.
38117         * tests/test-chown.c (main): Likewise.
38118         * tests/test-fchownat.c (main): Likewise.
38119         * tests/test-lchown.c (main): Likewise.
38120         * tests/test-fdutimensat.c (main): Likewise.
38121         * tests/test-futimens.c (main): Likewise.
38122         * tests/test-link.c (main): Likewise.
38123         * tests/test-linkat.c (main): Likewise.
38124         * tests/test-mkdir.c (main): Likewise.
38125         * tests/test-mkdirat.c (main): Likewise.
38126         * tests/test-mkfifo.c (main): Likewise.
38127         * tests/test-mkfifoat.c (main): Likewise.
38128         * tests/test-mknod.c (main): Likewise.
38129         * tests/test-readlink.c (main): Likewise.
38130         * tests/test-remove.c (main): Likewise.
38131         * tests/test-rename.c (main): Likewise.
38132         * tests/test-renameat.c (main): Likewise.
38133         * tests/test-symlink.c (main): Likewise.
38134         * tests/test-symlinkat.c (main): Likewise.
38135         * tests/test-utimens.c (main): Likewise.
38136         * tests/test-utimensat.c (main): Likewise.
38137
38138 2009-12-29  Simon Josefsson  <simon@josefsson.org>
38139
38140         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
38141         on $(UNUSED_PARAMETER_H) to avoid build failure.
38142
38143 2009-12-28  Jim Meyering  <meyering@redhat.com>
38144
38145         update-copyright: you may specify a max. line length other than 72
38146         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
38147
38148         maint: use consistent FSF copyright line syntax
38149         * lib/posixtm.c: Add missing comma in FSF copyright line.
38150         * lib/posixtm.h: Likewise.
38151         * lib/getugroups.c: Add missing ", Inc.".
38152
38153         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
38154         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
38155         FSF copyright line.  Remove trailing blanks.
38156
38157 2009-12-28  Eric Blake  <ebb9@byu.net>
38158
38159         test-dup2: reduce dependencies
38160         * modules/cloexec (Configure.ac): Set witness.
38161         * modules/dup2-tests (Depends-on): Drop cloexec.
38162         * tests/test-dup2.c (main): Skip portion of test if cloexec module
38163         not present.
38164         Suggested by Bruno Haible.
38165
38166 2009-12-26  Bruno Haible  <bruno@clisp.org>
38167
38168         Remove an unneeded dependency.
38169         * modules/fseterr (Depends-on): Remove dup2.
38170
38171 2009-12-26  Eric Blake  <ebb9@byu.net>
38172
38173         tests: use macros.h in more places
38174         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
38175         (ASSERT_STREAM): Provide default of stderr.
38176         * tests/test-dirent-safer.c: Include macros.h, using alternate
38177         stream for assertions.
38178         * tests/test-dup-safer.c: Likewise.
38179         * tests/test-freopen-safer.c: Likewise.
38180         * tests/test-getopt.c: Likewise.
38181         * tests/test-openat-safer.c: Likewise.
38182         * tests/test-pipe.c: Likewise.
38183         * tests/test-popen-safer.c: Likewise.
38184         * modules/dirent-safer-tests (Files): Include macros.h.
38185         * modules/unistd-safer-tests (Files): Likewise.
38186         * modules/freopen-safer-tests (Files): Likewise.
38187         * modules/getopt-posix-tests (Files): Likewise.
38188         * modules/openat-safer-tests (Files): Likewise.
38189         * modules/pipe-tests (Files): Likewise.
38190
38191 2009-12-26  Bruno Haible  <bruno@clisp.org>
38192
38193         javacomp: Portability fix.
38194         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
38195         that it also works on Solaris.
38196
38197 2009-12-26  Bruno Haible  <bruno@clisp.org>
38198
38199         localename: Fix storage allocation of gl_locale_name_thread's result.
38200         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
38201         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
38202         all platforms that have 'uselocale'.
38203         (gl_locale_name_thread_unsafe): New function, extracted from
38204         gl_locale_name_thread.
38205         (gl_locale_name_thread): Call struniq on all platforms that have
38206         'uselocale'.
38207         * tests/test-localename.c (test_locale_name_thread): Check that the
38208         resulting strings are permanently allocated.
38209         * modules/localename-tests (Depends-on): Add strdup.
38210
38211 2009-12-26  Bruno Haible  <bruno@clisp.org>
38212
38213         * tests/test-localename.c (categories): Fill in the strings.
38214
38215 2009-12-26  Jim Meyering  <meyering@redhat.com>
38216
38217         isdir: complete the removal of m4/isdir.m4
38218         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
38219
38220         isdir: clean up, since at least grep still uses it
38221         * lib/isdir.c: Include "isdir.h".
38222         (S_ISDIR): Remove now-unneeded definition.
38223         * modules/isdir (Files): Add lib/isdir.h.
38224         * lib/isdir.h: New file, with declaration.
38225         * m4/isdir.m4: Remove file -- unneeded.
38226
38227 2009-12-25  Bruno Haible  <bruno@clisp.org>
38228
38229         selinux-h: Make generated .h files standalone.
38230         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
38231         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
38232         * lib/se-selinux.in.h: Likewise.
38233         * modules/selinux-h (Depends-on): Add unused-parameter.
38234         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
38235         selinux/selinux.h and selinux/context.h.
38236         Suggested by Eric Blake.
38237
38238 2009-12-25  Bruno Haible  <bruno@clisp.org>
38239
38240         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
38241         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
38242         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
38243         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
38244         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
38245
38246 2009-12-24  Bruno Haible  <bruno@clisp.org>
38247
38248         openat: Fix warning.
38249         * lib/openat-proc.c: Include <unistd.h>.
38250
38251 2009-12-24  Bruno Haible  <bruno@clisp.org>
38252
38253         New module 'unused-parameter'.
38254         * build-aux/unused-parameter.h: New file, extracted from earlier
38255         gnulib-common.m4.
38256         * modules/unused-parameter: New file.
38257         * lib/unistr.h: Include unused-parameter.h.
38258         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
38259         _GL_UNUSED.
38260         * modules/unistr/base (Depends-on): Add unused-parameter.
38261
38262 2009-12-24  Bruno Haible  <bruno@clisp.org>
38263
38264         Add missing dependencies to 'extensions' module.
38265         * m4/extensions.m4: Add comment.
38266         * modules/accept4 (Depends-on): Add extensions.
38267         * modules/dup3 (Depends-on): Likewise.
38268         * modules/fcntl (Depends-on): Likewise.
38269         * modules/futimens (Depends-on): Likewise.
38270         * modules/mknod (Depends-on): Likewise.
38271         * modules/pipe2 (Depends-on): Likewise.
38272         * modules/stat-time (Depends-on): Likewise.
38273         * modules/strcasestr-simple (Depends-on): Likewise.
38274         * modules/strsignal (Depends-on): Likewise.
38275         * modules/utimensat (Depends-on): Likewise.
38276         * modules/localcharset (Depends-on): Likewise. Needed because of
38277         gl_FCNTL_O_FLAGS.
38278         * modules/wcrtomb (Depends-on): Likewise. Needed because of
38279         AC_TYPE_MBSTATE_T.
38280         * modules/wcsnrtombs (Depends-on): Likewise.
38281         * modules/wcsrtombs (Depends-on): Likewise.
38282
38283 2009-12-24  Bruno Haible  <bruno@clisp.org>
38284
38285         binary-io: Avoid gcc warning due to SET_BINARY.
38286         * lib/binary-io.h (SET_BINARY): Cast the result to void.
38287         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
38288
38289 2009-12-24  Bruno Haible  <bruno@clisp.org>
38290
38291         Avoid future namespace pollution on glibc systems.
38292         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
38293         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
38294         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
38295         glibc systems.
38296
38297 2009-12-24  Bruno Haible  <bruno@clisp.org>
38298
38299         Refactor common macros used in tests.
38300         * tests/macros.h: New file.
38301         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
38302         and/or <stdlib.h>, if appropriate.
38303         (ASSERT, SIZEOF): Remove macros.
38304         * tests/test-areadlink-with-size.c: Likewise.
38305         * tests/test-areadlinkat.c: Likewise.
38306         * tests/test-areadlinkat-with-size.c: Likewise.
38307         * tests/test-argmatch.c: Likewise.
38308         * tests/test-argv-iter.c: Likewise.
38309         * tests/test-array-mergesort.c: Likewise.
38310         * tests/test-array_list.c: Likewise.
38311         * tests/test-array_oset.c: Likewise.
38312         * tests/test-avltree_list.c: Likewise.
38313         * tests/test-avltree_oset.c: Likewise.
38314         * tests/test-avltreehash_list.c: Likewise.
38315         * tests/test-base64.c: Likewise.
38316         * tests/test-binary-io.c: Likewise.
38317         * tests/test-bitrotate.c: Likewise.
38318         * tests/test-btowc.c: Likewise.
38319         * tests/test-byteswap.c: Likewise.
38320         * tests/test-c-ctype.c: Likewise.
38321         * tests/test-c-stack.c: Likewise.
38322         * tests/test-c-strcasecmp.c: Likewise.
38323         * tests/test-c-strcasestr.c: Likewise.
38324         * tests/test-c-strncasecmp.c: Likewise.
38325         * tests/test-c-strstr.c: Likewise.
38326         * tests/test-canonicalize-lgpl.c: Likewise.
38327         * tests/test-canonicalize.c: Likewise.
38328         * tests/test-carray_list.c: Likewise.
38329         * tests/test-ceilf1.c: Likewise.
38330         * tests/test-ceilf2.c: Likewise.
38331         * tests/test-ceill.c: Likewise.
38332         * tests/test-chown.c: Likewise.
38333         * tests/test-cloexec.c: Likewise.
38334         * tests/test-copy-acl.c: Likewise.
38335         * tests/test-copy-file.c: Likewise.
38336         * tests/test-count-one-bits.c: Likewise.
38337         * tests/test-dprintf-posix.c: Likewise.
38338         * tests/test-dup2.c: Likewise.
38339         * tests/test-dup3.c: Likewise.
38340         * tests/test-duplocale.c: Likewise.
38341         * tests/test-fbufmode.c: Likewise.
38342         * tests/test-fchdir.c: Likewise.
38343         * tests/test-fchownat.c: Likewise.
38344         * tests/test-fcntl-safer.c: Likewise.
38345         * tests/test-fcntl.c: Likewise.
38346         * tests/test-fdopendir.c: Likewise.
38347         * tests/test-fdutimensat.c: Likewise.
38348         * tests/test-fflush2.c: Likewise.
38349         * tests/test-file-has-acl.c: Likewise.
38350         * tests/test-filevercmp.c: Likewise.
38351         * tests/test-flock.c: Likewise.
38352         * tests/test-floorf1.c: Likewise.
38353         * tests/test-floorf2.c: Likewise.
38354         * tests/test-floorl.c: Likewise.
38355         * tests/test-fnmatch.c: Likewise.
38356         * tests/test-fopen.h: Likewise.
38357         * tests/test-fpending.c: Likewise.
38358         * tests/test-fprintf-posix.c: Likewise.
38359         * tests/test-fpurge.c: Likewise.
38360         * tests/test-freadable.c: Likewise.
38361         * tests/test-freadahead.c: Likewise.
38362         * tests/test-freading.c: Likewise.
38363         * tests/test-freadptr.c: Likewise.
38364         * tests/test-freadptr2.c: Likewise.
38365         * tests/test-freadseek.c: Likewise.
38366         * tests/test-freopen.c: Likewise.
38367         * tests/test-frexp.c: Likewise.
38368         * tests/test-frexpl.c: Likewise.
38369         * tests/test-fseek.c: Likewise.
38370         * tests/test-fseeko.c: Likewise.
38371         * tests/test-fstatat.c: Likewise.
38372         * tests/test-fstrcmp.c: Likewise.
38373         * tests/test-fsync.c: Likewise.
38374         * tests/test-ftell.c: Likewise.
38375         * tests/test-ftello.c: Likewise.
38376         * tests/test-func.c: Likewise.
38377         * tests/test-futimens.c: Likewise.
38378         * tests/test-fwritable.c: Likewise.
38379         * tests/test-fwriting.c: Likewise.
38380         * tests/test-getcwd.c: Likewise.
38381         * tests/test-getdate.c: Likewise.
38382         * tests/test-getdelim.c: Likewise.
38383         * tests/test-getdtablesize.c: Likewise.
38384         * tests/test-getgroups.c: Likewise.
38385         * tests/test-getline.c: Likewise.
38386         * tests/test-getndelim2.c: Likewise.
38387         * tests/test-glob.c: Likewise.
38388         * tests/test-hash.c: Likewise.
38389         * tests/test-i-ring.c: Likewise.
38390         * tests/test-iconv-utf.c: Likewise.
38391         * tests/test-iconv.c: Likewise.
38392         * tests/test-idpriv-drop.c: Likewise.
38393         * tests/test-idpriv-droptemp.c: Likewise.
38394         * tests/test-inet_ntop.c: Likewise.
38395         * tests/test-inet_pton.c: Likewise.
38396         * tests/test-isblank.c: Likewise.
38397         * tests/test-isfinite.c: Likewise.
38398         * tests/test-isinf.c: Likewise.
38399         * tests/test-isnan.c: Likewise.
38400         * tests/test-isnand.h: Likewise.
38401         * tests/test-isnanf.h: Likewise.
38402         * tests/test-isnanl.h: Likewise.
38403         * tests/test-lchown.c: Likewise.
38404         * tests/test-ldexpl.c: Likewise.
38405         * tests/test-link.c: Likewise.
38406         * tests/test-linkat.c: Likewise.
38407         * tests/test-linked_list.c: Likewise.
38408         * tests/test-linkedhash_list.c: Likewise.
38409         * tests/test-localename.c: Likewise.
38410         * tests/test-lseek.c: Likewise.
38411         * tests/test-lstat.c: Likewise.
38412         * tests/test-mbmemcasecmp.c: Likewise.
38413         * tests/test-mbmemcasecoll.c: Likewise.
38414         * tests/test-mbrtowc.c: Likewise.
38415         * tests/test-mbscasecmp.c: Likewise.
38416         * tests/test-mbscasestr1.c: Likewise.
38417         * tests/test-mbscasestr2.c: Likewise.
38418         * tests/test-mbscasestr3.c: Likewise.
38419         * tests/test-mbscasestr4.c: Likewise.
38420         * tests/test-mbschr.c: Likewise.
38421         * tests/test-mbscspn.c: Likewise.
38422         * tests/test-mbsinit.c: Likewise.
38423         * tests/test-mbsncasecmp.c: Likewise.
38424         * tests/test-mbsnrtowcs.c: Likewise.
38425         * tests/test-mbspbrk.c: Likewise.
38426         * tests/test-mbspcasecmp.c: Likewise.
38427         * tests/test-mbsrchr.c: Likewise.
38428         * tests/test-mbsrtowcs.c: Likewise.
38429         * tests/test-mbsspn.c: Likewise.
38430         * tests/test-mbsstr1.c: Likewise.
38431         * tests/test-mbsstr2.c: Likewise.
38432         * tests/test-mbsstr3.c: Likewise.
38433         * tests/test-memchr.c: Likewise.
38434         * tests/test-memchr2.c: Likewise.
38435         * tests/test-memcmp.c: Likewise.
38436         * tests/test-memmem.c: Likewise.
38437         * tests/test-memrchr.c: Likewise.
38438         * tests/test-mkdir.c: Likewise.
38439         * tests/test-mkdirat.c: Likewise.
38440         * tests/test-mkfifo.c: Likewise.
38441         * tests/test-mkfifoat.c: Likewise.
38442         * tests/test-mknod.c: Likewise.
38443         * tests/test-nanosleep.c: Likewise.
38444         * tests/test-nl_langinfo.c: Likewise.
38445         * tests/test-obstack-printf.c: Likewise.
38446         * tests/test-open.c: Likewise.
38447         * tests/test-openat.c: Likewise.
38448         * tests/test-pipe-filter-gi1.c: Likewise.
38449         * tests/test-pipe-filter-gi2-main.c: Likewise.
38450         * tests/test-pipe-filter-ii1.c: Likewise.
38451         * tests/test-pipe-filter-ii2-main.c: Likewise.
38452         * tests/test-pipe2.c: Likewise.
38453         * tests/test-popen.h: Likewise.
38454         * tests/test-posixtm.c: Likewise.
38455         * tests/test-pread.c: Likewise.
38456         * tests/test-printf-frexp.c: Likewise.
38457         * tests/test-printf-frexpl.c: Likewise.
38458         * tests/test-printf-posix.c: Likewise.
38459         * tests/test-priv-set.c: Likewise.
38460         * tests/test-quotearg.c: Likewise.
38461         * tests/test-random_r.c: Likewise.
38462         * tests/test-rawmemchr.c: Likewise.
38463         * tests/test-rbtree_list.c: Likewise.
38464         * tests/test-rbtree_oset.c: Likewise.
38465         * tests/test-rbtreehash_list.c: Likewise.
38466         * tests/test-readlink.c: Likewise.
38467         * tests/test-remove.c: Likewise.
38468         * tests/test-rename.c: Likewise.
38469         * tests/test-renameat.c: Likewise.
38470         * tests/test-rmdir.c: Likewise.
38471         * tests/test-round1.c: Likewise.
38472         * tests/test-roundf1.c: Likewise.
38473         * tests/test-roundl.c: Likewise.
38474         * tests/test-safe-alloc.c: Likewise.
38475         * tests/test-sameacls.c: Likewise.
38476         * tests/test-set-mode-acl.c: Likewise.
38477         * tests/test-setenv.c: Likewise.
38478         * tests/test-sigaction.c: Likewise.
38479         * tests/test-signbit.c: Likewise.
38480         * tests/test-sleep.c: Likewise.
38481         * tests/test-snprintf-posix.c: Likewise.
38482         * tests/test-snprintf.c: Likewise.
38483         * tests/test-sprintf-posix.c: Likewise.
38484         * tests/test-stat-time.c: Likewise.
38485         * tests/test-stat.c: Likewise.
38486         * tests/test-strcasestr.c: Likewise.
38487         * tests/test-strchrnul.c: Likewise.
38488         * tests/test-strerror.c: Likewise.
38489         * tests/test-striconv.c: Likewise.
38490         * tests/test-striconveh.c: Likewise.
38491         * tests/test-striconveha.c: Likewise.
38492         * tests/test-strsignal.c: Likewise.
38493         * tests/test-strstr.c: Likewise.
38494         * tests/test-strtod.c: Likewise.
38495         * tests/test-strverscmp.c: Likewise.
38496         * tests/test-symlink.c: Likewise.
38497         * tests/test-symlinkat.c: Likewise.
38498         * tests/test-trunc1.c: Likewise.
38499         * tests/test-trunc2.c: Likewise.
38500         * tests/test-truncf1.c: Likewise.
38501         * tests/test-truncf2.c: Likewise.
38502         * tests/test-truncl.c: Likewise.
38503         * tests/test-uname.c: Likewise.
38504         * tests/test-unlink.c: Likewise.
38505         * tests/test-unlinkat.c: Likewise.
38506         * tests/test-unsetenv.c: Likewise.
38507         * tests/test-usleep.c: Likewise.
38508         * tests/test-utimens.c: Likewise.
38509         * tests/test-utimensat.c: Likewise.
38510         * tests/test-vasnprintf-posix.c: Likewise.
38511         * tests/test-vasnprintf-posix2.c: Likewise.
38512         * tests/test-vasnprintf.c: Likewise.
38513         * tests/test-vasprintf-posix.c: Likewise.
38514         * tests/test-vasprintf.c: Likewise.
38515         * tests/test-vdprintf-posix.c: Likewise.
38516         * tests/test-vfprintf-posix.c: Likewise.
38517         * tests/test-vprintf-posix.c: Likewise.
38518         * tests/test-vsnprintf-posix.c: Likewise.
38519         * tests/test-vsnprintf.c: Likewise.
38520         * tests/test-vsprintf-posix.c: Likewise.
38521         * tests/test-wcrtomb.c: Likewise.
38522         * tests/test-wcsnrtombs.c: Likewise.
38523         * tests/test-wcsrtombs.c: Likewise.
38524         * tests/test-wctype.c: Likewise.
38525         * tests/test-wcwidth.c: Likewise.
38526         * tests/test-xfprintf-posix.c: Likewise.
38527         * tests/test-xmemdup0.c: Likewise.
38528         * tests/test-xprintf-posix.c: Likewise.
38529         * tests/test-xvasprintf.c: Likewise.
38530         * tests/unicase/test-locale-language.c: Likewise.
38531         * tests/unicase/test-mapping-part1.h: Likewise.
38532         * tests/unicase/test-predicate-part1.h: Likewise.
38533         * tests/unicase/test-u8-casecmp.c: Likewise.
38534         * tests/unicase/test-u8-casecoll.c: Likewise.
38535         * tests/unicase/test-u8-casefold.c: Likewise.
38536         * tests/unicase/test-u8-is-cased.c: Likewise.
38537         * tests/unicase/test-u8-is-casefolded.c: Likewise.
38538         * tests/unicase/test-u8-is-lowercase.c: Likewise.
38539         * tests/unicase/test-u8-is-titlecase.c: Likewise.
38540         * tests/unicase/test-u8-is-uppercase.c: Likewise.
38541         * tests/unicase/test-u8-tolower.c: Likewise.
38542         * tests/unicase/test-u8-totitle.c: Likewise.
38543         * tests/unicase/test-u8-toupper.c: Likewise.
38544         * tests/unicase/test-u16-casecmp.c: Likewise.
38545         * tests/unicase/test-u16-casecoll.c: Likewise.
38546         * tests/unicase/test-u16-casefold.c: Likewise.
38547         * tests/unicase/test-u16-is-cased.c: Likewise.
38548         * tests/unicase/test-u16-is-casefolded.c: Likewise.
38549         * tests/unicase/test-u16-is-lowercase.c: Likewise.
38550         * tests/unicase/test-u16-is-titlecase.c: Likewise.
38551         * tests/unicase/test-u16-is-uppercase.c: Likewise.
38552         * tests/unicase/test-u16-tolower.c: Likewise.
38553         * tests/unicase/test-u16-totitle.c: Likewise.
38554         * tests/unicase/test-u16-toupper.c: Likewise.
38555         * tests/unicase/test-u32-casecmp.c: Likewise.
38556         * tests/unicase/test-u32-casecoll.c: Likewise.
38557         * tests/unicase/test-u32-casefold.c: Likewise.
38558         * tests/unicase/test-u32-is-cased.c: Likewise.
38559         * tests/unicase/test-u32-is-casefolded.c: Likewise.
38560         * tests/unicase/test-u32-is-lowercase.c: Likewise.
38561         * tests/unicase/test-u32-is-titlecase.c: Likewise.
38562         * tests/unicase/test-u32-is-uppercase.c: Likewise.
38563         * tests/unicase/test-u32-tolower.c: Likewise.
38564         * tests/unicase/test-u32-totitle.c: Likewise.
38565         * tests/unicase/test-u32-toupper.c: Likewise.
38566         * tests/unicase/test-ulc-casecmp.c: Likewise.
38567         * tests/unicase/test-ulc-casecoll.c: Likewise.
38568         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
38569         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
38570         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
38571         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
38572         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
38573         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
38574         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
38575         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
38576         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
38577         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
38578         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
38579         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
38580         * tests/unictype/test-bidi_byname.c: Likewise.
38581         * tests/unictype/test-bidi_name.c: Likewise.
38582         * tests/unictype/test-bidi_of.c: Likewise.
38583         * tests/unictype/test-bidi_test.c: Likewise.
38584         * tests/unictype/test-block_list.c: Likewise.
38585         * tests/unictype/test-block_of.c: Likewise.
38586         * tests/unictype/test-block_test.c: Likewise.
38587         * tests/unictype/test-categ_and.c: Likewise.
38588         * tests/unictype/test-categ_and_not.c: Likewise.
38589         * tests/unictype/test-categ_byname.c: Likewise.
38590         * tests/unictype/test-categ_name.c: Likewise.
38591         * tests/unictype/test-categ_none.c: Likewise.
38592         * tests/unictype/test-categ_of.c: Likewise.
38593         * tests/unictype/test-categ_or.c: Likewise.
38594         * tests/unictype/test-categ_test_withtable.c: Likewise.
38595         * tests/unictype/test-combining.c: Likewise.
38596         * tests/unictype/test-decdigit.c: Likewise.
38597         * tests/unictype/test-digit.c: Likewise.
38598         * tests/unictype/test-mirror.c: Likewise.
38599         * tests/unictype/test-numeric.c: Likewise.
38600         * tests/unictype/test-pr_byname.c: Likewise.
38601         * tests/unictype/test-pr_test.c: Likewise.
38602         * tests/unictype/test-predicate-part1.h: Likewise.
38603         * tests/unictype/test-scripts.c: Likewise.
38604         * tests/unictype/test-sy_c_ident.c: Likewise.
38605         * tests/unictype/test-sy_java_ident.c: Likewise.
38606         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
38607         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
38608         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
38609         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
38610         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
38611         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
38612         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
38613         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
38614         * tests/uninorm/test-canonical-decomposition.c: Likewise.
38615         * tests/uninorm/test-compat-decomposition.c: Likewise.
38616         * tests/uninorm/test-composition.c: Likewise.
38617         * tests/uninorm/test-decomposing-form.c: Likewise.
38618         * tests/uninorm/test-decomposition.c: Likewise.
38619         * tests/uninorm/test-u8-nfc.c: Likewise.
38620         * tests/uninorm/test-u8-nfd.c: Likewise.
38621         * tests/uninorm/test-u8-nfkc.c: Likewise.
38622         * tests/uninorm/test-u8-nfkd.c: Likewise.
38623         * tests/uninorm/test-u8-normcmp.c: Likewise.
38624         * tests/uninorm/test-u8-normcoll.c: Likewise.
38625         * tests/uninorm/test-u16-nfc.c: Likewise.
38626         * tests/uninorm/test-u16-nfd.c: Likewise.
38627         * tests/uninorm/test-u16-nfkc.c: Likewise.
38628         * tests/uninorm/test-u16-nfkd.c: Likewise.
38629         * tests/uninorm/test-u16-normcmp.c: Likewise.
38630         * tests/uninorm/test-u16-normcoll.c: Likewise.
38631         * tests/uninorm/test-u32-nfc.c: Likewise.
38632         * tests/uninorm/test-u32-nfd.c: Likewise.
38633         * tests/uninorm/test-u32-nfkc.c: Likewise.
38634         * tests/uninorm/test-u32-nfkd.c: Likewise.
38635         * tests/uninorm/test-u32-normalize-big.c: Likewise.
38636         * tests/uninorm/test-u32-normcmp.c: Likewise.
38637         * tests/uninorm/test-u32-normcoll.c: Likewise.
38638         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
38639         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
38640         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
38641         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
38642         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
38643         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
38644         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
38645         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
38646         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
38647         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
38648         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
38649         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
38650         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
38651         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
38652         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
38653         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
38654         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
38655         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
38656         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
38657         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
38658         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
38659         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
38660         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
38661         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
38662         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
38663         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
38664         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
38665         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
38666         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
38667         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
38668         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
38669         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
38670         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
38671         * tests/uniwidth/test-u8-strwidth.c: Likewise.
38672         * tests/uniwidth/test-u8-width.c: Likewise.
38673         * tests/uniwidth/test-u16-strwidth.c: Likewise.
38674         * tests/uniwidth/test-u16-width.c: Likewise.
38675         * tests/uniwidth/test-u32-strwidth.c: Likewise.
38676         * tests/uniwidth/test-u32-width.c: Likewise.
38677         * tests/uniwidth/test-uc_width.c: Likewise.
38678         * tests/uniwidth/test-uc_width2.c: Likewise.
38679         * modules/acl-tests (Files): Add tests/macros.h.
38680         * modules/areadlink-tests (Files): Likewise.
38681         * modules/areadlink-with-size-tests (Files): Likewise.
38682         * modules/areadlinkat-tests (Files): Likewise.
38683         * modules/areadlinkat-with-size-tests (Files): Likewise.
38684         * modules/argmatch-tests (Files): Likewise.
38685         * modules/argv-iter-tests (Files): Likewise.
38686         * modules/array-list-tests (Files): Likewise.
38687         * modules/array-mergesort-tests (Files): Likewise.
38688         * modules/array-oset-tests (Files): Likewise.
38689         * modules/avltree-list-tests (Files): Likewise.
38690         * modules/avltree-oset-tests (Files): Likewise.
38691         * modules/avltreehash-list-tests (Files): Likewise.
38692         * modules/base64-tests (Files): Likewise.
38693         * modules/binary-io-tests (Files): Likewise.
38694         * modules/bitrotate-tests (Files): Likewise.
38695         * modules/btowc-tests (Files): Likewise.
38696         * modules/byteswap-tests (Files): Likewise.
38697         * modules/c-ctype-tests (Files): Likewise.
38698         * modules/c-stack-tests (Files): Likewise.
38699         * modules/c-strcase-tests (Files): Likewise.
38700         * modules/c-strcasestr-tests (Files): Likewise.
38701         * modules/c-strstr-tests (Files): Likewise.
38702         * modules/canonicalize-lgpl-tests (Files): Likewise.
38703         * modules/canonicalize-tests (Files): Likewise.
38704         * modules/carray-list-tests (Files): Likewise.
38705         * modules/ceilf-tests (Files): Likewise.
38706         * modules/ceill-tests (Files): Likewise.
38707         * modules/chown-tests (Files): Likewise.
38708         * modules/cloexec-tests (Files): Likewise.
38709         * modules/copy-file-tests (Files): Likewise.
38710         * modules/count-one-bits-tests (Files): Likewise.
38711         * modules/dprintf-posix-tests (Files): Likewise.
38712         * modules/dup2-tests (Files): Likewise.
38713         * modules/dup3-tests (Files): Likewise.
38714         * modules/duplocale-tests (Files): Likewise.
38715         * modules/fbufmode-tests (Files): Likewise.
38716         * modules/fchdir-tests (Files): Likewise.
38717         * modules/fcntl-safer-tests (Files): Likewise.
38718         * modules/fcntl-tests (Files): Likewise.
38719         * modules/fdopendir-tests (Files): Likewise.
38720         * modules/fdutimensat-tests (Files): Likewise.
38721         * modules/fflush-tests (Files): Likewise.
38722         * modules/filevercmp-tests (Files): Likewise.
38723         * modules/flock-tests (Files): Likewise.
38724         * modules/floorf-tests (Files): Likewise.
38725         * modules/floorl-tests (Files): Likewise.
38726         * modules/fnmatch-tests (Files): Likewise.
38727         * modules/fopen-safer-tests (Files): Likewise.
38728         * modules/fopen-tests (Files): Likewise.
38729         * modules/fpending-tests (Files): Likewise.
38730         * modules/fprintf-posix-tests (Files): Likewise.
38731         * modules/fpurge-tests (Files): Likewise.
38732         * modules/freadable-tests (Files): Likewise.
38733         * modules/freadahead-tests (Files): Likewise.
38734         * modules/freading-tests (Files): Likewise.
38735         * modules/freadptr-tests (Files): Likewise.
38736         * modules/freadseek-tests (Files): Likewise.
38737         * modules/freopen-tests (Files): Likewise.
38738         * modules/frexp-nolibm-tests (Files): Likewise.
38739         * modules/frexp-tests (Files): Likewise.
38740         * modules/frexpl-nolibm-tests (Files): Likewise.
38741         * modules/frexpl-tests (Files): Likewise.
38742         * modules/fseek-tests (Files): Likewise.
38743         * modules/fseeko-tests (Files): Likewise.
38744         * modules/fstrcmp-tests (Files): Likewise.
38745         * modules/fsync-tests (Files): Likewise.
38746         * modules/ftell-tests (Files): Likewise.
38747         * modules/ftello-tests (Files): Likewise.
38748         * modules/func-tests (Files): Likewise.
38749         * modules/futimens-tests (Files): Likewise.
38750         * modules/fwritable-tests (Files): Likewise.
38751         * modules/fwriting-tests (Files): Likewise.
38752         * modules/getcwd-tests (Files): Likewise.
38753         * modules/getdate-tests (Files): Likewise.
38754         * modules/getdelim-tests (Files): Likewise.
38755         * modules/getdtablesize-tests (Files): Likewise.
38756         * modules/getgroups-tests (Files): Likewise.
38757         * modules/getline-tests (Files): Likewise.
38758         * modules/getndelim2-tests (Files): Likewise.
38759         * modules/glob-tests (Files): Likewise.
38760         * modules/hash-tests (Files): Likewise.
38761         * modules/i-ring-tests (Files): Likewise.
38762         * modules/iconv-tests (Files): Likewise.
38763         * modules/iconv_open-utf-tests (Files): Likewise.
38764         * modules/idpriv-drop-tests (Files): Likewise.
38765         * modules/idpriv-droptemp-tests (Files): Likewise.
38766         * modules/inet_ntop-tests (Files): Likewise.
38767         * modules/inet_pton-tests (Files): Likewise.
38768         * modules/isblank-tests (Files): Likewise.
38769         * modules/isfinite-tests (Files): Likewise.
38770         * modules/isinf-tests (Files): Likewise.
38771         * modules/isnan-tests (Files): Likewise.
38772         * modules/isnand-nolibm-tests (Files): Likewise.
38773         * modules/isnand-tests (Files): Likewise.
38774         * modules/isnanf-nolibm-tests (Files): Likewise.
38775         * modules/isnanf-tests (Files): Likewise.
38776         * modules/isnanl-nolibm-tests (Files): Likewise.
38777         * modules/isnanl-tests (Files): Likewise.
38778         * modules/lchown-tests (Files): Likewise.
38779         * modules/ldexpl-tests (Files): Likewise.
38780         * modules/link-tests (Files): Likewise.
38781         * modules/linkat-tests (Files): Likewise.
38782         * modules/linked-list-tests (Files): Likewise.
38783         * modules/linkedhash-list-tests (Files): Likewise.
38784         * modules/localename-tests (Files): Likewise.
38785         * modules/lseek-tests (Files): Likewise.
38786         * modules/lstat-tests (Files): Likewise.
38787         * modules/mbmemcasecmp-tests (Files): Likewise.
38788         * modules/mbmemcasecoll-tests (Files): Likewise.
38789         * modules/mbrtowc-tests (Files): Likewise.
38790         * modules/mbscasecmp-tests (Files): Likewise.
38791         * modules/mbscasestr-tests (Files): Likewise.
38792         * modules/mbschr-tests (Files): Likewise.
38793         * modules/mbscspn-tests (Files): Likewise.
38794         * modules/mbsinit-tests (Files): Likewise.
38795         * modules/mbsncasecmp-tests (Files): Likewise.
38796         * modules/mbsnrtowcs-tests (Files): Likewise.
38797         * modules/mbspbrk-tests (Files): Likewise.
38798         * modules/mbspcasecmp-tests (Files): Likewise.
38799         * modules/mbsrchr-tests (Files): Likewise.
38800         * modules/mbsrtowcs-tests (Files): Likewise.
38801         * modules/mbsspn-tests (Files): Likewise.
38802         * modules/mbsstr-tests (Files): Likewise.
38803         * modules/memchr-tests (Files): Likewise.
38804         * modules/memchr2-tests (Files): Likewise.
38805         * modules/memcmp-tests (Files): Likewise.
38806         * modules/memmem-tests (Files): Likewise.
38807         * modules/memrchr-tests (Files): Likewise.
38808         * modules/mkdir-tests (Files): Likewise.
38809         * modules/mkfifo-tests (Files): Likewise.
38810         * modules/mkfifoat-tests (Files): Likewise.
38811         * modules/mknod-tests (Files): Likewise.
38812         * modules/nanosleep-tests (Files): Likewise.
38813         * modules/nl_langinfo-tests (Files): Likewise.
38814         * modules/obstack-printf-tests (Files): Likewise.
38815         * modules/open-tests (Files): Likewise.
38816         * modules/openat-tests (Files): Likewise.
38817         * modules/pipe-filter-gi-tests (Files): Likewise.
38818         * modules/pipe-filter-ii-tests (Files): Likewise.
38819         * modules/pipe2-tests (Files): Likewise.
38820         * modules/popen-safer-tests (Files): Likewise.
38821         * modules/popen-tests (Files): Likewise.
38822         * modules/posixtm-tests (Files): Likewise.
38823         * modules/pread-tests (Files): Likewise.
38824         * modules/printf-frexp-tests (Files): Likewise.
38825         * modules/printf-frexpl-tests (Files): Likewise.
38826         * modules/printf-posix-tests (Files): Likewise.
38827         * modules/priv-set-tests (Files): Likewise.
38828         * modules/quotearg-tests (Files): Likewise.
38829         * modules/random_r-tests (Files): Likewise.
38830         * modules/rawmemchr-tests (Files): Likewise.
38831         * modules/rbtree-list-tests (Files): Likewise.
38832         * modules/rbtree-oset-tests (Files): Likewise.
38833         * modules/rbtreehash-list-tests (Files): Likewise.
38834         * modules/readlink-tests (Files): Likewise.
38835         * modules/remove-tests (Files): Likewise.
38836         * modules/rename-tests (Files): Likewise.
38837         * modules/renameat-tests (Files): Likewise.
38838         * modules/rmdir-tests (Files): Likewise.
38839         * modules/round-tests (Files): Likewise.
38840         * modules/roundf-tests (Files): Likewise.
38841         * modules/roundl-tests (Files): Likewise.
38842         * modules/safe-alloc-tests (Files): Likewise.
38843         * modules/setenv-tests (Files): Likewise.
38844         * modules/sigaction-tests (Files): Likewise.
38845         * modules/signbit-tests (Files): Likewise.
38846         * modules/sleep-tests (Files): Likewise.
38847         * modules/snprintf-posix-tests (Files): Likewise.
38848         * modules/snprintf-tests (Files): Likewise.
38849         * modules/sprintf-posix-tests (Files): Likewise.
38850         * modules/stat-tests (Files): Likewise.
38851         * modules/stat-time-tests (Files): Likewise.
38852         * modules/strcasestr-tests (Files): Likewise.
38853         * modules/strchrnul-tests (Files): Likewise.
38854         * modules/strerror-tests (Files): Likewise.
38855         * modules/striconv-tests (Files): Likewise.
38856         * modules/striconveh-tests (Files): Likewise.
38857         * modules/striconveha-tests (Files): Likewise.
38858         * modules/strsignal-tests (Files): Likewise.
38859         * modules/strstr-tests (Files): Likewise.
38860         * modules/strtod-tests (Files): Likewise.
38861         * modules/strverscmp-tests (Files): Likewise.
38862         * modules/symlink-tests (Files): Likewise.
38863         * modules/symlinkat-tests (Files): Likewise.
38864         * modules/trunc-tests (Files): Likewise.
38865         * modules/truncf-tests (Files): Likewise.
38866         * modules/truncl-tests (Files): Likewise.
38867         * modules/uname-tests (Files): Likewise.
38868         * modules/unicase/cased-tests (Files): Likewise.
38869         * modules/unicase/ignorable-tests (Files): Likewise.
38870         * modules/unicase/locale-language-tests (Files): Likewise.
38871         * modules/unicase/tolower-tests (Files): Likewise.
38872         * modules/unicase/totitle-tests (Files): Likewise.
38873         * modules/unicase/toupper-tests (Files): Likewise.
38874         * modules/unicase/u8-casecmp-tests (Files): Likewise.
38875         * modules/unicase/u8-casecoll-tests (Files): Likewise.
38876         * modules/unicase/u8-casefold-tests (Files): Likewise.
38877         * modules/unicase/u8-is-cased-tests (Files): Likewise.
38878         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
38879         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
38880         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
38881         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
38882         * modules/unicase/u8-tolower-tests (Files): Likewise.
38883         * modules/unicase/u8-totitle-tests (Files): Likewise.
38884         * modules/unicase/u8-toupper-tests (Files): Likewise.
38885         * modules/unicase/u16-casecmp-tests (Files): Likewise.
38886         * modules/unicase/u16-casecoll-tests (Files): Likewise.
38887         * modules/unicase/u16-casefold-tests (Files): Likewise.
38888         * modules/unicase/u16-is-cased-tests (Files): Likewise.
38889         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
38890         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
38891         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
38892         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
38893         * modules/unicase/u16-tolower-tests (Files): Likewise.
38894         * modules/unicase/u16-totitle-tests (Files): Likewise.
38895         * modules/unicase/u16-toupper-tests (Files): Likewise.
38896         * modules/unicase/u32-casecmp-tests (Files): Likewise.
38897         * modules/unicase/u32-casecoll-tests (Files): Likewise.
38898         * modules/unicase/u32-casefold-tests (Files): Likewise.
38899         * modules/unicase/u32-is-cased-tests (Files): Likewise.
38900         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
38901         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
38902         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
38903         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
38904         * modules/unicase/u32-tolower-tests (Files): Likewise.
38905         * modules/unicase/u32-totitle-tests (Files): Likewise.
38906         * modules/unicase/u32-toupper-tests (Files): Likewise.
38907         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
38908         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
38909         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
38910         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
38911         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
38912         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
38913         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
38914         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
38915         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
38916         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
38917         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
38918         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
38919         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
38920         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
38921         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
38922         * modules/unictype/bidicategory-name-tests (Files): Likewise.
38923         * modules/unictype/bidicategory-of-tests (Files): Likewise.
38924         * modules/unictype/bidicategory-test-tests (Files): Likewise.
38925         * modules/unictype/block-list-tests (Files): Likewise.
38926         * modules/unictype/block-of-tests (Files): Likewise.
38927         * modules/unictype/block-test-tests (Files): Likewise.
38928         * modules/unictype/category-C-tests (Files): Likewise.
38929         * modules/unictype/category-Cc-tests (Files): Likewise.
38930         * modules/unictype/category-Cf-tests (Files): Likewise.
38931         * modules/unictype/category-Cn-tests (Files): Likewise.
38932         * modules/unictype/category-Co-tests (Files): Likewise.
38933         * modules/unictype/category-Cs-tests (Files): Likewise.
38934         * modules/unictype/category-L-tests (Files): Likewise.
38935         * modules/unictype/category-Ll-tests (Files): Likewise.
38936         * modules/unictype/category-Lm-tests (Files): Likewise.
38937         * modules/unictype/category-Lo-tests (Files): Likewise.
38938         * modules/unictype/category-Lt-tests (Files): Likewise.
38939         * modules/unictype/category-Lu-tests (Files): Likewise.
38940         * modules/unictype/category-M-tests (Files): Likewise.
38941         * modules/unictype/category-Mc-tests (Files): Likewise.
38942         * modules/unictype/category-Me-tests (Files): Likewise.
38943         * modules/unictype/category-Mn-tests (Files): Likewise.
38944         * modules/unictype/category-N-tests (Files): Likewise.
38945         * modules/unictype/category-Nd-tests (Files): Likewise.
38946         * modules/unictype/category-Nl-tests (Files): Likewise.
38947         * modules/unictype/category-No-tests (Files): Likewise.
38948         * modules/unictype/category-P-tests (Files): Likewise.
38949         * modules/unictype/category-Pc-tests (Files): Likewise.
38950         * modules/unictype/category-Pd-tests (Files): Likewise.
38951         * modules/unictype/category-Pe-tests (Files): Likewise.
38952         * modules/unictype/category-Pf-tests (Files): Likewise.
38953         * modules/unictype/category-Pi-tests (Files): Likewise.
38954         * modules/unictype/category-Po-tests (Files): Likewise.
38955         * modules/unictype/category-Ps-tests (Files): Likewise.
38956         * modules/unictype/category-S-tests (Files): Likewise.
38957         * modules/unictype/category-Sc-tests (Files): Likewise.
38958         * modules/unictype/category-Sk-tests (Files): Likewise.
38959         * modules/unictype/category-Sm-tests (Files): Likewise.
38960         * modules/unictype/category-So-tests (Files): Likewise.
38961         * modules/unictype/category-Z-tests (Files): Likewise.
38962         * modules/unictype/category-Zl-tests (Files): Likewise.
38963         * modules/unictype/category-Zp-tests (Files): Likewise.
38964         * modules/unictype/category-Zs-tests (Files): Likewise.
38965         * modules/unictype/category-and-not-tests (Files): Likewise.
38966         * modules/unictype/category-and-tests (Files): Likewise.
38967         * modules/unictype/category-byname-tests (Files): Likewise.
38968         * modules/unictype/category-name-tests (Files): Likewise.
38969         * modules/unictype/category-none-tests (Files): Likewise.
38970         * modules/unictype/category-of-tests (Files): Likewise.
38971         * modules/unictype/category-or-tests (Files): Likewise.
38972         * modules/unictype/category-test-withtable-tests (Files): Likewise.
38973         * modules/unictype/combining-class-tests (Files): Likewise.
38974         * modules/unictype/ctype-alnum-tests (Files): Likewise.
38975         * modules/unictype/ctype-alpha-tests (Files): Likewise.
38976         * modules/unictype/ctype-blank-tests (Files): Likewise.
38977         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
38978         * modules/unictype/ctype-digit-tests (Files): Likewise.
38979         * modules/unictype/ctype-graph-tests (Files): Likewise.
38980         * modules/unictype/ctype-lower-tests (Files): Likewise.
38981         * modules/unictype/ctype-print-tests (Files): Likewise.
38982         * modules/unictype/ctype-punct-tests (Files): Likewise.
38983         * modules/unictype/ctype-space-tests (Files): Likewise.
38984         * modules/unictype/ctype-upper-tests (Files): Likewise.
38985         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
38986         * modules/unictype/decimal-digit-tests (Files): Likewise.
38987         * modules/unictype/digit-tests (Files): Likewise.
38988         * modules/unictype/mirror-tests (Files): Likewise.
38989         * modules/unictype/numeric-tests (Files): Likewise.
38990         * modules/unictype/property-alphabetic-tests (Files): Likewise.
38991         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
38992         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
38993         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
38994         Likewise.
38995         * modules/unictype/property-bidi-block-separator-tests (Files):
38996         Likewise.
38997         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
38998         Likewise.
38999         * modules/unictype/property-bidi-common-separator-tests (Files):
39000         Likewise.
39001         * modules/unictype/property-bidi-control-tests (Files): Likewise.
39002         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
39003         Likewise.
39004         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
39005         Likewise.
39006         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
39007         Likewise.
39008         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
39009         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
39010         Likewise.
39011         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
39012         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
39013         Likewise.
39014         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
39015         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
39016         * modules/unictype/property-bidi-segment-separator-tests (Files):
39017         Likewise.
39018         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
39019         * modules/unictype/property-byname-tests (Files): Likewise.
39020         * modules/unictype/property-combining-tests (Files): Likewise.
39021         * modules/unictype/property-composite-tests (Files): Likewise.
39022         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
39023         * modules/unictype/property-dash-tests (Files): Likewise.
39024         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
39025         * modules/unictype/property-default-ignorable-code-point-tests (Files):
39026         Likewise.
39027         * modules/unictype/property-deprecated-tests (Files): Likewise.
39028         * modules/unictype/property-diacritic-tests (Files): Likewise.
39029         * modules/unictype/property-extender-tests (Files): Likewise.
39030         * modules/unictype/property-format-control-tests (Files): Likewise.
39031         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
39032         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
39033         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
39034         * modules/unictype/property-hex-digit-tests (Files): Likewise.
39035         * modules/unictype/property-hyphen-tests (Files): Likewise.
39036         * modules/unictype/property-id-continue-tests (Files): Likewise.
39037         * modules/unictype/property-id-start-tests (Files): Likewise.
39038         * modules/unictype/property-ideographic-tests (Files): Likewise.
39039         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
39040         * modules/unictype/property-ids-trinary-operator-tests (Files):
39041         Likewise.
39042         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
39043         * modules/unictype/property-iso-control-tests (Files): Likewise.
39044         * modules/unictype/property-join-control-tests (Files): Likewise.
39045         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
39046         * modules/unictype/property-line-separator-tests (Files): Likewise.
39047         * modules/unictype/property-logical-order-exception-tests (Files):
39048         Likewise.
39049         * modules/unictype/property-lowercase-tests (Files): Likewise.
39050         * modules/unictype/property-math-tests (Files): Likewise.
39051         * modules/unictype/property-non-break-tests (Files): Likewise.
39052         * modules/unictype/property-not-a-character-tests (Files): Likewise.
39053         * modules/unictype/property-numeric-tests (Files): Likewise.
39054         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
39055         * modules/unictype/property-other-default-ignorable-code-point-tests
39056         (Files): Likewise.
39057         * modules/unictype/property-other-grapheme-extend-tests (Files):
39058         Likewise.
39059         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
39060         * modules/unictype/property-other-id-start-tests (Files): Likewise.
39061         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
39062         * modules/unictype/property-other-math-tests (Files): Likewise.
39063         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
39064         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
39065         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
39066         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
39067         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
39068         * modules/unictype/property-private-use-tests (Files): Likewise.
39069         * modules/unictype/property-punctuation-tests (Files): Likewise.
39070         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
39071         * modules/unictype/property-radical-tests (Files): Likewise.
39072         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
39073         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
39074         * modules/unictype/property-space-tests (Files): Likewise.
39075         * modules/unictype/property-terminal-punctuation-tests (Files):
39076         Likewise.
39077         * modules/unictype/property-test-tests (Files): Likewise.
39078         * modules/unictype/property-titlecase-tests (Files): Likewise.
39079         * modules/unictype/property-unassigned-code-value-tests (Files):
39080         Likewise.
39081         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
39082         * modules/unictype/property-uppercase-tests (Files): Likewise.
39083         * modules/unictype/property-variation-selector-tests (Files): Likewise.
39084         * modules/unictype/property-white-space-tests (Files): Likewise.
39085         * modules/unictype/property-xid-continue-tests (Files): Likewise.
39086         * modules/unictype/property-xid-start-tests (Files): Likewise.
39087         * modules/unictype/property-zero-width-tests (Files): Likewise.
39088         * modules/unictype/scripts-tests (Files): Likewise.
39089         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
39090         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
39091         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
39092         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
39093         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
39094         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
39095         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
39096         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
39097         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
39098         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
39099         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
39100         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
39101         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
39102         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
39103         * modules/uninorm/composition-tests (Files): Likewise.
39104         * modules/uninorm/decomposing-form-tests (Files): Likewise.
39105         * modules/uninorm/decomposition-tests (Files): Likewise.
39106         * modules/uninorm/filter-tests (Files): Likewise.
39107         * modules/uninorm/nfc-tests (Files): Likewise.
39108         * modules/uninorm/nfd-tests (Files): Likewise.
39109         * modules/uninorm/nfkc-tests (Files): Likewise.
39110         * modules/uninorm/nfkd-tests (Files): Likewise.
39111         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
39112         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
39113         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
39114         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
39115         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
39116         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
39117         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
39118         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
39119         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
39120         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
39121         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
39122         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
39123         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
39124         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
39125         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
39126         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
39127         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
39128         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
39129         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
39130         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
39131         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
39132         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
39133         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
39134         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
39135         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
39136         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
39137         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
39138         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
39139         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
39140         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
39141         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
39142         * modules/uniwidth/u8-width-tests (Files): Likewise.
39143         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
39144         * modules/uniwidth/u16-width-tests (Files): Likewise.
39145         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
39146         * modules/uniwidth/u32-width-tests (Files): Likewise.
39147         * modules/uniwidth/width-tests (Files): Likewise.
39148         * modules/unlink-tests (Files): Likewise.
39149         * modules/unsetenv-tests (Files): Likewise.
39150         * modules/usleep-tests (Files): Likewise.
39151         * modules/utimens-tests (Files): Likewise.
39152         * modules/utimensat-tests (Files): Likewise.
39153         * modules/vasnprintf-posix-tests (Files): Likewise.
39154         * modules/vasnprintf-tests (Files): Likewise.
39155         * modules/vasprintf-posix-tests (Files): Likewise.
39156         * modules/vasprintf-tests (Files): Likewise.
39157         * modules/vdprintf-posix-tests (Files): Likewise.
39158         * modules/vfprintf-posix-tests (Files): Likewise.
39159         * modules/vprintf-posix-tests (Files): Likewise.
39160         * modules/vsnprintf-posix-tests (Files): Likewise.
39161         * modules/vsnprintf-tests (Files): Likewise.
39162         * modules/vsprintf-posix-tests (Files): Likewise.
39163         * modules/wcrtomb-tests (Files): Likewise.
39164         * modules/wcsnrtombs-tests (Files): Likewise.
39165         * modules/wcsrtombs-tests (Files): Likewise.
39166         * modules/wctype-tests (Files): Likewise.
39167         * modules/wcwidth-tests (Files): Likewise.
39168         * modules/xmemdup0-tests (Files): Likewise.
39169         * modules/xprintf-posix-tests (Files): Likewise.
39170         * modules/xvasprintf-tests (Files): Likewise.
39171
39172 2009-12-24  Eric Blake  <ebb9@byu.net>
39173
39174         test-nanosleep: fix typo
39175         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
39176         patch.
39177         Reported by Bruno Haible.
39178
39179 2009-12-24  Bruno Haible  <bruno@clisp.org>
39180
39181         Reduce namespace pollution on glibc systems.
39182         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
39183         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
39184         systems.
39185         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
39186         <getopt.h> on glibc systems.
39187         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
39188         systems.
39189         * lib/fcntl.c: Include <unistd.h> here instead.
39190
39191 2009-12-24  Bruno Haible  <bruno@clisp.org>
39192
39193         * lib/stdlib.in.h (includes): Fix typo in today's commit.
39194
39195 2009-12-24  Eric Blake  <ebb9@byu.net>
39196
39197         tests: add signature checks
39198         * tests/signature.h (SIGNATURE_CHECK): New file.
39199         * modules/atexit-tests (Files): Use it.
39200         * modules/btowc-tests (Files): Likewise.
39201         * modules/canonicalize-lgpl-tests (Files): Likewise.
39202         * modules/ceilf-tests (Files): Likewise.
39203         * modules/ceill-tests (Files): Likewise.
39204         * modules/chown-tests (Files): Likewise.
39205         * modules/dprintf-posix-tests (Files): Likewise.
39206         * modules/dup2-tests (Files): Likewise.
39207         * modules/dup3-tests (Files): Likewise.
39208         * modules/duplocale-tests (Files): Likewise.
39209         * modules/fchdir-tests (Files): Likewise.
39210         * modules/fcntl-tests (Files): Likewise.
39211         * modules/fdopendir-tests (Files): Likewise.
39212         * modules/fflush-tests (Files): Likewise.
39213         * modules/flock-tests (Files): Likewise.
39214         * modules/floorf-tests (Files): Likewise.
39215         * modules/floorl-tests (Files): Likewise.
39216         * modules/fnmatch-tests (Files): Likewise.
39217         * modules/fopen-tests (Files): Likewise.
39218         * modules/fprintf-posix-tests (Files): Likewise.
39219         * modules/freopen-tests (Files): Likewise.
39220         * modules/frexp-nolibm-tests (Files): Likewise.
39221         * modules/frexp-tests (Files): Likewise.
39222         * modules/frexpl-nolibm-tests (Files): Likewise.
39223         * modules/frexpl-tests (Files): Likewise.
39224         * modules/fseek-tests (Files): Likewise.
39225         * modules/fseeko-tests (Files): Likewise.
39226         * modules/fsync-tests (Files): Likewise.
39227         * modules/ftell-tests (Files): Likewise.
39228         * modules/ftello-tests (Files): Likewise.
39229         * modules/futimens-tests (Files): Likewise.
39230         * modules/getaddrinfo-tests (Files): Likewise.
39231         * modules/getcwd-tests (Files): Likewise.
39232         * modules/getdelim-tests (Files): Likewise.
39233         * modules/getdtablesize-tests (Files): Likewise.
39234         * modules/getgroups-tests (Files): Likewise.
39235         * modules/gethostname-tests (Files): Likewise.
39236         * modules/getline-tests (Files): Likewise.
39237         * modules/getopt-posix-tests (Files): Likewise.
39238         * modules/gettimeofday-tests (Files): Likewise.
39239         * modules/glob-tests (Files): Likewise.
39240         * modules/iconv-tests (Files): Likewise.
39241         * modules/inet_ntop-tests (Files): Likewise.
39242         * modules/inet_pton-tests (Files): Likewise.
39243         * modules/isblank-tests (Files): Likewise.
39244         * modules/lchown-tests (Files): Likewise.
39245         * modules/ldexpl-tests (Files): Likewise.
39246         * modules/link-tests (Files): Likewise.
39247         * modules/linkat-tests (Files): Likewise.
39248         * modules/lseek-tests (Files): Likewise.
39249         * modules/lstat-tests (Files): Likewise.
39250         * modules/mbrtowc-tests (Files): Likewise.
39251         * modules/mbsinit-tests (Files): Likewise.
39252         * modules/mbsnrtowcs-tests (Files): Likewise.
39253         * modules/mbsrtowcs-tests (Files): Likewise.
39254         * modules/memchr-tests (Files): Likewise.
39255         * modules/memcmp-tests (Files): Likewise.
39256         * modules/memmem-tests (Files): Likewise.
39257         * modules/memrchr-tests (Files): Likewise.
39258         * modules/mkdir-tests (Files): Likewise.
39259         * modules/mkfifo-tests (Files): Likewise.
39260         * modules/mkfifoat-tests (Files): Likewise.
39261         * modules/mknod-tests (Files): Likewise.
39262         * modules/nanosleep-tests (Files): Likewise.
39263         * modules/nl_langinfo-tests (Files): Likewise.
39264         * modules/obstack-printf-tests (Files): Likewise.
39265         * modules/open-tests (Files): Likewise.
39266         * modules/openat-tests (Files): Likewise.
39267         * modules/perror-tests (Files): Likewise.
39268         * modules/pipe2-tests (Files): Likewise.
39269         * modules/poll-tests (Files): Likewise.
39270         * modules/popen-tests (Files): Likewise.
39271         * modules/posix_spawn-tests (Files): Likewise.
39272         * modules/posix_spawnp-tests (Files): Likewise.
39273         * modules/pread-tests (Files): Likewise.
39274         * modules/printf-posix-tests (Files): Likewise.
39275         * modules/pty-tests (Files): Likewise.
39276         * modules/random_r-tests (Files): Likewise.
39277         * modules/rawmemchr-tests (Files): Likewise.
39278         * modules/readlink-tests (Files): Likewise.
39279         * modules/remove-tests (Files): Likewise.
39280         * modules/rename-tests (Files): Likewise.
39281         * modules/renameat-tests (Files): Likewise.
39282         * modules/rmdir-tests (Files): Likewise.
39283         * modules/round-tests (Files): Likewise.
39284         * modules/roundf-tests (Files): Likewise.
39285         * modules/roundl-tests (Files): Likewise.
39286         * modules/select-tests (Files): Likewise.
39287         * modules/setenv-tests (Files): Likewise.
39288         * modules/sigaction-tests (Files): Likewise.
39289         * modules/sleep-tests (Files): Likewise.
39290         * modules/snprintf-posix-tests (Files): Likewise.
39291         * modules/snprintf-tests (Files): Likewise.
39292         * modules/sprintf-posix-tests (Files): Likewise.
39293         * modules/stat-tests (Files): Likewise.
39294         * modules/strcasestr-tests (Files): Likewise.
39295         * modules/strchrnul-tests (Files): Likewise.
39296         * modules/strerror-tests (Files): Likewise.
39297         * modules/strsignal-tests (Files): Likewise.
39298         * modules/strstr-tests (Files): Likewise.
39299         * modules/strtod-tests (Files): Likewise.
39300         * modules/strverscmp-tests (Files): Likewise.
39301         * modules/symlink-tests (Files): Likewise.
39302         * modules/symlinkat-tests (Files): Likewise.
39303         * modules/times-tests (Files): Likewise.
39304         * modules/trunc-tests (Files): Likewise.
39305         * modules/truncf-tests (Files): Likewise.
39306         * modules/truncl-tests (Files): Likewise.
39307         * modules/tsearch-tests (Files): Likewise.
39308         * modules/uname-tests (Files): Likewise.
39309         * modules/unlink-tests (Files): Likewise.
39310         * modules/unsetenv-tests (Files): Likewise.
39311         * modules/usleep-tests (Files): Likewise.
39312         * modules/utimensat-tests (Files): Likewise.
39313         * modules/vasprintf-tests (Files): Likewise.
39314         * modules/vdprintf-posix-tests (Files): Likewise.
39315         * modules/vfprintf-posix-tests (Files): Likewise.
39316         * modules/vprintf-posix-tests (Files): Likewise.
39317         * modules/vsnprintf-posix-tests (Files): Likewise.
39318         * modules/vsnprintf-tests (Files): Likewise.
39319         * modules/vsprintf-posix-tests (Files): Likewise.
39320         * modules/wcrtomb-tests (Files): Likewise.
39321         * modules/wcsnrtombs-tests (Files): Likewise.
39322         * modules/wcsrtombs-tests (Files): Likewise.
39323         * modules/wcwidth-tests (Files): Likewise.
39324         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
39325         * tests/test-isinf.c (isinf): Likewise.
39326         * tests/test-isnan.c (isnan): Likewise.
39327         * tests/test-signbit.c (signbit): Likewise.
39328         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
39329         declaration, either as macro or with correct signature.
39330         (select): Ensure function under test is declared with correct
39331         signature in correct header.
39332         * tests/test-atexit.c (atexit): Likewise.
39333         * tests/test-btowc.c (btowc): Likewise.
39334         * tests/test-canonicalize-lgpl.c (realpath)
39335         (canonicalize_file_name): Likewise.
39336         * tests/test-ceilf1.c (ceilf): Likewise.
39337         * tests/test-ceill.c (ceill): Likewise.
39338         * tests/test-chown.c (chown): Likewise.
39339         * tests/test-dprintf-posix.c (dprintf): Likewise.
39340         * tests/test-dup2.c (dup2): Likewise.
39341         * tests/test-dup3.c (dup3): Likewise.
39342         * tests/test-duplocale.c (duplocale): Likewise.
39343         * tests/test-fchdir.c (fchdir): Likewise.
39344         * tests/test-fchownat.c (fchownat): Likewise.
39345         * tests/test-fcntl.c (fcntl): Likewise.
39346         * tests/test-fdopendir.c (fdopendir): Likewise.
39347         * tests/test-fflush.c (fflush): Likewise.
39348         * tests/test-flock.c (flock): Likewise.
39349         * tests/test-floorf1.c (floorf): Likewise.
39350         * tests/test-floorl.c (floorl): Likewise.
39351         * tests/test-fnmatch.c (fnmatch): Likewise.
39352         * tests/test-fopen.c (fopen): Likewise.
39353         * tests/test-fprintf-posix.c (fprintf): Likewise.
39354         * tests/test-freopen.c (freopen): Likewise.
39355         * tests/test-frexp.c (frexp): Likewise.
39356         * tests/test-frexpl.c (frexpl): Likewise.
39357         * tests/test-fseek.c (fseek): Likewise.
39358         * tests/test-fseeko.c (fseeko): Likewise.
39359         * tests/test-fstatat.c (fstatat): Likewise.
39360         * tests/test-fsync.c (fsync): Likewise.
39361         * tests/test-ftell.c (ftell): Likewise.
39362         * tests/test-ftello.c (ftello): Likewise.
39363         * tests/test-futimens.c (futimens): Likewise.
39364         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
39365         (gai_strerror): Likewise.
39366         * tests/test-getcwd.c (getcwd): Likewise.
39367         * tests/test-getdelim.c (getdelim): Likewise.
39368         * tests/test-getdtablesize.c (getdtablesize): Likewise.
39369         * tests/test-getgroups.c (getgroups): Likewise.
39370         * tests/test-gethostname.c (gethostname): Likewise.
39371         * tests/test-getline.c (getline): Likewise.
39372         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
39373         Likewise.
39374         * tests/test-gettimeofday.c (gettimeofday): Likewise.
39375         * tests/test-glob.c (glob, globfree): Likewise.
39376         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
39377         * tests/test-inet_ntop.c (inet_ntop): Likewise.
39378         * tests/test-inet_pton.c (inet_pton): Likewise.
39379         * tests/test-isblank.c (isblank): Likewise.
39380         * tests/test-lchown.c (lchown): Likewise.
39381         * tests/test-ldexpl.c (ldexpl): Likewise.
39382         * tests/test-link.c (link): Likewise.
39383         * tests/test-linkat.c (linkat): Likewise.
39384         * tests/test-lseek.c (lseek): Likewise.
39385         * tests/test-lstat.c (lstat): Likewise.
39386         * tests/test-mbrtowc.c (mbrtowc): Likewise.
39387         * tests/test-mbsinit.c (mbsinit): Likewise.
39388         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
39389         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
39390         * tests/test-memchr.c (memchr): Likewise.
39391         * tests/test-memcmp.c (memcmp): Likewise.
39392         * tests/test-memmem.c (memmem): Likewise.
39393         * tests/test-memrchr.c (memrchr): Likewise.
39394         * tests/test-mkdir.c (mkdir): Likewise.
39395         * tests/test-mkdirat.c (mkdirat): Likewise.
39396         * tests/test-mkfifo.c (mkfifo): Likewise.
39397         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
39398         * tests/test-mknod.c (mknod): Likewise.
39399         * tests/test-nanosleep.c (nanosleep): Likewise.
39400         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
39401         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
39402         Likewise.
39403         * tests/test-open.c (open): Likewise.
39404         * tests/test-openat.c (openat): Likewise.
39405         * tests/test-perror.c (perror): Likewise.
39406         * tests/test-pipe2.c (pipe2): Likewise.
39407         * tests/test-poll.c (poll): Likewise.
39408         * tests/test-popen.c (popen, pclose): Likewise.
39409         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
39410         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
39411         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
39412         (posix_spawn_file_actions_destroy)
39413         (posix_spawn_file_actions_addclose)
39414         (posix_spawn_file_actions_addopen)
39415         (posix_spawn_file_actions_adddup2): Likewise.
39416         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
39417         * tests/test-pread.c (pread): Likewise.
39418         * tests/test-printf-posix.c (printf): Likewise.
39419         * tests/test-pty.c (openpty, forkpty): Likewise.
39420         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
39421         (random_r): Likewise.
39422         * tests/test-rawmemchr.c (rawmemchr): Likewise.
39423         * tests/test-readlink.c (readlink): Likewise.
39424         * tests/test-remove.c (remove): Likewise.
39425         * tests/test-rename.c (rename): Likewise.
39426         * tests/test-renameat.c (renameat): Likewise.
39427         * tests/test-rmdir.c (rmdir): Likewise.
39428         * tests/test-round1.c (round): Likewise.
39429         * tests/test-roundf1.c (roundf): Likewise.
39430         * tests/test-roundl.c (roundl): Likewise.
39431         * tests/test-setenv.c (setenv): Likewise.
39432         * tests/test-sigaction.c (sigaction): Likewise.
39433         * tests/test-sleep.c (sleep): Likewise.
39434         * tests/test-snprintf.c (snprintf): Likewise.
39435         * tests/test-sprintf-posix.c (sprintf): Likewise.
39436         * tests/test-stat.c (stat): Likewise.
39437         * tests/test-stpncpy.c (stpncpy): Likewise.
39438         * tests/test-strcasestr.c (strcasestr): Likewise.
39439         * tests/test-strchrnul.c (strchrnul): Likewise.
39440         * tests/test-strerror.c (strerror): Likewise.
39441         * tests/test-strsignal.c (strsignal): Likewise.
39442         * tests/test-strstr.c (strstr): Likewise.
39443         * tests/test-strtod.c (strtod): Likewise.
39444         * tests/test-strverscmp.c (strverscmp): Likewise.
39445         * tests/test-symlink.c (symlink): Likewise.
39446         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
39447         * tests/test-times.c (times): Likewise.
39448         * tests/test-trunc1.c (trunc): Likewise.
39449         * tests/test-truncf1.c (truncf): Likewise.
39450         * tests/test-truncl.c (truncl): Likewise.
39451         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
39452         Likewise.
39453         * tests/test-uname.c (uname): Likewise.
39454         * tests/test-unlink.c (unlink): Likewise.
39455         * tests/test-unlinkat.c (unlinkat): Likewise.
39456         * tests/test-unsetenv.c (unsetenv): Likewise.
39457         * tests/test-usleep.c (usleep): Likewise.
39458         * tests/test-utimensat.c (utimensat): Likewise.
39459         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
39460         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
39461         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
39462         * tests/test-vprintf-posix.c (vprintf): Likewise.
39463         * tests/test-vsnprintf.c (vsnprintf): Likewise.
39464         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
39465         * tests/test-wcrtomb.c (wcrtomb): Likewise.
39466         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
39467         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
39468         * tests/test-wcwidth.c (wcwidth): Likewise.
39469
39470         build: pull in conditional headers during GNULIB_POSIXCHECK
39471         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
39472         definitions from any conditionally-included headers.
39473         * lib/stdlib.in.h (includes): Likewise.
39474         * lib/unistd.in.h (includes): Likewise.
39475
39476 2009-12-24  Bruno Haible  <bruno@clisp.org>
39477
39478         * tests/test-argv-iter.c: Include header file being tested immediately
39479         after config.h.
39480         * tests/test-base64.c: Likewise.
39481         * tests/test-flock.c: Likewise.
39482         * tests/test-fsync.c: Likewise.
39483         * tests/test-getdate.c: Likewise.
39484         * tests/test-getndelim2.c: Likewise.
39485         * tests/test-isfinite.c: Likewise.
39486         * tests/test-isinf.c: Likewise.
39487         * tests/test-strerror.c: Likewise.
39488         * tests/test-strsignal.c: Likewise.
39489
39490 2009-12-23  Eric Blake  <ebb9@byu.net>
39491
39492         unistd: work around cygwin bug
39493         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
39494         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
39495         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
39496
39497 2009-12-23  Bruno Haible  <bruno@clisp.org>
39498
39499         localename: More tests.
39500         * tests/test-localename.c (SIZEOF): New macro.
39501         (categories): New variable.
39502         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
39503         test_locale_name_default): Add test w.r.t. thread locale.
39504         (test_locale_name_thread): New function.
39505         (main): Invoke it.
39506
39507         localename: Make aware of thread locale.
39508         * lib/localename.h (gl_locale_name_thread): New declaration.
39509         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
39510         behaviour with respect to thread locale.
39511         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
39512         <langinfo.h>, glthread/lock.h.
39513         (SIZE_BITS): New macro.
39514         (string_hash): New function.
39515         (struct hash_node): New type.
39516         (HASH_TABLE_SIZE): New macro.
39517         (struniq_hash_table, struniq_lock): New variables.
39518         (struniq): New function.
39519         (gl_locale_name_thread): New function.
39520         (gl_locale_name): Invoke it.
39521         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
39522         * modules/localename (Depends-on): Add lock.
39523         Reported by Mike Gran <spk121@yahoo.com>.
39524
39525 2009-12-23  Eric Blake  <ebb9@byu.net>
39526
39527         va-args: new module
39528         * modules/va-args: New file.
39529         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
39530         * MODULES.html.sh (Core language properties): Mention it.
39531
39532         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
39533         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
39534         named alias for __attribute__((__unused__)).
39535         * lib/chown.c: Update client.
39536         * lib/fchmodat.c: Likewise.
39537         * lib/fts.c: Likewise.
39538         * lib/getdate.y: Likewise.
39539         * lib/getgroups.c: Likewise.
39540         * lib/getopt.c: Likewise.
39541         * lib/getugroups.c: Likewise.
39542         * lib/mkdir.c: Likewise.
39543         * lib/mkfifo.c: Likewise.
39544         * lib/mkfifoat.c: Likewise.
39545         * lib/mknod.c: Likewise.
39546         * lib/mknodat.c: Likewise.
39547         * lib/readlink.c: Likewise.
39548         * lib/se-context.in.h: Likewise.
39549         * lib/se-selinux.in.h: Likewise.
39550         * lib/sockets.c: Likewise.
39551         * lib/symlink.c: Likewise.
39552         * lib/symlinkat.c: Likewise.
39553         * lib/unicodeio.c: Likewise.
39554         * lib/unistr.h: Likewise.
39555         * tests/test-areadlink.c: Likewise.
39556         * tests/test-areadlinkat.c: Likewise.
39557         * tests/test-filenamecat.c: Likewise.
39558         * tests/test-fseeko.c: Likewise.
39559         * tests/test-ftello.c: Likewise.
39560         * tests/test-getdate.c: Likewise.
39561         * tests/test-getgroups.c: Likewise.
39562         * tests/test-gethostname.c: Likewise.
39563         * tests/test-quotearg.c: Likewise.
39564         * tests/test-version-etc.c: Likewise.
39565         * tests/test-xalloc-die.c: Likewise.
39566         * tests/test-xfprintf-posix.c: Likewise.
39567         * tests/test-xprintf-posix.c: Likewise.
39568         * tests/test-xvasprintf.c: Likewise.
39569
39570         tests: avoid compiler warnings
39571         * tests/test-fcntl.c (main): Delete unused parameters.
39572         * tests/test-freopen-safer.c (main): Likewise.
39573         * tests/test-xalloc-die.c (main): Mark unused parameters.
39574         * tests/test-fseeko.c (main): Likewise.
39575         * tests/test-ftello.c (main): Likewise.
39576         * tests/test-nanosleep.c (main): Avoid declaration warning.
39577         * tests/test-sleep.c (main): Likewise.
39578         * tests/test-unsetenv.c (main): Silence warning about string
39579         literal.
39580         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
39581
39582 2009-12-23  Bruno Haible  <bruno@clisp.org>
39583
39584         * tests/test-localename.c (test_locale_name): New function, extracted
39585         from main. Also test mixed situations.
39586         (test_locale_name_posix, test_locale_name_environ,
39587         test_locale_name_default): New functions.
39588         (main): Invoke them all.
39589         * modules/localename-tests (configure.ac): Test for newlocale.
39590
39591 2009-12-23  Bruno Haible  <bruno@clisp.org>
39592
39593         unistd: Ensure getcwd gets declared before being overridden.
39594         * lib/unistd.in.h: Conditionally include <io.h>.
39595
39596 2009-12-22  Bruno Haible  <bruno@clisp.org>
39597
39598         wchar: Diagnose broken combination of glibc and gcc versions and flags.
39599         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
39600         (gl_WCHAR_H): Invoke it.
39601         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
39602         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
39603         Reported by Karl Berry <karl@freefriends.org>.
39604
39605 2009-12-22  Eric Blake  <ebb9@byu.net>
39606
39607         math, unistd: avoid redundant includes
39608         * lib/math.in.h (isnan): No need to re-include <math.h>.
39609         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
39610
39611         getsubopt: work around cygwin bug
39612         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
39613         avoid conflicting with system getsubopt.
39614         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
39615         bug.
39616
39617         getopt: synchronize from glibc
39618         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
39619         parameter order.  Adjust all callers.
39620         (_getopt_internal_r, main): Adjust quoting in error messages.
39621         Drop considerations for outdated POSIX 1003.2 error message.
39622         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
39623         callers.
39624         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
39625
39626         test-getopt: test stderr behavior
39627         * modules/getopt-posix-tests (Depends-on): Add dup2.
39628         * tests/test-getopt.c (ASSERT): Avoid stderr.
39629         (main): Move stderr to a temporary file.
39630         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
39631         Instead, add parameter to inform caller if output occurred.
39632         (test_getopt): Adjust all existing tests to expect silence, and
39633         add new tests of leading ":".
39634         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
39635         glibc shortcomings with leading "-:" or "+:" in optstring.
39636         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
39637         Likewise.
39638         * doc/posix-functions/getopt.texi (getopt): Likewise.
39639
39640         test-getopt: enhance test
39641         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
39642         supports optind=0.
39643         * tests/test-getopt.c (OPTIND_MIN): Move...
39644         * tests/test-getopt.h (OPTIND_MIN): ...here.
39645         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
39646         Require that optind=0 works, since modern BSD supports it in
39647         addition to optreset, and since coreutils expects it.
39648         (test_getopt_long_only): New test.
39649         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
39650         glibc shortcomings with 'W;', and enforcement of optind=0.
39651         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
39652         Likewise.
39653
39654 2009-12-21  Bruno Haible  <bruno@clisp.org>
39655
39656         localename: Improvements for MacOS X and Cygwin.
39657         * lib/localename.h (gl_locale_name_environ): New declaration.
39658         * lib/localename.c (gl_locale_name_environ): New function, extracted from
39659         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
39660         (gl_locale_name_posix): Invoke it.
39661         (gl_locale_name_default): Add comments. Use Windows native API also on
39662         Cygwin.
39663
39664 2009-12-21  Bruno Haible  <bruno@clisp.org>
39665
39666         Update list of Win32 locale ids.
39667         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
39668         (LANG_SAMI): Renamed from LANG_SAAMI.
39669         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
39670         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
39671         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
39672         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
39673         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
39674         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
39675         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
39676         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
39677         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
39678         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
39679         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
39680         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
39681         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
39682         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
39683         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
39684         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
39685         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
39686         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
39687         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
39688         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
39689         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
39690         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
39691         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
39692         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
39693         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
39694         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
39695         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
39696         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
39697         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
39698         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
39699         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
39700         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
39701         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
39702         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
39703         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
39704         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
39705         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
39706         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
39707         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
39708         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
39709         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
39710         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
39711         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
39712         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
39713         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
39714         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
39715         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
39716         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
39717         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
39718         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
39719         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
39720         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
39721         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
39722         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
39723         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
39724         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
39725         Add more languages and countries for Sami, Sorbian. Add more countries
39726         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
39727         for Pashto. Change country for Syriac, Tswana.
39728
39729 2009-12-21  Eric Blake  <ebb9@byu.net>
39730
39731         test-utimens: avoid spurious failure
39732         * tests/test-chown.h (nap): Factor...
39733         * tests/nap.h: ...into new file.
39734         * tests/test-lchown.h (nap): Avoid duplication.
39735         * tests/test-utimens-common.h (nap): Use shared implementation,
39736         necessary on file systems with 1-second resolution.
39737         * modules/chown-tests (Files): Include new file.
39738         * modules/fdutimensat-tests (Files): Likewise.
39739         * modules/futimens-tests (Files): Likewise.
39740         * modules/lchown-tests (Files): Likewise.
39741         * modules/openat-tests (Files): Likewise.
39742         * modules/utimens-tests (Files): Likewise.
39743         * modules/utimensat-tests (Files): Likewise.
39744
39745 2009-12-19  Eric Blake  <ebb9@byu.net>
39746
39747         futimens, utimensat: work around Linux bug
39748         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
39749         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
39750         * lib/utimensat.c (rpl_utimensat): Work around it.
39751         * lib/futimens.c (rpl_futimens): Adjust comment.
39752
39753         utimens: work around Linux ctime bug
39754         * lib/utimens.c (detect_ctime_bug): New helper function.
39755         (update_timespec): Differentiate between workaround needed for
39756         this bug vs. what is needed for systems that lack utimensat.
39757         (fdutimens, lutimens): Work around bug.
39758
39759         utimens: check for ctime update
39760         * tests/test-utimens-common.h (check_ctime): Define.
39761         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
39762         * tests/test-futimens.h (test_futimens): Likewise.
39763         * tests/test-lutimens.h (test_lutimens): Likewise.
39764         * doc/posix-functions/futimens.texi (futimens): Document the bug.
39765         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
39766
39767 2009-12-19  Bruno Haible  <bruno@clisp.org>
39768
39769         dprintf-posix: Check against memory leak fixed on 2009-12-15.
39770         * tests/test-dprintf-posix2.sh: New file.
39771         * tests/test-dprintf-posix2.c: New file.
39772         * modules/dprintf-posix-tests (Files): Add them.
39773         (configure.ac): Check for getrlimit and setrlimit.
39774         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
39775
39776 2009-12-19  Bruno Haible  <bruno@clisp.org>
39777
39778         fprintf-posix: Check against memory leak fixed on 2009-12-15.
39779         * tests/test-fprintf-posix3.sh: New file.
39780         * tests/test-fprintf-posix3.c: New file.
39781         * modules/fprintf-posix-tests (Files): Add them.
39782         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
39783
39784 2009-12-19  Eric Blake  <ebb9@byu.net>
39785
39786         dirfd: fix prototype
39787         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
39788         * lib/dirfd.c (dirfd): Likewise.
39789
39790         canonicalize: reduce memory usage
39791         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
39792         allocation to size.
39793         Reported by Solar Designer <solar@openwall.com>.
39794
39795 2009-12-19  Bruno Haible  <bruno@clisp.org>
39796
39797         New module attribute 'Applicability'.
39798         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
39799         * gnulib-tool: New option --extract-applicability.
39800         (func_usage): Document it.
39801         (sed_extract_prog): Recognize it.
39802         (func_get_applicability): New function.
39803         (func_import): Generalize handling of 'link-warning' module.
39804         * modules/link-warning (Applicability): New section.
39805         * modules/arg-nonnull (Applicability): New section.
39806         Repoted by Simon Josefsson <simon@josefsson.org>.
39807
39808 2009-12-19  Bruno Haible  <bruno@clisp.org>
39809
39810         fflush: tweak
39811         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
39812         * lib/fseeko.c (rpl_fseeko): Likewise.
39813
39814 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
39815
39816         * lib/gl_list.h: Fix typo in comment.
39817
39818 2009-12-16  Eric Blake  <ebb9@byu.net>
39819
39820         fcntl: use to simplify other modules
39821         * modules/cloexec (Depends-on): Add fcntl.
39822         * modules/fchdir (Depends-on): Likewise.
39823         * modules/fd-safer-flag (Depends-on): Likewise.
39824         * modules/unistd-safer (Depends-on): Likewise.
39825         * modules/dup3 (configure.ac): Set module indicator.
39826         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
39827         missing.
39828         * lib/fchdir.c (_gl_register_dup): Fix comment.
39829         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
39830         * lib/dup-safer.c (dup_safer): Likewise.
39831         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
39832         * lib/dup3.c (dup3): Likewise.
39833         * tests/test-fchdir.c (main): Enhance test.
39834         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
39835
39836         fcntl: port portions of fcntl to mingw
39837         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
39838         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
39839         replacement for mingw.
39840         * modules/fcntl (Description): Update.
39841         (Depends-on): Add dup2.
39842         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
39843         * modules/fcntl-h (Makefile.am): Substitute it.
39844         * lib/fcntl.in.h (fcntl): Update declaration.
39845         (F_DUPFD, F_GETFD): New macros, when needed.
39846         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
39847         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
39848         * tests/test-fcntl.c (check_flags, main): Enhance test for items
39849         we now guarantee.
39850
39851         fcntl: work around cygwin bug in F_DUPFD
39852         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
39853         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
39854         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
39855         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
39856         * doc/posix-functions/fcntl.texi (fcntl): Document it.
39857
39858         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
39859         * modules/fcntl (Files): List new files.
39860         (configure.ac): Run a test.
39861         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
39862         * lib/fcntl.c (rpl_fcntl): Likewise.
39863         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
39864         (gl_FCNTL_H): Always replace fcntl.h.
39865         * modules/fcntl-h (Makefile.am): Substitute witnesses.
39866         * lib/fcntl.in.h (fcntl): Declare replacement.
39867         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
39868         needed, plus a witness.
39869         * doc/posix-functions/fcntl.texi (fcntl): Document this.
39870         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
39871         * tests/test-fcntl.c: New file.
39872         * modules/fcntl-tests: Likewise.
39873
39874         binary-io: avoid potential compilation warning
39875         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
39876         directives.
39877
39878         fflush: avoid compilation error on NetBSD
39879         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
39880         between off_t and fpos_t, since the latter is sometimes a struct.
39881         * lib/fseeko.c (rpl_fseeko): Likewise.
39882         Reported by Alexander Nasonov <alnsn@yandex.ru>.
39883
39884 2009-12-15  Eric Blake  <ebb9@byu.net>
39885
39886         fcntl-h, stdio, sys_ioctl: fix declarations
39887         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
39888         function must not take arguments.
39889         * lib/sys_ioctl.in.h (ioctl): Likewise.
39890         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
39891         (open): Add a link warning.
39892
39893 2009-12-15  Jim Meyering  <meyering@redhat.com>
39894
39895         areadlink, areadlink-with-size: relax license to LGPLv2+
39896         * modules/areadlink (License): Relax to LGPLv2+.
39897         * modules/areadlink-with-size (License): Likewise.
39898
39899 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
39900             Bruno Haible  <bruno@clisp.org>
39901
39902         *printf: Fix memory leak.
39903         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
39904         * lib/vfprintf.c (vfprintf): Likewise.
39905         * lib/dprintf.c (dprintf): Likewise.
39906         * lib/vdprintf.c (vdprintf): Likewise.
39907
39908 2009-12-14  Eric Blake  <ebb9@byu.net>
39909
39910         accept4: adjust module dependencies
39911         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
39912
39913         utimens: one more try at avoiding compiler warning
39914         * lib/utimens.c (lutimens): Lower scope of result.
39915
39916 2009-12-13  Bruno Haible  <bruno@clisp.org>
39917
39918         Move the malloc checking from module 'list' to new module 'xlist'.
39919         * modules/xlist: New file.
39920         * lib/gl_xlist.h: New file.
39921         * lib/gl_xlist.c: New file.
39922         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
39923         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
39924         gl_list_add_last, gl_list_add_before, gl_list_add_after,
39925         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
39926         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
39927         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
39928         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
39929         gl_sortedlist_nx_add): New declarations.
39930         (struct gl_list_implementation): Rename and change methods accordingly.
39931         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
39932         (gl_list_nx_create): Renamed from gl_list_create.
39933         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
39934         (gl_list_nx_set_at): Renamed from gl_list_set_at.
39935         (gl_list_nx_add_first): Renamed from gl_list_add_first.
39936         (gl_list_nx_add_last): Renamed from gl_list_add_last.
39937         (gl_list_nx_add_before): Renamed from gl_list_add_before.
39938         (gl_list_nx_add_after): Renamed from gl_list_add_after.
39939         (gl_list_nx_add_at): Renamed from gl_list_add_at.
39940         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
39941         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
39942         gl_list_create_empty.
39943         (gl_list_nx_create): Renamed from gl_list_create.
39944         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
39945         (gl_list_nx_set_at): Renamed from gl_list_set_at.
39946         (gl_list_nx_add_first): Renamed from gl_list_add_first.
39947         (gl_list_nx_add_last): Renamed from gl_list_add_last.
39948         (gl_list_nx_add_before): Renamed from gl_list_add_before.
39949         (gl_list_nx_add_after): Renamed from gl_list_add_after.
39950         (gl_list_nx_add_at): Renamed from gl_list_add_at.
39951         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
39952         * lib/gl_array_list.c: Don't include xalloc.h.
39953         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
39954         NULL upon out-of-memory.
39955         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
39956         out-of-memory.
39957         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
39958         Change return type to 'int'.
39959         (gl_array_nx_set_at): Renamed from gl_array_set_at.
39960         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
39961         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
39962         upon out-of-memory.
39963         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
39964         upon out-of-memory.
39965         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
39966         upon out-of-memory.
39967         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
39968         upon out-of-memory.
39969         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
39970         out-of-memory.
39971         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
39972         Update.
39973         (gl_array_list_implementation): Update.
39974         * lib/gl_carray_list.c: Don't include xalloc.h.
39975         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
39976         Return NULL upon out-of-memory.
39977         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
39978         out-of-memory.
39979         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
39980         Change return type to 'int'.
39981         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
39982         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
39983         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
39984         upon out-of-memory.
39985         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
39986         upon out-of-memory.
39987         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
39988         out-of-memory.
39989         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
39990         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
39991         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
39992         Update.
39993         (gl_carray_list_implementation): Update.
39994         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
39995         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
39996         gl_linked_create_empty. Return NULL upon out-of-memory.
39997         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
39998         out-of-memory.
39999         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
40000         Change return type to 'int'. Return -1 upon out-of-memory.
40001         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
40002         out-of-memory.
40003         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
40004         upon out-of-memory.
40005         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
40006         upon out-of-memory.
40007         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
40008         NULL upon out-of-memory.
40009         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
40010         upon out-of-memory.
40011         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
40012         out-of-memory.
40013         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
40014         Update.
40015         * lib/gl_linked_list.c: Don't include xalloc.h.
40016         (gl_linked_list_implementation): Update.
40017         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
40018         (add_to_bucket): Change return type to 'int'.
40019         (gl_linkedhash_list_implementation): Update.
40020         * lib/gl_anytree_list1.h (free_subtree): New function.
40021         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
40022         gl_tree_create_empty. Return NULL upon out-of-memory.
40023         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
40024         Change return type to 'int'. Return -1 upon out-of-memory.
40025         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
40026         out-of-memory.
40027         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
40028         (gl_tree_remove_node): New function, moved here from
40029         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
40030         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
40031         Update.
40032         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
40033         malloc, not xmalloc. Return NULL upon out-of-memory.
40034         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
40035         out-of-memory.
40036         (gl_tree_remove_node_from_tree): New function, extracted from
40037         gl_tree_remove_node.
40038         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
40039         upon out-of-memory.
40040         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
40041         out-of-memory.
40042         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
40043         upon out-of-memory.
40044         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
40045         upon out-of-memory.
40046         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
40047         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
40048         not xmalloc. Return NULL upon out-of-memory.
40049         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
40050         out-of-memory.
40051         (gl_tree_remove_node_from_tree): New function, extracted from
40052         gl_tree_remove_node.
40053         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
40054         upon out-of-memory.
40055         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
40056         out-of-memory.
40057         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
40058         upon out-of-memory.
40059         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
40060         upon out-of-memory.
40061         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
40062         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
40063         gl_anytree_list1.h before gl_anyavltree_list2.h.
40064         (gl_avltree_list_implementation): Update.
40065         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
40066         gl_anytree_list1.h before gl_anyavltree_list2.h.
40067         (gl_rbtree_list_implementation): Update.
40068         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
40069         Change return type to 'int'. Return -1 upon out-of-memory. Use
40070         __builtin_expect.
40071         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
40072         (gl_avltreehash_list_implementation): Update.
40073         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
40074         (gl_rbtreehash_list_implementation): Update.
40075         * modules/array-list (Depends-on): Remove xalloc.
40076         * modules/carray-list (Depends-on): Likewise.
40077         * modules/linked-list (Depends-on): Likewise.
40078         * modules/linkedhash-list (Depends-on): Likewise.
40079         * modules/avltree-list (Depends-on): Likewise.
40080         * modules/rbtree-list (Depends-on): Likewise.
40081         * modules/avltreehash-list (Depends-on): Likewise.
40082         * modules/rbtreehash-list (Depends-on): Likewise.
40083
40084         * modules/xsublist: New file.
40085         * lib/gl_xsublist.h: New file.
40086         * lib/gl_xsublist.c: New file.
40087         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
40088         (gl_sublist_nx_create): New declaration.
40089         * lib/gl_sublist.c: Don't include xalloc.h.
40090         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
40091         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
40092         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
40093         Change return type to 'int'. Return -1 upon out-of-memory.
40094         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
40095         upon out-of-memory.
40096         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
40097         NULL upon out-of-memory.
40098         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
40099         upon out-of-memory.
40100         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
40101         NULL upon out-of-memory.
40102         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
40103         NULL upon out-of-memory.
40104         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
40105         upon out-of-memory.
40106         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
40107         (gl_sublist_list_implementation): Update.
40108         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
40109         upon out-of-memory.
40110         * modules/sublist (Depends-on): Remove xalloc.
40111
40112         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
40113         * tests/test-carray_list.c: Likewise.
40114         * tests/test-linked_list.c: Likewise.
40115         * tests/test-linkedhash_list.c: Likewise.
40116         * tests/test-avltree_list.c: Likewise.
40117         * tests/test-rbtree_list.c: Likewise.
40118         * tests/test-avltreehash_list.c: Likewise.
40119         * tests/test-rbtreehash_list.c: Likewise.
40120         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
40121         * modules/carray-list-tests (Makefile.am): Likewise.
40122         * modules/linked-list-tests (Makefile.am): Likewise.
40123         * modules/linkedhash-list-tests (Makefile.am): Likewise.
40124         * modules/avltree-list-tests (Makefile.am): Likewise.
40125         * modules/rbtree-list-tests (Makefile.am): Likewise.
40126         * modules/avltreehash-list-tests (Makefile.am): Likewise.
40127         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
40128
40129         * NEWS: Mention the changes.
40130
40131         * lib/clean-temp.c: Include gl_xlist.h.
40132         * modules/clean-temp (Depends-on): Add xlist.
40133
40134         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
40135         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
40136
40137         * tests/test-array_oset.c: Include gl_xlist.h.
40138         * modules/array-oset-tests (Depends-on): Add xlist.
40139
40140         Reported by José E. Marchesi <jemarch@gnu.org>.
40141
40142 2009-12-13  Bruno Haible  <bruno@clisp.org>
40143
40144         Move the malloc checking from module 'oset' to new module 'xoset'.
40145         * modules/xoset: New file.
40146         * lib/gl_xoset.h: New file.
40147         * lib/gl_xoset.c: New file.
40148         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
40149         declarations.
40150         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
40151         (struct gl_oset_implementation): Rename and change methods accordingly.
40152         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
40153         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
40154         'int'. Mark as __warn_unused_result__.
40155         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
40156         gl_oset_create_empty.
40157         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
40158         'int'.
40159         * lib/gl_array_oset.c: Don't include xalloc.h.
40160         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
40161         malloc, not xmalloc.
40162         (grow): Change return type to 'int'. Don't call xalloc_die.
40163         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
40164         to 'int'.
40165         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
40166         'int'.
40167         (gl_array_oset_implementation): Update.
40168         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
40169         gl_tree_create_empty.
40170         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
40171         'int'.
40172         * lib/gl_avltree_oset.c: Don't include xalloc.h.
40173         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
40174         xmalloc.
40175         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
40176         not xmalloc.
40177         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
40178         xmalloc.
40179         (gl_avltree_oset_implementation): Update.
40180         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
40181         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
40182         xmalloc.
40183         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
40184         not xmalloc.
40185         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
40186         xmalloc.
40187         (gl_rbtree_oset_implementation): Update.
40188         * modules/array-oset (Depends-on): Remove xalloc.
40189         * modules/avltree-oset (Depends-on): Likewise.
40190         * modules/rbtree-oset (Depends-on): Likewise.
40191         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
40192         * tests/test-avltree_oset.c: Likewise.
40193         * tests/test-rbtree_oset.c: Likewise.
40194         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
40195         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
40196         * modules/rbtree-oset-tests (Makefile.am): Likewise.
40197         * NEWS: Mention the change.
40198
40199 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
40200
40201         maint.mk: allow a project to override release-prep commands
40202         * top/maint.mk (alpha, beta, stable): Move release-preparatory
40203         commands into a new rule.
40204         (release-prep): New rule.
40205         (release-prep-hook): New overridable variable.
40206
40207 2009-12-13  Bruno Haible  <bruno@clisp.org>
40208
40209         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
40210
40211 2009-12-13  Jim Meyering  <meyering@redhat.com>
40212
40213         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
40214         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
40215
40216 2009-12-12  Bruno Haible  <bruno@clisp.org>
40217
40218         duplocale: Tweak.
40219         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
40220
40221 2009-12-12  Karl Berry  <karl@gnu.org>
40222
40223         * config/srclist.txt (strtoll.c): tab changes, no more sync.
40224
40225 2009-12-12  Bruno Haible  <bruno@clisp.org>
40226
40227         * m4/po.m4: Undo incorrect untabification.
40228
40229 2009-12-12  Bruno Haible  <bruno@clisp.org>
40230
40231         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
40232         * modules/c-strtod (Depends-on): Add locale.
40233         * modules/c-strtold (Depends-on): Likewise.
40234
40235 2009-12-12  Bruno Haible  <bruno@clisp.org>
40236
40237         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
40238
40239 2009-12-11  Eric Blake  <ebb9@byu.net>
40240
40241         setenv: relax requirement in light of POSIX ruling
40242         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
40243         not NULL.
40244         * tests/test-setenv.c (main): Relax test.
40245         * tests/test-unsetenv.c (main): Likewise.
40246         * doc/posix-functions/setenv.texi (setenv): Document this.
40247         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
40248
40249 2009-12-11  Bruno Haible  <bruno@clisp.org>
40250
40251         New module 'fd-safer-flag'.
40252         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
40253         * lib/dup-safer.c (dup_safer_flag): Remove function.
40254         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
40255         * lib/fd-safer.c (fd_safer_flag): Remove function.
40256         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
40257         * modules/cloexec (configure.ac): Drop indicator macro.
40258         * modules/fd-safer-flag: New file.
40259         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
40260         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
40261         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
40262
40263 2009-12-11  Bruno Haible  <bruno@clisp.org>
40264
40265         Tests for module 'nl_langinfo'.
40266         * modules/nl_langinfo-tests: New file.
40267         * tests/test-nl_langinfo.sh: New file.
40268         * tests/test-nl_langinfo.c: New file.
40269
40270         New module 'nl_langinfo'.
40271         * lib/nl_langinfo.c: New file.
40272         * m4/nl_langinfo.m4: New file.
40273         * modules/nl_langinfo: New file.
40274         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
40275
40276 2009-12-11  Bruno Haible  <bruno@clisp.org>
40277
40278         Tests for module 'langinfo'.
40279         * modules/langinfo-tests: New file.
40280         * tests/test-langinfo.c: New file.
40281
40282         New module 'langinfo'.
40283         * lib/langinfo.in.h: New file.
40284         * m4/langinfo_h.m4: New file.
40285         * modules/langinfo: New file.
40286         * doc/posix-headers/langinfo.texi: Mention the new module.
40287
40288 2009-12-11  Bruno Haible  <bruno@clisp.org>
40289
40290         * lib/config.charset: Untabify.
40291
40292 2009-12-11  Bruno Haible  <bruno@clisp.org>
40293
40294         * modules/unistd-safer (configure.ac): Drop indicator macro.
40295
40296 2009-12-11  Bruno Haible  <bruno@clisp.org>
40297
40298         Move pipe2-safer code to its own file.
40299         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
40300         * lib/pipe-safer.c (pipe2_safer): Remove function.
40301         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
40302         (Makefile.am): Add it to lib_SOURCES.
40303
40304 2009-12-10  Bruno Haible  <bruno@clisp.org>
40305
40306         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
40307
40308 2009-12-10  Bruno Haible  <bruno@clisp.org>
40309
40310         Declare which arguments expect non-NULL values, for GCC and clang.
40311         * build-aux/arg-nonnull.h: New file.
40312         * modules/arg-nonnull: New file.
40313         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
40314         (inet_ntop, inet_pton): Use it.
40315         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
40316         (closedir, dirfd, opendir, scandir, alphasort): Use it.
40317         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
40318         (open, openat): Use it.
40319         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
40320         (fnmatch): Use it.
40321         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
40322         (getopt, getopt_long, getopt_long_only): Use it.
40323         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
40324         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
40325         Use it.
40326         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
40327         (iconv_open): Use it.
40328         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
40329         (strtoimax, strtoumax): Use it.
40330         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
40331         (duplocale): Use it.
40332         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
40333         (frexp, frexpl): Use it.
40334         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
40335         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
40336         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
40337         (tsearch, tfind, tdelete, twalk): Use it.
40338         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
40339         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
40340         sigpending): Use it.
40341         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
40342         (posix_spawn, posix_spawnp, posix_spawnattr_init,
40343         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
40344         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
40345         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
40346         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
40347         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
40348         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
40349         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
40350         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
40351         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
40352         Use it.
40353         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
40354         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
40355         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
40356         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
40357         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
40358         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
40359         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
40360         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
40361         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
40362         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
40363         strtoull, unsetenv): Use it.
40364         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
40365         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
40366         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
40367         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
40368         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
40369         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
40370         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
40371         (strcasecmp, strncasecmp): Use it.
40372         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
40373         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
40374         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
40375         rpl_setsockopt): Use it.
40376         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
40377         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
40378         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
40379         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
40380         (gettimeofday): Use it.
40381         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
40382         (times): Use it.
40383         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
40384         (uname): Use it.
40385         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
40386         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
40387         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
40388         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
40389         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
40390         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
40391         unlinkat, write): Use it.
40392         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
40393         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
40394         * lib/argv-iter.h: Include arg-nonnull.h.
40395         (_ATTRIBUTE_NONNULL_): Remove macro.
40396         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
40397         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
40398         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
40399         optimization.
40400         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
40401         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
40402         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
40403         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
40404         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
40405         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
40406         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
40407         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
40408         * modules/arpa_inet (Depends-on): Add arg-nonnull.
40409         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
40410         * modules/dirent (Depends-on): Add arg-nonnull.
40411         (Makefile.am): Insert arg-nonnull.h into dirent.h.
40412         * modules/fcntl-h (Depends-on): Add arg-nonnull.
40413         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
40414         * modules/fnmatch (Depends-on): Add arg-nonnull.
40415         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
40416         * modules/getopt-posix (Depends-on): Add arg-nonnull.
40417         (Makefile.am): Insert arg-nonnull.h into getopt.h.
40418         * modules/glob (Depends-on): Add arg-nonnull.
40419         (Makefile.am): Insert arg-nonnull.h into glob.h.
40420         * modules/iconv_open (Depends-on): Add arg-nonnull.
40421         (Makefile.am): Insert arg-nonnull.h into iconv.h.
40422         * modules/inttypes (Depends-on): Add arg-nonnull.
40423         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
40424         * modules/locale (Depends-on): Add arg-nonnull.
40425         (Makefile.am): Insert arg-nonnull.h into locale.h.
40426         * modules/math (Depends-on): Add arg-nonnull.
40427         (Makefile.am): Insert arg-nonnull.h into math.h.
40428         * modules/netdb (Depends-on): Add arg-nonnull.
40429         (Makefile.am): Insert arg-nonnull.h into netdb.h.
40430         * modules/search (Depends-on): Add arg-nonnull.
40431         (Makefile.am): Insert arg-nonnull.h into search.h.
40432         * modules/signal (Depends-on): Add arg-nonnull.
40433         (Makefile.am): Insert arg-nonnull.h into signal.h.
40434         * modules/spawn (Depends-on): Add arg-nonnull.
40435         (Makefile.am): Insert arg-nonnull.h into spawn.h.
40436         * modules/stdio (Depends-on): Add arg-nonnull.
40437         (Makefile.am): Insert arg-nonnull.h into stdio.h.
40438         * modules/stdlib (Depends-on): Add arg-nonnull.
40439         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
40440         * modules/string (Depends-on): Add arg-nonnull.
40441         (Makefile.am): Insert arg-nonnull.h into string.h.
40442         * modules/strings (Depends-on): Add arg-nonnull.
40443         (Makefile.am): Insert arg-nonnull.h into strings.h.
40444         * modules/sys_socket (Depends-on): Add arg-nonnull.
40445         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
40446         * modules/sys_stat (Depends-on): Add arg-nonnull.
40447         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
40448         * modules/sys_time (Depends-on): Add arg-nonnull.
40449         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
40450         * modules/sys_times (Depends-on): Add arg-nonnull.
40451         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
40452         * modules/sys_utsname (Depends-on): Add arg-nonnull.
40453         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
40454         * modules/time (Depends-on): Add arg-nonnull.
40455         (Makefile.am): Insert arg-nonnull.h into time.h.
40456         * modules/unistd (Depends-on): Add arg-nonnull.
40457         (Makefile.am): Insert arg-nonnull.h into unistd.h.
40458         * modules/wchar (Depends-on): Add arg-nonnull.
40459         (Makefile.am): Insert arg-nonnull.h into wchar.h.
40460         * modules/argv-iter (Depends-on): Add arg-nonnull.
40461         * tests/test-canonicalize.c (null_ptr): New function.
40462         (main): Use it.
40463         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
40464         (main): Use it.
40465         * tests/test-memmem.c (null_ptr): New function.
40466         (main): Use it.
40467         Reported by Jim Meyering.
40468
40469 2009-12-10  Bruno Haible  <bruno@clisp.org>
40470
40471         Use spaces for indentation, not tabs.
40472         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
40473         * m4/*.m4: Untabify.
40474         * build-aux/*.h: Untabify.
40475         * tests/**/*.[hc]: Untabify.
40476         * README: New section "Indent with spaces, not TABs", based on
40477         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
40478         * NEWS: Mention the change.
40479
40480 2009-12-10  Bruno Haible  <bruno@clisp.org>
40481
40482         pty test: Fix link error.
40483         * modules/pty-tests (Makefile.am): Add the default LDADD value to
40484         test_pty_LDADD.
40485
40486 2009-12-07  Simon Josefsson  <simon@josefsson.org>
40487
40488         * modules/pty: New file.
40489         * modules/pty-tests: New file.
40490         * m4/pty.m4: New file.
40491         * tests/test-pty.c: New file.
40492         * doc/glibc-headers/pty.texi: Modified.
40493         * doc/glibc-functions/forkpty.texi: Modified.
40494         * doc/glibc-functions/openpty.texi: Modified.
40495
40496 2009-12-10  Bruno Haible  <bruno@clisp.org>
40497
40498         Avoid syntax error in C++ mode.
40499         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
40500
40501 2009-12-10  Bruno Haible  <bruno@clisp.org>
40502
40503         Use sed with option -e.
40504         * gnulib-tool (func_version, func_emit_copyright_notice,
40505         func_emit_initmacro_end, func_import, func_create_testdir): Pass
40506         option -e to sed.
40507         * modules/link-warning (Makefile.am): Likewise.
40508
40509 2009-12-10  Jim Meyering  <meyering@redhat.com>
40510
40511         mgetgroups: do not write bytes beyond end of malloc'd buffer
40512         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
40513         username, we call getgroups with a one-element-shorter buffer,
40514         but still told it the length was original, max_n_groups.
40515
40516 2009-12-09  Eric Blake  <ebb9@byu.net>
40517
40518         cloexec: relax license
40519         * modules/cloexec (Maintainer): Add myself.
40520         (License): Use LGPL, not GPL.
40521
40522         link-warning: optimize generation
40523         * modules/link-warning (Makefile.am): Reduce process usage.
40524
40525 2009-12-09  Bruno Haible  <bruno@clisp.org>
40526
40527         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
40528         workaround was added on 2009-11-17.
40529
40530 2009-12-09  Jim Meyering  <meyering@redhat.com>
40531             Bruno Haible  <bruno@clisp.org>
40532
40533         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
40534         * modules/link-warning (Makefile.am): Make the comment-removing sed
40535         command more robust in the face of bootstrap-prepended comment lines.
40536
40537 2009-12-09  Bruno Haible  <bruno@clisp.org>
40538
40539         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
40540         most one group.
40541
40542 2009-12-09  Simon Josefsson <simon@josefsson.org>
40543             Bruno Haible  <bruno@clisp.org>
40544
40545         * build-aux/link-warning.h: Add copyright notice.
40546         * modules/link-warning (Makefile.am): Generate link-warning.h from
40547         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
40548         * NEWS: Mention change in link-warning module.
40549         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
40550         * modules/dirent (Makefile.am): Add dependency to dirent.h.
40551         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
40552         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
40553         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
40554         * modules/math (Makefile.am): Add dependency to math.h.
40555         * modules/search (Makefile.am): Add dependency to search.h.
40556         * modules/signal (Makefile.am): Add dependency to signal.h.
40557         * modules/spawn (Makefile.am): Add dependency to spawn.h.
40558         * modules/stdio (Makefile.am): Add dependency to stdio.h.
40559         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
40560         * modules/string (Makefile.am): Add dependency to string.h.
40561         * modules/strings (Makefile.am): Add dependency to strings.h.
40562         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
40563         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
40564         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
40565         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
40566         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
40567         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
40568         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
40569         * modules/unistd (Makefile.am): Add dependency to unistd.h.
40570         * modules/wchar (Makefile.am): Add dependency to wchar.h.
40571
40572 2009-12-09  Bruno Haible  <bruno@clisp.org>
40573
40574         fchdir: Optimize away rpl_fstat when possible.
40575         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
40576         REPLACE_OPEN_DIRECTORY.
40577         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
40578
40579 2009-12-09  Bruno Haible  <bruno@clisp.org>
40580
40581         * lib/fchdir.c: Update comment.
40582
40583 2009-12-09  Bruno Haible  <bruno@clisp.org>
40584
40585         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
40586
40587 2009-12-08  Eric Blake  <ebb9@byu.net>
40588
40589         fchdir: avoid memory leak on re-registration.
40590         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
40591
40592 2009-12-08  Jim Meyering  <meyering@redhat.com>
40593
40594         init.sh: avoid Solaris 10 /bin/sh portability problem
40595         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
40596         sourced script:
40597           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
40598           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
40599           bar
40600         tests/init.sh relied on that, accepting a --set-path=DIR argument,
40601         and two tests used that idiom.
40602         * tests/init.sh: Update suggested usage comments.
40603         (path_prepend_): New function, to be used in place
40604         of the --src-path=DIR option.
40605         (setup_): Move PATH-prepending code into path_prepend_.
40606         * tests/test-pread.sh: Adapt to new usage.
40607         * tests/test-xalloc-die.sh: Likewise.
40608
40609 2009-12-08  Simon Josefsson  <simon@josefsson.org>
40610
40611         * doc/gnulib.texi (Glibc pty.h): Add.
40612         * doc/glibc-functions/forkpty.texi: Add.
40613         * doc/glibc-functions/openpty.texi: Add.
40614         Suggested by Bruno Haible.
40615
40616 2009-12-08  Eric Blake  <ebb9@byu.net>
40617
40618         fchdir: fix logic bugs
40619         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
40620         * tests/test-fchdir.c (main): Enhance test.
40621         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
40622         is in use.
40623
40624         dup2: fix logic bugs
40625         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
40626         REPLACE_DUP2 to decide when rpl_dup2 is needed.
40627         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
40628         exists.
40629         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
40630
40631 2009-12-07  Eric Blake  <ebb9@byu.net>
40632
40633         unlink: fix m4 detection
40634         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
40635
40636         unistd-safer: add unit test
40637         * modules/unistd-safer-tests: New file.
40638         * tests/test-dup-safer.c: Likewise.
40639         * tests/test-cloexec.c (setmode): Avoid compiler warning.
40640         * tests/test-dup2.c (setmode): Likewise.
40641         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
40642
40643         cloexec: preserve text vs. binary across dup_cloexec
40644         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
40645         mode.
40646         * modules/dup2-tests (Depends-on): Add binary-io.
40647         * modules/cloexec-tests (Depends-on): Likewise.
40648         * tests/test-dup2.c (setmode, is_mode): New helpers.
40649         (main): Add tests that translation mode is preserved.
40650         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
40651         Reported by Bruno Haible.
40652
40653         mgetgroups: reduce duplicate listings
40654         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
40655         resulting array.
40656         * tests/test-chown.h (test_chown): Simplify client.
40657         * tests/test-lchown.h (test_lchown): Likewise.
40658
40659 2009-12-06  Bruno Haible  <bruno@clisp.org>
40660
40661         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
40662         value.
40663
40664 2009-12-06  Bruno Haible  <bruno@clisp.org>
40665
40666         * lib/progname.c: Include stdio.h, stdlib.h.
40667         (set_program_name): Reject a NULL argument.
40668
40669 2009-12-05  Eric Blake  <ebb9@byu.net>
40670
40671         pipe2-safer: new module
40672         * modules/pipe2-safer: New file.
40673         * lib/unistd-safer.h (pipe2_safer): New prototype.
40674         * lib/unistd--.h (pipe2): New wrapper.
40675         * lib/pipe-safer.c (pipe2_safer): New function.
40676         * modules/pipe (Depends-on): Add pipe2-safer.
40677         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
40678
40679         stdlib-safer: preserve cloexec flag for mkostemp[s]
40680         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
40681         fd_safer_flag.
40682
40683         unistd-safer: allow preservation of cloexec status via flag
40684         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
40685         prototypes.
40686         * lib/dup-safer.c (dup_safer_flag): New function.
40687         * lib/fd-safer.c (fd_safer_flag): Likewise.
40688         * modules/cloexec (configure.ac): Set witness.
40689
40690         test-dup2: enhance test
40691         * modules/dup2-tests (Depends-on): Add cloexec.
40692         * tests/test-dup2.c (main): Enhance test.
40693
40694         cloexec: add dup_cloexec
40695         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
40696         header and comments.
40697         * lib/cloexec.c (set_cloexec_flag): Add comments.
40698         (dup_cloexec): New function, with mingw implementation borrowed
40699         from...
40700         * lib/w32spawn.h (dup_noinherit): ...here.
40701         * modules/execute (Depends-on): Add cloexec.
40702         * modules/pipe (Depends-on): Likewise.
40703         * modules/cloexec (Depends-on): Add dup2.
40704         * modules/cloexec-tests (Files): New file.
40705         * tests/test-cloexec.c: Likewise.
40706
40707         test-xalloc-die: fix test for mingw
40708         * modules/xalloc-die-tests (Files): Add tests/init.sh.
40709         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
40710         directory and .exe suffix off argv[0] output.
40711
40712         test-fseeko: fix test for mingw
40713         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
40714         than undefining fseek, so test will pass on mingw.
40715
40716 2009-12-05  Bruno Haible  <bruno@clisp.org>
40717
40718         * lib/progname.h (set_program_name): Clarify specification.
40719         * lib/progname.c (set_program_name): Likewise.
40720         Reported by Jim Meyering.
40721
40722 2009-12-05  Jim Meyering  <meyering@redhat.com>
40723
40724         maint.mk: backslash-escape parens in default regexp
40725         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
40726         backslash-escape the literal parentheses.
40727
40728         maint.mk: news-date-check: use grep -E
40729         * top/maint.mk (today): Define a Make variable, not a...
40730         (news-date-check): ...shell variable.
40731         (news-date-regexp): Use the Make variable.
40732         Use grep's -E option.  Change the failing diagnostic to mention
40733         the variable, $(news-date-regexp).
40734
40735 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
40736
40737         maintainer-makefile: allow customization of NEWS entry format
40738         * top/maint.mk (news-date-regexp): New overridable variable.
40739         (news-date-check): Use it.
40740
40741 2009-12-04  Eric Blake  <ebb9@byu.net>
40742
40743         mgetgroups: add xgetgroups, and avoid ENOSYS failures
40744         * lib/mgetgroups.h (xgetgroups): New prototype.
40745         * lib/mgetgroups.c (xgetgroups): New wrapper.
40746         (mgetgroups): Handle ENOSYS.
40747         * modules/mgetgroups (Depends-on): Add realloc.
40748         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
40749
40750         mgetgroups: avoid argument promotion issues with -1
40751         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
40752         for invalid gid_t.
40753         * tests/test-chown.h (getegid, test_chown): Likewise.
40754         * tests/test-lchown.h (getegid, test_lchown): Likewise.
40755
40756 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
40757
40758         exclude: Fix header file problems.
40759         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
40760
40761 2009-12-01  Jim Meyering  <meyering@redhat.com>
40762
40763         fts: fts_open: do not let an empty string cause immediate failure
40764         This is required in support of GNU rm, for which the command
40765         "rm A '' B" must process and remove both A and B, in spite of
40766         the empty string argument.
40767         * lib/fts.c (fts_open): Do not let the presence of an empty string
40768         cause fts_open to fail immediately.  Most fts-using tools must be
40769         able to process all arguments, in order, and can be expected to
40770         diagnose such arguments themselves.
40771
40772 2009-11-30  Eric Blake  <ebb9@byu.net>
40773
40774         utimens: fix compilation error
40775         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
40776         Declare variable at right scope.
40777
40778 2009-11-29  Jim Meyering  <meyering@redhat.com>
40779
40780         bootstrap: handle perl-5.11's changed --version output
40781         * build-aux/bootstrap (get_version): Handle perl separately,
40782         since perl-5.11's --version output is different.
40783
40784 2009-11-28  Jim Meyering  <meyering@redhat.com>
40785
40786         userspec: depend on the inttostr module, too
40787         * modules/userspec (Depends-on): Add inttostr.
40788
40789         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
40790         * lib/userspec.c (parse_with_separator): Do not accept a user ID
40791         number of MAXUID when it evaluates to (uid_t) -1.
40792         Likewise for group ID.  Reported by Matt McCutchen in
40793         <http://savannah.gnu.org/bugs/?28113>
40794
40795         userspec: reformat to use spaces, not TABs
40796         * lib/userspec.c: Expand TABs to spaces.
40797         Add Emacs' "indent-tabs-mode: nil" hint.
40798
40799 2009-11-27  Eric Blake  <ebb9@byu.net>
40800
40801         getopt-gnu: flush out another BSD bug
40802         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
40803         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
40804         flush out BSD bug.
40805         * tests/test-getopt.h (test_getopt): End lists with NULL.
40806         * tests/test-getopt_long.h (test_getopt_long): Likewise.
40807         (test_getopt_long_posix): Enhance test.
40808         * modules/getopt-posix-tests (Depends-on): Add stdbool.
40809         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
40810         getopt-gnu.
40811         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
40812         Likewise.
40813
40814 2009-11-27  Simon Josefsson  <simon@josefsson.org>
40815
40816         * modules/idpriv-droptemp-tests (Notice): Fix text.
40817
40818 2009-11-27  Jim Meyering  <meyering@redhat.com>
40819
40820         test-xalloc-die: avoid spurious failure due to libtool argv difference
40821         In a libtool-enabled project, this test would fail due to a difference
40822         in the emitted program name, e.g.,
40823         -test-xalloc-die: memory exhausted
40824         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
40825         Use program to avoid that.
40826         * modules/xalloc-die-tests (Depends-on): Add progname.
40827         * tests/test-xalloc-die.c: Include progname.h".
40828         (program_name): Remove decl.
40829         (main): Call set_program_name.
40830         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
40831
40832 2009-11-26  Richard Jones  <rjones@redhat.com>
40833
40834         w32sock: leave win32 error in place.
40835         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
40836
40837 2009-11-26  Eric Blake  <ebb9@byu.net>
40838
40839         init.sh: suggest to use skip_ and fail_ functions in comments
40840         * tests/init.sh: Add a sentence.
40841
40842 2009-11-25  Bruno Haible  <bruno@clisp.org>
40843
40844         init.sh: add documentation in comments
40845         * tests/init.sh: Add some developer and user documentation.
40846
40847 2009-11-26  Jim Meyering  <meyering@redhat.com>
40848
40849         init.sh: accommodate even those who specify bogus srcdir manually
40850         * tests/init.sh: Normally, srcdir is guaranteed by automake and
40851         configure-time tests to be sanitized, so that there is no need to
40852         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
40853         (with no double quotes) suffices.  However, since tests may be
40854         invoked manually, and since you may explicitly set srcdir to the
40855         name of a directory containing spaces, do quote its uses here.
40856         * tests/test-pread.sh: Likewise.
40857         Suggested by Bruno Haible.
40858
40859         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
40860         * tests/test-pread.sh: Write no data into the pipe, because
40861         test-pread actually reads none.  This avoids a diagnostic,
40862         "bash: echo: write error: Broken pipe", that arises in the unusual
40863         event something is ignoring SIGPIPE, and might be interpreted
40864         as some sort of failure.  Reported by Bruno Haible.
40865
40866 2009-11-25  Jim Meyering  <meyering@redhat.com>
40867
40868         test-pread: cover failure with ESPIPE and EINVAL
40869         * tests/test-pread.c (main): Test for failure, too.
40870         * tests/test-pread.sh: Invoke with stdin on a pipe.
40871         Suggested by Eric Blake.
40872
40873         pread: improvement and fix
40874         * modules/pread (Depends-on): Depend on lseek, for portability to
40875         e.g., mingw.  Suggested by Eric Blake.
40876         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
40877
40878         unistd.in.h: correct declaration of pread
40879         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
40880         Reported by Richard W.M. Jones.
40881
40882         test-pread.sh: distribute the test script
40883         * modules/pread-tests (Files): Include test-pread.sh.
40884
40885         test-pread.sh: clean up
40886         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
40887         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
40888         That is unnecessary, since it's always ".".
40889         Suggestion from Eric Blake.
40890
40891         test-pread.sh: make executable
40892         * tests/test-pread.sh: Set executable bit.
40893         Reported by Eric Blake.
40894
40895         correct typo in test-pread.sh
40896         * tests/test-pread.sh: Add #! line.
40897
40898         test pread
40899         * tests/test-pread.c: New file.
40900         * tests/test-pread.sh: Likewise.
40901         * modules/pread-tests: Likewise.
40902
40903         pread: new module
40904         * modules/pread: New file.
40905         * lib/unistd.in.h (pread): Define/declare.
40906         * lib/pread.c (pread): New file.
40907         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
40908         * modules/unistd (Makefile.am): Substitute witnesses.
40909         * doc/posix-functions/pread.texi (pread): Update.
40910         * MODULES.html.sh: Add pread.
40911
40912 2009-11-25  Jim Meyering  <meyering@redhat.com>
40913
40914         tests/init.sh: new file to be used via most *.sh tests
40915         * tests/init.sh: New file.
40916
40917 2009-11-25  Eric Blake  <ebb9@byu.net>
40918
40919         utimens: work around older Linux failure with symlinks
40920         * lib/utimens.c (lutimensat_works_really): New variable.
40921         (fdutimens, lutimens): Use it to manage kernels that support
40922         nanosecond times on files, but not on symlinks.
40923         Reported by OndÅ™ej Vašík.
40924
40925         utimes: fix configure grammar
40926         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
40927
40928 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
40929
40930         regex: Fix fastmap for multibyte character ranges.
40931         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
40932         characters when a multibyte character range is included.
40933
40934 2009-11-22  Andy Wingo  <wingo@pobox.com>
40935
40936         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
40937         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
40938
40939 2009-11-24  Bruno Haible  <bruno@clisp.org>
40940
40941         doc: Most *_l functions exist in MacOS X 10.5.
40942         * doc/posix-functions/duplocale.texi: Update platforms list.
40943         * doc/posix-functions/freelocale.texi: Likewise.
40944         * doc/posix-functions/newlocale.texi: Likewise.
40945         * doc/posix-functions/uselocale.texi: Likewise.
40946         * doc/posix-functions/isalnum_l.texi: Likewise.
40947         * doc/posix-functions/isalpha_l.texi: Likewise.
40948         * doc/posix-functions/isblank_l.texi: Likewise.
40949         * doc/posix-functions/iscntrl_l.texi: Likewise.
40950         * doc/posix-functions/isdigit_l.texi: Likewise.
40951         * doc/posix-functions/isgraph_l.texi: Likewise.
40952         * doc/posix-functions/islower_l.texi: Likewise.
40953         * doc/posix-functions/isprint_l.texi: Likewise.
40954         * doc/posix-functions/ispunct_l.texi: Likewise.
40955         * doc/posix-functions/isspace_l.texi: Likewise.
40956         * doc/posix-functions/isupper_l.texi: Likewise.
40957         * doc/posix-functions/iswalnum_l.texi: Likewise.
40958         * doc/posix-functions/iswalpha_l.texi: Likewise.
40959         * doc/posix-functions/iswblank_l.texi: Likewise.
40960         * doc/posix-functions/iswcntrl_l.texi: Likewise.
40961         * doc/posix-functions/iswctype_l.texi: Likewise.
40962         * doc/posix-functions/iswdigit_l.texi: Likewise.
40963         * doc/posix-functions/iswgraph_l.texi: Likewise.
40964         * doc/posix-functions/iswlower_l.texi: Likewise.
40965         * doc/posix-functions/iswprint_l.texi: Likewise.
40966         * doc/posix-functions/iswpunct_l.texi: Likewise.
40967         * doc/posix-functions/iswspace_l.texi: Likewise.
40968         * doc/posix-functions/iswupper_l.texi: Likewise.
40969         * doc/posix-functions/iswxdigit_l.texi: Likewise.
40970         * doc/posix-functions/isxdigit_l.texi: Likewise.
40971         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
40972         * doc/posix-functions/strcasecmp_l.texi: Likewise.
40973         * doc/posix-functions/strcoll_l.texi: Likewise.
40974         * doc/posix-functions/strfmon_l.texi: Likewise.
40975         * doc/posix-functions/strftime_l.texi: Likewise.
40976         * doc/posix-functions/strncasecmp_l.texi: Likewise.
40977         * doc/posix-functions/strxfrm_l.texi: Likewise.
40978         * doc/posix-functions/tolower_l.texi: Likewise.
40979         * doc/posix-functions/toupper_l.texi: Likewise.
40980         * doc/posix-functions/towctrans_l.texi: Likewise.
40981         * doc/posix-functions/towlower_l.texi: Likewise.
40982         * doc/posix-functions/towupper_l.texi: Likewise.
40983         * doc/posix-functions/wcscoll_l.texi: Likewise.
40984         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
40985         * doc/posix-functions/wctrans_l.texi: Likewise.
40986         * doc/posix-functions/wctype_l.texi: Likewise.
40987         * doc/glibc-functions/strptime_l.texi: Likewise.
40988         * doc/glibc-functions/strtod_l.texi: Likewise.
40989         * doc/glibc-functions/strtof_l.texi: Likewise.
40990         * doc/glibc-functions/strtol_l.texi: Likewise.
40991         * doc/glibc-functions/strtold_l.texi: Likewise.
40992         * doc/glibc-functions/strtoll_l.texi: Likewise.
40993         * doc/glibc-functions/strtoul_l.texi: Likewise.
40994         * doc/glibc-functions/strtoull_l.texi: Likewise.
40995         * doc/glibc-functions/wcsftime_l.texi: Likewise.
40996         * doc/glibc-functions/wcstod_l.texi: Likewise.
40997         * doc/glibc-functions/wcstof_l.texi: Likewise.
40998         * doc/glibc-functions/wcstol_l.texi: Likewise.
40999         * doc/glibc-functions/wcstold_l.texi: Likewise.
41000         * doc/glibc-functions/wcstoll_l.texi: Likewise.
41001         * doc/glibc-functions/wcstoul_l.texi: Likewise.
41002         * doc/glibc-functions/wcstoull_l.texi: Likewise.
41003
41004 2009-11-24  Bruno Haible  <bruno@clisp.org>
41005
41006         duplocale: Fix logic bug.
41007         * lib/duplocale.c: Don't include <langinfo.h>.
41008         (_NL_LOCALE_NAME): Remove macro.
41009         (rpl_duplocale): Use setlocale instead of nl_langinfo.
41010         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
41011
41012 2009-11-23  Jim Meyering  <meyering@redhat.com>
41013
41014         test-update-copyright: don't hard-code /usr/bin/perl
41015         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
41016         perl to print the current year.  Gilles Espinasse reported that
41017         the replaced use of perl was hard-coded as /usr/bin/perl.
41018
41019 2009-11-23  Bruno Haible  <bruno@clisp.org>
41020
41021         duplocale: Add support for glibc 2.3.x.
41022         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
41023
41024 2009-11-22  Bruno Haible  <bruno@clisp.org>
41025
41026         vasnprintf: Tiny optimization.
41027         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
41028         MacOS X.
41029
41030 2009-11-22  Bruno Haible  <bruno@clisp.org>
41031
41032         Tests for module 'duplocale'.
41033         * modules/duplocale-tests: New file.
41034         * tests/test-duplocale.c: New file.
41035
41036         New module 'duplocale'.
41037         * m4/duplocale.m4: New file.
41038         * lib/locale.in.h (duplocale): New declaration.
41039         * lib/duplocale.c: New file.
41040         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
41041         gl_LOCALE_H_DEFAULTS): New macros.
41042         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
41043         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
41044         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
41045         REPLACE_DUPLOCALE.
41046         * modules/duplocale: New file.
41047         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
41048
41049 2009-11-22  Bruno Haible  <bruno@clisp.org>
41050
41051         * modules/locale-tests (configure.ac): Test for newlocale function.
41052         * tests/test-locale.c: When the system has extended locale functions,
41053         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
41054
41055         locale: Make locale_t available when possible.
41056         * lib/locale.in.h: Include <xlocale.h> when it exists.
41057         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
41058         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
41059         * modules/locale (Depends-on): Add extensions.
41060         (Makefile.am): Also substitute HAVE_XLOCALE_H.
41061         * doc/posix-headers/locale.texi: Document the problem with locale_t.
41062
41063 2009-11-22  Bruno Haible  <bruno@clisp.org>
41064
41065         Add comments.
41066         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
41067         invocation.
41068         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
41069         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
41070         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
41071
41072 2009-11-22  Bruno Haible  <bruno@clisp.org>
41073
41074         error: account for the possibility of freopen (stdout).
41075         * lib/error.c: Include <unistd.h>.
41076         (flush_stdout): New function, extracted from error and error_at_line.
41077         Determine stdout's fd dynamically.
41078         (error, error_at_line): Invoke flush_stdout.
41079         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
41080         * modules/error (Depends-on): Add unistd.
41081
41082 2009-11-22  Bruno Haible  <bruno@clisp.org>
41083
41084         diffseq: Add comment.
41085         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
41086
41087 2009-11-22  Jim Meyering  <meyering@redhat.com>
41088
41089         c-stack: avoid defining an unused static function
41090         * lib/c-stack.c (find_stack_direction): Do not define this function
41091         when it will not be used.
41092
41093         diffseq: avoid spurious gcc warnings
41094         * lib/diffseq.h (IF_LINT2): Define.
41095         (compareseq): Use it to initialize two members of "part".
41096         This avoids two used-uninitialized warnings.
41097
41098 2009-11-21  Jim Meyering  <meyering@redhat.com>
41099
41100         c-stack: avoid "ignoring return value of `write'" warning
41101         * lib/c-stack.c: Include "ignore-value.h".
41102         (die): Explicitly ignore each write return value.
41103         * modules/c-stack (Depends-on): Add ignore-value.
41104
41105 2009-11-21  Bruno Haible  <bruno@clisp.org>
41106
41107         diffseq: reduce scope of variable 'best'.
41108         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
41109         variable, earlier used for two different purposes.
41110
41111 2009-11-21  Jim Meyering  <meyering@redhat.com>
41112
41113         diffseq: remove useless assignment to "best"
41114         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
41115         assignment.  At that point "best" is already guaranteed to be zero.
41116
41117 2009-11-20  Eric Blake  <ebb9@byu.net>
41118
41119         build: mention ftp redirector in release announcements
41120         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
41121         values that used to come from cfg.mk; mention FTP redirect URL.
41122         * build-aux/announce-gen: Mention the mirror list.
41123         Suggested by Karl Berry.
41124
41125         nanosleep: improve port to mingw
41126         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
41127         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
41128         LIB_NANOSLEEP, but only when needed.
41129         * modules/select (Link): Document LIBSOCKET.
41130         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
41131         enough.
41132
41133         nanosleep: work around cygwin bug
41134         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
41135         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
41136         bug.
41137         (getnow): Delete, not needed.
41138         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
41139         LIB_CLOCK_GETTIME.
41140         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
41141         clock-time, gettime.
41142         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
41143         bug.
41144         * modules/nanosleep-tests: New test.
41145         * tests/test-nanosleep.c: New file.
41146
41147         sleep: work around cygwin bug
41148         * lib/sleep.c (rpl_sleep): Work around the bug.
41149         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
41150         (gl_PREREQ_SLEEP): Delete unused macro.
41151         * modules/sleep (Depends-on): Add verify.
41152         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
41153         * modules/unistd (Makefile.am): Substitute witness.
41154         * lib/unistd.in.h (sleep): Update prototype.
41155         * doc/posix-functions/sleep.texi (sleep): Document the bug.
41156         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
41157         * modules/sleep-tests (Depends-on): Check for alarm.
41158
41159 2009-11-20  Jim Meyering  <meyering@redhat.com>
41160
41161         maint.mk: improve sc_prohibit_magic_number_exit
41162         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
41163         so it does not match uses like System.exit(1).
41164         Add comments showing how to correct all offenders.
41165
41166 2009-11-19  Eric Blake  <ebb9@byu.net>
41167
41168         xalloc-die-tests: add missing library
41169         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
41170
41171         test-xvasprintf: silence compiler warnings
41172         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
41173         empty string from gcc.
41174
41175 2009-11-19  Jim Meyering  <meyering@redhat.com>
41176
41177         xfreopen: new module, from coreutils
41178         * modules/xfreopen: New module.
41179         * lib/xfreopen.c: New file.
41180         * lib/xfreopen.h: New file.
41181         * MODULES.html.sh (File stream based Input/Output"): Add it.
41182
41183 2009-11-19  Eric Blake  <ebb9@byu.net>
41184
41185         manywarnings: depend on warnings
41186         * modules/manywarnings (Depends-on): Add warnings.
41187
41188         build: avoid compiler warnings
41189         * lib/select.c (rpl_select): Delete unused variable.
41190         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
41191
41192 2009-11-18  Eric Blake  <ebb9@byu.net>
41193
41194         tests: avoid false negative with --with-packager
41195         * tests/test-version-etc.sh: Discard packager information.
41196         * tests/test-argp-version-etc-1.sh: Likewise.
41197         Reported by Mike Frysinger.
41198
41199         utimens: fix regression on Solaris
41200         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
41201         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
41202         can only change fd timestamps via futimesat.  Instead, use an
41203         additional witness macro to avoid BSD bug.
41204         Reported by Jim Meyering.
41205
41206 2009-11-17  Eric Blake  <ebb9@byu.net>
41207
41208         usleep: use it to simplify tests
41209         * modules/stat-time-tests (Depends-on): Add usleep.
41210         (configure.ac): Drop usleep check.
41211         * modules/chown-tests (Depends-on, configure.ac): Likewise.
41212         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
41213         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
41214         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
41215         * modules/openat-tests (Depends-on, configure.ac): Likewise.
41216         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
41217         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
41218         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
41219         Likewise.
41220         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
41221         * tests/test-lchown.h (nap): Likewise.
41222         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
41223         * tests/test-stat-time.c (nap): Likewise.
41224         * tests/test-utimens-common.h (nap): Update comments.
41225
41226         usleep: new module
41227         * modules/usleep: New file.
41228         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
41229         * lib/usleep.c (usleep): Likewise.
41230         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
41231         * modules/unistd (Makefile.am): Substitute witnesses.
41232         * lib/unistd.in.h (usleep): Add declaration.
41233         * doc/pastposix-functions/usleep.texi (usleep): Document this.
41234         * MODULES.html.sh (Date and time): Likewise.
41235         * modules/usleep-tests (Depends-on): New test.
41236         * tests/test-usleep.c: New file.
41237
41238         chown: work around OpenBSD bug
41239         * lib/chown.c (rpl_chown): Work around the bug.
41240         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
41241         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
41242         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
41243         * modules/chown (Depends-on): Add stdbool.
41244         * modules/lchown (Depends-on): Likewise.
41245         * doc/posix-functions/chown.texi (chown): Document the bug.
41246         * doc/posix-functions/lchown.texi (lchown): Likewise.
41247         * tests/test-lchown.h (test_chown): Relax test.
41248
41249         mkstemp: avoid conflict with C++ keyword template
41250         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
41251         * lib/mkostemp.c (mkostemp): Likewise.
41252         * lib/mkostemps.c (mkostemps): Likewise.
41253         * lib/mkstemp.c (mkstemp): Likewise.
41254         * lib/mkstemps.c (mkstemps): Likewise.
41255
41256         xalloc-die-tests: optimize
41257         * tests/test-xalloc-die.sh: Reduce number of processes.
41258
41259 2009-11-17  Simon Josefsson  <simon@josefsson.org>
41260
41261         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
41262         patch from ludo@gnu.org (Ludovic Courtès).
41263
41264 2009-11-17  Jim Meyering  <meyering@redhat.com>
41265
41266         version-etc: use proper license string
41267         * modules/version-etc (License): Use LGPL, not LGPLv3+.
41268         * modules/version-etc-fsf: Likewise.
41269
41270 2009-11-17  Simon Josefsson  <simon@josefsson.org>
41271
41272         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
41273         printed to stdout.  Deal with EOL differences.
41274
41275 2009-11-17  Eric Blake  <ebb9@byu.net>
41276
41277         unsetenv: work around Solaris bug
41278         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
41279         * lib/unsetenv.c (rpl_unsetenv): Work around it.
41280         Reported by Jim Meyering.
41281
41282         vasnprintf: avoid compiler warnings
41283         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
41284         variables.
41285         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
41286
41287 2009-11-17  Simon Josefsson  <simon@josefsson.org>
41288
41289         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
41290         settings since xalloc-die is no longer the self test,
41291         xalloc-die.sh is.
41292
41293 2009-11-17  Jim Meyering  <meyering@redhat.com>
41294
41295         test-xalloc-die.sh: make the code agree with the commit log
41296         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
41297         at the end, just in case you happen to have a test-xalloc-die
41298         program in some other PATH directory.
41299
41300         test-xalloc-die.sh: fix a portability bug
41301         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
41302         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
41303         Otherwise, argv[0] (as often seen in diagnostics) would be too
41304         system-dependent, sometimes with, and sometimes without the leading "./".
41305
41306         version-etc-fsf: relax license to LGPLv3+
41307         * modules/version-etc-fsf (License): Relax license.
41308
41309 2009-11-16  Eric Blake  <ebb9@byu.net>
41310
41311         xalloc-die-tests: avoid printing null pointer
41312         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
41313         shell script.
41314         * tests/test-xalloc-die.c (program_name): Declare.
41315         * tests/test-xalloc-die.sh (tmpfiles): New file.
41316
41317         setenv, unsetenv: work around various bugs
41318         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
41319         (setenv) [HAVE_SETENV]: Work around bugs.
41320         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
41321         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
41322         for bugs.
41323         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
41324         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
41325         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
41326         * modules/stdlib (Makefile.am): Update substitutions.
41327         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
41328         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
41329         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
41330         * modules/setenv-tests: New test.
41331         * modules/unsetenv-tests: Likewise.
41332         * tests/test-setenv.c: New file.
41333         * tests/test-unsetenv.c: Likewise.
41334
41335 2009-11-16  Jim Meyering  <meyering@redhat.com>
41336
41337         version-etc: relax license to LGPLv3+
41338         * modules/version-etc (License): Relax license.
41339
41340         better AC_REQUIRE expanded-before-required-warning avoidance
41341         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
41342         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
41343         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
41344         which is no longer needed.
41345
41346 2009-11-16  Eric Blake  <ebb9@byu.net>
41347
41348         test-freading: clean up temporary file
41349         * tests/test-freading.c (main): Remove file on success, and use
41350         ASSERT more liberally.
41351         Reported by Jim Meyering.
41352
41353 2009-11-16  Jim Meyering  <meyering@redhat.com>
41354
41355         avoid new AC_REQUIRE expanded-before-required warnings
41356         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
41357         merely using it.
41358         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
41359         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
41360
41361 2009-11-15  Simon Josefsson  <simon@josefsson.org>
41362
41363         * tests/test-xalloc-die.c: New file.
41364         * modules/xalloc-die-tests: New file.
41365         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
41366         XFAIL_TESTS so it can be appended by modules.
41367
41368 2009-11-15  Simon Josefsson  <simon@josefsson.org>
41369
41370         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
41371         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
41372
41373 2009-11-14  Eric Blake  <ebb9@byu.net>
41374
41375         fnmatch: avoid compiler warning
41376         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
41377         to silence compiler warning about mismatch signedness in ?:.
41378         Reported by Robert Millan.
41379
41380         intprops: add double-inclusion guard
41381         * lib/intprops.h: Allow idempotent includes.
41382         Suggested by Bruce Korb.
41383
41384         openat: detect Solaris fchownat bug
41385         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
41386         penalizing glibc chownat when only lchownat is broken.
41387         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
41388         trailing slash bugs.
41389         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
41390         * modules/openat-tests (Files): Include more files.
41391         (Depends-on): Add mgetgroups, sleep, stat-time.
41392         (configure.ac): Add additional checks.
41393         (Makefile.am): Build new test.
41394         * tests/test-fchownat.c: New file.
41395
41396         lchown: detect Solaris and FreeBSD bug
41397         * lib/lchown.c (rpl_lchown): Work around bug.
41398         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
41399         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
41400         * modules/unistd (Makefile.am): Populate it.
41401         * lib/unistd.in.h (lchown): Update declaration.
41402         * doc/posix-functions/lchown.texi (lchown): Document the bug.
41403         * modules/lchown-tests: New file.
41404         * tests/test-lchown.h (test_lchown): Likewise.
41405         * tests/test-lchown.c (main): Likewise.
41406
41407         chown: detect Solaris and FreeBSD bug
41408         * lib/chown.c (rpl_chown): Work around bug.
41409         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
41410         (gl_PREREQ_CHOWN): Delete.
41411         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
41412         * modules/unistd (Makefile.am): Populate it.
41413         * lib/unistd.in.h (chown): Update declaration.
41414         * lib/lchown.c (chown): Update client.
41415         * modules/lchown (Depends-on): Add lstat.
41416         * doc/posix-functions/chown.texi (chown): Document the bug.
41417         * doc/posix-functions/getgroups.texi (getgroups): Document
41418         getgroups pitfall.
41419         * modules/chown-tests: New file.
41420         * tests/test-chown.h (test_chown): Likewise.
41421         * tests/test-chown.c (main): Likewise.
41422
41423 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
41424
41425         gnulib-tool: correctly detect absence of m4 directories
41426         * gnulib-tool: Avoid extra newline on data passed to wc -l.
41427
41428 2009-11-14  Jim Meyering  <meyering@redhat.com>
41429
41430         maint.mk: Prohibit inclusion of "xalloc.h" without use.
41431         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
41432
41433 2009-11-14  John W. Eaton  <jwe@gnu.org>
41434
41435         strftime.h: wrap function declaration in extern "C" block
41436         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
41437
41438 2009-11-13  Eric Blake  <ebb9@byu.net>
41439
41440         getgroups: avoid compiler warning
41441         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
41442
41443         getgroups: work around FreeBSD bug
41444         * lib/getgroups.c (rpl_getgroups): Work around the bug.
41445         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
41446         * doc/posix-functions/getgroups.texi (getgroups): Document it.
41447         * tests/test-getgroups.c (main): Fix buffer overrun.
41448
41449         getgroups: avoid compilation failure
41450         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
41451         * modules/getgroups (Depends-on): Add stdint.
41452
41453 2009-11-13  Jim Meyering  <meyering@redhat.com>
41454
41455         test-getgroups: avoid compilation failure
41456         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
41457
41458 2009-11-13  Eric Blake  <ebb9@byu.net>
41459
41460         mgetgroups: new module, taken from coreutils
41461         * modules/mgetgroups: New file.
41462         * lib/mgetgroups.h: Likewise.
41463         * lib/mgetgroups.c (mgetgroups): Likewise.
41464         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
41465         * MODULES.html.sh (Users and groups): Mention it.
41466
41467         getgroups: don't expose GETGROUPS_T to user
41468         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
41469         an element at a time if GETGROUPS_T is wrong size.
41470         * lib/getugroups.h (getugroups): Change signature.
41471         * lib/unistd.in.h (getgroups): Likewise.
41472         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
41473         signature needs fixing.
41474         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
41475         AC_TYPE_GETGROUPS.
41476         * modules/group-member (Depends-on): Add getgroups.
41477         * lib/group-member.c (group_info, get_group_info): Use gid_t.
41478         (group_member): Rely on getgroups replacement.
41479         * lib/getugroups.c (getugroups): Use gid_t.
41480         * tests/test-getgroups.c (main): Likewise.
41481         * NEWS: Mention the signature change.
41482         * doc/posix-functions/getgroups.texi (getgroups): Mention the
41483         problem with signature.
41484         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
41485         GETGROUPS_T is still useful for setgroups.
41486
41487         getgroups, getugroups: provide stubs for mingw
41488         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
41489         * lib/getugroups.c (getugroups): Likewise.
41490         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
41491         function.  Modernize replacement scheme.
41492         (gl_PREREQ_GETGROUPS): Delete.
41493         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
41494         * modules/getgroups (configure.ac): Declare witness.
41495         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
41496         * modules/unistd (Depends-on): Substitute witness.
41497         * lib/unistd.in.h (getgroups): Declare replacement.
41498
41499         getgroups: avoid calling exit
41500         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
41501         drop xalloc.
41502         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
41503         dependencies.
41504         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
41505         exiting, in the rare case of malloc failure.
41506
41507         getgroups: fix logic error
41508         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
41509         has more than 20 groups.
41510         * modules/getgroups-tests: New test.
41511         * tests/test-getgroups.c: New file.
41512
41513 2009-11-13  Simon Josefsson  <simon@josefsson.org>
41514
41515         * tests/test-base64.c: Improve.
41516
41517 2009-11-13  Simon Josefsson  <simon@josefsson.org>
41518
41519         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
41520         Blake <ebb9@byu.net>.
41521
41522 2009-11-13  Simon Josefsson  <simon@josefsson.org>
41523
41524         * tests/test-xvasprintf.c: Add %s%s related checks.
41525
41526 2009-11-12  Eric Blake  <ebb9@byu.net>
41527
41528         version-etc: match standards.texi style
41529         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
41530         and use <> only for URLs.
41531
41532 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
41533
41534         fts: do not fail on a submount during traversal
41535         * lib/fts.c (fts_build): Read the stat info again after opening
41536         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
41537         Original report at http://bugzilla.redhat.com/501848.
41538
41539 2009-11-12  Jim Meyering  <meyering@redhat.com>
41540
41541         bootstrap: sync from coreutils
41542         * build-aux/bootstrap (bootstrap_epilogue): New function.
41543         Use git_modules_config in one more place.  This make bootstrap's
41544         --gnulib-srcdir option more useful for testing.
41545
41546         bootstrap: generalize autoheader check
41547         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
41548         AC_CONFIG_HEADERS.
41549
41550 2009-11-11  Eric Blake  <ebb9@byu.net>
41551
41552         mkfifoat: use new modules for Solaris and BSD bugs
41553         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
41554         * lib/mkfifoat.c (mknodat): Split...
41555         * lib/mknodat.c (mknodat): ...into new file.
41556         * modules/mkfifoat (Files): Ship new file.
41557         (Depends-on): Add mkfifo, mknod.
41558         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
41559         (Depends-on): Add symlink.
41560         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
41561         redundant with test_mkfifo.h.
41562         (do_mkfifoat, do_mknodat): New helpers.
41563
41564         mknod: new module
41565         * modules/mknod: New file.
41566         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
41567         * lib/mknod.c (mknod): Likewise.
41568         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
41569         defaults.
41570         * modules/sys_stat (Makefile.am): Substitute them.
41571         * lib/sys_stat.in.h (mknod): Declare replacement.
41572         * MODULES.html.sh (Support for systems lacking POSIX:2008):
41573         Document it.
41574         * doc/posix-functions/mknod.texi (mknod): Likewise.
41575         * modules/mknod-tests: New test.
41576         * tests/test-mknod.c: Likewise.
41577
41578         mkfifo: new module
41579         * modules/mkfifo: New file.
41580         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
41581         * lib/mkfifo.c (mkfifo): Likewise.
41582         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
41583         defaults.
41584         * modules/sys_stat (Makefile.am): Substitute them.
41585         * lib/sys_stat.in.h (mkfifo): Declare replacement.
41586         * MODULES.html.sh (Support for systems lacking POSIX:2008):
41587         Document it.
41588         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
41589         * modules/mkfifo-tests: New test.
41590         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
41591         from test-mkfifoat.c.
41592         * tests/test-mkfifo.c: New file.
41593
41594         readlink: detect FreeBSD bug
41595         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
41596         slash on symlink.
41597         * doc/posix-functions/readlink.texi (readlink): Document the bug.
41598         * tests/test-readlink.h (test_readlink): Enhance test.
41599
41600         symlink: detect FreeBSD bug
41601         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
41602         slash on symlink.
41603         * doc/posix-functions/symlink.texi (symlink): Document the bug.
41604         * tests/test-symlink.h (test_symlink): Enhance test.
41605
41606 2009-11-10  Eric Blake  <ebb9@byu.net>
41607
41608         link: detect FreeBSD bug
41609         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
41610         symlink.
41611         * doc/posix-functions/link.texi (link): Document the bug.
41612         * tests/test-link.h (test_link): Enhance test.
41613         * tests/test-linkat.c (main): Update caller.
41614
41615         unlink, remove: detect FreeBSD bug
41616         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
41617         slash on symlink.
41618         * doc/posix-functions/unlink.texi (unlink): Document the bug.
41619         * doc/posix-functions/remove.texi (remove): Likewise.
41620         * tests/test-unlink.h (test_unlink): Enhance test.
41621         * tests/test-remove.c (main): Likewise.
41622
41623 2009-11-09  Eric Blake  <ebb9@byu.net>
41624
41625         rename: detect FreeBSD bug
41626         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
41627         slash on symlink.
41628         * modules/renameat-tests (Depends-on): Add filenamecat.
41629         * tests/test-rename.h (test_rename): Allow one more errno.
41630         * tests/test-renameat.c (main): Likewise.
41631         * doc/posix-functions/rename.texi (rename): Document the bug.
41632
41633         open: detect FreeBSD bug
41634         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
41635         symlink.
41636         * doc/posix-functions/open.texi (open): Document the bug.
41637         * doc/posix-functions/utimes.texi (utimes): Likewise.
41638         * tests/test-open.h (test_open): Add parameters, and test symlink
41639         handling.
41640         * tests/test-open.c (main): Adjust caller.
41641         * tests/test-fcntl-safer.c (main): Likewise.
41642         * modules/open-tests (Depends-on): Add stdbool, symlink.
41643         * modules/fcntl-safer-tests (Depends-on): Likewise.
41644         * tests/test-openat.c (main): Add test-open tests.
41645
41646         stat: detect FreeBSD bug
41647         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
41648         symlink.
41649         * doc/posix-functions/stat.texi (stat): Document the bug.
41650         * tests/test-stat.h (test_stat_func): Add argument.
41651         * tests/test-stat.c (main): Adjust caller.
41652         * tests/test-fstatat.c (main): Likewise.
41653         * modules/stat-tests (Depends-on): Add stdbool, symlink.
41654         Reported by Jim Meyering.
41655
41656 2009-11-09  James Youngman  <jay@gnu.org>
41657
41658         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
41659         * lib/strftime.c: Correct placement of #include "ignore-value.h".
41660
41661 2009-11-08  Jim Meyering  <meyering@redhat.com>
41662
41663         utimens: remove invalid futimesat call
41664         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
41665         It used the file descriptor of the target file as the DIR_FD
41666         parameter and NULL as the file name.  That caused failure with
41667         errno == EFAULT on FreeBSD-8.0-rc2
41668
41669 2009-11-07  Eric Blake  <ebb9@byu.net>
41670
41671         fflush, freadseek: use fseeko, not fseek
41672         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
41673         (clear_ungetc_buffer): Avoid potential problems on large files.
41674         * lib/freadseek.c (freadseek): Likewise.
41675         * modules/freadseek (Depends-on): Add fseeko.
41676         * modules/fseek (configure.ac): Set a witness.
41677         * tests/test-fflush.c (main): Use fseeko.
41678         * tests/test-fpurge.c (fseek): Disable link warning.
41679         * tests/test-freadable.c (fseek): Likewise.
41680         * tests/test-freading.c (fseek): Likewise.
41681         * tests/test-fseeko.c (fseek): Likewise.
41682         * tests/test-ftell.c (fseek): Likewise.
41683         * tests/test-ftello.c (fseek): Likewise.
41684         * tests/test-fwritable.c (fseek): Likewise.
41685         * tests/test-fwriting.c (fseek): Likewise.
41686
41687 2009-11-06  Simon Josefsson  <simon@josefsson.org>
41688
41689         * modules/memchr (Depends-on): Drop getpagesize dependency.
41690
41691 2009-11-06  Simon Josefsson  <simon@josefsson.org>
41692
41693         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
41694         Reported by Ludovic Courtès.
41695         * build-aux/pmccabe2html: Improve example usage.
41696         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
41697
41698 2009-11-06  Jim Meyering  <meyering@redhat.com>
41699
41700         do-release-commit-and-tag: New module.
41701         Automate the release-commit and tag process.
41702         * build-aux/do-release-commit-and-tag: New script, from coreutils.
41703         * modules/do-release-commit-and-tag: New file.
41704         * MODULES.html.sh (Support for maintaining and releasing): Add it.
41705
41706 2009-11-06  Simon Josefsson  <simon@josefsson.org>
41707
41708         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
41709         because test-select.c uses inet_pton.
41710
41711 2009-11-06  Simon Josefsson  <simon@josefsson.org>
41712
41713         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
41714         GETADDRINFO_LIB.  Bump serial number.
41715         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
41716         Suggested by Eric Blake <ebb9@byu.net>.
41717
41718 2009-11-05  Eric Blake  <ebb9@byu.net>
41719
41720         strtod: detect darwin bug
41721         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
41722         Reported by Leo Davis.
41723
41724         freopen-safer: new module
41725         * modules/freopen-safer: New module.
41726         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
41727         * lib/freopen-safer.c (freopen_safer): New file.
41728         * lib/stdio-safer.h (freopen_safer): New declaration.
41729         * lib/stdio--.h (freopen): New override.
41730         * MODULES.html.sh (File stream based Input/Output): Mention it.
41731         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
41732         freopen-safer module.
41733         * doc/posix-functions/stderr.texi (stderr): Likewise.
41734         * doc/posix-functions/stdin.texi (stdin): Likewise.
41735         * doc/posix-functions/stdout.texi (stdout): Likewise.
41736         * modules/freopen-safer-tests: New test.
41737         * tests/test-reopen-safer.c: New file.
41738
41739 2009-11-05  Jim Meyering  <meyering@redhat.com>
41740
41741         maint.mk: Prohibit inclusion of "close-stream.h" without use.
41742         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
41743
41744 2009-11-05  Simon Josefsson  <simon@josefsson.org>
41745
41746         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
41747
41748 2009-11-05  Simon Josefsson  <simon@josefsson.org>
41749
41750         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
41751
41752 2009-11-05  Simon Josefsson  <simon@josefsson.org>
41753
41754         Fix link error.
41755         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
41756         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
41757
41758 2009-11-05  Simon Josefsson  <simon@josefsson.org>
41759
41760         * tests/test-func.c: Also test value of __func__.
41761
41762 2009-11-05  Simon Josefsson  <simon@josefsson.org>
41763
41764         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
41765         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
41766
41767 2009-11-05  Bruno Haible  <bruno@clisp.org>
41768
41769         Fix link error.
41770         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
41771         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
41772         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
41773
41774 2009-11-05  Bruno Haible  <bruno@clisp.org>
41775
41776         Tests for module 'inet_pton'.
41777         * modules/inet_pton-tests: New file.
41778         * tests/test-inet_pton.c: New file.
41779
41780 2009-11-05  Bruno Haible  <bruno@clisp.org>
41781
41782         Tests for module 'inet_ntop'.
41783         * modules/inet_ntop-tests: New file.
41784         * tests/test-inet_ntop.c: New file.
41785
41786 2009-11-04  Eric Blake  <ebb9@byu.net>
41787
41788         stdlib-safer: wrap all mkstemp variants
41789         * modules/mkostemp (configure.ac): Set witness.
41790         * modules/mkostemps (configure.ac): Likewise.
41791         * modules/mkstemps (configure.ac): Likewise.
41792         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
41793         (mkstemps_safer): Wrap more functions.
41794         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
41795         wrapping.
41796         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
41797         (mkstemps_safer): Implement the wrappers.
41798
41799         mkstemps, mkostemps: new modules
41800         * modules/mkostemps: New module.
41801         * modules/mkstemps: Likewise.
41802         * lib/mkostemps.c (mkostemps): New file.
41803         * lib/mkstemps.c (mkstemps): Likewise.
41804         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
41805         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
41806         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
41807         * modules/stdlib (Makefile.am): Substitute them.
41808         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
41809         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
41810         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
41811         * doc/gnulib.texi (Glibc stdlib.h): Include them.
41812         * MODULES.html.sh (File system functions): Mention them.
41813
41814         tempname: resync from glibc
41815         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
41816         same values for __GT_FILE as glibc.  Abort even when assertions
41817         are disabled.
41818         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
41819         match its value otherwise.  Allow idempotent inclusion.
41820         * lib/mkdtemp.c (mkdtemp): Adjust caller.
41821         * lib/mkostemp.c (mkostemp): Likewise.
41822         * lib/mkstemp.c (mkstemp): Likewise.
41823         * lib/tmpfile.c (tmpfile): Likewise.
41824         * NEWS: Document this.
41825
41826         utimens: fix use of futimens on older Linux
41827         * lib/utimens.c (fdutimens): Use updated, rather than original,
41828         timespec to avoid bug in older Linux kernel.
41829         Reported by Simon Josefsson.
41830
41831 2009-11-04  Bruno Haible  <bruno@clisp.org>
41832
41833         Make num_processors more flexible and consistent.
41834         * lib/nproc.h (enum nproc_query): New type.
41835         (num_processors): Add a 'query' argument.
41836         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
41837         (num_processors): Add a 'query' argument. Test the value of the
41838         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
41839         mingw, count the number of CPUs available for the current process.
41840         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
41841         Check for sched_getaffinity and sched_getaffinity_np.
41842         * modules/nproc (Depends-on): Add c-ctype, extensions.
41843         * NEWS: Mention the change.
41844
41845 2009-11-03  Bruno Haible  <bruno@clisp.org>
41846
41847         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
41848
41849 2009-11-03  Jim Meyering  <meyering@redhat.com>
41850
41851         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
41852         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
41853         if it is defined.
41854
41855 2009-11-02  Eric Blake  <ebb9@byu.net>
41856
41857         mktime, timegm: share common declaration
41858         * lib/mktime-internal.h: New file.
41859         * lib/mktime.c: Use it rather than open-coding a declaration.
41860         * lib/timegm.c: Likewise.
41861         * modules/mktime (Files): Ship it.
41862         * modules/timegm (Files): Likewise.
41863         Suggested by Bruno Haible.
41864
41865         test-update-copyright: update test to match script changes
41866         * tests/test-update-copyright.sh: Avoid hard-coding perl
41867         location.  Don't update *.bak created by earlier runs.
41868
41869 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
41870             Simon Josefsson  <simon@josefsson.org>
41871             Bruno Haible  <bruno@clisp.org>
41872
41873         Fix link error on Solaris 8.
41874         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
41875         also in libnsl. Define also INET_PTON_LIB.
41876         * modules/inet_pton (Link): New section.
41877
41878 2009-11-02  Simon Josefsson  <simon@josefsson.org>
41879             Bruno Haible  <bruno@clisp.org>
41880
41881         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
41882         * modules/inet_ntop (Link): New section.
41883         Reported by Boyan Kasarov <bkasarov@gmail.com>.
41884
41885 2009-11-02  Eric Blake  <ebb9@byu.net>
41886
41887         maint: avoid compiler warnings in m4 macros
41888         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
41889         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
41890
41891 2009-11-02  Simon Josefsson  <simon@josefsson.org>
41892
41893         * m4/pmccabe2html.m4: Remove file.
41894         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
41895         function.  Change maintainer.
41896         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
41897         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
41898         Courtès).
41899
41900 2009-10-31  Eric Blake  <ebb9@byu.net>
41901
41902         fseeko: fix m4 regression
41903         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
41904         regression from 2009-10-27.
41905         Reported by Ralf Wildenhues.
41906
41907 2009-10-31  Jim Meyering  <meyering@redhat.com>
41908
41909         inttostr: aesthetics and improved (compile-time) safety
41910         Define inttype_is_signed rather than inttype_is_unsigned,
41911         since the sole use is via "#if inttype_is_signed".
41912         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
41913         inttype_is_unsigned.
41914         * lib/offtostr.c (inttype_is_signed): Likewise.
41915         * lib/uinttostr.c (inttype_is_signed): Likewise.
41916         * lib/umaxtostr.c (inttype_is_signed): Likewise.
41917         * lib/inttostr.c (inttostr): Use verify to cross-check the
41918         inttype_is_signed value and the signedness of the actual type.
41919         * modules/inttostr (Depends-on): Add verify.
41920
41921 2009-10-30  Eric Blake  <ebb9@byu.net>
41922
41923         build: avoid compiler warnings
41924         * lib/fchmodat.c (lchmod): Mark unused variables.
41925         * lib/getopt.c (_getopt_initialize): Likewise.
41926         * lib/mktime.c (__mktime_internal): Provide prototype.
41927         * lib/inttostr.c (inttostr): Avoid compiler warning even with
41928         older gcc that do not understand #pragma GCC diagnostic.
41929         * lib/uinttostr.c (inttype_is_unsigned): Define.
41930         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
41931
41932 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
41933
41934         stat: fix compilation on AIX
41935         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
41936         only see struct stat64.
41937
41938 2009-10-30  Eric Blake  <ebb9@byu.net>
41939
41940         exclude: make more robust
41941         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
41942         rather than masking a coding bug.
41943         Suggested by Bruno Haible.
41944
41945 2009-10-30  Jim Meyering  <meyering@redhat.com>
41946
41947         perl scripts: remove #!/usr/bin/perl in favor of more portable...
41948         Rather than putting #!/usr/bin/perl on the first line,
41949         start with a variant of what's recommended by "man perlrun" that
41950         invokes the first "perl" program from your shell's search path.
41951         * build-aux/gitlog-to-changelog: Replace #!... as above.
41952         Add a "Local Variables" perl mode setting.
41953         Prompted by a patch from Ludovic Courtès.
41954         Improved by Eric Blake.
41955         * build-aux/useless-if-before-free: Likewise.
41956         * build-aux/announce-gen: Likewise.
41957         * build-aux/update-copyright: Likewise.
41958
41959 2009-10-29  Eric Blake  <ebb9@byu.net>
41960
41961         filenamecat-lgpl: adjust clients
41962         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
41963         filenamecat.
41964         * modules/renameat (Depends-on): Likewise.
41965
41966         filenamecat: split into filenamecat-lgpl
41967         * modules/filenamecat-lgpl: New module.
41968         * modules/filenamecat (Files): Move library-safe files into
41969         filenamecat-lgpl.
41970         (Depends-on): Add filenamecat-lgpl.
41971         (configure.ac): Declare witness.
41972         * lib/filenamecat.h (file_name_concat): Only declare when using
41973         GPL module.
41974         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
41975         Move...
41976         * lib/filenamecat-lgpl.c: ...into new file.
41977         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
41978         (gl_FILE_NAME_CONCAT): Use it.
41979         * MODULES.html.sh (File system functions): Mention new module.
41980
41981         argp: avoid memory leak
41982         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
41983         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
41984         base_name, since the latter malloc()s and can call exit().
41985         Leak introduced 2006-07-03.
41986
41987         dirname-lgpl: adjust clients that don't need full dirname
41988         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
41989         * modules/filenamecat (Depends-on): Likewise.
41990         * modules/linkat (Depends-on): Likewise.
41991         * modules/mkancesdirs (Depends-on): Likewise.
41992         * modules/mkdir (Depends-on): Likewise.
41993         * modules/openat (Depends-on): Likewise.
41994         * modules/savewd (Depends-on): Likewise.
41995         * modules/rename (Depends-on): Likewise.
41996         (License): Relax license.
41997         * modules/mkdir-tests (Depends-on): Drop progname.
41998         (Makefile.am): Delete unneeded LDADD.
41999         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
42000
42001         dirname: split into dirname-lgpl
42002         * modules/dirname-lgpl: New module.
42003         * modules/dirname (Files): Move library-safe files into
42004         dirname-lgpl.
42005         (Depends-on): Add dirname-lgpl.
42006         (configure.ac): Declare witness.
42007         * modules/double-slash-root (License): Relax license.
42008         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
42009         module.
42010         * lib/dirname.c (dir_len, mdir_name): Move...
42011         * lib/dirname-lgpl.c: ...into new file.
42012         * lib/basename.c (last_component, base_len): Move...
42013         * lib/basename-lgpl.c: ...into new file.
42014         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
42015         (gl_DIRNAME): Use it.
42016         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
42017         Mention new module.
42018         * modules/dirname-tests (Depends-on): Add progname.
42019         * tests/test-dirname.c (program_name): Delete.
42020
42021         mkdir: make safe for libraries
42022         * modules/mkdir (Depends-on): Drop xalloc.
42023         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
42024         exit.
42025
42026         tests: avoid some compiler warnings
42027         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
42028         literals.
42029         * tests/test-memchr.c (main): Avoid type mismatch.
42030         * tests/test-arpa_inet.c (main): Avoid unused parameters.
42031         * tests/test-base64.c (main): Likewise.
42032         * tests/test-getdelim.c (main): Likewise.
42033         * tests/test-gethostname.c (main): Likewise.
42034         * tests/test-getline.c (main): Likewise.
42035         * tests/test-netinet_in.c (main): Likewise.
42036         * tests/test-select.c (open_server_socket, main): Likewise.
42037         * tests/test-select-stdin.c (main): Likewise.
42038         * tests/test-sockets.c (main): Likewise.
42039         * tests/test-strsignal.c (main): Likewise.
42040         * tests/test-sys_select.c (main): Likewise.
42041         * tests/test-sys_socket.c (main): Likewise.
42042         * tests/test-u64.c (main): Likewise.
42043         * tests/test-xfprintf-posix.c (main): Likewise.
42044         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
42045
42046         sockets: avoid compiler warning
42047         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
42048
42049         maint: detect usage(1) and other suspicious exits
42050         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
42051
42052 2009-10-29  Jim Meyering  <meyering@redhat.com>
42053
42054         timespec: long-to-int truncation could make timespec_cmp malfunction
42055         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
42056         a multiple of 2^32 nanoseconds as no difference.
42057
42058 2009-10-28  Jim Meyering  <meyering@redhat.com>
42059
42060         fprintftime: wrap macro code argument in "do {...} while(0)"
42061         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
42062         cpy macro must be a statement that can be followed by a semicolon.
42063         Now that the else clause contains a comment and is hence longer
42064         than one line, I require curly braces.  That in turn requires
42065         that we wrap this code block in the standard do...while(0).
42066
42067         fprintftime: remove stray semicolon from previous change
42068         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
42069
42070         fprintftime: avoid a warning about ignored fwrite return value
42071         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
42072         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
42073         that is unsafe.
42074         * modules/fprintftime (Depends-on): Add ignore-value.
42075
42076         exclude: avoid an unwarranted warning
42077         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
42078
42079 2009-10-27  Eric Blake  <ebb9@byu.net>
42080
42081         fseek: avoid compilation failure when fflush is replaced
42082         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
42083         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
42084         module is in use.
42085         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
42086         module is not in use; since REPLACE_FSEEK worked otherwise.
42087         (GNULIB_FTELLO): Likewise for ftell.
42088         Reported by Ian Beckwith and others.
42089
42090 2009-10-27  Bruno Haible  <bruno@clisp.org>
42091
42092         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
42093         Reported by Jim Meyering.
42094
42095 2009-10-27  Jim Meyering  <jim@meyering.net>
42096             Bruno Haible  <bruno@clisp.org>
42097
42098         Avoid warning despite dropping the return value of fwrite.
42099         * lib/unicodeio.c: Include ignore-value.h.
42100         (fwrite_success_callback): Explicitly ignore fwrite's return value.
42101         * modules/unicodeio (Depends-on): Add ignore-value.
42102
42103 2009-10-26  Eric Blake  <ebb9@byu.net>
42104
42105         areadlinkat: fix fallback path
42106         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
42107         pointer and zero.
42108
42109 2009-10-22  Pádraig Brady  <P@draigBrady.com>
42110
42111         Use a better IO block size for modern systems
42112         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
42113         * lib/md2.c: Likewise.
42114         * lib/md4.c: Likewise.
42115         * lib/md5.c: Likewise.
42116         * lib/sha1.c: Likewise.
42117         * lib/sha256.c: Likewise.
42118         * lib/sha512.c: Likewise.
42119
42120 2009-10-22  Eric Blake  <ebb9@byu.net>
42121
42122         tests: avoid several compiler warnings
42123         * tests/test-getcwd.c (main): Avoid buffer underflow.
42124         * tests/test-getdate.c (main): String literals are not safe with
42125         putenv, so use setenv.  Declare unused argument.
42126         * modules/getdate-tests (Depends-on): Add setenv.
42127         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
42128         problems with string literals in char *.
42129         * tests/test-hash.c (main): Avoid shadowing declaration.
42130         (insert_new): Treat string literals as char const *.
42131         * tests/test-getopt.h (test_getopt): Likewise.
42132         (getopt_loop): Alter types to minimize casting elsewhere.
42133         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
42134         (test_getopt_long_posix): Likewise.
42135         (do_getopt_long): Add wrapper to minimize casting.
42136         * tests/test-atexit.c (clear_temp_file): Use void.
42137         * tests/test-areadlink-with-size.c (main): Declare unused
42138         arguments.
42139         * tests/test-areadlink.c (main): Likewise.
42140         * tests/test-areadlinkat-with-size.c (main): Likewise.
42141         * tests/test-areadlinkat.c (main): Likewise.
42142         * tests/test-canonicalize-lgpl.c (main): Likewise.
42143         * tests/test-canonicalize.c (main): Likewise.
42144         * tests/test-dirent-safer.c (main): Likewise.
42145         * tests/test-dirname.c (main): Likewise.
42146         * tests/test-dup2.c (main): Likewise.
42147         * tests/test-fchdir.c (main): Likewise.
42148         * tests/test-fcntl-h.c (main): Likewise.
42149         * tests/test-fcntl-safer.c (main): Likewise.
42150         * tests/test-fdopendir.c (main): Likewise.
42151         * tests/test-fdutimensat.c (main): Likewise.
42152         * tests/test-fflush.c (main): Likewise.
42153         * tests/test-filenamecat.c (main): Likewise.
42154         * tests/test-filevercmp.c (main): Likewise.
42155         * tests/test-fopen-safer.c (main): Likewise.
42156         * tests/test-fopen.c (main): Likewise.
42157         * tests/test-fpending.c (main): Likewise.
42158         * tests/test-fpurge.c (main): Likewise.
42159         * tests/test-freading.c (main): Likewise.
42160         * tests/test-fstatat.c (main): Likewise.
42161         * tests/test-fsync.c (main): Likewise.
42162         * tests/test-futimens.c (main): Likewise.
42163         * tests/test-getndelim2.c (main): Likewise.
42164         * tests/test-gettimeofday.c (main): Likewise.
42165         * tests/test-getopt.c (main): Likewise.
42166         * tests/test-i-ring.c (main): Likewise.
42167         * tests/test-inttypes.c (main): Likewise.
42168         * tests/test-link.c (main): Likewise.
42169         * tests/test-lstat.c (main): Likewise.
42170         * tests/test-math.c (main): Likewise.
42171         * tests/test-md5.c (main): Likewise.
42172         * tests/test-memchr2.c (main): Likewise.
42173         * tests/test-memrchr.c (main): Likewise.
42174         * tests/test-mkdir.c (main): Likewise.
42175         * tests/test-mkdirat.c (main): Likewise.
42176         * tests/test-mkfifoat.c (main): Likewise.
42177         * tests/test-open.c (main): Likewise.
42178         * tests/test-openat-safer.c (main): Likewise.
42179         * tests/test-openat.c (main): Likewise.
42180         * tests/test-quotearg.c (main): Likewise.
42181         * tests/test-rawmemchr.c (main): Likewise.
42182         * tests/test-readlink.c (main): Likewise.
42183         * tests/test-remove.c (main): Likewise.
42184         * tests/test-rename.c (main): Likewise.
42185         * tests/test-renameat.c (main): Likewise.
42186         * tests/test-rmdir.c (main): Likewise.
42187         * tests/test-sha1.c (main): Likewise.
42188         * tests/test-signal.c (main): Likewise.
42189         * tests/test-sigaction.c (main): Likewise.
42190         * tests/test-stat.c (main): Likewise.
42191         * tests/test-stat-time.c (main): Likewise.
42192         * tests/test-stddef.c (main): Likewise.
42193         * tests/test-stdint.c (main): Likewise.
42194         * tests/test-stdio.c (main): Likewise.
42195         * tests/test-stdlib.c (main): Likewise.
42196         * tests/test-strchrnul.c (main): Likewise.
42197         * tests/test-strerror.c (main): Likewise.
42198         * tests/test-string.c (main): Likewise.
42199         * tests/test-strtod.c (main): Likewise.
42200         * tests/test-strverscmp.c (main): Likewise.
42201         * tests/test-symlink.c (main): Likewise.
42202         * tests/test-symlinkat.c (main): Likewise.
42203         * tests/test-sys_stat.c (main): Likewise.
42204         * tests/test-sys_time.c (main): Likewise.
42205         * tests/test-time.c (main): Likewise.
42206         * tests/test-unistd.c (main): Likewise.
42207         * tests/test-unlink.c (main): Likewise.
42208         * tests/test-unlinkat.c (main): Likewise.
42209         * tests/test-utimens.c (main): Likewise.
42210         * tests/test-utimensat.c (main): Likewise.
42211         * tests/test-version-etc.c (main): Likewise.
42212         * tests/test-wchar.c (main): Likewise.
42213         * tests/test-wctype.c (main): Likewise.
42214         * tests/test-xprintf-posix.c (main): Likewise.
42215         * tests/test-posixtm.c (main): Likewise.
42216         (STREQ): Delete unused macro.
42217         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
42218         shadowed variables.
42219         * tests/test-memchr.c (main): Likewise.
42220
42221 2009-10-21  Eric Blake  <ebb9@byu.net>
42222
42223         areadlinkat: avoid failure on older glibc
42224         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
42225         rather than mis-comparing 0 against FUNC_RESULT of char*.
42226
42227 2009-10-21  Bruno Haible  <bruno@clisp.org>
42228
42229         * modules/stpncpy (License): Relicense under LGPLv2+.
42230         Reported by David Lutterkort <lutter@redhat.com>.
42231
42232 2009-10-20  Eric Blake  <ebb9@byu.net>
42233
42234         utimensat: work around Solaris 9 bug
42235         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
42236         has trailing slash bugs.
42237         * tests/test-lutimens.h (test_lutimens): Enhance test.
42238         * tests/test-utimens.h (test_utimens): Likewise.
42239         * doc/posix-functions/utime.texi (utime): Enhance documentation.
42240         * doc/posix-functions/utimes.texi (utimes): Likewise.
42241         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
42242         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
42243         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
42244         * doc/posix-functions/futimens.texi (futimens): Likewise.
42245
42246         fdutimensat: new module
42247         * modules/fdutimensat: New file.
42248         * lib/fdutimensat.c (fdutimensat): Likewise.
42249         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
42250         * MODULES.html.sh (File system functions): Mention module.
42251         * modules/fdutimensat-tests: New test.
42252         * tests/test-fdutimensat.c: Likewise.
42253
42254         doc: regenerate INSTALL
42255         * doc/INSTALL: Reflect recent autoconf update.
42256         * doc/INSTALL.ISO: Likewise.
42257         * doc/INSTALL.UTF-8: Likewise.
42258
42259 2009-10-20  Pádraig Brady  <P@draigBrady.com>
42260
42261         acl: warn if ACL support is not detected
42262         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
42263
42264 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
42265
42266         * lib/nproc.h: Add extern "C" block for C++.
42267
42268 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
42269             Bruno Haible  <bruno@clisp.org>
42270
42271         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
42272         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
42273         * doc/posix-functions/isalpha.texi: Likewise.
42274         * doc/posix-functions/isblank.texi: Likewise.
42275         * doc/posix-functions/iscntrl.texi: Likewise.
42276         * doc/posix-functions/isdigit.texi: Likewise.
42277         * doc/posix-functions/isgraph.texi: Likewise.
42278         * doc/posix-functions/islower.texi: Likewise.
42279         * doc/posix-functions/isprint.texi: Likewise.
42280         * doc/posix-functions/ispunct.texi: Likewise.
42281         * doc/posix-functions/isspace.texi: Likewise.
42282         * doc/posix-functions/isupper.texi: Likewise.
42283         * doc/posix-functions/isxdigit.texi: Likewise.
42284
42285 2009-10-18  Bruno Haible  <bruno@clisp.org>
42286
42287         Tests for module 'isblank'.
42288         * modules/isblank-tests: New file.
42289         * tests/test-isblank.c: New file.
42290
42291         New module 'isblank'.
42292         * lib/isblank.c: New file.
42293         * m4/isblank.m4: New file.
42294         * modules/isblank: New file.
42295         * doc/posix-functions/isblank.texi: Mention the new module.
42296
42297 2009-10-18  Bruno Haible  <bruno@clisp.org>
42298
42299         New module 'ctype'.
42300         * lib/ctype.in.h: New file.
42301         * m4/ctype.m4: New file.
42302         * modules/ctype: New file.
42303         * doc/posix-headers/ctype.texi: Mention the new module.
42304
42305 2009-10-18  Jim Meyering  <meyering@redhat.com>
42306
42307         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
42308         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
42309         right after its initialization, rather than farther down.
42310         Keeping these in close proximity makes it easier to ensure
42311         that each such variable is initialized.  E.g.,
42312
42313             LIB_CLOCK_GETTIME=
42314             AC_SUBST([LIB_CLOCK_GETTIME])
42315
42316         This change also increments these serial numbers.
42317         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
42318         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
42319         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
42320
42321 2009-10-18  Bruno Haible  <bruno@clisp.org>
42322
42323         Don't let environment variables perturb build.
42324         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
42325         (gl_PREREQ_GETHRXTIME): ... not here.
42326
42327 2009-10-18  Bruno Haible  <bruno@clisp.org>
42328
42329         Avoid symlink attack in localcharset module.
42330         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
42331         (O_NOFOLLOW): Define fallback.
42332         (get_charset_aliases): Don't open the file if it is a symbolic link.
42333         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
42334         gl_FCNTL_H.
42335         (gl_FCNTL_H): Require it.
42336         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
42337         * modules/localcharset (Files): Add m4/fcntl_h.m4.
42338         Reported by Fergal Glynn <fglynn@veracode.com>.
42339
42340 2009-10-18  Bruno Haible  <bruno@clisp.org>
42341
42342         Implement nproc for mingw.
42343         * lib/nproc.c: Include <windows.h>
42344         (num_processors): On native Windows platforms, try GetSystemInfo.
42345
42346 2009-10-18  Bruno Haible  <bruno@clisp.org>
42347
42348         Implement nproc for IRIX.
42349         * lib/nproc.c: Include <sys/sysmp.h>.
42350         (num_processors): On IRIX systems, try sysmp.
42351         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
42352
42353 2009-10-18  Bruno Haible  <bruno@clisp.org>
42354
42355         Implement nproc for HP-UX.
42356         * lib/nproc.c: Include <sys/pstat.h>
42357         (num_processors): On HP-UX systems, try pstat_getdynamic.
42358         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
42359         pstat_getdynamic.
42360
42361 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
42362             Bruno Haible  <bruno@clisp.org>
42363
42364         Implement nproc for NetBSD, OpenBSD.
42365         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
42366         (ARRAY_SIZE): New macro.
42367         (num_processors): On BSD systems, try sysctl of HW_NCPU.
42368         * m4/nproc.m4: New file.
42369         * modules/nproc (Files): Add m4/nproc.m4.
42370         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
42371         (Makefile.am): Instead, augment lib_SOURCES.
42372
42373 2009-10-18  Bruno Haible  <bruno@clisp.org>
42374
42375         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
42376         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
42377         sys/param.h.
42378
42379 2009-10-16  Eric Blake  <ebb9@byu.net>
42380
42381         utimensat: new module
42382         * modules/utimensat: New file.
42383         * lib/utimensat.c (utimensat): Likewise.
42384         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
42385         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
42386         so we can work around Linux bugs.
42387         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
42388         * modules/sys_stat (Makefile.am): Substitute them.
42389         * lib/sys_stat.in.h (utimensat): Declare it.
42390         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
42391         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
42392         * modules/utimensat-tests: New test.
42393         * tests/test-utimensat.c: Likewise.
42394
42395         utimens: let lutimens work on non-symlinks
42396         * lib/utimens.c (lutimens): Fall back to utimens rather than
42397         failing with ENOSYS, when file is not a symlink.
42398         (utimens): Reduce redirection.
42399         * tests/test-lutimens.h (test_lutimens): Update test to cover
42400         non-symlinks.
42401         * tests/test-utimens.h (test_utimens): Update test to cover
42402         symlinks.
42403         * tests/test-utimens.c (main): Update caller.
42404
42405         utimens: cache whether utimensat syscall works
42406         * lib/utimens.c (utimensat_works_really): New cache variable.
42407         (fdutimens, lutimens): Use it to avoid failing syscall.
42408
42409         test-stat-time, test-utimens: improve portability
42410         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
42411         ext4 on alpha, and for cygwin.
42412         * tests/test-utimens-common.h: New file.
42413         (nap): Factor delays into single function.
42414         * tests/test-lutimens.h (test_lutimens): Use new header.
42415         * tests/test-futimens.h (test_futimens): Likewise.
42416         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
42417         timestamps to occur from same machine, as was done previously for
42418         test_utimens.
42419         * modules/utimens-tests (Files): Ship new file.
42420         * modules/futimens-tests (Files): Likewise.
42421         Reported in part by Jim Meyering.
42422
42423         sys_stat: sort replacement declarations
42424         * lib/sys_stat.in.h: Sort declarations.
42425         * lib/futimens.c (futimens): Fix typo.
42426
42427 2009-10-15  Jim Meyering  <meyering@redhat.com>
42428
42429         don't let environment settings perturb build
42430         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
42431         could cause a configure-time and/or build-time malfunction.
42432         Typically, a configure-time function-in-library test is performed
42433         via code like this:
42434
42435           LIB_VAR=
42436           AC_SUBST([LIB_VAR])
42437           prefix_saved_LIBS=$LIBS
42438             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
42439                        [test "$ac_cv_search_FUNC" = "none required" ||
42440                         LIB_VAR=$ac_cv_search_FUNC])
42441           LIBS=$prefix_saved_LIBS
42442
42443         However, in each of the files affected by this change, the LIB_VAR=
42444         initialization was omitted.  Thus, when set in the environment, its
42445         value would propagate into generated Makefiles when FUNC is not found
42446         in LIB_NAME.
42447         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
42448         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
42449         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
42450
42451 2009-10-14  Eric Blake  <ebb9@byu.net>
42452
42453         fchdir: avoid infinite recursion in mingw
42454         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
42455         recursing.
42456
42457         test-stat-time: port to mingw
42458         * tests/test-stat-time.c (force_unlink): Return a value.
42459         (test_ctime) [W32]: Fix compilation error.
42460         (nap): Don't call usleep with too large an argument.  Use
42461         force_unlink.
42462         * doc/pastposix-functions/usleep.texi (usleep): Document the
42463         portability issue.
42464
42465 2009-10-13  Jim Meyering  <meyering@redhat.com>
42466
42467         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
42468         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
42469         * modules/pipe-filter-ii: Likewise.
42470         * modules/sys_socket-tests: Likewise.
42471         * modules/tsearch-tests: Likewise.
42472         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
42473         (check): Depend on it.
42474
42475 2009-10-12  Eric Blake  <ebb9@byu.net>
42476
42477         utimens-tests: port to NFS file systems
42478         * tests/test-utimens.h (test_utimens): Refactor utimecmp
42479         comparisons to avoid spurious failures from timestamp drift
42480         between NFS machines.
42481
42482 2009-10-12  Eric Blake  <ebb9@byu.net>
42483
42484         stat-time-tests: minor cleanups
42485         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
42486         * tests/test-stat-time.c (nap): Separate assignment from call.
42487         Suggested by Paolo Bonzini and Bruno Haible.
42488
42489         sys_stat: guarantee struct timespec
42490         * lib/sys_stat.in.h (includes): Always include <time.h>
42491         * modules/sys_stat (Depends-on): Add time.
42492         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
42493         mode_t permission values.
42494         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
42495         get at subsecond timestamps.
42496
42497 2009-10-10  Eric Blake  <ebb9@byu.net>
42498
42499         futimens: new module
42500         * modules/futimens: New file.
42501         * lib/futimens.c (futimens): Likewise.
42502         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
42503         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
42504         we can work around Linux bugs.
42505         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
42506         * modules/sys_stat (Makefile.am): Substitute them.
42507         * lib/sys_stat.in.h (futimens): Declare it.
42508         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
42509         * doc/posix-functions/futimens.texi (futimens): Likewise.
42510         * modules/futimens-tests: New test.
42511         * tests/test-futimens.c: Likewise.
42512
42513         utimens: introduce fdutimens
42514         * lib/utimens.h (fdutimens): New prototype.
42515         * lib/utimens.c (gl_futimens): Move guts...
42516         (fdutimens): ...to new interface.
42517         * tests/test-utimens.c (do_fdutimens): Use it.
42518
42519         utimens: add UTIME_NOW and UTIME_OMIT support
42520         * lib/utimens.c (validate_timespec, update_timespec): New helper
42521         functions.
42522         (gl_futimens, lutimens): Use them.
42523         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
42524         stdbool, sys_stat.
42525         (Link): Mention resulting library dependency.
42526         * modules/utimecmp (Link): Likewise.
42527         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
42528         (Makefile.am): Pick up library dependency.
42529         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
42530         definition.
42531         * tests/test-sys_stat.c: Test the definitions.
42532         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
42533         * NEWS: Document library dependency.
42534
42535         utimecmp: support symlink timestamps
42536         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
42537         hashing when possible.  Use pathconf when available.
42538         (SYSCALL_RESOLUTION): Recognize tighter resolution.
42539         * modules/utimecmp (Depends-on): Add lstat.
42540
42541         utimens: add lutimens interface
42542         * lib/utimens.c (lutimens): New function.
42543         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
42544         * lib/utimens.h (lutimens): Declare new interface.
42545         * tests/test-utimens.c (main): Enhance test.
42546         * tests/test-lutimens.h (test_lutimens): New file.
42547         * modules/utimens-tests (Files): Distribute it.
42548         (Depends-on): Add symlink.
42549         (configure.ac): Check for usleep.
42550
42551         utimens: validate futimens usage
42552         * lib/utimens.c (gl_futimens): Require valid fd up front, using
42553         fewer syscalls on failure later on.  Avoid compiler warning on
42554         mingw.
42555         * modules/utimens (Depends-on): Add dup2.
42556
42557         utimens: add test
42558         * modules/utimens-tests: New test.
42559         * tests/test-utimens.h: New file.
42560         * tests/test-futimens.h: Likewise.
42561         * tests/test-utimens.c: Likewise.
42562
42563         doc: mention timestamp portability issues
42564         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
42565         instead.
42566         * doc/posix-functions/utime.texi (utime): Likewise.
42567         * doc/posix-functions/utimes.texi (utimes): Likewise.
42568         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
42569         instead.
42570         * doc/posix-functions/futimens.texi (futimens): Mention utimens
42571         module.
42572         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
42573         Mention weakness with symlink timestamps.
42574         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
42575         to utimensat/futimens instead.
42576         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
42577
42578         test-dup2: enhance test
42579         * tests/test-dup2.c (main): Also check AT_FDCWD.
42580
42581         test-stat-time: avoid more spurious failures
42582         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
42583         xfs; and avoid race if the two timestamps cross quantization edge.
42584
42585         relocatable: prefer 'file system' over 'filesystem'
42586         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
42587         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
42588         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
42589         * doc/relocatable.texi (Enabling Relocatability): Likewise.
42590         * lib/relocatable.c (compute_curr_prefix): Likewise.
42591
42592 2009-10-10  Jim Meyering  <meyering@redhat.com>
42593
42594         stat-time-tests: check for the usleep function
42595         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
42596
42597 2009-10-10  Bruno Haible  <bruno@clisp.org>
42598
42599         * modules/xnanosleep: Put the Link section after the Include section.
42600
42601 2009-10-09  Eric Blake  <ebb9@byu.net>
42602
42603         dup2: work around FreeBSD 6.1 bug
42604         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
42605         * doc/posix-functions/dup2.texi (dup2): Document it.
42606         Reported by Nelson H. F. Beebe and Jim Meyering.
42607
42608         test-stat-time: port to buggy NFS clients
42609         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
42610         (test_ctime): Also skip test if mtime and ctime are skewed.
42611
42612         maint: prefer 'file system' over 'filesystem'
42613         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
42614         * doc/posix-functions/lstat.texi (lstat): Likewise.
42615         * lib/file-has-acl.c (file_has_acl): Likewise.
42616         * lib/fwriteerror.c [TEST]: Likewise.
42617         * tests/test-areadlink.h (test_areadlink): Likewise.
42618         * tests/test-areadlinkat-with-size.c (main): Likewise.
42619         * tests/test-areadlinkat.c (main): Likewise.
42620         * tests/test-canonicalize-lgpl.c (main): Likewise.
42621         * tests/test-canonicalize.c (main): Likewise.
42622         * tests/test-fstatat.c (main): Likewise.
42623         * tests/test-linkat.c (main): Likewise.
42624         * tests/test-lstat.h (test_lstat_func): Likewise.
42625         * tests/test-mkdir.h (test_mkdir): Likewise.
42626         * tests/test-readlink.h (test_readlink): Likewise.
42627         * tests/test-remove.c (main): Likewise.
42628         * tests/test-rename.h (test_rename): Likewise.
42629         * tests/test-renameat.c (main): Likewise.
42630         * tests/test-rmdir.h (test_rmdir_func): Likewise.
42631         * tests/test-symlink.h (test_symlink): Likewise.
42632         * tests/test-symlinkat.c (main): Likewise.
42633         * tests/test-unlink.h (test_unlink_func): Likewise.
42634         * tests/test-unlinkat.c (main): Likewise.
42635
42636         maint: make realtime library usage explicit
42637         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
42638         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
42639         * modules/settime (Link): Likewise.
42640         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
42641
42642         test-stat-time: speed up execution
42643         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
42644         warning on mingw.
42645         (nap): New helper function.
42646         (prepare_test): Use it to reduce sleep time.
42647         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
42648         execution.
42649         * modules/stat-time-tests (configure.ac): Check for usleep.
42650
42651 2009-10-09  Jim Meyering  <meyering@redhat.com>
42652
42653         selinux-h: always use getfilecon wrappers
42654         * lib/getfilecon.c: New file.
42655         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
42656         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
42657         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
42658         (fgetfilecon): Provide a stub.
42659         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
42660         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
42661         file unconditionally.
42662         When <selinux/selinux.h> is found, arrange to use wrappers.
42663         * modules/selinux-h (Files): Add getfilecon.c.
42664         (Makefile.am): Substitute include-next-related bits
42665         into the now-always-generated selinux/selinux.h file.
42666         * doc/glibc-functions/lgetfilecon.texi: New file.
42667         * doc/glibc-functions/fgetfilecon.texi: New file.
42668         * doc/glibc-functions/getfilecon.texi: New file.
42669         * doc/glibc-functions/getfilecon-desc.texi: New file.
42670         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
42671         which to pull in the new files.
42672         * MODULES.html.sh (Misc): Add selinux-h.
42673
42674 2009-10-08  Jim Meyering  <meyering@redhat.com>
42675
42676         unistd: fix comment typo
42677         * lib/unistd.in.h (euidaccess): Fix a comment typo.
42678
42679 2009-10-08  Eric Blake  <ebb9@byu.net>
42680
42681         areadlink: use SIZE_MAX consistently
42682         * modules/areadlink (Depends-on): Add stdint.
42683         * modules/areadlink-with-size (Depends-on): Likewise.
42684         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
42685         gives NULL; drop sys/types, since unistd gives size_t; and add
42686         stdint for SIZE_MAX.
42687         (SIZE_MAX): Rely on headers.
42688         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
42689         and add stdint.
42690         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
42691         (SIZE_MAX): Likewise.
42692         (INITIAL_BUF_SIZE): Turn into enum.
42693         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
42694
42695 2009-10-08  Jim Meyering  <meyering@redhat.com>
42696
42697         areadlinkat: avoid compilation failure
42698         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
42699         Fix typo in comment.
42700
42701 2009-10-07  Eric Blake  <ebb9@byu.net>
42702
42703         areadlinkat-with-size: new module
42704         * modules/areadlinkat-with-size: New module.
42705         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
42706         * lib/areadlink.h (areadlinkat): Declare it.
42707         * MODULES.html.sh (File system functions): Mention it.
42708         * modules/areadlinkat-with-size-tests: New test.
42709         * tests/test-areadlinkat-with-size.c: New file.
42710
42711         xreadlinkat: new module
42712         * modules/xreadlinkat: New module.
42713         * lib/xreadlinkat.c (xreadlinkat): New file.
42714         * lib/xreadlink.h (xreadlinkat): Declare it.
42715         * MODULES.html.sh (File system functions): Mention it.
42716
42717         areadlinkat: new module
42718         * lib/at-func.c (FUNC_FAIL): New define.
42719         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
42720         * modules/areadlinkat: New module.
42721         * lib/linkat.c (areadlinkat): Move...
42722         * lib/areadlinkat.c (areadlinkat): ...to new file.
42723         * lib/areadlink.h (areadlinkat): Declare it.
42724         * modules/linkat (Depends-on): Add areadlinkat.
42725         * MODULES.html.sh (File system functions): Mention it.
42726         * modules/areadlinkat-tests: New test.
42727         * tests/test-areadlinkat.c: New file.
42728
42729         areadlink, areadlink-with-size: add tests
42730         * modules/areadlink-tests: New test.
42731         * modules/areadlink-with-size-tests: Likewise.
42732         * tests/test-areadlink.h: New file.
42733         * tests/test-areadlink.c: Likewise.
42734         * tests/test-areadlink-with-size.c: Likewise.
42735
42736         maint: minor cleanups
42737         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
42738         _UNUSED_PARAMETER_ instead.
42739         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
42740         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
42741         * modules/linkat-tests (Files): Distribute test-link.h.
42742
42743         openat, utimens: whitespace cleanup
42744         * lib/openat.c: Prefer space throughout, rather than mix of 8
42745         spaces vs. tabs.
42746         * lib/at-func.c: Likewise.
42747         * lib/utimens.c: Likewise.
42748
42749         openat: avoid using wrong fd
42750         * lib/openat.c (openat_permissive): Reject user's fd if saving the
42751         working directory chooses same fd.
42752         * lib/at-func.c (AT_FUNC_NAME): Likewise.
42753
42754         mkdir, mkdirat: fix cygwin 1.5.x bug
42755         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
42756         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
42757         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
42758         bug.
42759         (gl_PREREQ_MKDIR): Delete unused macro.
42760         * modules/mkdir (Files): Track file rename.
42761         (configure.ac): Update macro name.
42762         * modules/openat (Depends-on): Add mkdir.
42763         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
42764
42765         mkdir, mkdirat: add tests
42766         * modules/mkdir-tests: New test.
42767         * tests/test-mkdir.h: New file.
42768         * tests/test-mkdir.c: Likewise.
42769         * tests/test-mkdirat.c: Likewise.
42770         * modules/openat-tests (Files): Add new files.
42771         (Makefile.am): Run new test.
42772
42773 2009-10-06  Eric Blake  <ebb9@byu.net>
42774
42775         doc: tweak *at function documentation
42776         * doc/posix-functions/faccessat.texi (faccessat): Mention
42777         known issue with replacement.
42778         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
42779         * doc/posix-functions/linkat.texi (linkat): Likewise.
42780         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
42781         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
42782         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
42783         * doc/posix-functions/renameat.texi (renameat): Likewise.
42784         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
42785
42786         openat: fix GNU/Hurd bug in unlinkat
42787         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
42788         broken.
42789         * doc/posix-functions/unlink.texi (unlink): Document this.
42790         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
42791
42792         fdopendir: fix GNU/Hurd bug
42793         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
42794         allowing non-directory fds.
42795         * lib/fdopendir.c (rpl_fdopendir): Work around it.
42796         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
42797         * modules/dirent (Makefile.am): Substitute it.
42798         * lib/dirent.in.h (fdopendir): Declare replacement.
42799         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
42800         * tests/test-fdopendir.c (main): Test something other than
42801         /dev/null, since on Hurd that behaves like a directory.
42802
42803         test-symlink: port to GNU/Hurd
42804         * tests/test-symlink.h (test_symlink): Relax expected errno.
42805
42806         doc: tweak more cygwin information
42807         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
42808         now compatible with glibc.
42809         * doc/posix-functions/getopt.texi (getopt): Likewise.
42810
42811         getopt-gnu: add another test
42812         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
42813         guarantee behavior relied on by m4.
42814         * tests/test-getopt.c (main): Use it.
42815         * modules/getopt-posix-tests (Depends-on): Add setenv.
42816         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
42817
42818         getopt: fix compilation on darwin
42819         * lib/getopt.in.h (includes): Leave breadcrumbs during system
42820         include.
42821         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
42822         Reported by Ludovic Courtès.
42823
42824 2009-10-06  Bruno Haible  <bruno@clisp.org>
42825
42826         * modules/size_max (Description): Discourage its use.
42827         Reported by Simon Josefsson.
42828
42829 2009-10-06  Jim Meyering  <meyering@redhat.com>
42830
42831         linkat: avoid compilation failure
42832         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
42833
42834 2009-10-05  Eric Blake  <ebb9@byu.net>
42835
42836         linkat: support Linux 2.6.17
42837         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
42838         linkat on Linux, but allow cache variable override.
42839         * lib/linkat.c (rpl_linkat): Define override.
42840         * modules/linkat (Depends-on): Add symlinkat.
42841         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
42842         * modules/unistd (Makefile.am): Substitute it.
42843         * lib/unistd.in.h (linkat): Declare replacement.
42844         Reported by Pádraig Brady.
42845
42846         quotearg: port test to systems with C.UTF-8 locale
42847         * tests/test-quotearg.c (struct result_strings): Add another
42848         member, differentiating between C.ASCII and C.UTF-8 handling.
42849         (compare_strings): Add parameter.
42850         (main): Adjust all callers.
42851
42852         getopt: avoid clash with FreeBSD _getopt_internal
42853         * lib/getopt.in.h (_getopt_internal): Override the name.
42854         * lib/getopt_int.h (includes): Pick up any overrides.
42855         Reported by Reuben Thomas.
42856
42857         hash: allow C89 compilation
42858         * lib/hash.c (check_tuning): Move declaration before statement.
42859         Reported by Reuben Thomas.
42860
42861 2009-10-05  Karl Berry  <karl@gnu.org>
42862
42863         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
42864
42865 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
42866             Bruno Haible  <bruno@clisp.org>
42867
42868         * lib/uname.c (uname): Use a table-driven algorithm to compute
42869         Windows NT versions.
42870
42871 2009-10-04  Bruno Haible  <bruno@clisp.org>
42872
42873         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
42874         program_invocation_short_name.
42875         * modules/progname (configure.ac): Test for presence of
42876         program_invocation_short_name.
42877         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
42878
42879 2009-10-04  Bruno Haible  <bruno@clisp.org>
42880
42881         * lib/progname.c (set_program_name): Fix comment.
42882         Reported by Jim Meyering.
42883
42884 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
42885             Bruno Haible  <bruno@clisp.org>
42886
42887         * lib/uname.c: Include <string.h>.
42888         (uname): Do only one call to GetVersionEx in the common case.
42889
42890 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
42891             Bruno Haible  <bruno@clisp.org>
42892
42893         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
42894         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
42895         (uname): Add support for Windows CE and various non-x86 CPU types.
42896
42897 2009-10-03  Bruno Haible  <bruno@clisp.org>
42898
42899         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
42900         invocation to tests/configure.ac.
42901         Reported by Ian Beckwith <ianb@erislabs.net>.
42902
42903 2009-10-02  Eric Blake  <ebb9@byu.net>
42904
42905         fchdir: avoid compiler warning
42906         * lib/fchdir.c (canonicalize_file_name)
42907         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
42908
42909         test-open: support mingw errno values
42910         * tests/test-open.h (test_open): Relax test.
42911         * tests/test-fopen.h (test_fopen): Likewise.
42912         * tests/test-openat-safer.c (main): Likewise.
42913
42914         open: fix opening directory on mingw
42915         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
42916
42917         test-open: on GNU/Hurd, /dev/null is a directory
42918         * tests/test-fopen.h (main): Rename...
42919         (test_fopen): ...to this.  Use a guaranteed non-directory when
42920         confirming open behavior on trailing slash.
42921         * tests/test-openat-safer.c (main): Likewise.
42922         * tests/test-open.h (main): Likewise....
42923         (test_open): ...to this.
42924         * tests/test-fopen.c (main): Adjust caller.
42925         * tests/test-fopen-safer.c (main): Likewise.
42926         * tests/test-open.c (main): Likewise.
42927         * tests/test-fcntl-safer.c (main): Likewise.
42928         Reported by Samuel Thibault.
42929
42930         rename, fchdir: don't ignore chdir failure
42931         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
42932         * lib/rename.c (rpl_rename) [W32]: Likewise.
42933         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
42934         an empty destination directory if source cannot be renamed,
42935         although there is still possibility for failure.
42936         * doc/posix-functions/rename.texi (rename): Document the race.
42937         Reported by Jim Meyering.
42938
42939         maint: cleanup whitespace in recent commits
42940         * lib/rename.c (rpl_rename): Remove tabs.
42941         * tests/test-link.h (test_link): Likewise.
42942         * lib/fchdir.c (get_name): Likewise.
42943         Reported by Jim Meyering.
42944
42945 2009-10-02  Ben Pfaff  <blp@gnu.org>
42946
42947         relocatable-prog-wrapper: Add missing dependency on
42948         double-slash-root.
42949         * modules/relocatable-prog-wrapper: Add dependency.
42950         Reported by Ian Beckwith <ianb@erislabs.net>.
42951
42952 2009-10-02  Eric Blake  <ebb9@byu.net>
42953
42954         renameat: fix Solaris bugs
42955         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
42956         needed fixing.
42957         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
42958         * modules/stdio (Makefile.am): Substitute it.
42959         * lib/stdio.in.h (renameat): Declare replacement.
42960         * lib/renameat.c (rpl_renameat): Implement fix.
42961
42962         renameat: new module
42963         * modules/renameat: New file.
42964         * lib/renameat.c (renameat): Likewise.
42965         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
42966         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
42967         * modules/stdio (Makefile.am): Substitute them.
42968         * lib/stdio.in.h (renameat): Declare it.
42969         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
42970         * doc/posix-functions/renameat.texi (renameat): Likewise.
42971         * modules/renameat-tests: New test.
42972         * tests/test-renameat.c: Likewise.
42973
42974         rename: fix mingw bugs
42975         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
42976         directory overwrite bugs.
42977
42978         rename: fix another cygwin 1.5 bug
42979         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
42980         checks.
42981         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
42982         unnecessary cygwin workarounds.  Also work around bug with moving
42983         full directory onto an empty one.
42984         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
42985
42986         rename-dest-slash: merge into rename module
42987         * modules/rename-dest-slash (Status): Mark obsolete.
42988         (Depends-on): Add rename.
42989         (Files): Let rename do it all.
42990         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
42991         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
42992         * m4/rename-dest-slash.m4: ...so this file can be deleted.
42993         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
42994         * lib/rename.c (rpl_rename): Update comments.
42995
42996         rename: fix cygwin 1.5.x bugs
42997         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
42998         * lib/rename.c (rpl_rename): Work around them.
42999         * modules/rename (Depends-on): Add same-inode.
43000
43001         rename: fix Solaris 10 bug
43002         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
43003         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
43004         was the only bug.
43005
43006         rename: fix Solaris 9 bug
43007         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
43008         on non-directory.  Avoid calling exit.
43009         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
43010         strdup.
43011         * modules/rename-tests (Depends-on): Drop lstat.
43012         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
43013         (gl_PREREQ_RENAME): Delete unused macro.
43014
43015         rename-dest-slash: fix NetBSD bug
43016         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
43017         links.
43018         * modules/rename-dest-slash (Depends-on): Add same-inode.
43019
43020         rename-tests: new test, exposes several platform bugs
43021         * modules/rename-tests: New file.
43022         * tests/test-rename.h: Likewise.
43023         * tests/test-rename.c: Likewise.
43024         * doc/posix-functions/rename.texi (rename): Improve documentation,
43025         including bugs that will eventually be fixed in gnulib.
43026
43027 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
43028
43029         * lib/uname.c: Include <stdlib.h>
43030         (uname): Assume version info is available.
43031
43032 2009-10-02  Jim Meyering  <meyering@redhat.com>
43033
43034         gnu-web-doc-update: correct --help output
43035         * build-aux/gnu-web-doc-update: Make --help output relevant.
43036
43037         gnu-web-doc-update: add standard options
43038         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
43039
43040         gnu-web-doc-update: New module.
43041         Use this script to automatically update the on-line web documentation
43042         for your GNU project at http://www.gnu.org/software/$pkg/manual/
43043         * modules/gnu-web-doc-update: New file, from coreutils.
43044         * build-aux/gnu-web-doc-update: New script.
43045
43046 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
43047
43048         link: LoadLibrary is not needed.
43049         * lib/link.c: Use GetModuleHandle.
43050
43051 2009-10-01  Eric Blake  <ebb9@byu.net>
43052
43053         getopt: bump serial number
43054         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
43055         change.
43056
43057         tests: tighten link, rmdir, and remove tests
43058         * tests/test-link.h (includes): No need to use <config.h> here.
43059         Clean up if directory hard link was created, otherwise test for
43060         trailing '.'.
43061         * tests/test-linkat.c (main): Simplify.
43062         * tests/test-remove.c (main): Enhance test for trailing '.'.
43063         * tests/test-rmdir.h (test_rmdir_func): Likewise.
43064
43065 2009-10-01  Jim Meyering  <meyering@redhat.com>
43066
43067         maint.mk: requiring "make major" was annoying, for a "minor" release.
43068         What is intended is "stable", to contrast with alpha and beta,
43069         so require "make stable", not "make major".
43070         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
43071         (get_tool_versions): Likewise.
43072         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
43073
43074 2009-09-30  Ben Pfaff  <blp@gnu.org>
43075
43076         Fix broken build of replacement for Windows tmpfile().
43077         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
43078         flags argument added along with the 'mkostemp' module.
43079
43080 2009-09-28  Bruno Haible  <bruno@clisp.org>
43081
43082         Avoid identifier clash with POSIX function 'remove' defined as a macro.
43083         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
43084         to 'remove_elt'.
43085         (gl_list_remove): Update.
43086         * lib/gl_list.c (gl_list_remove): Update.
43087         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
43088         to 'remove_elt'.
43089         (gl_oset_remove): Update.
43090         * lib/gl_list.c (gl_oset_remove): Update.
43091         Reported by Eric Blake.
43092
43093 2009-09-28  Eric Blake  <ebb9@byu.net>
43094
43095         doc: mention yet more cygwin 1.7 status
43096         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
43097         cygwin.
43098         * doc/glibc-functions/execvpe.texi (execvpe): New file.
43099         * doc/gnulib.texi (Glibc unistd.h): Mention it.
43100
43101         argp: fix test failure
43102         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
43103         that are not upper-case.  Pass correct range to tolower.
43104
43105 2009-09-27  Jim Meyering  <meyering@redhat.com>
43106
43107         test-yesno: work around sparc-dash here-document infelicity
43108         Without this change, the literal \177 byte in a here document
43109         would make dash 0.5.5.1-3 access uninitialized memory.
43110         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
43111         Instead, use a marker, "@", and filter through tr to create the desired
43112         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
43113
43114 2009-09-27  Bruno Haible  <bruno@clisp.org>
43115
43116         Disable untested support for new flavours of ACLs on AIX.
43117         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
43118         progress.
43119         * lib/set-mode-acl.c (qset_acl): Likewise.
43120
43121 2008-12-07  Bruno Haible  <bruno@clisp.org>
43122
43123         Add support for new flavours of ACLs on AIX. (Untested.)
43124         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
43125         (file_has_acl): Add support for newer AIX.
43126         * lib/set-mode-acl.c (qset_acl): Likewise.
43127         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
43128         Rainer Tammer <tammer@tammer.net>.
43129
43130 2009-09-26  Eric Blake  <ebb9@byu.net>
43131
43132         argp: fix compilation of getopt
43133         * lib/getopt.in.h (includes): Use different guard than glibc.
43134         Reported by Sergey Poznyakoff.
43135
43136         doc: mention more cygwin 1.7 status
43137         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
43138         bug.
43139         * doc/posix-functions/execl.texi (execl): Likewise.
43140         * doc/posix-functions/execle.texi (execle): Likewise.
43141         * doc/posix-functions/execlp.texi (execlp): Likewise.
43142         * doc/posix-functions/execv.texi (execv): Likewise.
43143         * doc/posix-functions/execve.texi (execve): Likewise.
43144         * doc/posix-functions/execvp.texi (execvp): Likewise.
43145         * doc/glibc-functions/canonicalize_file_name.texi
43146         (canonicalize_file_name): Cygwin 1.7 now provides this.
43147         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
43148         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
43149         on AT_SYMLINK_NOFOLLOW.
43150
43151 2009-09-24  Eric Blake  <ebb9@byu.net>
43152
43153         test-linkat: make test more robust
43154         * tests/test-linkat.c (main): Avoid collision with EEXIST.
43155
43156         getopt: fix inclusion guards for cygwin
43157         * modules/getopt-posix (Depends-on): Add include-next.
43158         (Makefile.am): Substitute more items in replacement header.
43159         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
43160         <getopt.h>.
43161         * lib/getopt.in.h (includes): Use split inclusion guard, and
43162         prefer <getopt.h> over include <unistd.h> when one is present.
43163         (option): Also override name of 'struct option'.
43164
43165         same-inode: revert prior change; it is not yet ready
43166         * NEWS: Undo mention of this change.
43167         * lib/same-inode.h (same-inode.h): Undo tri-state change.
43168         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
43169         * lib/cycle-check.c (cycle_check): Likewise.
43170         * lib/same.c (same_name): Likewise.
43171         * lib/at-func2.c (at_func2): Likewise.
43172
43173 2009-09-23  Eric Blake  <ebb9@byu.net>
43174
43175         linkat: new module
43176         * modules/linkat: New file.
43177         * lib/at-func2.c (at_func2): Likewise.
43178         * lib/linkat.c (linkat): Likewise.
43179         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
43180         * lib/openat-priv.h (at_func2): Add declaration.
43181         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
43182         * modules/unistd (Makefile.am): Substitute them.
43183         * lib/unistd.in.h (linkat): Declare it.
43184         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
43185         * doc/posix-functions/linkat.texi (linkat): Likewise.
43186         * doc/posix-functions/link.texi (link): Tweak wording.
43187         * tests/test-link.c (main): Move guts...
43188         * tests/test-link.h (test_link): ...into new file.
43189         * modules/linkat-tests: New test.
43190         * tests/test-linkat.c: Likewise.
43191         * modules/link-tests (Files): Ship new file.
43192         (Depends-on): Add stdbool.
43193
43194         dirname: add library-safe mdir_name
43195         * lib/dirname.h (mdir_name): New prototype.
43196         * lib/dirname.c (dir_name): Move guts...
43197         (mdir_name): ...to new function that avoids xalloc_die.
43198
43199         fchdir: another mingw fix
43200         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
43201         * lib/fchdir.c (get_name): New helper method; skips canonicalize
43202         on mingw (where it has not yet been ported), and make it optional
43203         elsewhere.
43204         (_gl_register_fd): Use it.
43205
43206         same-inode: make SAME_INODE tri-state, to port to mingw
43207         * NEWS: Mention this change.
43208         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
43209         st_ino always being 0.
43210         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
43211         * lib/cycle-check.c (cycle_check): Likewise.
43212         * lib/same.c (same_name): Likewise.
43213
43214         lstat: avoid mingw compilation error
43215         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
43216         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
43217         lstat ourselves.
43218         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
43219         was adequate.
43220         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
43221         the checks for lstat.
43222         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
43223
43224         link: fix test failure on Solaris 9
43225         * lib/link.c (rpl_link): Don't assume link will catch bogus
43226         trailing slash on source.
43227
43228         test-symlinkat: enhance test
43229         * tests/test-readlink.c (main): Move guts...
43230         * tests/test-readlink.h (test_readlink): ...into new file.
43231         * tests/test-symlink.c (main): Move guts...
43232         * tests/test-symlink.h (test_symlink): ...into new file.
43233         * tests/test-symlinkat.c (main): Use new files for further
43234         coverage.
43235         (do_symlink, do_readlink): New helper functions.
43236         * modules/symlink-tests (Files): Ship new file.
43237         (Depends-on): Add stdbool.
43238         * modules/readlink-tests (Files): Ship new file.
43239         (Depends-on): Add stdbool.
43240         * modules/symlinkat-tests (Files): Use new files.
43241
43242 2009-09-23  Eric Blake  <ebb9@byu.net>
43243
43244         readlink: document portability issue with symlink length
43245         * doc/posix-functions/lstat.texi (lstat): Mention that some file
43246         systems have bogus st_size on symlinks, and mention the
43247         areadlink-with-size module.
43248         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
43249         * doc/posix-functions/readlink.texi (readlink): Mention the
43250         areadlink module, and ERANGE failure.
43251         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
43252         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
43253
43254         readlink: fix Solaris 9 bug with trailing slash
43255         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
43256         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
43257         * doc/posix-functions/readlink.texi (readlink): Document this.
43258         * modules/readlink-tests: New test.
43259         * tests/test-readlink.c: Likewise.
43260
43261         readlink: fix cygwin 1.5.x bug with return type
43262         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
43263         * lib/unistd.in.h (readlink): Use ssize_t.
43264         * lib/readlink.c (readlink): Likewise.
43265         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
43266         * modules/unistd (Makefile.am): Substitute it.
43267         * lib/unistd.in.h (readlink): Declare replacement.
43268         * doc/posix-functions/readlink.texi (readlink): Document this.
43269
43270         symlink: use throughout gnulib
43271         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
43272         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
43273         symlink is not used.
43274         * modules/symlinkat (Depends-on): Add symlink.
43275         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
43276         * modules/canonicalize-tests (Depends-on): Likewise.
43277         * modules/lstat-tests (Depends-on): Likewise.
43278         * modules/openat-tests (Depends-on): Likewise.
43279         * modules/remove-tests (Depends-on): Likewise.
43280         * modules/rmdir-tests (Depends-on): Likewise.
43281         * modules/unlink-tests (Depends-on): Likewise.
43282         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
43283         * tests/test-canonicalize.c (symlink): Likewise.
43284         * tests/test-fstatat.c (symlink): Likewise.
43285         * tests/test-lstat.c (symlink): Likewise.
43286         * tests/test-remove.c (symlink): Likewise.
43287         * tests/test-rmdir.c (symlink): Likewise.
43288         * tests/test-unlink.c (symlink): Likewise.
43289         * tests/test-unlinkat.c (symlink): Likewise.
43290
43291         symlink: new module, for Solaris 9 bug
43292         * modules/symlink: New file.
43293         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
43294         * lib/symlink.c: Likewise.
43295         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
43296         * modules/unistd (Makefile.am): Substitute them.
43297         * lib/unistd.in.h (symlink): Declare replacement.
43298         * MODULES.html.sh (File system functions): Mention it.
43299         * doc/posix-functions/symlink.texi (symlink): Likewise.
43300         * modules/symlink-tests: New test.
43301         * tests/test-symlink.c: Likewise.
43302
43303 2009-09-23  Bruno Haible  <bruno@clisp.org>
43304
43305         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
43306         when needed.
43307         Test case: gnulib-tool --import --with-tests atexit inttypes.
43308         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
43309
43310 2009-09-23  Bruno Haible  <bruno@clisp.org>
43311
43312         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
43313         subcommand, not in a subshell.
43314
43315 2009-09-22  Eric Blake  <ebb9@byu.net>
43316
43317         unistd: sort replacement declarations
43318         * lib/unistd.in.h: Sort declarations.
43319
43320         open, openat: minor optimization
43321         * lib/open.c (open): If open succeeded, len is non-zero.
43322         * lib/openat.c (rpl_openat): Likewise.
43323
43324         link-follow: ensure correct result
43325         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
43326         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
43327         distinguish between possible failures.
43328
43329 2009-09-21  Eric Blake  <ebb9@byu.net>
43330
43331         fts: avoid compiler warning
43332         * lib/fts.c (dirent_inode_sort_may_be_useful)
43333         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
43334
43335 2009-09-19  Bruno Haible  <bruno@clisp.org>
43336
43337         * lib/progreloc.c (canonicalize_file_name): New declaration.
43338
43339 2009-09-19  Eric Blake  <ebb9@byu.net>
43340
43341         link: fix quoting
43342         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
43343
43344         openat: fix openat bugs on Solaris 9
43345         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
43346         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
43347         * modules/openat (Depends-on): Add open.
43348         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
43349         * modules/fcntl-h (Makefile.am): Substitute it.
43350         * lib/fcntl.in.h (openat): Declare replacement.
43351         * doc/posix-functions/openat.texi (openat): Document this.
43352
43353         openat: move fstatat and unlinkat into correct files
43354         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
43355         compiled.
43356         * lib/openat.c (fstatat, unlinkat): Move...
43357         * lib/fstatat.c (fstatat): ...into correct files.
43358         * lib/unlinkat.c (unlinkat): Likewise.
43359
43360         openat: fix unlinkat bugs on Solaris 9
43361         * lib/unlinkat.c (unlinkat): New file.
43362         * modules/openat (Depends-on): Add unlink.
43363         (Files): Distribute it.
43364         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
43365         trailing slash behavior is broken.
43366         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
43367         * modules/unistd (Makefile.am): Substitute it.
43368         * lib/unistd.in.h (unlinkat): Declare replacement.
43369         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
43370
43371         openat: fix fstatat bugs on Solaris 9
43372         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
43373         stat.
43374         * doc/posix-functions/fstatat.texi (fstatat): Document this.
43375
43376         test-unlinkat: enhance test, to expose Solaris 9 bug
43377         * tests/test-unlink.c (main): Factor guts...
43378         * tests/test-unlink.h (test_rmdir_func): ...into new file.
43379         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
43380         * tests/test-rmdir.c (main): Adjust caller.
43381         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
43382         (unlinker): New helper function.
43383         (rmdirat): Enhance check.
43384         * modules/rmdir-tests (Depends-on): Add stdbool.
43385         * modules/unlink-tests (Depends-on): Likewise.
43386         (Files): Add test-unlink.h.
43387         * modules/openat-tests (Files): Likewise.
43388         (Depends-on): Add unlinkdir.
43389
43390         test-fstatat: new test, to expose Solaris 9 bugs
43391         * tests/test-stat.c (main): Factor guts...
43392         * tests/test-stat.h (test_stat_func): ...into new file.
43393         * tests/test-lstat.c (main): Factor guts...
43394         * tests/test-lstat.h (test_lstat_func): ...into new file.
43395         * tests/test-fstatat.c: New file.
43396         * modules/stat-tests (Files): Add test-stat.h.
43397         * modules/lstat-tests (Files): Add test-lstat.h.
43398         (Depends-on): Add stdbool.
43399         * modules/openat-tests (Depends-on): Add pathmax.
43400         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
43401         (Makefile.am): Run new test.
43402
43403         remove: new module, for mingw and Solaris 9 bugs
43404         * modules/remove: New file.
43405         * lib/remove.c: Likewise.
43406         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
43407         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
43408         * modules/stdio (Makefile.am): Use them.
43409         * lib/stdio.in.h (remove): Declare replacement.
43410         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
43411         * doc/posix-functions/remove.texi (remove): Likewise.
43412         * modules/remove-tests: New test.
43413         * tests/test-remove.c: Likewise.
43414
43415         unlink: new module, for Solaris 9 bug
43416         * modules/unlink: New file.
43417         * lib/unlink.c: Likewise.
43418         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
43419         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
43420         * modules/unistd (Makefile.am): Use them.
43421         * lib/unistd.in.h (stat): Declare replacement.
43422         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
43423         * doc/posix-functions/unlink.texi (unlink): Likewise.
43424         * modules/unlink-tests: New test.
43425         * tests/test-unlink.c: Likewise.
43426
43427         lstat: fix Solaris 9 bug
43428         * lib/lstat.c (lstat): Also check for trailing slash on
43429         non-symlink, non-directories.  Use stat module to simplify logic.
43430         * doc/posix-functions/lstat.texi (lstat): Document it.
43431         * modules/lstat-tests (Depends-on): Add errno, same-inode.
43432         (configure.ac): Check for symlink.
43433         * tests/test-lstat.c (main): Add more tests.
43434
43435         stat: add as dependency to other modules
43436         * modules/chown (Depends-on): Add stat.
43437         * modules/euidaccess (Depends-on): Likewise.
43438         * modules/fchdir (Depends-on): Likewise.
43439         * modules/isdir (Depends-on): Likewise.
43440         * modules/link (Depends-on): Likewise.
43441         * modules/lstat (Depends-on): Likewise.
43442         * modules/mkdir-p (Depends-on): Likewise.
43443         * modules/modechange (Depends-on): Likewise.
43444         * modules/open (Depends-on): Likewise.
43445         * modules/readlink (Depends-on): Likewise.
43446         * modules/same (Depends-on): Likewise.
43447
43448         stat: fix Solaris 9 bug
43449         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
43450         slash.
43451         * lib/stat.c (rpl_stat): Work around it.
43452         * doc/posix-functions/stat.texi (stat): Update documentation.
43453
43454         stat: new module, for mingw bug
43455         * modules/stat: New file.
43456         * lib/stat.c: Likewise.
43457         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
43458         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
43459         * modules/sys_stat (Makefile.am): Use them.
43460         * lib/sys_stat.in.h (stat): Declare replacement.
43461         * lib/openat.c (fstatat): Deal with lstat and stat being function
43462         macros.
43463         * modules/openat (Depends-on): Add inline.
43464         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
43465         * doc/posix-functions/stat.texi (stat): Likewise.
43466         * modules/stat-tests: New test.
43467         * tests/test-stat.c: Likewise.
43468
43469 2009-09-19  Jim Meyering  <meyering@redhat.com>
43470
43471         syntax-check: detect unnecessary inclusion of canonicalize.h
43472         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
43473
43474 2009-09-19  Eric Blake  <ebb9@byu.net>
43475
43476         canonicalize-lgpl: adjust clients to use correct header
43477         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
43478         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
43479         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
43480         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
43481         * lib/progreloc.c (includes): Likewise.
43482
43483 2009-09-19  Jim Meyering  <meyering@redhat.com>
43484
43485         test-posixtm.c: correct a comment
43486         * tests/test-posixtm.c: Correct first-line comment.
43487         Spotted by Eric Blake.
43488
43489 2009-09-16  Jim Meyering  <meyering@redhat.com>
43490
43491         posixtm-tests: make T const-correct; add a test case
43492         * tests/test-posixtm.c (T): Declare const.
43493         Add a test for -(2^31+1).
43494         Remove useless can-succeed-only-in-2002 test.
43495
43496         posixtm-tests: adjust the sole failing test
43497         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
43498         expected output matches what mktime now produces.  Cross-checked via
43499         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
43500
43501         posixtm: move #ifdef'd tests into a new module
43502         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
43503         * tests/test-posixtm.c: ... this new file.
43504         * modules/posixtm-tests: New module.
43505
43506 2009-09-19  Eric Blake  <ebb9@byu.net>
43507
43508         openat: simplify use of at-func.c
43509         * lib/at-func.c (includes): Include prerequisites here, to
43510         simplify requirements on client files.
43511         * lib/openat-priv.h: Add double-inclusion guard.
43512         * lib/faccessat.c (includes): Simplify.
43513         * lib/fchmodat.c (includes): Likewise.
43514         * lib/fchownat.c (includes): Likewise.
43515         * lib/mkdirat.c (includes): Likewise.
43516         * lib/mkfifoat.c (includes): Likewise.
43517         * lib/symlinkat.c (includes): Likewise.
43518
43519         openat: allow return of fd 0
43520         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
43521         * modules/save-cwd (Depends-on): Replace fcntl-safer with
43522         unistd-safer.
43523         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
43524         <fcntl.h>; this module does not leak fds.
43525         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
43526         must be allowed to return 0, leaving openat_safer to add the
43527         safety.
43528         (openat_permissive): Avoid writing to just-opened fd 2 if
43529         restoring the current directory fails.
43530         * lib/openat-die.c (openat_restore_fail): Add comment.
43531         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
43532         (save_cwd): Guarantee safe fd, but without use of open_safer.
43533         * tests/test-openat.c: New test.
43534         * modules/openat-tests (Files, Makefile.am): Distribute and build
43535         new file.
43536
43537         relocatable-prog-wrapper: fix build
43538         * modules/relocatable-prog-wrapper (Files): Update name of
43539         canonicalize m4 file, broken on 2009-09-17.
43540         Reported by emad hajjar <aleppos@hotmail.com>.
43541
43542 2009-09-19  Bruno Haible  <bruno@clisp.org>
43543
43544         * lib/safe-alloc.h: Use the standard header with GPL copyright.
43545         * lib/safe-alloc.c: Likewise.
43546         Reported by Ian Beckwith <ianb@erislabs.net>.
43547
43548 2009-09-18  Bruno Haible  <bruno@clisp.org>
43549
43550         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
43551         Reported by <erobles@sensacd.com.mx>.
43552
43553 2009-09-17  Eric Blake  <ebb9@byu.net>
43554
43555         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
43556         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
43557         slashes when checking if last component is missing.
43558         * tests/test-canonicalize.c (main): Test this.
43559
43560         canonicalize, canonicalize-lgpl: honor // if distinct from /
43561         * modules/canonicalize (Files): Add double-slash-root.m4.
43562         * modules/canonicalize-lgpl (Files): Likewise.
43563         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
43564         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
43565         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
43566         fallback definition.
43567         (canonicalize_filename_mode): Use it to protect //.
43568         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
43569         (__realpath): Likewise.
43570         * tests/test-canonicalize.c (main): Test this.
43571         * tests/test-canonicalize-lgpl.c (main): Likewise.
43572         * modules/canonicalize-tests (Depends-on): Add same-inode.
43573         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
43574
43575         canonicalize-lgpl: fix glibc bug with trailing slash
43576         * m4/canonicalize-lgpl.m4: Move contents...
43577         * m4/canonicalize.m4: ...here.
43578         (gl_CANONICALIZE_LGPL): Factor realpath check...
43579         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
43580         glibc 2.3.5 bug, fixed 2005-04-27.
43581         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
43582         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
43583         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
43584         * modules/canonicalize-lgpl (Files): Manage file rename.
43585         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
43586         * modules/stdlib (Makefile.am): Substitute witness.
43587         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
43588         is needed.
43589         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
43590         replacement is required.
43591         * lib/canonicalize.c (canonicalize_file_name): Likewise.
43592         * doc/glibc-functions/canonicalize_file_name.texi
43593         (canonicalize_file_name): Document this.
43594         * doc/posix-functions/realpath.texi (realpath): Likewise.
43595
43596         canonicalize-lgpl: reject non-directory with trailing slash
43597         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
43598         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
43599         catches failures in glibc 2.3.5.
43600         * tests/test-canonicalize.c (main): Likewise.
43601
43602         canonicalize-lgpl: use native realpath if it works
43603         * lib/canonicalize-lgpl.c (realpath): Guard with
43604         FUNC_REALPATH_WORKS.
43605         * lib/stdlib.in.h (realpath): Make declaration optional based on
43606         HAVE_REALPATH.
43607         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
43608         native realpath works.
43609         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
43610         * modules/stdlib (Makefile.am): Substitute witness.
43611
43612         canonicalize, canonicalize-lgpl: use <stdlib.h>
43613         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
43614         (Include): Mention <stdlib.h>.
43615         (configure.ac): Mention functions we provide.
43616         * modules/canonicalize (configure.ac): Likewise.
43617         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
43618         realpath if canonicalize_file_name is missing.
43619         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
43620         * modules/stdlib (Makefile.am): Substitute witnesses.
43621         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
43622         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
43623         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
43624         * NEWS: Document this.
43625         * doc/glibc-functions/canonicalize_file_name.texi
43626         (canonicalize_file_name): Likewise.
43627         * doc/posix-functions/realpath.texi (realpath): Likewise.
43628         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
43629
43630         test-canonicalize: consolidate into single C program
43631         * tests/test-canonicalize.sh: Delete; move setup into...
43632         * tests/test-canonicalize.c (main): ...the program, making it
43633         easier to run in debugger.  Add some tests.
43634         * modules/canonicalize-tests (Files): Remove unused file.
43635         (Depends-on): Add progname.
43636         (configure.ac, Makefile.am): Simplify.
43637
43638         test-canonicalize-lgpl: consolidate into single C program
43639         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
43640         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
43641         easier to run in debugger.  Add some tests.
43642         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
43643         (configure.ac, Makefile.am): Simplify.
43644
43645         canonicalize: avoid resolvepath
43646         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
43647         unnecessary checks.
43648         * lib/canonicalize.c (includes): Simplify.
43649         (canonicalize_file_name): Drop resolvepath implementation.
43650         * modules/canonicalize (Depends-on): Drop filenamecat.
43651
43652         canonicalize: don't lose errno
43653         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
43654         over calls to free.
43655
43656         canonicalize: simplify errno handling
43657         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
43658         assignment.
43659
43660         canonicalize, canonicalize-lgpl: update module dependencies
43661         * modules/canonicalize (Depends-on): Add extensions, lstat,
43662         pathmax, stdlib.
43663         (Files): Drop pathmax.h.
43664         (configure.ac): Adjust macro name.
43665         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
43666         lstat, stdlib, sys_stat.
43667         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
43668         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
43669         extensions.
43670         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
43671         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
43672         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
43673         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
43674         declaration, if available.
43675         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
43676         we can rely on the readlink module.
43677         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
43678         (includes): Use <unistd.h> unconditionally.
43679
43680 2009-09-17  Eric Blake  <ebb9@byu.net>
43681
43682         maint: make Include sections of modules consistent
43683         * modules/alloca: Use only header name; no need to list #include.
43684         * modules/alloca-opt: Likewise.
43685         * modules/arpa_inet: Likewise.
43686         * modules/canon-host: Likewise.
43687         * modules/configmake: Likewise.
43688         * modules/dirent: Likewise.
43689         * modules/eealloc: Likewise.
43690         * modules/environ: Likewise.
43691         * modules/fchdir: Likewise.
43692         * modules/fcntl: Likewise.
43693         * modules/fcntl-h: Likewise.
43694         * modules/gethrxtime: Likewise.
43695         * modules/gettime: Likewise.
43696         * modules/ignore-value: Likewise.
43697         * modules/inet_ntop: Likewise.
43698         * modules/inet_pton: Likewise.
43699         * modules/inttypes: Likewise.
43700         * modules/isnand-nolibm: Likewise.
43701         * modules/isnanf-nolibm: Likewise.
43702         * modules/mbchar: Likewise.
43703         * modules/mbfile: Likewise.
43704         * modules/mbiter: Likewise.
43705         * modules/mbuiter: Likewise.
43706         * modules/netdb: Likewise.
43707         * modules/netinet_in: Likewise.
43708         * modules/nproc: Likewise.
43709         * modules/pagealign_alloc: Likewise.
43710         * modules/poll: Likewise.
43711         * modules/printf-frexp: Likewise.
43712         * modules/pthread: Likewise.
43713         * modules/putenv: Likewise.
43714         * modules/random_r: Likewise.
43715         * modules/relocatable-prog: Likewise.
43716         * modules/search: Likewise.
43717         * modules/select: Likewise.
43718         * modules/selinux-h: Likewise.
43719         * modules/settime: Likewise.
43720         * modules/signal: Likewise.
43721         * modules/size_max: Likewise.
43722         * modules/socklen: Likewise.
43723         * modules/ssize_t: Likewise.
43724         * modules/stdarg: Likewise.
43725         * modules/stdbool: Likewise.
43726         * modules/stddef: Likewise.
43727         * modules/stdint: Likewise.
43728         * modules/stdio: Likewise.
43729         * modules/stdlib: Likewise.
43730         * modules/string: Likewise.
43731         * modules/strings: Likewise.
43732         * modules/sys_file: Likewise.
43733         * modules/sys_ioctl: Likewise.
43734         * modules/sys_select: Likewise.
43735         * modules/sys_socket: Likewise.
43736         * modules/sys_stat: Likewise.
43737         * modules/sys_time: Likewise.
43738         * modules/sys_times: Likewise.
43739         * modules/sys_utsname: Likewise.
43740         * modules/sys_wait: Likewise.
43741         * modules/sysexits: Likewise.
43742         * modules/time: Likewise.
43743         * modules/times: Likewise.
43744         * modules/tmpfile: Likewise.
43745         * modules/trim: Likewise.
43746         * modules/unistd: Likewise.
43747         * modules/wchar: Likewise.
43748         * modules/wctype: Likewise.
43749
43750 2009-09-17  Bruno Haible  <bruno@clisp.org>
43751
43752         Make getdate.y compile on QNX and NetBSD 5 / i386.
43753         * m4/getdate.m4 (gl_GETDATE): Conditionally define
43754         TIME_T_FITS_IN_LONG_INT.
43755         * lib/getdate.y (long_time_t): New type.
43756         (relative_time): Change type of 'seconds' field to long_time_t.
43757         (get_date): Update types of local variables. Check against overflow
43758         during conversion from long_time_t to time_t.
43759         Reported by Matt Kraai <kraai@ftbfs.org>
43760         and Hasso Tepper <hasso@netbsd.org>.
43761
43762 2009-09-17  Bruno Haible  <bruno@clisp.org>
43763
43764         * modules/COPYING: Update copyright years.
43765         * modules/README: Likeiwse.
43766         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
43767         Reported by Ian Beckwith <ianb@erislabs.net>.
43768
43769 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
43770
43771         * users.txt: Update references for gnuit package.
43772
43773 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
43774
43775         * m4/getdelim.m4: Fix typo in copyright line.
43776
43777 2009-09-17  Bruno Haible  <bruno@clisp.org>
43778
43779         * lib/atoll.c: Use the standard header with GPL copyright.
43780         * lib/argz.in.h: Likewise.
43781         * lib/glob.c: Likewise.
43782         * lib/glob-libc.h: Likewise.
43783         * lib/random_r.c: Likewise.
43784         * lib/siglist.h: Likewise.
43785         * lib/strsignal.c: Likewise.
43786         Reported by Ian Beckwith <ianb@erislabs.net>.
43787
43788 2009-09-17  Eric Blake  <ebb9@byu.net>
43789
43790         rmdir: ensure correct dependency order
43791         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
43792
43793 2009-09-17  Bruno Haible  <bruno@clisp.org>
43794
43795         Disable assertion that fails on NetBSD 5 / i386.
43796         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
43797         Reported by Sam Steingold <sds@gnu.org>
43798         and Hasso Tepper <hasso@netbsd.org>.
43799
43800 2009-09-16  Eric Blake  <ebb9@byu.net>
43801
43802         unlinkdir: port to mingw
43803         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
43804         on which no one can unlink a directory.
43805
43806         stdlib: sort witness names
43807         * modules/stdlib (Makefile.am): Sort replacements.
43808         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
43809         * lib/stdlib.in.h: Likewise.
43810
43811         parse-duration-tests: avoid link failure
43812         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
43813         LIBINTL.
43814         Reported by Tom G. Christensen.
43815
43816         openat-tests: ensure unlinkat behaves like rmdir
43817         * tests/test-rmdir.c (main): Factor guts...
43818         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
43819         * modules/rmdir-tests (Files): Ship new file.
43820         * modules/openat-tests: New test.
43821         * tests/test-unlinkat.c: Likewise.
43822
43823         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
43824         * modules/rmdir-errno (Status, Notice): Now obsolete.
43825
43826         rmdir: work around cygwin 1.5.x and mingw bugs
43827         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
43828         * lib/rmdir.c (rmdir): Work around it.
43829         * modules/rmdir (Status, Notice): No longer obsolete.
43830         (Files): Add dos.m4.
43831         (Depends-on): Add unistd.
43832         (configure.ac): Set witnesses.
43833         (License): Relax to LGPLv2+.
43834         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
43835         * modules/unistd (Makefile.am): Substitute witnesses.
43836         * lib/unistd.in.h (rmdir): Declare replacement.
43837         * doc/posix-functions/rmdir.texi (rmdir): Document this.
43838         * modules/rmdir-tests: New tests.
43839         * tests/test-rmdir.c: Likewise.
43840
43841 2009-09-15  Eric Blake  <ebb9@byu.net>
43842
43843         fchdir: improve use of replacement functions
43844         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
43845         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
43846         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
43847         REPLACE_CLOSEDIR.
43848         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
43849         * modules/sys_stat (Makefile.am): Substitute correct witness.
43850         * modules/dirent (Makefile.am): Likewise.
43851         * modules/unistd (Makefile.am): Likewise.
43852         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
43853         * lib/unistd.in.h (dup): Likewise.
43854         * lib/sys_stat.in.h (fstat): Likewise.
43855
43856         maint: ignore gnulib-tool temp files
43857         * .gitignore: Ignore files created during gnulib-tool --test.
43858
43859 2009-09-13  Jim Meyering  <meyering@redhat.com>
43860
43861         posixtm: don't reject a time that specify "60" as the number of seconds
43862         * lib/posixtm.c (posixtime): The code to reject invalid dates
43863         would also reject a time specified with the .60 suffix.
43864         But POSIX allows that, in order to accommodate leap seconds.
43865         So don't reject it.
43866         (main): Adjust tests accordingly.
43867         * modules/posixtm (Depends-on): Add stpcpy.
43868
43869 2009-09-11  Jim Meyering  <meyering@redhat.com>
43870
43871         announce-gen: include [$release_type] in emitted Subject:
43872         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
43873         e.g., [stable] in the emitted Subject: line.
43874
43875 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43876
43877         Remove obsolete macros from several modules.
43878         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
43879         obsolete Autoconf macros with their modern counterparts.
43880         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
43881         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
43882         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
43883         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
43884         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
43885         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
43886         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
43887         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
43888         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
43889         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
43890         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
43891         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
43892         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
43893         * m4/sockets.m4 (gl_SOCKETS): Likewise.
43894         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
43895         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
43896         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
43897         * m4/time_r.m4 (gl_TIME_R): Likewise.
43898         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
43899         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
43900         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
43901
43902         Fix copyright header in build-aux scripts.
43903         * build-aux/git-version-gen: Fix copyright header to match GPLv3
43904         recommendation.
43905         * build-aux/ncftpput-ftp: Likewise.
43906         * build-aux/update-copyright: Likewise.
43907
43908 2009-09-09  Eric Blake  <ebb9@byu.net>
43909
43910         test-link: allow Linux choice of errno
43911         * tests/test-link.c (main): Relax test for alternate error.
43912
43913         strndup: fix improper m4 caching
43914         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
43915         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
43916         (gl_PREREQ_STRNDUP): Delete.
43917         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
43918         * modules/string (Makefile.am): Substitute it.
43919         * lib/string.in.h (strndup): Modernize prototype.
43920
43921         getcwd: port to mingw
43922         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
43923         different from the POSIX assumptions made throughout the getcwd
43924         module; fortunately, the mingw getcwd does not need replacement.
43925         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
43926         * modules/getcwd-tests: New test.
43927         * tests/test-getcwd.c: Likewise.
43928
43929         link: fix platform bugs
43930         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
43931         * lib/link.c (link): Work around them.  Fix related mingw bug.
43932         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
43933         * modules/unistd (Makefile.am): Substitute it.
43934         * lib/unistd.in.h (link): Declare replacement.
43935         * doc/posix-functions/link.texi (link): Document this.
43936         * modules/link (Depends-on): Add strdup-posix, sys_stat.
43937
43938         test-link: consolidate into single C program, test more cases
43939         * tests/test-link.sh: Delete.
43940         * tests/test-link.c: Test more error conditions.  Exposes bugs on
43941         at least Cygwin and Solaris.
43942         * modules/link-tests (Files): Remove unused file.
43943         (Depends-on): Add errno, sys_stat.
43944         (Makefile.am): Simplify.
43945
43946 2009-09-08  Bruno Haible  <bruno@clisp.org>
43947
43948         Work around towlower, towupper bug on mingw.
43949         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
43950         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
43951         * doc/posix-functions/towlower.texi: Mention the mingw bug.
43952         * doc/posix-functions/towupper.texi: Likewise.
43953         Reported by Eric Blake.
43954
43955 2009-09-08  Jim Meyering  <meyering@redhat.com>
43956
43957         build: don't try to run autoheader if we don't use it
43958         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
43959         is not used in configure.ac.
43960
43961 2009-09-08  Eric Blake  <ebb9@byu.net>
43962
43963         euidaccess: fix compilation error
43964         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
43965
43966         rawmemchr: relax license
43967         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
43968         okay.
43969         Reported by Jim Meyering.
43970
43971         mkfifoat: new module
43972         * modules/mkfifoat: New file.
43973         * lib/mkfifoat.c: Likewise.
43974         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
43975         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
43976         * modules/sys_stat (Makefile.am): Use them.
43977         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
43978         * MODULES.html.sh (File system functions): Mention module.
43979         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
43980         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
43981         * modules/mkfifoat-tests: New test.
43982         * tests/test-mkfifoat.c: Likewise.
43983
43984         strchrnul: relax license
43985         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
43986         okay.
43987         Reported by Jim Meyering.
43988
43989 2009-09-08  Eric Blake  <ebb9@byu.net>
43990
43991         fstatat: fix compilation on Solaris
43992         * lib/fstatat.c (includes): Add fcntl.h.
43993         Reported by Pádraig Brady.
43994
43995 2009-09-07  Eric Blake  <ebb9@byu.net>
43996
43997         rename: modernize replacement
43998         * modules/rename (Depends-on): Add stdio.
43999         (configure.ac): Declare witness.
44000         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
44001         stdio take care of replacement.
44002         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
44003         * modules/stdio (Makefile.am): Substitute them.
44004         * lib/stdio.in.h (rename): Declare replacement.
44005         * lib/rename.c (includes): Allow cross-compilation to non-windows
44006         machines.
44007         * doc/posix-functions/rename.texi (rename): Improve
44008         documentation.
44009
44010         stdio: sort witness names
44011         * modules/stdio (Makefile.am): Sort replacements.
44012         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
44013         * lib/stdio.in.h: Likewise.
44014
44015         getcwd: minor cleanups
44016         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
44017         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
44018
44019         openat: provide more convenience names
44020         * modules/faccessat (configure.ac): Add C witness.
44021         * lib/unistd.in.h (readlinkat): Fix typo.
44022         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
44023         convenience wrappers.
44024         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
44025         wrappers in syntax checks.
44026
44027 2009-09-06  Eric Blake  <ebb9@byu.net>
44028
44029         doc: fix comments in recent patches
44030         * lib/faccessat.c: Mention correct function.
44031         * lib/fchmodat.c: Likewise.
44032         * lib/fchownat.c: Likewise.
44033         * lib/symlinkat.c: Likewise.
44034         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
44035         constants.
44036
44037         faccessat, symlinkat: continue cleanup of previous patch
44038         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
44039         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
44040         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
44041         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
44042         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
44043         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
44044         set.
44045
44046 2009-09-06  Bruno Haible  <bruno@clisp.org>
44047
44048         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
44049         (fstatat): Declare if GNULIB_FSTATAT is set.
44050         (mkdirat): Declare if GNULIB_MKDIRAT is set.
44051         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
44052         (unlinkat): Declare if GNULIB_UNLINKAT is set.
44053         * modules/fcntl-h (Files): Remove m4/openat.m4.
44054         * modules/sys_stat (Files): Remove m4/openat.m4.
44055         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
44056         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
44057         * modules/unistd (Files): Remove m4/openat.m4.
44058         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
44059         GNULIB_OPENAT.
44060         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
44061         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
44062         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
44063         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
44064         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
44065         gl_OPENAT_DEFAULTS.
44066         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
44067         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
44068         Don't require gl_OPENAT_DEFAULTS.
44069         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
44070         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
44071         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
44072         (gl_OPENAT_DEFAULTS): Remove macro.
44073
44074 2009-09-06  Bruno Haible  <bruno@clisp.org>
44075
44076         * modules/openat (configure.ac): Remove unneeded witness.
44077
44078 2009-09-06  Bruno Haible  <bruno@clisp.org>
44079
44080         Set errno to ENOSYS when a function is entirely unsupported.
44081         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
44082         EOPNOTSUPP.
44083         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
44084         * modules/chown (Depends-on): Remove errno.
44085
44086 2009-09-06  Bruno Haible  <bruno@clisp.org>
44087
44088         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
44089
44090 2009-09-06  Bruno Haible  <bruno@clisp.org>
44091
44092         * lib/sys_stat.in.h: Fix preprocessor command indentation.
44093
44094 2009-09-06  Ben Pfaff  <blp@gnu.org>
44095             Bruno Haible  <bruno@clisp.org>
44096
44097         Work around a glibc bug in strtok_r.
44098         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
44099         Undefine if UNDEFINE_STRTOK_R is set.
44100         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
44101         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
44102         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
44103         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
44104         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
44105         UNDEFINE_STRTOK_R.
44106         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
44107
44108 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
44109
44110         exclude: minor fix
44111         * lib/exclude.c: Include wctype.h
44112
44113 2009-09-06  Akim Demaille  <demaille@gostai.com>
44114
44115         bootstrap: improve error message
44116         * build-aux/bootstrap (find_tool): Upon failure, report the list
44117         of candidates.
44118         Honor the initial value of the envvar.
44119
44120 2009-09-05  Eric Blake  <ebb9@byu.net>
44121
44122         symlinkat: new module
44123         * modules/symlinkat: New file.
44124         * lib/symlinkat.c: Likewise.
44125         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
44126         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
44127         * modules/unistd (Makefile.am): Use them.
44128         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
44129         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
44130         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
44131         * MODULES.html.sh (File system functions): Mention module.
44132         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
44133         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
44134         * modules/symlinkat-tests: New test.
44135         * tests/test-symlinkat.c: Likewise.
44136
44137         test-openat-safer: add more checks
44138         * tests/test-openat-safer.c (main): Check more code paths.
44139
44140 2009-09-05  Jim Meyering  <meyering@redhat.com>
44141
44142         syntax-check: detect unnecessary inclusion of openat.h
44143         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
44144
44145 2009-09-05  Bruno Haible  <bruno@clisp.org>
44146
44147         Support towlower, towupper.
44148         * doc/posix-functions/towlower.texi: Mention module wctype.
44149         * doc/posix-functions/towupper.texi: Likewise.
44150         * lib/wctype.in.h (towlower, towupper): New functions.
44151         * tests/test-wctype.c: Include stdio.h, stdlib.h.
44152         (ASSERT): New macro.
44153         (e): New variable.
44154         (main): Test also towlower, towupper. Test WEOF argument.
44155         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
44156
44157 2009-09-05  Bruno Haible  <bruno@clisp.org>
44158
44159         Fix conversion behaviour when the input is invalid.
44160         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
44161         mark occurring in first pass of indirect conversion.
44162         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
44163         input.
44164         Found by clang's static analyzer.
44165
44166 2009-09-05  Bruno Haible  <bruno@clisp.org>
44167
44168         * tests/test-striconveh.c (main): Test indirect conversion on platforms
44169         where direct conversion is possible.
44170
44171 2009-09-04  Eric Blake  <ebb9@byu.net>
44172
44173         openat: fail with ENOENT on empty name
44174         * lib/openat-proc.c (openat_proc_name): Special-case the empty
44175         buffer.
44176
44177         link-follow: fix logic bug in prior patch
44178         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
44179         reversed sense of yes and no in prior patch.  Avoid confusing
44180         compilation failure with desired semantics.
44181
44182         link-follow: accommodate mingw and cross-compilation
44183         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
44184         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
44185         cross-compilation results to -1, to make linkat easier to
44186         implement when cross-compiling.  Trivially support mingw.
44187         * modules/link-follow (configure.ac): Call new name.
44188         * NEWS: Mention this.
44189
44190 2009-09-03  Eric Blake  <ebb9@byu.net>
44191
44192         faccessat: compile replacement
44193         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
44194         needed.
44195
44196         fts: fix compilation error
44197         * lib/fts.c (includes): Re-add "openat.h", for
44198         openat_needs_fchdir.
44199
44200         faccessat: new module
44201         * modules/faccessat: New file.
44202         * lib/faccessat.c: Likewise.
44203         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
44204         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
44205         * modules/unistd (Makefile.am): Use it.
44206         * lib/unistd.in.h (faccessat): Declare it.
44207         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
44208         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
44209         * MODULES.html.sh (File system functions): Mention it.
44210         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
44211         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
44212
44213         euidaccess: prefer POSIX over non-standard implementation
44214         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
44215         * lib/euidaccess.c (euidaccess): Use it if available.
44216
44217         openat: make template easier to use
44218         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
44219         AT_FUNC_F2 to be undefined.
44220         (VALIDATE_FLAG): New macro; use it to reject bad flags.
44221         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
44222         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
44223         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
44224         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
44225         Likewise.
44226         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
44227         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
44228         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
44229         Likewise.
44230
44231         openat: declare in POSIX headers
44232         * NEWS: Mention this.
44233         * modules/openat (configure.ac): Declare witnesses.
44234         (Depends-on): Add fcntl-h, sys_stat, unistd.
44235         (Include): Mention correct headers.
44236         * modules/fcntl-h (Depends-on): Add link-warning.
44237         (Files): Add openat.m4.
44238         (Makefile.am): Substitute witnesses.
44239         * modules/sys_stat (Files, Makefile.am): Likewise.
44240         * modules/unistd (Files, Makefile.am): Likewise.
44241         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
44242         (gl_OPENAT_DEFAULTS): New macro.
44243         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
44244         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
44245         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
44246         (SYS_STAT_H): Remove unused variable.
44247         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
44248         * lib/fcntl--.h (includes): Remove unneeded header.
44249         * lib/openat-safer.c (includes): Likewise.
44250         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
44251         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
44252         appropriate headers.
44253         (__OPENAT_PREFIX): Delete.
44254         * lib/fcntl.in.h (openat): Provide declaration.
44255         (AT_FDCWD): Fix Solaris bug.
44256         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
44257         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
44258         * lib/fchmodat.c (includes):  Adjust to find declaration.
44259         * lib/fchownat.c (includes): Likewise.
44260         * lib/mkdirat.c (includes): Likewise.
44261         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
44262         still visible.
44263
44264 2009-09-02  Eric Blake  <ebb9@byu.net>
44265
44266         errno: use consistently
44267         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
44268         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
44269         * lib/canonicalize.c (ELOOP): Likewise.
44270         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
44271         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
44272         * lib/lchown.c (EOPNOTSUPP): Likewise.
44273         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
44274         * lib/savewd.c (ESTALE): Likewise.
44275         * lib/settime.c (ENOSYS): Likewise.
44276         * lib/utimens.c (ENOSYS): Likewise.
44277         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
44278         * lib/chdir-safer.c (ELOOP): Likewise.
44279         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
44280         * modules/c-stack (Depends-on): Add errno.
44281         * modules/canonicalize (Depends-on): Likewise.
44282         * modules/chdir-safer (Depends-on): Likewise.
44283         * modules/fdopendir (Depends-on): Likewise.
44284         * modules/inet_ntop (Depends-on): Likewise.
44285         * modules/inet_pton (Depends-on): Likewise.
44286         * modules/lchown (Depends-on): Likewise.
44287         * modules/openat (Depends-on): Likewise.
44288         * modules/savewd (Depends-on): Likewise.
44289         * modules/settime (Depends-on): Likewise.
44290         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
44291
44292         fts: avoid leaking fds
44293         * modules/fts (Depends-on): Add cloexec.
44294         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
44295         flag.
44296
44297         fts: make directory fds more robust
44298         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
44299         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
44300
44301         backupfile, chdir-long, fts, savedir: make safer
44302         * lib/backupfile.c (includes): Use "dirent--.h", since
44303         numbered_backup can write to stderr during readdir.
44304         * lib/savedir.c (includes): Likewise.
44305         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
44306         emulation can write to stderr on failure.
44307         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
44308         * lib/getcwd.c: Document why opendir_safer is unused.
44309         * lib/glob.c: Likewise.
44310         * lib/scandir.c: Likewise.
44311         * lib/openat-proc.c: Likewise, for open_safer.
44312         * modules/backupfile (Depends-on): Add dirent-safer.
44313         * modules/savedir (Depends-on): Likewise.
44314         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
44315         * modules/chdir-long (Depends-on): Add openat-safer.
44316
44317         openat-safer: new module
44318         * modules/openat-safer: New file.
44319         * lib/openat-safer.c: Likewise.
44320         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
44321         * lib/fcntl-safer.h (openat_safer): Declare.
44322         * lib/fcntl--.h (openat): Override.
44323         * MODULES.html.sh (File descriptor based I/O): Mention it.
44324         * lib/openat.h: Add double-inclusion guards.
44325         * lib/openat.c (includes): Only include "fcntl-safer.h", not
44326         "fcntl--.h", so we can implement openat.
44327         * modules/openat-safer-tests: New test.
44328         * tests/test-openat-safer.c: New file.
44329
44330         dirent-safer: new module
44331         * modules/dirent-safer: New file.
44332         * lib/dirent--.h: Likewise.
44333         * lib/dirent-safer.h: Likewise.
44334         * lib/opendir-safer.c: Likewise.
44335         * m4/dirent-safer.m4: Likewise.
44336         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
44337         * modules/dirent-safer-tests: New test.
44338         * tests/test-dirent-safer.c: New file.
44339         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
44340
44341         fdopendir: optimize on mingw
44342         * lib/unistd.in.h (_gl_directory_name): New prototype.
44343         * lib/fchdir.c (_gl_directory_name): Implement it.
44344         (fchdir): Use it to simplify implementation.
44345         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
44346         fchdir, when available, to avoid calling [f]chdir().
44347
44348         fdopendir: split into its own module
44349         * lib/openat.c (fdopendir): Move...
44350         * lib/fdopendir.c: ...into new file.
44351         * modules/fdopendir: New module.
44352         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
44353         * modules/openat (Depends-on): Add fdopendir.
44354         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
44355         fdopendir here.
44356         * modules/savedir (Depends-on): Only need fdopendir, not full
44357         openat.
44358         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
44359         * lib/openat.h (fdopendir): Drop prototype.
44360         * lib/dirent.in.h (fdopendir): Provide prototype.
44361         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
44362         * modules/dirent (Makefile.am): Substitute them.
44363         * MODULES.html.sh (File system functions): Mention it.
44364         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
44365         * modules/fdopendir-tests: New file.
44366         * tests/test-fdopendir.c: Likewise.
44367
44368         fchdir: use more consistent macro convention
44369         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
44370         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
44371         REPLACE_FCHDIR, rather than relying on config.h macros.
44372         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
44373         inside a single make-time REPLACE_FCHDIR block, rather than using
44374         the config.h FCHDIR_REPLACEMENT.
44375         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
44376         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
44377         Manage fstat replacement.
44378         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
44379         REPLACE_FCHDIR.
44380         * modules/sys_stat (Files): Add m4/unistd_h.m4.
44381         (Makefile.am): Substitute REPLACE_FCHDIR.
44382         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
44383         FCHDIR_REPLACEMENT.
44384         * lib/dup-safer.c (dup_safer): Likewise.
44385         * lib/dup2.c (rpl_dup2): Likewise.
44386         * lib/dup3.c (rpl_dup3): Likewise.
44387         * lib/open.c (rpl_open): Likewise.
44388
44389         fchdir: simplify error handling, and support dup3
44390         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
44391         stdbool, malloc-posix, realloc-posix.
44392         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
44393         (ensure_dirs_slot): Return false on allocation failure.
44394         (rpl_dup2): Delete.
44395         (_gl_register_dup): New function.
44396         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
44397         (_gl_register_fd): Close fd on allocation failure.
44398         * lib/fcntl.in.h (_gl_register_fd): Update signature.
44399         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
44400         prototype.
44401         (rpl_dup2_fchdir): Delete prototype.
44402         * lib/open.c (open): Update caller.
44403         * lib/dup2.c (dup2): Track fchdir metadata.
44404         * lib/dup3.c (dup3): Likewise.
44405         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
44406         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
44407
44408 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44409
44410         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
44411         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
44412         don't pass arguments to AC_OUTPUT.
44413
44414 2009-09-02  Bruno Haible  <bruno@clisp.org>
44415
44416         * modules/mkdtemp (License): Relicense under LGPLv2+.
44417         Reported by Paolo Bonzini.
44418
44419 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44420
44421         Replace uses of obsolete autoconf macros in Jim's modules.
44422         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
44423         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
44424         can evoke a warning from autoconf when run with -Wobsolete
44425         enabled.  They were declared obsolete for good reasons (see
44426         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
44427         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
44428         should not continue using the deprecated macros.
44429         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
44430         obsolete Autoconf macros with modern counterparts.
44431         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
44432         * m4/dos.m4 (gl_AC_DOS): Likewise.
44433         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
44434         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
44435         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
44436         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
44437         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
44438         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
44439         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
44440         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
44441         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
44442         Likewise.
44443         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
44444         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
44445         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
44446         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
44447         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
44448         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
44449
44450 2009-09-01  Eric Blake  <ebb9@byu.net>
44451
44452         fchdir: fix off-by-one bug in previous patch
44453         * lib/fchdir.c (rpl_fstat): Use correct bounds.
44454         (_gl_unregister_fd): Delete useless if.
44455
44456 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
44457
44458         maint.mk: sort the list of syntax-check rules
44459         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
44460         easier to get a sense of progress when the rules are run sequentially
44461         and take a long time.
44462
44463 2009-09-01  Simon Josefsson  <simon@josefsson.org>
44464
44465         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
44466         * modules/netinet_in: Likewise.
44467         * modules/sys_file: Likewise.
44468         * modules/sys_ioctl: Likewise.
44469         * modules/sys_select: Likewise.
44470         * modules/sys_socket: Likewise.
44471         * modules/sys_stat: Likewise.
44472         * modules/sys_time: Likewise.
44473         * modules/sys_times: Likewise.
44474         * modules/sys_utsname: Likewise.
44475         * modules/sys_wait: Likewise.
44476
44477 2009-09-01  Jim Meyering  <meyering@redhat.com>
44478
44479         fts: help ensure that return values are not ignored
44480         * lib/fts_.h (__GNUC_PREREQ): Define.
44481         (__attribute_warn_unused_result__): Define.
44482         (fts_children, fts_close, fts_open, fts_read): Declare with
44483         __attribute_warn_unused_result__.
44484
44485         fts: fts_close now fails also when closing a dir file descriptor fails
44486         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
44487         and propagate to caller, along with errno.
44488
44489         announce-gen: correct formatting in --help output
44490         * build-aux/announce-gen (usage): Move the one-line description in
44491         --help output "up", to where it belongs, just after Usage:.
44492
44493 2009-08-31  Eric Blake  <ebb9@byu.net>
44494
44495         fchdir: port to mingw
44496         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
44497         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
44498         opened, then use a substitute.
44499         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
44500         replacement.
44501         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
44502         (_gl_register_fd): No need to check stat if open already filters
44503         all directories.
44504         (fchdir): Fix error condition to match POSIX.
44505         * modules/fchdir (Depends-on): Add sys_stat.
44506         * doc/posix-functions/open.texi (open): Document the limitation.
44507         * modules/fchdir-tests: New file.
44508         * tests/test-fchdir.c: Likewise.
44509
44510         canonicalize: allow cross-testing from cygwin to mingw
44511         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
44512         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
44513         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
44514         Likewise.
44515         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
44516         target does not support symlinks.
44517         * tests/test-canonicalize-lgpl.sh: Likewise.
44518
44519         chown: avoid compilation warning on mingw
44520         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
44521         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
44522         mingw.
44523         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
44524         * modules/chown (Depends-on): Add errno.
44525
44526 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
44527
44528         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
44529         command.
44530
44531 2009-08-31  Jim Meyering  <meyering@redhat.com>
44532
44533         canonicalize: remove useless initialization
44534         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
44535         initialization of local, "end".
44536
44537 2009-08-30  Bruno Haible  <bruno@clisp.org>
44538
44539         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
44540         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
44541         ENOSYS.
44542
44543 2009-08-30  Bruno Haible  <bruno@clisp.org>
44544
44545         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
44546         /usr/xpg4/bin/tr when it exists.
44547         * tests/test-pipe-filter-gi1.sh: Likewise.
44548
44549 2009-08-30  Bruno Haible  <bruno@clisp.org>
44550
44551         Work around deficient /usr/bin/id program on Solaris.
44552         * tests/test-file-has-acl.sh (ID): New variable.
44553         * tests/test-set-mode-acl.sh (ID): Likewise.
44554         * tests/test-copy-acl.sh (ID): Likewise.
44555         * tests/test-copy-file.sh (ID): Likewise.
44556
44557 2009-08-30  Bruno Haible  <bruno@clisp.org>
44558
44559         New module 'xstriconveh'.
44560         * lib/xstriconveh.h: New file.
44561         * lib/xstriconveh.c: New file.
44562         * modules/xstriconveh: New file.
44563
44564 2009-08-30  Bruno Haible  <bruno@clisp.org>
44565
44566         Make it easier to use mem_cd_iconveh.
44567         * lib/striconveh.h (iconveh_t): New type.
44568         (iconveh_open, iconveh_close): New declarations.
44569         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
44570         with a single 'const iconveh_t *' argument.
44571         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
44572         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
44573         with a single 'const iconveh_t *' argument.
44574         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
44575         * tests/test-striconveh.c (main): Update.
44576         * NEWS: Mention the change.
44577
44578 2009-08-30  Bruno Haible  <bruno@clisp.org>
44579
44580         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
44581         problem.
44582
44583 2009-08-30  Bruno Haible  <bruno@clisp.org>
44584
44585         Work around iconv_open problem on Solaris.
44586         * lib/iconv_open-solaris.gperf: New file.
44587         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
44588         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
44589         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
44590         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
44591         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
44592         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
44593
44594 2009-08-29  Jim Meyering  <meyering@redhat.com>
44595
44596         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
44597         * top/maint.mk (cvs-check): Remove target; it was just an alias
44598         to the better-named vc-diff-check.
44599         (maintainer-distcheck): Remove rule.  It was used only from
44600         the (alpha/beta/major) target, and all of its commands but one
44601         were coreutils-specific.
44602         (vc-dist): Remove rule.
44603         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
44604         Run vc-diff-check, not vc-dist.
44605         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
44606
44607 2009-08-27  Bruno Haible  <bruno@clisp.org>
44608
44609         * tests/test-bitrotate.c (main): Remove test that uses a shift count
44610         of 0.
44611
44612 2009-08-27  Bruno Haible  <bruno@clisp.org>
44613
44614         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
44615         compilers.
44616         * doc/func.texi: Document the SunPRO C bug.
44617
44618 2009-08-27  Bruno Haible  <bruno@clisp.org>
44619
44620         Fix link error on Solaris.
44621         * tests/test-parse-duration.c (xstrdup): Remove function.
44622
44623 2009-08-26  Pádraig Brady  <P@draigbrady.com>
44624
44625         ignore-value: handle pointer types, too
44626         * lib/ignore-value.h (__attribute__): Remove definition.
44627         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
44628         of a more concise and more-often effective "(void) i" statement.
44629         (ignore_ptr): New function to suppress warnings from functions that
44630         return pointers, and to make it explicit that one function doesn't
44631         handle all cases.
44632
44633 2009-08-25  Bruno Haible  <bruno@clisp.org>
44634
44635         dup2: work around a Linux bug.
44636         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
44637         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
44638         * doc/posix-functions/dup2.texi: Mention the Linux bug.
44639         Reported by Simon Josefsson.
44640
44641 2009-08-25  Jim Meyering  <meyering@redhat.com>
44642
44643         libguestfs uses gnulib
44644         * users.txt: Add libguestfs.
44645
44646 2009-08-24  Eric Blake  <ebb9@byu.net>
44647
44648         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
44649         * lib/pipe2.c (includes): Add binary-io.h.
44650         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
44651
44652 2009-08-24  Bruno Haible  <bruno@clisp.org>
44653
44654         Tolerate declared but missing accept4 syscall.
44655         * lib/accept4.c (accept4): Invoke original accept4 function first, if
44656         available.
44657         * lib/sys_socket.in.h (accept4): If the function is already present,
44658         override it.
44659         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
44660         * modules/accept4 (Makefile.am): Compile accept4.c always.
44661         Reported by Paolo Bonzini and Eric Blake.
44662
44663 2009-08-23  Bruno Haible  <bruno@clisp.org>
44664
44665         New module 'accept4'.
44666         * lib/sys_socket.in.h (accept4): New declaration.
44667         * lib/accept4.c: New file.
44668         * m4/accept4.m4: New file.
44669         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
44670         GNULIB_ACCEPT4, HAVE_ACCEPT4.
44671         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
44672         HAVE_ACCEPT4.
44673         * modules/accept4: New file.
44674         * doc/glibc-functions/accept4.texi: Mention the new module.
44675
44676 2009-08-24  Jim Meyering  <meyering@redhat.com>
44677
44678         progname: also set global program_invocation_name, when possible
44679         Before this change, a libtool-enabled program that calls glibc's
44680         error function would report the program name as
44681         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
44682         * modules/progname (configure.ac): Check for a declaration of
44683         program_invocation_name.
44684         * lib/progname.c:  Include <errno.h>.
44685         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
44686         Set program_invocation_name.
44687
44688 2009-08-23  Bruno Haible  <bruno@clisp.org>
44689
44690         * lib/dup3.c: Include <string.h>.
44691
44692 2009-08-23  Bruno Haible  <bruno@clisp.org>
44693
44694         * lib/dup3.c (dup3): Test only once whether the system actually exists.
44695         * lib/pipe2.c (pipe2): Likewise.
44696         Suggested by Eric Blake.
44697
44698 2009-08-23  Bruno Haible  <bruno@clisp.org>
44699
44700         Tolerate declared but missing dup3 syscall.
44701         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
44702         * lib/unistd.in.h (dup3): If the function is already present,
44703         override it.
44704         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
44705         * modules/dup3 (Makefile.am): Compile dup3.c always.
44706         Reported by Paolo Bonzini.
44707
44708 2009-08-23  Bruno Haible  <bruno@clisp.org>
44709
44710         Tolerate declared but missing pipe2 syscall.
44711         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
44712         available.
44713         * lib/unistd.in.h (pipe2): If the function is already present,
44714         override it.
44715         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
44716         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
44717         Reported by Paolo Bonzini.
44718
44719 2009-08-23  Bruno Haible  <bruno@clisp.org>
44720
44721         * lib/pipe2.c (pipe2): Move #ifs inside function.
44722
44723 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
44724
44725         quotearg: document limitations of quote_these_too
44726         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
44727         those limitations are created.
44728         * lib/quotearg.h (set_char_quoting): Document that digits and
44729         letters that are special after backslash are not permitted.
44730         (quotearg_char): Cross-reference set_char_quoting documentation.
44731
44732 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
44733
44734         quotearg: implement custom_quoting_style
44735         * lib/quotearg.c: (struct quoting_options): Add left_quote and
44736         right_quote fields.
44737         (set_custom_quoting): New public function.
44738         (quotearg_buffer_restyled): Add left_quote and right_quote
44739         arguments, handle them very much like locale quoting, and update
44740         all uses.
44741         (quotearg_n_custom): New public function.
44742         (quotearg_n_custom_mem): New public function.
44743         (quotearg_custom): New public function.
44744         (quotearg_custom_mem): New public function.
44745         * lib/quotearg.h: Prototype and document new public functions.
44746         (enum quoting_style): For escape_quoting_style and
44747         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
44748         ignored even though they're otherwise like c_quoting_style.
44749         Add custom_quoting_style member and document with comparison to
44750         clocale_quoting_style.
44751         * tests/test-quotearg.c (custom_quotes): New array.
44752         (custom_results): New array.
44753         (main): Extend to test custom quoting.
44754
44755 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
44756
44757         quotearg: fix right quote escaping when it's in quote_these_too
44758         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
44759         quote, be sure to prepend only one backslash.
44760         * tests/test-quotearg.c (use_quote_double_quotes): New function.
44761         (main): Test it.
44762
44763 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
44764
44765         quotearg-tests: test escaping of embedded locale quotes
44766         * tests/test-quotearg.c (struct result_strings): Add member for
44767         new input.
44768         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
44769         (inputs): Add new input.
44770         (results_g): Add expected results.
44771         (flag_results): Likewise.
44772         (locale_results): Likewise.
44773         (compare_strings): Check those.
44774
44775 2009-08-23  Bruno Haible  <bruno@clisp.org>
44776
44777         Tests for module 'dup3'.
44778         * modules/dup3-tests: New file.
44779         * tests/test-dup3.c: New file.
44780
44781         New module 'dup3'.
44782         * lib/unistd.in.h (dup3): New declaration.
44783         * lib/dup3.c: New file.
44784         * m4/dup3.m4: New file.
44785         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
44786         HAVE_DUP3.
44787         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
44788         * modules/dup3: New file.
44789         * doc/glibc-functions/dup3.texi: Mention the new module.
44790
44791 2009-08-23  Bruno Haible  <bruno@clisp.org>
44792
44793         Tweak the dup2 test.
44794         * tests/test-dup2.c (main): Create the test file empty. Verify that an
44795         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
44796         the test file is still empty. Fix argument order of lseek.
44797
44798 2009-08-23  Bruno Haible  <bruno@clisp.org>
44799
44800         Avoid test link errors when the modules getopt-gnu, gettext are used.
44801         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
44802         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
44803
44804 2009-08-23  Bruno Haible  <bruno@clisp.org>
44805
44806         Fix getdtablesize() on mingw.
44807         * lib/getdtablesize.c (getdtablesize): Implement differently.
44808         * lib/unistd.in.h (getdtablesize): Improve comment.
44809
44810 2009-08-23  Bruno Haible  <bruno@clisp.org>
44811
44812         New module 'mkostemp'.
44813         Based on Ulrich Drepper's 2007-08-10 change in glibc.
44814         * lib/stdlib.in.h (mksotemp): New declaration.
44815         * lib/mkostemp.c: New file, from glibc with modifications.
44816         * lib/tempname.h (GT_FILE): Remove outdated comment.
44817         (gen_tempname): Add flags argument.
44818         * lib/tempname.c (__GT_BIGFILE): Remove macro.
44819         (__GT_FILE): Map to 1.
44820         (small_open, large_open): Remove macros.
44821         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
44822         * lib/mkstemp.c (mkstemp): Update.
44823         * lib/mkdtemp.c (mkdtemp): Likewise.
44824         * m4/mkostemp.m4: New file.
44825         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
44826         HAVE_MKOSTEMP.
44827         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
44828         HAVE_MKOSTEMP.
44829         * modules/mkostemp: New file, based on modules/mkstemp.
44830         * doc/glibc-functions/mkostemp.texi: Mention the new module.
44831         * NEWS: Mention the change.
44832
44833 2009-08-23  Bruno Haible  <bruno@clisp.org>
44834
44835         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
44836         Reported by Eric Blake.
44837
44838 2009-08-23  Bruno Haible  <bruno@clisp.org>
44839
44840         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
44841         Reported by Eric Blake.
44842
44843 2009-08-23  Bruno Haible  <bruno@clisp.org>
44844
44845         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
44846         * modules/pipe2 (Depends-on): Likewise.
44847
44848 2009-08-23  Eric Blake  <ebb9@byu.net>
44849
44850         fcntl-h: add O_TTY_INIT support
44851         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
44852         * tests/test-fcntl-h.c (o): Test it.
44853         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
44854
44855         fcntl-h: rename from fcntl, in preparation for fcntl(2)
44856         * modules/fcntl: Move <fcntl.h> header replacement...
44857         * modules/fcntl-h: ...to new name, so as not to collide with
44858         like-named function.
44859         * tests/test-fcntl.c: Rename...
44860         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
44861         * modules/fcntl-tests: Rename...
44862         * modules/fcntl-h-tests: ...to this.  Update test file name.
44863         * modules/chdir-long (Depends-on): Update clients.
44864         * modules/chdir-safer (Depends-on): Likewise.
44865         * modules/fcntl-safer (Depends-on): Likewise.
44866         * modules/fts (Depends-on): Likewise.
44867         * modules/mkancesdirs (Depends-on): Likewise.
44868         * modules/mkdir-p (Depends-on): Likewise.
44869         * modules/open (Depends-on): Likewise.
44870         * modules/savewd (Depends-on): Likewise.
44871         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
44872         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
44873
44874 2009-08-22  Bruno Haible  <bruno@clisp.org>
44875
44876         * modules/binary-io (License): Relicense under LGPL.
44877         * modules/pipe2 (License): Likewise.
44878
44879 2009-08-22  Bruno Haible  <bruno@clisp.org>
44880
44881         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
44882         return value.
44883         * lib/pipe-filter-gi.c (filter_init): Likewise.
44884         Reported by Eric Blake.
44885
44886 2009-08-22  Bruno Haible  <bruno@clisp.org>
44887
44888         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
44889         * modules/pipe (Depends-on): Add pipe2.
44890
44891 2009-08-22  Bruno Haible  <bruno@clisp.org>
44892
44893         Tests for module 'pipe2'.
44894         * modules/pipe2-tests: New file.
44895         * tests/test-pipe2.c: New file.
44896
44897         New module 'pipe2'.
44898         * lib/unistd.in.h (pipe2): New declaration.
44899         * lib/pipe2.c: New file.
44900         * m4/pipe2.m4: New file.
44901         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
44902         HAVE_PIPE2.
44903         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
44904         * modules/pipe2: New file.
44905         * doc/glibc-functions/pipe2.texi: Mention the new module.
44906
44907 2009-08-22  Bruno Haible  <bruno@clisp.org>
44908
44909         Reference some new glibc functions.
44910         * doc/glibc-functions/accept4.texi: New file.
44911         * doc/glibc-functions/dup3.texi: New file.
44912         * doc/glibc-functions/mkostemp.texi: New file.
44913         * doc/glibc-functions/pipe2.texi: New file.
44914         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
44915         (Glibc sys/socket.h): Refer to accept4.
44916         (Glibc unistd.h): Refer to dup3, pipe2.
44917         Reported by Eric Blake.
44918
44919 2009-08-22  Jim Meyering  <meyering@redhat.com>
44920             Bruno Haible  <bruno@clisp.org>
44921
44922         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
44923         This makes it so packages using automake-1.11's silent-rules option
44924         can print e.g., a single "GEN    configmake.h" line, rather than
44925         the 30+ statements that perform the job.  If you want to see the
44926         actual commands, you can still run "make V=1".
44927         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
44928         so that make output is abbreviated when those variables are defined
44929         appropriately.
44930         * modules/argz: Likewise.
44931         * modules/arpa_inet: Likewise.
44932         * modules/byteswap: Likewise.
44933         * modules/configmake: Likewise.
44934         * modules/dirent: Likewise.
44935         * modules/errno: Likewise.
44936         * modules/fcntl: Likewise.
44937         * modules/float: Likewise.
44938         * modules/fnmatch: Likewise.
44939         * modules/getopt-posix: Likewise.
44940         * modules/glob: Likewise.
44941         * modules/iconv_open: Likewise.
44942         * modules/inttypes: Likewise.
44943         * modules/localcharset: Likewise.
44944         * modules/locale: Likewise.
44945         * modules/math: Likewise.
44946         * modules/netdb: Likewise.
44947         * modules/netinet_in: Likewise.
44948         * modules/poll: Likewise.
44949         * modules/posix_spawnp-tests: Likewise.
44950         * modules/sched: Likewise.
44951         * modules/search: Likewise.
44952         * modules/selinux-h: Likewise.
44953         * modules/signal: Likewise.
44954         * modules/spawn: Likewise.
44955         * modules/stdarg: Likewise.
44956         * modules/stdbool: Likewise.
44957         * modules/stddef: Likewise.
44958         * modules/stdint: Likewise.
44959         * modules/stdio: Likewise.
44960         * modules/stdlib: Likewise.
44961         * modules/string: Likewise.
44962         * modules/strings: Likewise.
44963         * modules/sys_file: Likewise.
44964         * modules/sys_ioctl: Likewise.
44965         * modules/sys_select: Likewise.
44966         * modules/sys_socket: Likewise.
44967         * modules/sys_stat: Likewise.
44968         * modules/sys_time: Likewise.
44969         * modules/sys_times: Likewise.
44970         * modules/sys_utsname: Likewise.
44971         * modules/sys_wait: Likewise.
44972         * modules/sysexits: Likewise.
44973         * modules/time: Likewise.
44974         * modules/unistd: Likewise.
44975         * modules/wchar: Likewise.
44976         * modules/wctype: Likewise.
44977
44978 2009-08-22  Jim Meyering  <meyering@redhat.com>
44979
44980         announce-gen: detect write failure
44981         * build-aux/announce-gen: Add Coda at end.
44982         Remove equivalent-but-more-verbose block at top.
44983
44984 2009-08-19  Akim Demaille  <demaille@gostai.com>
44985
44986         bootstrap: --help to stdout.
44987         * bootstrap (usage): Don't send --help to stderr.
44988         Use a here doc instead of a long string.
44989
44990 2009-08-21  Eric Blake  <ebb9@byu.net>
44991
44992         test-popen-safer: split from test-popen
44993         * tests/test-popen.c (main): Move...
44994         * tests/test-popen.h: ...into new file.
44995         * tests/test-popen-safer2.c: New file.
44996         * modules/popen-tests (Files): Add test-popen.h.
44997         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
44998         Suggested by Bruno Haible.
44999
45000         test-fcntl-safer: split from test-open
45001         * tests/test-open.c (main): Move...
45002         * tests/test-open.h: ...into new file.
45003         * tests/test-fcntl-safer.c: New file.
45004         * modules/open-tests (Files): Add test-open.h.
45005         * modules/fcntl-safer-tests: New file.
45006         Suggested by Bruno Haible.
45007
45008         test-fopen-safer: split from test-fopen
45009         * tests/test-fopen.c (main): Move...
45010         * tests/test-fopen.h: ...into new file.
45011         * tests/test-fopen-safer.c: New file.
45012         * modules/fopen-tests (Files): Add test-fopen.h.
45013         * modules/fopen-safer-tests: New file.
45014         Suggested by Bruno Haible.
45015
45016 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
45017
45018         popen-safer: test O_CLOEXEC at run-time.
45019         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
45020
45021 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
45022
45023         fcntl: move more flags to the header
45024         * lib/cloexec.c: Do not define FD_CLOEXEC here.
45025         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
45026         * lib/fcntl.in.h: Do both things here.
45027
45028 2009-08-21  Jim Meyering  <meyering@redhat.com>
45029
45030         consistently remove $@-t before redirecting to it
45031         * modules/argz: Remove $@-t and $@ before redirecting to the former.
45032         * modules/alloca-opt: Likewise.
45033         * modules/byteswap: Likewise.
45034         * modules/fnmatch: Likewise.
45035         * modules/getopt-posix: Likewise.
45036         * modules/glob: Likewise.
45037         * modules/poll: Likewise.
45038         * modules/posix_spawnp-tests: Likewise.
45039         * modules/sys_socket: Likewise.
45040         * modules/sysexits: Likewise.
45041
45042 2009-08-21  Eric Blake  <ebb9@byu.net>
45043
45044         popen: simplify access to original popen
45045         * lib/popen.c (rpl_popen): No need to worry about popen being a
45046         macro.
45047         Reported by Bruno Haible.
45048
45049 2009-08-20  Eric Blake  <ebb9@byu.net>
45050
45051         build: avoid some compiler warnings
45052         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
45053         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
45054         type.
45055         (new_exclude_segment, excluded_file_pattern_p)
45056         (excluded_file_name_p): Reduce scope.
45057         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
45058         old-style declaration.
45059
45060 2009-08-20  Simon Josefsson  <simon@josefsson.org>
45061
45062         * tests/test-exclude1.sh: Handle Windows EOL.
45063         * tests/test-exclude2.sh: Likewise.
45064         * tests/test-exclude3.sh: Likewise.
45065         * tests/test-exclude4.sh: Likewise.
45066         * tests/test-exclude5.sh: Likewise.
45067         * tests/test-exclude6.sh: Likewise.
45068         * tests/test-exclude7.sh: Likewise.
45069
45070 2009-08-19  Akim Demaille  <demaille@gostai.com>
45071
45072         bootstrap: find sha1sum when named gsha1sum.
45073         * bootstrap (find_tool): New.
45074         ($SHA1SUM): New.
45075         Use it.
45076
45077 2009-08-20  Jim Meyering  <meyering@redhat.com>
45078
45079         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
45080         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
45081         expression that converts "." in a file name to "\." in the resulting
45082         regexp.  Start with a dummy statement, so that prior shell variable
45083         definitions are expanded portably.  Reported by Simon Josefsson.
45084
45085 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
45086
45087         Fix polling for writeability of a screen buffer.
45088         * lib/poll.c: Distinguish input and screen buffers for the
45089         Win32 implementation.
45090         * lib/select.c: Likewise.
45091
45092 2009-08-19  Eric Blake  <ebb9@byu.net>
45093
45094         popen-safer: prevent popen from clobbering std descriptors
45095         * modules/popen-safer: New file.
45096         * lib/popen-safer.c: Likewise.
45097         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
45098         * lib/stdio--.h (popen): Provide override.
45099         * lib/stdio-safer.h (popen_safer): Provide declaration.
45100         * tests/test-popen.c (includes): Partially test this.
45101         * modules/popen-safer-tests: New file, for more tests.
45102         * tests/test-popen-safer.c: Likewise.
45103         * MODULES.html.sh (file stream based Input/Output): Mention it.
45104
45105         tests: test some of the *-safer modules
45106         * modules/fopen-safer (Depends-on): Add fopen.
45107         * modules/fcntl-safer (Depends-on): Add fcntl.
45108         * modules/stdlib-safer (Depends-on): Add stdlib.
45109         (configure.ac): Set indicator.
45110         * modules/unistd-safer (configure.ac): Likewise.
45111         * modules/tmpfile-safer (configure.ac): Likewise.
45112         (Depends-on): Add tmpfile.
45113         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
45114         active.
45115         * tests/test-fopen.c (includes): Test safer versions when they are
45116         in use.
45117         * tests/test-open.c (includes): Likewise.
45118
45119         popen: fix cygwin 1.5 bug when stdin closed
45120         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
45121         * modules/popen: New file.
45122         * modules/popen-tests: Likewise.
45123         * tests/test-popen.c: Likewise.
45124         * m4/popen.m4: Likewise.
45125         * lib/popen.c: Likewise.
45126         * lib/stdio.in.h (popen): New declaration.
45127         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
45128         * modules/stdio (Makefile.am): Likewise.
45129         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
45130
45131 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
45132
45133         maint.mk: give full control over update-copyright exclusions
45134         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
45135         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
45136         (update-copyright): Don't force inclusion of top-level
45137         ChangeLog.  Don't force exclusion of all COPYING files, but make
45138         them the default exclusion instead.
45139
45140 2009-08-16  Bruno Haible  <bruno@clisp.org>
45141
45142         Fix test failures on Solaris 10.
45143         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
45144         tests when Solaris iconv() is used.
45145         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
45146         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
45147         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
45148         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
45149         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
45150
45151 2009-08-16  Bruno Haible  <bruno@clisp.org>
45152
45153         Fix test failures on Solaris 10.
45154         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
45155         'tr' program and pass it as first argument.
45156         * tests/test-pipe-filter-gi1.sh: Likewise.
45157         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
45158         program as first argument.
45159         * tests/test-pipe-filter-gi1.c (main): Likewise.
45160
45161 2009-08-16  Eric Blake  <ebb9@byu.net>
45162
45163         fpurge: fix previous commits
45164         * modules/fpurge (Makefile.am): Make replacement conditional,
45165         partially reverting 2007-04-29 change; missed in previous
45166         attempt.
45167         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
45168         is missing.
45169
45170 2009-08-16  Bruno Haible  <bruno@clisp.org>
45171
45172         Clarify fpurge's effect on the file position.
45173         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
45174         * tests/test-fpurge.c (main): Make a second pass for checking the file
45175         position.
45176
45177 2009-08-16  Bruno Haible  <bruno@clisp.org>
45178
45179         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
45180         declaration of fpurge is missing.
45181         * tests/test-fpurge.c (main): Check that the file has not more contents
45182         than expected. Close the file before removing it.
45183
45184 2009-08-15  Eric Blake  <ebb9@byu.net>
45185
45186         fpurge: don't wrap working cygwin implementation
45187         * lib/fpurge.c (fpurge): Fix comment typo.
45188         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
45189         1.7 to avoid replacement.
45190         * tests/test-fpurge.c (main): Enhance test.
45191
45192 2009-08-15  Eric Blake  <ebb9@byu.net>
45193         and Jim Meyering  <meyering@redhat.com>
45194
45195         test-update-copyright: skip if perl is insufficient
45196         * tests/test-update-copyright.sh: Failure to run maintainer tool
45197         should not cause testsuite failure on cygwin 1.5.
45198
45199 2009-08-14  Eric Blake  <ebb9@byu.net>
45200
45201         doc: mention more functions added in cygwin 1.7.0
45202         * doc/posix-headers/limits.texi (limits.h): Update for recent
45203         cygwin additions.
45204         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
45205         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
45206         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
45207         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
45208         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
45209
45210 2009-08-14  Eric Blake  <ebb9@byu.net>
45211
45212         maint.mk: simplify update-copyright rule
45213         * top/maint.mk (update-copyright-local): Delete, and document how
45214         to do it in cfg.mk instead.
45215         (update-copyright-exclude-regexp): Delete, and document how to do
45216         it in .x-update-copyright instead.
45217         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
45218         exclude ChangeLog.
45219
45220 2009-08-14  Bruno Haible  <bruno@clisp.org>
45221
45222         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
45223
45224 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
45225
45226         maint.mk: support update-copyright-env
45227         * top/maint.mk (update-copyright-env): Define place-holder.
45228         (update-copyright): Expand $(update-copyright-env) before
45229         invoking update-copyright.
45230
45231 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
45232
45233         update-copyright: implement forced reformatting
45234         * build-aux/update-copyright: Implement and document
45235         UPDATE_COPYRIGHT_FORCE.
45236         * tests/test-update-copyright.sh: Test it.
45237
45238 2009-08-14  Eric Blake  <ebb9@byu.net>
45239         and Bruno Haible  <bruno@clisp.org>
45240
45241         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
45242         * tests/test-locale.c: Revert previous patch related to NULL.
45243         * tests/test-stdio.c: Likewise.
45244         * tests/test-stdlib.c: Likewise.
45245         * tests/test-string.c: Likewise.
45246         * tests/test-unistd.c: Likewise.
45247         * modules/time-tests (Depends-on): Add verify.
45248         * modules/wchar-tests (Depends-on): Likewise.
45249         * tests/test-time.c: Test for NULL compliance.
45250         * tests/test-wchar.c: Likewise.
45251         * modules/locale (Depends-on): Add stddef.
45252         * modules/stdio (Depends-on): Likewise.
45253         * modules/stdlib (Depends-on): Likewise.
45254         * modules/string (Depends-on): Likewise.
45255         * modules/time (Depends-on): Likewise.
45256         * modules/unistd (Depends-on): Likewise.
45257         * modules/wchar (Depends-on): Likewise.
45258         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
45259         * lib/stdlib.in.h (includes): Likewise.
45260         * lib/string.in.h (includes): Likewise.
45261         * lib/time.in.h (includes): Likewise.
45262         * lib/unistd.in.h (includes): Likewise.
45263         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
45264         replaced.
45265         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
45266         * m4/stddef_h.m4: New file.
45267         * modules/stddef: Likewise.
45268         * lib/stddef.in.h: Likewise.
45269         * modules/stddef-tests: Likewise.
45270         * tests/test-stddef.c: Likewise.
45271         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
45272         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
45273         * doc/posix-headers/locale.texi (locale.h): Likewise.
45274         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
45275         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
45276         * doc/posix-headers/string.texi (string.h): Likewise.
45277         * doc/posix-headers/time.texi (time.h): Likewise.
45278         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
45279         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
45280
45281 2009-08-14  Eric Blake  <ebb9@byu.net>
45282
45283         doc: improve git diff of texinfo files
45284         * .gitattributes: Add rule for *.texi files, with hint on how to
45285         use it.
45286         Copied from m4, and based on a report by Bruno Haible.
45287
45288 2009-08-14  Bruno Haible  <bruno@clisp.org>
45289
45290         Disable multithread support by default on Cygwin 1.5.x for real.
45291         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
45292
45293 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
45294
45295         update-copyright: much ado about intervals
45296         * build-aux/update-copyright: Implement and document
45297         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
45298         of copyright year intervals.
45299         Also, document UPDATE_COPYRIGHT_YEAR.
45300         * tests/test-update-copyright.sh: Test it.
45301
45302         update-copyright: convert 2-digit to 4-digit years
45303         * build-aux/update-copyright: Implement and document.
45304         * tests/test-update-copyright.sh: Update.
45305
45306 2009-08-14  Jim Meyering  <meyering@redhat.com>
45307
45308         test-exclude: avoid coreutils "make check" failure
45309         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
45310         just as in test-argmatch.c.
45311
45312 2009-08-13  Eric Blake  <ebb9@byu.net>
45313
45314         test-dup2: fix bad assumption
45315         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
45316         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
45317
45318         test-version-etc: fix CRLF portability issue
45319         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
45320         recognize \r.
45321         * tests/test-argp-version-etc-1.sh: Likewise.
45322
45323         getopt: update client modules
45324         * modules/argp (Depends-on): Use getopt-gnu.
45325         * modules/git-merge-changelog (Depends-on): Likewise.
45326         * modules/long-options (Depends-on): Likewise.
45327         * modules/xstrtol (Depends-on): Likewise.
45328
45329 2009-08-13  Simon Josefsson  <simon@josefsson.org>
45330
45331         * tests/test-version-etc.sh: Don't fail on different
45332         project/version.  Don't fail on CRLF differences.  Rewrite to use
45333         multiple -e instead of multiple sed forks, suggested by Eric Blake
45334         <ebb9@byu.net>.
45335         * tests/test-argp-version-etc-1.sh: Likewise.
45336
45337 2009-08-13  Simon Josefsson  <simon@josefsson.org>
45338
45339         * tests/test-version-etc.sh: Don't fail on different
45340         project/version.
45341
45342 2009-08-12  Bruno Haible  <bruno@clisp.org>
45343
45344         Tests for modules 'getopt-posix', 'getopt-gnu'.
45345         * modules/getopt-posix-tests: New file.
45346         * tests/test-getopt.c: New file.
45347         * tests/test-getopt.h: New file.
45348         * tests/test-getopt_long.h: New file.
45349
45350         New modules 'getopt-posix', 'getopt-gnu'.
45351         * modules/getopt-gnu: New file, renamed from modules/getopt.
45352         * modules/getopt-posix: New file.
45353         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
45354         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
45355         (gl_GETOPT): Remove macro.
45356         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
45357         Disable the test against BSD systems that declare optreset. Test
45358         against mingw bug. Test against lack of support of optional arguments
45359         on many platforms.
45360         * doc/glibc-headers/getopt.texi: Update module name and list of
45361         relevant platforms.
45362         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
45363         'getopt-gnu' and more portability problems.
45364         * NEWS: Mention the changes.
45365
45366 2009-08-12  Bruno Haible  <bruno@clisp.org>
45367
45368         Ensure that optarg etc. get declared by <unistd.h>.
45369         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
45370         AC_USE_SYSTEM_EXTENSIONS.
45371         * modules/getopt (Depends-on): Add 'extensions'.
45372
45373 2009-08-12  Bruno Haible  <bruno@clisp.org>
45374
45375         Avoid test link errors.
45376         * modules/pipe-filter-ii-tests (Makefile.am): Define
45377         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
45378         * modules/pipe-filter-gi-tests (Makefile.am): Define
45379         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
45380         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45381
45382 2009-08-12  Bruno Haible  <bruno@clisp.org>
45383
45384         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
45385         gl_GETOPT_SUBSTITUTE before.
45386         (gl_GETOPT): Use it.
45387         * m4/argp.m4 (gl_ARGP): Update.
45388         Reported by Sergey Poznyakoff.
45389
45390         * m4/getopt.m4: Reorder macros.
45391         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
45392         (gl_GETOPT_SUBSTITUTE): Remove macro.
45393
45394 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
45395
45396         Minor improvement in gitlog-to-changelog
45397
45398         * build-aux/gitlog-to-changelog: New option `--format' makes
45399         output format string configurable.
45400
45401 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
45402
45403         Optimize exclude: use hash tables for non-wildcard patterns.
45404
45405         * lib/exclude.c: Include hash.h and mbuiter.h
45406         (struct exclude_pattern, exclude_segment): New data types.
45407         (struct exclude): Rewrite.
45408         (fnmatch_pattern_has_wildcards): New function.
45409         (new_exclude_segment, free_exclude_segment): New functions.
45410         (excluded_file_pattern_p, excluded_file_name_p): New functions.
45411         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
45412         * lib/exclude.h (is_fnmatch_pattern): New prototype.
45413         * modules/exclude: Depend on hash and mbuiter.
45414
45415         * modules/exclude-tests: New file.
45416         * tests/test-exclude.c: New file.
45417         * tests/test-exclude1.sh: New file.
45418         * tests/test-exclude2.sh: New file.
45419         * tests/test-exclude3.sh: New file.
45420         * tests/test-exclude4.sh: New file.
45421         * tests/test-exclude5.sh: New file.
45422         * tests/test-exclude6.sh: New file.
45423         * tests/test-exclude7.sh: New file.
45424
45425 2009-08-12  Bruno Haible  <bruno@clisp.org>
45426
45427         Ensure that getopt() gets declared by <unistd.h>.
45428         * lib/unistd.in.h: Conditionally include getopt.h.
45429         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
45430         Set GNULIB_UNISTD_H_GETOPT.
45431         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
45432         GNULIB_UNISTD_H_GETOPT.
45433         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
45434
45435 2009-08-12  Bruno Haible  <bruno@clisp.org>
45436
45437         Clarify logic.
45438         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
45439         gl_replace_getopt instead of GETOPT_H.
45440
45441 2009-08-12  Bruno Haible  <bruno@clisp.org>
45442
45443         * m4/getopt.m4: Add comments.
45444
45445 2009-08-12  Bruno Haible  <bruno@clisp.org>
45446
45447         Disable multithread support by default on Cygwin 1.5.x.
45448         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
45449         set gl_use_threads=no if not specified otherwise.
45450
45451 2009-08-11  Bruno Haible  <bruno@clisp.org>
45452
45453         Avoid compilation error on NetBSD 5.0.
45454         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
45455         * tests/test-stdio.c: Likewise.
45456         * tests/test-stdlib.c: Likewise.
45457         * tests/test-string.c: Likewise.
45458         * tests/test-unistd.c: Likewise.
45459         Reported by Greg Troxel <gdt@ir.bbn.com>
45460         at <https://savannah.gnu.org/support/?106973>.
45461
45462 2009-08-11  Bruno Haible  <bruno@clisp.org>
45463
45464         * modules/dup2-tests (Depends-on): Remove close.
45465
45466         Undo 2009-07-19 commit.
45467         * modules/acl-tests (Depends-on): Remove close.
45468         * modules/binary-io-tests (Depends-on): Likewise.
45469         * modules/closein-tests (Depends-on): Likewise.
45470         * modules/flock-tests (Depends-on): Likewise.
45471         * modules/fsync-tests (Depends-on): Likewise.
45472         * modules/lseek-tests (Depends-on): Likewise.
45473         * modules/pipe-tests (Depends-on): Likewise.
45474         * modules/posix_spawn-tests (Depends-on): Likewise.
45475         * modules/posix_spawnp-tests (Depends-on): Likewise.
45476         * modules/stat-time-tests (Depends-on): Likewise.
45477         * modules/yesno-tests (Depends-on): Likewise.
45478
45479 2009-08-10  Bruno Haible  <bruno@clisp.org>
45480
45481         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
45482
45483 2009-08-10  Bruno Haible  <bruno@clisp.org>
45484
45485         Fix a gcc warning.
45486         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
45487
45488 2009-08-10  Bruno Haible  <bruno@clisp.org>
45489
45490         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
45491         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
45492         not only the first time.
45493         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
45494         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
45495         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
45496         is 1, not only the the first time.
45497
45498 2009-08-10  Bruno Haible  <bruno@clisp.org>
45499
45500         Make it possible to use module 'gethostname' without module 'close'.
45501         * lib/unistd.in.h (close): Evoke a link error only if
45502         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
45503         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
45504         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
45505         * modules/unistd (Makefile.am): Substitute
45506         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
45507         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
45508         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
45509         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
45510         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
45511         * modules/sys_ioctl (Makefile.am): Substitute
45512         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
45513         * modules/socket (configure.ac): On native Windows, set
45514         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
45515         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
45516         Reported by Sam Steingold <sds@gnu.org>.
45517
45518 2009-08-10  Bruno Haible  <bruno@clisp.org>
45519
45520         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
45521         * modules/ioctl (configure.ac): Likewise.
45522
45523 2009-08-10  Bruno Haible  <bruno@clisp.org>
45524
45525         Avoid collision between gnulib wrapper and libintl wrapper.
45526         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
45527         already defined in intl/printf.c.
45528         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
45529         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
45530
45531 2009-08-09  Bruno Haible  <bruno@clisp.org>
45532
45533         Make <sys/select.h> really self-contained, also on Solaris 10.
45534         * lib/sys_select.in.h: Include <string.h>.
45535         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
45536         Solaris 10 problem.
45537         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
45538         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
45539         Reported by Jim Meyering.
45540
45541 2009-08-09  Bruno Haible  <bruno@clisp.org>
45542
45543         Avoid warnings from 'aclocal' that are due to a use of macro name
45544         AM_XGETTEXT_OPTION that is not defined in automake.
45545         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
45546         automake.
45547         * modules/error (configure.ac): Likewise.
45548         * modules/propername (configure.ac): Likewise.
45549         * modules/vasprintf (configure.ac): Likewise.
45550         * modules/verror (configure.ac): Likewise.
45551         * modules/xprintf (configure.ac): Likewise.
45552         * modules/xvasprintf (configure.ac): Likewise.
45553
45554 2009-08-08  Bruno Haible  <bruno@clisp.org>
45555
45556         Avoid compilation error in C++ mode.
45557         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
45558         Reported by Sam Steingold <sds@gnu.org>.
45559
45560 2009-08-08  Bruno Haible  <bruno@clisp.org>
45561
45562         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
45563         for the various Unix platforms.
45564         * doc/posix-headers/limits.texi: Update platforms list regarding
45565         HOST_NAME_MAX.
45566         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45567
45568 2009-08-07  Jim Meyering  <meyering@redhat.com>
45569
45570         selinux-at: fix typo in a comment
45571         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
45572         Spotted by Paolo Bonzini.
45573
45574         selinux-at: remove redundant m4 code, add documentation
45575         * modules/selinux-at (configure.ac): Remove redundant code.
45576         LIB_SELINUX is already set via the dependent module, selinux-h.
45577         (Include): Add quotes around selinux-at.h.
45578         * lib/selinux-at.h: Add documentation.
45579         Reported by Bruno Haible in
45580         http://marc.info/?l=gnulib-bug&m=124958988300749
45581
45582 2009-08-07  Bruno Haible  <bruno@clisp.org>
45583
45584         Avoid link error on MacOS X 10.3 and 10.4.
45585         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
45586         on non-ELF systems.
45587         * lib/argp-pv.c (argp_program_version): Likewise.
45588         Reported by Simon Josefsson.
45589
45590 2009-08-07  Simon Josefsson  <simon@josefsson.org>
45591
45592         * tests/test-version-etc.sh: Use $EXEEXT.
45593
45594 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
45595
45596         update-copyright: update documentation to point to maint.mk
45597         * build-aux/update-copyright: Here.
45598
45599 2009-08-06  Jim Meyering  <meyering@redhat.com>
45600
45601         maint.mk: support update-copyright-local
45602         * top/maint.mk (update-copyright-local): Define place-holder.
45603         (update-copyright): Depend on $(update-copyright-local).
45604
45605 2009-08-06  Jim Meyering  <meyering@redhat.com>
45606
45607         selinux-at: new module
45608         Initially written for coreutils, this module will soon be
45609         used by findutils, too.
45610         * MODULES.html.sh [Misc]: Add selinux-at.
45611         * lib/selinux-at.h: New file, from coreutils.
45612         * lib/selinux-at.c: Likewise.
45613         * modules/selinux-at: Likewise.
45614         (License): Change from LGPL to GPL, since it depends
45615         on the GPL'd openat module.
45616
45617         doc: update README
45618         * README: Remove references to cogito.
45619         Remove cvs-repo-updating instructions from 2007.
45620         Don't imply that CVS is better if you have limited disk space.
45621
45622 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
45623
45624         update-copyright: support C-style comments
45625         * build-aux/update-copyright: Implement and document.
45626         * tests/test-update-copyright.sh: Test.
45627
45628 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
45629
45630         update-copyright: support omitted "(C)"
45631         * build-aux/update-copyright: Implement and document.  Also,
45632         allow variable whitespace before "(C)".
45633         * tests/test-update-copyright.sh: Test.
45634
45635 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
45636
45637         update-copyright: don't trip on non-FSF copyright statements
45638         * build-aux/update-copyright: Fix so that the first correctly
45639         formatted FSF copyright statement is recognized no matter what
45640         appears before it.  Update documentation.
45641         * tests/test-update-copyright.sh: Test that.
45642
45643 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
45644
45645         update-copyright: clean up code a little
45646         * build-aux/update-copyright: Append "_re" to the name of any
45647         variable holding a regular expression.
45648         Replace "old" and "new" with "stmt" in variable names.
45649         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
45650         handled correctly.
45651         Format code more consistently.
45652
45653 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
45654
45655         update-copyright-tests: improve portability
45656         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
45657         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
45658
45659 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
45660
45661         update-copyright: support @copyright{} and &copy;
45662         * build-aux/update-copyright: Implement and document.
45663         * tests/test-update-copyright.sh: Test.
45664
45665 2009-08-04  Jim Meyering  <meyering@redhat.com>
45666
45667         update-copyright-tests: correctly test EOL=\r\n handling
45668         * tests/test-update-copyright.sh: Put \r at the end of some lines
45669         for the dos-eol tests.  Based on a patch by Joel E. Denny.
45670
45671         maint.mk: make update-copyright exclusion list more configurable
45672         * top/maint.mk (update-copyright): Default to excluding COPYING,
45673         but allow an override, in case someone does want to update that file.
45674
45675         maint.mk: don't update copyright date in COPYING
45676         * top/maint.mk (update-copyright): Exclude COPYING.
45677
45678         maint.mk: add a copyright-updating rule
45679         * top/maint.mk (update-copyright): New rule.
45680         Derived from coreutils/Makefile.am.
45681
45682         update-copyright: rename some variables
45683         * build-aux/update-copyright: Rename a few variables for clarity.
45684         Tweak syntax.  List Joel E. Denny as coauthor.
45685
45686 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
45687
45688         update-copyright: fix bug for 2-digit last year and add tests
45689         * build-aux/update-copyright: Fix bug.
45690         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
45691         specified.
45692         * modules/update-copyright-tests: New
45693         * tests/test-update-copyright.sh: New.
45694
45695 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
45696
45697         update-copyright: handle leading tabs in line prefix
45698         * build-aux/update-copyright: Count leading tabs as 8 spaces
45699         when computing margin.  This helps with the formatting of
45700         ChangeLogs, for example.
45701         Fix documentation a little.
45702
45703 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
45704
45705         update-copyright: support EOL=\r\n
45706         * build-aux/update-copyright: Implement that.
45707
45708 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
45709
45710         update-copyright: automatically format copyright statements
45711         * build-aux/update-copyright: Implement that.
45712         Also, be a little more predictable and safer by always failing
45713         when the full copyright format is not perfectly recognized as an
45714         unbroken whole.  Discussed at
45715         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
45716         Rewrite documentation.
45717
45718 2009-08-03  Bruno Haible  <bruno@clisp.org>
45719
45720         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
45721
45722 2009-08-02  Bruno Haible  <bruno@clisp.org>
45723
45724         Tests for module 'uname'.
45725         * modules/uname-tests: New file.
45726         * tests/test-uname.c: New file.
45727
45728         New module 'uname'.
45729         * lib/uname.c: New file.
45730         * m4/uname.m4: New file.
45731         * modules/uname: New file.
45732         * doc/posix-functions/uname.texi: Mention the new module.
45733
45734 2009-08-02  Bruno Haible  <bruno@clisp.org>
45735
45736         Tests for module 'sys_utsname'.
45737         * modules/sys_utsname-tests: New file.
45738         * tests/test-sys_utsname.c: New file.
45739
45740         New module 'sys_utsname'.
45741         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
45742         * m4/sys_utsname_h.m4: New file.
45743         * modules/sys_utsname: New file.
45744         * doc/posix-headers/sys_utsname.texi: Mention the new module.
45745
45746 2009-08-02  Bruno Haible  <bruno@clisp.org>
45747
45748         Implicitly initialize the sockets library.
45749         * lib/gethostname.c: Include sockets.h.
45750         (rpl_gethostname): Invoke gl_sockets_startup.
45751         * lib/socket.c: Include sockets.h.
45752         (rpl_socket): Invoke gl_sockets_startup.
45753         * modules/gethostname (Depends-on): Add sockets.
45754         * modules/socket (Depends-on): Likewise.
45755         * tests/test-poll.c: Don't include sockets.h.
45756         (main): Don't invoke gl_sockets_startup.
45757         * tests/test-select.c: Don't include sockets.h.
45758         (main): Don't invoke gl_sockets_startup.
45759
45760 2009-08-02  Bruno Haible  <bruno@clisp.org>
45761
45762         Allow multiple calls to gl_sockets_startup.
45763         * lib/sockets.c (initialized_sockets_version): New variable.
45764         (gl_sockets_startup): Do nothing if already called for this or a higher
45765         version.
45766         (gl_sockets_cleanup): Reset initialized_sockets_version.
45767
45768 2009-08-03  Simon Josefsson  <simon@josefsson.org>
45769
45770         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
45771         different project/version.
45772
45773 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
45774             Bruno Haible  <bruno@clisp.org>
45775
45776         Tests for module 'pipe-filter-gi'.
45777         * modules/pipe-filter-gi-tests: New file.
45778         * tests/test-pipe-filter-gi1.sh: New file.
45779         * tests/test-pipe-filter-gi1.c: New file.
45780         * tests/test-pipe-filter-gi2.sh: New file.
45781         * tests/test-pipe-filter-gi2-main.c: New file.
45782         * tests/test-pipe-filter-gi2-child.c: New file.
45783
45784         New module 'pipe-filter-gi'.
45785         * lib/pipe-filter-gi.c: New file.
45786         * modules/pipe-filter-gi: New file.
45787
45788 2009-08-02  Bruno Haible  <bruno@clisp.org>
45789             Paolo Bonzini  <bonzini@gnu.org>
45790
45791         Tests for module 'pipe-filter-ii'.
45792         * modules/pipe-filter-ii-tests: New file.
45793         * tests/test-pipe-filter-ii1.sh: New file.
45794         * tests/test-pipe-filter-ii1.c: New file.
45795         * tests/test-pipe-filter-ii2.sh: New file.
45796         * tests/test-pipe-filter-ii2-main.c: New file.
45797         * tests/test-pipe-filter-ii2-child.c: New file.
45798
45799         New module 'pipe-filter-ii'.
45800         * lib/pipe-filter.h: New file.
45801         * lib/pipe-filter-ii.c: New file.
45802         * lib/pipe-filter-aux.h: New file.
45803         * modules/pipe-filter-ii: New file.
45804
45805 2009-08-02  Simon Josefsson  <simon@josefsson.org>
45806
45807         * lib/gc-libgcrypt.c: Change copyright to FSF.
45808         * lib/gc-gnulib.c: Likewise.
45809
45810 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
45811
45812         * lib/gethostname.c: Include limits.h.
45813
45814 2009-08-02  Simon Josefsson  <simon@josefsson.org>
45815             Bruno Haible  <bruno@clisp.org>
45816
45817         Ensure HOST_NAME_MAX as part of the gethostname module.
45818         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
45819         define also HOST_NAME_MAX.
45820         * tests/test-gethostname.c: Include <limits.h>.
45821         (main): Check also HOST_NAME_MAX.
45822         * doc/posix-headers/limits.texi: Document the mingw problem.
45823
45824 2009-08-02  Bruno Haible  <bruno@clisp.org>
45825
45826         * lib/gethostname.c (gethostname): Fix handling of large len argument.
45827         Add comments.
45828
45829 2009-03-31  Simon Josefsson  <simon@josefsson.org>
45830
45831         * lib/gethostname.c: Add Windows wrapper.
45832         * m4/gethostname.m4: Look for gethostname in -lws2_32.
45833         * modules/gethostname: Depend on sys_socket & errno, for also
45834         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
45835         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
45836
45837 2009-07-31  Jim Meyering  <meyering@redhat.com>
45838
45839         getloadavg: fix symbol name in comment
45840         * lib/getloadavg.c: Correct a typo I introduced when adding
45841         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
45842         Matt Kraai spotted the problem.
45843
45844 2009-07-29  Matt Kraai  <mkraai@beckman.com>
45845
45846         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
45847         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
45848         code also if ! defined N_NAME_POINTER.
45849         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
45850         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
45851         but the n_name member is a 12-byte array.
45852
45853 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
45854
45855         update-copyright: generalize comment handling
45856         * build-aux/update-copyright: Handle copyright statements
45857         within more comment styles.
45858         Document usage.
45859         Report any file with an external copyright holder or parse failure.
45860
45861 2009-07-29  Jim Meyering  <meyering@redhat.com>
45862
45863         mktime: correct setting of REPLACE_MKTIME
45864         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
45865
45866         update-copyright: new module
45867         * modules/update-copyright: New file.
45868         * build-aux/update-copyright: New file.
45869         * MODULES.html.sh (maint+release support): Add update-copyright.
45870
45871 2009-07-27  Bruno Haible  <bruno@clisp.org>
45872
45873         Fix compilation error when <ctime> is used and mktime is replaced.
45874         * lib/time.in.h (mktime): New declaration.
45875         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
45876         REPLACE_MKTIME instead of defining mktime in config.h.
45877         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
45878         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
45879         Reported by Ross McFarland <rwmcfa1@neces.com>.
45880
45881 2009-07-27  Bruno Haible  <bruno@clisp.org>
45882
45883         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
45884         Reported by Matt Kraai <mkraai@beckman.com>.
45885
45886 2009-07-25  Jim Meyering  <meyering@redhat.com>
45887
45888         maint.mk: avoid warnings about missing files
45889         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
45890         diagnostic when .prev-version does not exist.
45891         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
45892         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
45893         nonexistent cfg.mk.
45894         Suggestions from Simon Josefsson.
45895
45896 2009-07-25  Bruno Haible  <bruno@clisp.org>
45897
45898         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
45899         defined as macros. Needed on QNX 6.4.1.
45900         Reported by Matt Kraai <mkraai@beckman.com>.
45901
45902 2009-07-23  Jim Meyering  <meyering@redhat.com>
45903
45904         maint.mk: invoke "make dist" with a working value of XZ_OPT
45905         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
45906
45907 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
45908
45909         Make fseeko.c compile on QNX.
45910         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
45911
45912 2009-07-22  Peter Simons  <simons@cryp.to>
45913
45914         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
45915         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
45916         * lib/md4.h: Likewise.
45917         * lib/md5.h: Likewise.
45918         * lib/sha1.h: Likewise.
45919         * lib/sha256.h: Likewise.
45920         * lib/sha512.h: Likewise.
45921
45922         tests-sha1: don't assign literal string to 'char *' variable
45923         * tests/test-sha1.c (main): Declare locals with "const" to match
45924         attributes of the right hand side.
45925
45926 2009-07-21  Eric Blake  <ebb9@byu.net>
45927
45928         dup2: fix more mingw problems
45929         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
45930         fd to itself.
45931         * doc/posix-functions/dup2.texi (dup2): Document the bug.
45932         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
45933         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
45934         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
45935         care of mingw bugs.
45936
45937 2009-07-21  Jim Meyering  <meyering@redhat.com>
45938
45939         vc-list-files: avoid failure when /bin/sh is dash
45940         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
45941         On some Debian based systems, /bin/sh is a symlink to dash, and running
45942         this command would omit the "/" following each 'tests' prefix:
45943           dash -x build-aux/vc-list-files -C . tests
45944         That is because bash and dash work differently:
45945           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
45946           bash ok
45947           dash odd
45948
45949 2009-07-21  Eric Blake  <ebb9@byu.net>
45950
45951         dup2-tests: test previous patch
45952         * modules/dup2-tests: New file.
45953         * tests/test-dup2.c: Likewise.
45954         * tests/test-open.c (main): Avoid unspecified behavior.
45955         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
45956         test.
45957
45958         dup2: work around mingw and cygwin 1.5 bug
45959         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
45960         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
45961         * modules/unistd (Makefile.am): Substitute it.
45962         * lib/unistd.in.h (dup2): Declare the replacement.
45963         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
45964         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
45965         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
45966         * modules/execute (Depends-on): Add dup2.
45967         * modules/fseterr (Depends-on): Likewise.
45968         * modules/pipe (Depends-on): Likewise.
45969         * modules/posix_spawn-internal (Depends-on): Likewise.
45970
45971 2009-07-21  Bruno Haible  <bruno@clisp.org>
45972
45973         * modules/.gitattributes: New file.
45974
45975 2009-07-20  Bruno Haible  <bruno@clisp.org>
45976
45977         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
45978         (main): Use it.
45979
45980 2009-07-20  Eric Blake  <ebb9@byu.net>
45981
45982         test-pipe: make a bit more robust.
45983         * tests/test-pipe.c (myerr): Allow error messages regardless of
45984         what we do to stderr.
45985         (test_pipe): Rearrange to avoid deadlock.
45986         (child_main): Try a larger read, to ensure we avoided deadlock.
45987         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
45988         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
45989         if misused.
45990
45991 2009-07-19  Jim Meyering  <meyering@redhat.com>
45992
45993         fts: avoid false-positive cycle-detection
45994         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
45995         for each new command line argument.
45996
45997 2009-07-19  Bruno Haible  <bruno@clisp.org>
45998
45999         Fix build error on mingw with the modules sys_select and unistd.
46000         * modules/acl-tests (Depends-on): Add close.
46001         * modules/binary-io-tests (Depends-on): Likewise.
46002         * modules/closein-tests (Depends-on): Likewise.
46003         * modules/flock-tests (Depends-on): Likewise.
46004         * modules/fsync-tests (Depends-on): Likewise.
46005         * modules/lseek-tests (Depends-on): Likewise.
46006         * modules/pipe-tests (Depends-on): Likewise.
46007         * modules/posix_spawn-tests (Depends-on): Likewise.
46008         * modules/posix_spawnp-tests (Depends-on): Likewise.
46009         * modules/stat-time-tests (Depends-on): Likewise.
46010         * modules/yesno-tests (Depends-on): Likewise.
46011
46012 2009-07-19  Bruno Haible  <bruno@clisp.org>
46013
46014         Unify conditionals.
46015         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
46016         macros, not at the compiler macros.
46017         * lib/pipe.c: Likewise.
46018         * lib/execute.c: Likewise.
46019         * lib/spawni.c: Likewise.
46020
46021 2009-07-19  Bruno Haible  <bruno@clisp.org>
46022
46023         Fix handling of closed stdin/stdout/stderr on mingw.
46024         * lib/w32spawn.h: Include unistd.h.
46025         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
46026         file descriptor with O_NOINHERIT flag.
46027         (fd_safer_noinherit): New function, based on fd-safer.c.
46028         (dup_safer_noinherit): New function, based on dup-safer.c.
46029         (undup_safer_noinherit): New function.
46030         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
46031         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
46032         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
46033         instead of fd_safer.
46034         * tests/test-pipe.c: Include <windows.h>.
46035         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
46036         result.
46037
46038         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
46039         from main.
46040         (test_pipe): Pass an extra argument for disambiguation.
46041         (main): Invoke parent_main or child_main.
46042
46043         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
46044         consistently.
46045
46046 2009-07-18  Eric Blake  <ebb9@byu.net>
46047
46048         test-pipe: fix mingw build
46049         * tests/test-pipe.c (main): Avoid fcntl on mingw.
46050
46051 2009-07-18  Bruno Haible  <bruno@clisp.org>
46052
46053         * modules/pipe-tests (Makefile.am): Fix typo.
46054
46055 2009-07-18  Eric Blake  <ebb9@byu.net>
46056
46057         error: fix mingw build
46058         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
46059         Reported by Bruno Haible.
46060
46061         error: avoid undefined use of stdout
46062         * lib/error.c (error, error_at_line): Check that fd 1 is open
46063         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
46064         is handling faults and the close_stdout module wants to report the
46065         detection of closed stdout as an error.
46066
46067 2009-07-17  Eric Blake  <ebb9@byu.net>
46068
46069         pipe: be robust in face of closed fds
46070         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
46071         should cause child to misbehave.
46072         * modules/pipe-tests: New module.
46073         * tests/test-pipe.c: New file.
46074         * tests/test-pipe.sh: New file.
46075         Reported by Akim Demaille.
46076
46077 2009-07-14  Bruno Haible  <bruno@clisp.org>
46078
46079         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
46080         Reported by anonymous kc.
46081
46082 2009-07-07  Jim Meyering  <meyering@redhat.com>
46083
46084         maint.mk: don't look for translatable strings in *.m4 or *.mk
46085         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
46086         when searching for translatable strings.
46087
46088 2009-07-05  Jim Meyering  <meyering@redhat.com>
46089
46090         remove superfluous parentheses in STREQ definition
46091         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
46092         * lib/getugroups.c (STREQ): Likewise.
46093         * lib/fnmatch.c (STREQ): Likewise.
46094         Spotted by Bruno Haible.
46095
46096 2009-07-04  Jim Meyering  <meyering@redhat.com>
46097
46098         argv-iter: new module
46099         * MODULES.html.sh: Add argv-iter.
46100         * lib/argv-iter.c, lib/argv-iter.h: New files.
46101         * modules/argv-iter: New file.
46102         * modules/argv-iter-tests: New file.
46103         * tests/test-argv-iter.c: Test it.
46104
46105 2009-07-04  Bruno Haible  <bruno@clisp.org>
46106
46107         Fix assertion.
46108         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
46109         contains more exact copies of a given entry than file2, leave the extra
46110         copies unpaired rather than aborting.
46111         Reported by Eric Blake.
46112
46113 2009-07-02  Bruno Haible  <bruno@clisp.org>
46114
46115         Speedup git-merge-changelog for git cherry-pick.
46116         * lib/git-merge-changelog.c (struct entries_mapping): New type.
46117         (entries_mapping_get): New function, extracted from compute_mapping.
46118         (entries_mapping_reverse_get): New function.
46119         (compute_mapping): Add a 'full' argument. Return the result in a
46120         'struct entries_mapping'.
46121         (main): Update. Access the mappings through entries_mapping_get.
46122         Reported by Eric Blake.
46123
46124 2009-07-02  Bruno Haible  <bruno@clisp.org>
46125
46126         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
46127         best_i.
46128
46129 2009-07-02  Bruno Haible  <bruno@clisp.org>
46130
46131         Speed up approximate search for matching ChangeLog entries.
46132         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
46133         argument. Call fstrcmp_bounded instead of fstrcmp.
46134         (compute_mapping, try_split_merged_entry, main): Update callers.
46135
46136 2009-07-02  Bruno Haible  <bruno@clisp.org>
46137
46138         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
46139
46140 2009-06-30  Bruno Haible  <bruno@clisp.org>
46141
46142         Reduce the number of uc_is_cased calls.
46143         * lib/unicase.h (casing_suffix_context_t): Add
46144         'first_char_except_ignorable' field.
46145         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
46146         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
46147         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
46148         Update initializer.
46149         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
46150         case-ignorable characters.
46151         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
46152         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
46153         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
46154         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
46155         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
46156
46157 2009-06-30  Bruno Haible  <bruno@clisp.org>
46158
46159         Tests for module 'unicase/ignorable'.
46160         * modules/unicase/ignorable-tests: New file.
46161         * tests/unicase/test-ignorable.c: New file, generated by
46162         gen-uni-tables.
46163
46164         Tests for module 'unicase/cased'.
46165         * modules/unicase/cased-tests: New file.
46166         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
46167         * tests/unicase/test-predicate-part1.h: New file, derived from
46168         tests/unictype/test-predicate-part1.h.
46169         * tests/unicase/test-predicate-part2.h: New file, same as
46170         tests/unictype/test-predicate-part2.h.
46171
46172         Fix evaluation of "Before C" condition of FINAL_SIGMA.
46173         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
46174         (output_casing_properties): New function.
46175         (main): Call it.
46176         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
46177         * lib/unicase/cased.c: Include unictype/bitmap.h.
46178         (uc_is_cased): Define through a bitmap lookup.
46179         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
46180         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
46181         (uc_is_case_ignorable): Define through a bitmap lookup.
46182         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
46183         lib/unictype/bitmap.h.
46184         (Depends-on): Add inline. Clean up.
46185         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
46186         lib/unictype/bitmap.h.
46187         (Depends-on): Add inline. Clean up.
46188         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
46189         recognition.
46190         * tests/unicase/test-u16-tolower.c (main): Likewise.
46191         * tests/unicase/test-u32-tolower.c (main): Likewise.
46192
46193 2009-06-30  Bruno Haible  <bruno@clisp.org>
46194
46195         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
46196         * lib/unicase/u16-casemap.c: Likewise.
46197         * lib/unicase/u32-casemap.c: Likewise.
46198
46199 2009-06-29  Bruno Haible  <bruno@clisp.org>
46200
46201         Define u32_casefold as a wrapper around u32_ct_casefold.
46202         * lib/unicase/u32-casefold.c: Update.
46203         * modules/unicase/u32-casefold (Depends-on): Add
46204         unicase/u32-ct-casefold, unicase/empty-prefix-context,
46205         unicase/empty-suffix-context. Clean up.
46206
46207         Define u16_casefold as a wrapper around u16_ct_casefold.
46208         * lib/unicase/u16-casefold.c: Update.
46209         * modules/unicase/u16-casefold (Depends-on): Add
46210         unicase/u16-ct-casefold, unicase/empty-prefix-context,
46211         unicase/empty-suffix-context. Clean up.
46212
46213         Define u8_casefold as a wrapper around u8_ct_casefold.
46214         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
46215         * lib/unicase/u8-casefold.c: Update.
46216         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
46217         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
46218
46219         Define u32_totitle as a wrapper around u32_ct_totitle.
46220         * lib/unicase/u32-totitle.c: Update.
46221         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
46222         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
46223
46224         Define u16_totitle as a wrapper around u16_ct_totitle.
46225         * lib/unicase/u16-totitle.c: Update.
46226         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
46227         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
46228
46229         Define u8_totitle as a wrapper around u8_ct_totitle.
46230         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
46231         functions.
46232         (FUNC): Delegate to U_CT_TOTITLE.
46233         * lib/unicase/u8-totitle.c: Update.
46234         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
46235         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
46236
46237         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
46238         invocation.
46239         * modules/unicase/u32-tolower (Depends-on): Add
46240         unicase/empty-prefix-context, unicase/empty-suffix-context.
46241
46242         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
46243         invocation.
46244         * modules/unicase/u16-tolower (Depends-on): Add
46245         unicase/empty-prefix-context, unicase/empty-suffix-context.
46246
46247         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
46248         * modules/unicase/u8-tolower (Depends-on): Add
46249         unicase/empty-prefix-context, unicase/empty-suffix-context.
46250
46251         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
46252         invocation.
46253         * modules/unicase/u32-toupper (Depends-on): Add
46254         unicase/empty-prefix-context, unicase/empty-suffix-context.
46255
46256         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
46257         invocation.
46258         * modules/unicase/u16-toupper (Depends-on): Add
46259         unicase/empty-prefix-context, unicase/empty-suffix-context.
46260
46261         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
46262         * modules/unicase/u8-toupper (Depends-on): Add
46263         unicase/empty-prefix-context, unicase/empty-suffix-context.
46264
46265         New module 'unicase/u32-ct-casefold'.
46266         * lib/unicase/u32-ct-casefold.c: New file.
46267         * modules/unicase/u32-ct-casefold: New file.
46268
46269         New module 'unicase/u16-ct-casefold'.
46270         * lib/unicase/u16-ct-casefold.c: New file.
46271         * modules/unicase/u16-ct-casefold: New file.
46272
46273         New module 'unicase/u8-ct-casefold'.
46274         * lib/unicase/u8-ct-casefold.c: New file.
46275         * lib/unicase/u-ct-casefold.h: New file, derived from
46276         lib/unicase/u-casefold.h.
46277         * modules/unicase/u8-ct-casefold: New file.
46278
46279         New module 'unicase/u32-ct-totitle'.
46280         * lib/unicase/u32-ct-totitle.c: New file.
46281         * modules/unicase/u32-ct-totitle: New file.
46282
46283         New module 'unicase/u16-ct-totitle'.
46284         * lib/unicase/u16-ct-totitle.c: New file.
46285         * modules/unicase/u16-ct-totitle: New file.
46286
46287         New module 'unicase/u8-ct-totitle'.
46288         * lib/unicase/u8-ct-totitle.c: New file.
46289         * lib/unicase/u-ct-totitle.h: New file, derived from
46290         lib/unicase/u-totitle.h.
46291         * modules/unicase/u8-ct-totitle: New file.
46292
46293         New module 'unicase/u32-ct-tolower'.
46294         * lib/unicase/u32-ct-tolower.c: New file.
46295         * modules/unicase/u32-ct-tolower: New file.
46296
46297         New module 'unicase/u16-ct-tolower'.
46298         * lib/unicase/u16-ct-tolower.c: New file.
46299         * modules/unicase/u16-ct-tolower: New file.
46300
46301         New module 'unicase/u8-ct-tolower'.
46302         * lib/unicase/u8-ct-tolower.c: New file.
46303         * modules/unicase/u8-ct-tolower: New file.
46304
46305         New module 'unicase/u32-ct-toupper'.
46306         * lib/unicase/u32-ct-toupper.c: New file.
46307         * modules/unicase/u32-ct-toupper: New file.
46308
46309         New module 'unicase/u16-ct-toupper'.
46310         * lib/unicase/u16-ct-toupper.c: New file.
46311         * modules/unicase/u16-ct-toupper: New file.
46312
46313         New module 'unicase/u8-ct-toupper'.
46314         * lib/unicase/u8-ct-toupper.c: New file.
46315         * modules/unicase/u8-ct-toupper: New file.
46316
46317         Add context arguments to u*_casemap functions.
46318         * lib/unicase/unicasemap.h: Include unicase.h.
46319         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
46320         suffix_context arguments.
46321         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
46322         functions.
46323         (FUNC): Add prefix_context and suffix_context arguments. Use
46324         uc_is_cased and uc_is_case_ignorable.
46325         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
46326         * lib/unicase/u16-casemap.c: Likewise.
46327         * lib/unicase/u32-casemap.c: Likewise.
46328         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
46329         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
46330         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
46331         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
46332         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
46333         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
46334
46335         New module 'unicase/u32-suffix-context'.
46336         * lib/unicase/u32-suffix-context.c: New file.
46337         * modules/unicase/u32-suffix-context: New file.
46338
46339         New module 'unicase/u16-suffix-context'.
46340         * lib/unicase/u16-suffix-context.c: New file.
46341         * modules/unicase/u16-suffix-context: New file.
46342
46343         New module 'unicase/u8-suffix-context'.
46344         * lib/unicase/u8-suffix-context.c: New file.
46345         * lib/unicase/u-suffix-context.h: New file.
46346         * modules/unicase/u8-suffix-context: New file.
46347
46348         New module 'unicase/empty-suffix-context'.
46349         * lib/unicase/empty-suffix-context.c: New file.
46350         * modules/unicase/empty-suffix-context: New file.
46351
46352         New module 'unicase/u32-prefix-context'.
46353         * lib/unicase/u32-prefix-context.c: New file.
46354         * modules/unicase/u32-prefix-context: New file.
46355
46356         New module 'unicase/u16-prefix-context'.
46357         * lib/unicase/u16-prefix-context.c: New file.
46358         * modules/unicase/u16-prefix-context: New file.
46359
46360         New module 'unicase/u8-prefix-context'.
46361         * lib/unicase/u8-prefix-context.c: New file.
46362         * lib/unicase/u-prefix-context.h: New file.
46363         * lib/unicase/context.h: New file.
46364         * modules/unicase/u8-prefix-context: New file.
46365
46366         New module 'unicase/empty-prefix-context'.
46367         * lib/unicase/empty-prefix-context.c: New file.
46368         * modules/unicase/empty-prefix-context: New file.
46369
46370         New module 'unicase/ignorable'.
46371         * lib/unicase/ignorable.c: New file.
46372         * modules/unicase/ignorable: New file.
46373
46374         New module 'unicase/cased'.
46375         * lib/unicase/caseprop.h: New file.
46376         * lib/unicase/cased.c: New file.
46377         * modules/unicase/cased: New file.
46378
46379         New functions for case mapping of substrings.
46380         * lib/unicase.h (casing_prefix_context_t): New type.
46381         (unicase_empty_prefix_context): New variable.
46382         (u8_casing_prefix_context, u16_casing_prefix_context,
46383         u32_casing_prefix_context, u8_casing_prefixes_context,
46384         u16_casing_prefixes_context, u32_casing_prefixes_context): New
46385         declarations.
46386         (casing_suffix_context_t): New type.
46387         (unicase_empty_suffix_context): New variable.
46388         (u8_casing_suffix_context, u16_casing_suffix_context,
46389         u32_casing_suffix_context, u8_casing_suffixes_context,
46390         u16_casing_suffixes_context, u32_casing_suffixes_context,
46391         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
46392         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
46393         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
46394         declarations.
46395
46396 2009-06-28  Jim Meyering  <meyering@redhat.com>
46397
46398         boostrap: indent only with spaces
46399         * build-aux/bootstrap: Indent only with spaces, never TABs.
46400
46401         bootstrap: split long lines
46402         * build-aux/bootstrap: Keep line length < 80.
46403
46404         bootstrap: sync from coreutils
46405         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
46406         just as autoreconf does.  Verify a list of prerequisite
46407         package-name,version-number pairs if defined in bootstrap.conf.
46408         Refer to README-prereq, if prerequisites are not satisfied.
46409
46410 2009-06-27  Eric Blake  <ebb9@byu.net>
46411
46412         tests: add test for bogus NULL definition
46413         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
46414         * tests/test-stdlib.c: Likewise.
46415         * tests/test-string.c: Likewise.
46416         * tests/test-locale.c: Likewise.
46417         * tests/test-unistd.c: Likewise.
46418         * modules/stdio-tests (Depends-on): Add verify.
46419         * modules/stdlib-tests (Depends-on): Likewise.
46420         * modules/string-tests (Depends-on): Likewise.
46421         * modules/locale-tests (Depends-on): Likewise.
46422         * modules/unistd-tests (Depends-on): Likewise.
46423
46424 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
46425
46426         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
46427         self-explaining comment.
46428         * m4/selinux-selinux-h: Update serial.
46429         (gl_LIBSELINUX): New macro, adding a warning for missing development
46430         packages to code extracted from...
46431         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
46432         Add warning for missing development packages here, too.
46433
46434 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
46435
46436         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
46437
46438 2009-06-25  Eric Blake  <ebb9@byu.net>
46439
46440         version-etc: fix regression
46441         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
46442         gcc.
46443         (version_etc): Use it, to catch bugs with trailing NULL.
46444         * lib/version-etc.c (version_etc_arn): Delete unused argument.
46445         (version_etc_va): Fix logic bug.
46446         * modules/version-etc-tests: Add test.
46447         * tests/test-version-etc.c: New file.
46448         * tests/test-version-etc.sh: Likewise.
46449
46450 2009-06-25  Sam Steingold  <sds@gnu.org>
46451
46452         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
46453         mbtowc declaration.
46454
46455 2009-06-25  Eric Blake  <ebb9@byu.net>
46456
46457         fpurge: migrate into <stdio.h>
46458         * lib/fpurge.h: Delete...
46459         * lib/stdio.in.h (fpurge): ...and declare here, instead.
46460         * lib/fpurge.c (fpurge): Change declaring header.
46461         * modules/fpurge (Files): Drop deleted file.
46462         (Depends-on): Add stdio.
46463         (configure.ac): Set witness.
46464         * modules/stdio (Makefile.am): Support fpurge macros.
46465         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
46466         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
46467         * lib/fflush.c: Update client.
46468         * tests/test-fpurge.c: Likewise.
46469         * NEWS: Mention the change.
46470
46471 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
46472
46473         * lib/argp-version-etc.c (program_authors): Add const
46474         qualifier.
46475         * lib/version-etc.c: Fix typos in the comments.
46476         * modules/argp-version-etc: Depends on version-etc.
46477
46478 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
46479
46480         argp-version-etc: new module.
46481
46482         * lib/argp-version-etc.c: New file.
46483         * lib/argp-version-etc.h: New file.
46484         * modules/argp-version-etc: New file.
46485         * modules/argp-version-etc-tests: New file.
46486         * tests/test-argp-version-etc.c: New test.
46487         * tests/test-argp-version-etc-1.sh: New test.
46488
46489 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
46490
46491         Provide additional interfaces and documentation for version-etc
46492         module.
46493
46494         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
46495         interfaces.
46496         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
46497         prototypes.
46498
46499 2009-06-24  Bruno Haible  <bruno@clisp.org>
46500
46501         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
46502         HAVE_LIB${NAME} macro.
46503         Reported by Sam Steingold <sds@gnu.org>.
46504
46505 2009-06-23  Simon Josefsson  <simon@josefsson.org>
46506
46507         * modules/hash-tests (test_hash_LDADD): Link to libintl when
46508         needed.
46509
46510 2009-06-21  Bruno Haible  <bruno@clisp.org>
46511
46512         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
46513         work.
46514         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
46515         together with LIB${NAME}, LTLIB${NAME}.
46516         Reported by Sam Steingold <sds@gnu.org>.
46517
46518 2009-06-20  Jim Meyering  <meyering@redhat.com>
46519
46520         tests: make sc_require_test_exit_idiom more generic
46521         * top/maint.mk (Exit_witness_file): New overridable variable.
46522         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
46523         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
46524
46525 2009-06-19  Jim Meyering  <meyering@redhat.com>
46526
46527         hash: reverse order of src/dst parameters in an internal interface
46528         * lib/hash.c (transfer_entries): Reverse order of parameters to
46529         put DST before SRC.  Adjust callers.
46530
46531         tests: test-hash: avoid wholesale duplication
46532         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
46533         Instead, use a loop and add a single conditional.
46534
46535         tests: test-hash: allow seed selection via a command line argument
46536         * tests/test-hash.c (get_seed): New function.
46537         (main): Use it.
46538
46539 2009-06-19  Eric Blake  <ebb9@byu.net>
46540
46541         hash: avoid memory leak on allocation failure
46542         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
46543         failure.  Factor repeated algorithm...
46544         (transfer_entries): ...into new helper routine.
46545         (hash_delete): React to hash_rehash return value.
46546
46547         hash: reduce memory pressure in hash_rehash no-op case
46548         * lib/hash.c (next_prime): Avoid overflow.
46549         (hash_initialize): Factor bucket size computation...
46550         (compute_bucket_size): ...into new helper function.
46551         (hash_rehash): Use new function and open coding to reduce memory
46552         pressure, and avoid a memory leak in USE_OBSTACK code.
46553         Reported by Jim Meyering.
46554
46555 2009-06-18  Eric Blake  <ebb9@byu.net>
46556
46557         hash: make rotation more obvious
46558         * modules/hash (Depends-on): Add bitrotate and stdint.
46559         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
46560         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
46561         (SIZE_MAX): Rely on headers for definition.
46562         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
46563         (raw_hasher): Use rotr_sz.
46564         Suggested by Jim Meyering.
46565
46566         hash: fix memory leak in last patch
46567         * lib/hash.c (hash_rehash): Avoid memory leak.
46568
46569         hash: avoid no-op rehashing
46570         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
46571
46572         hash: provide default callback functions
46573         * lib/hash.c (raw_hasher, raw_comparator): New functions.
46574         (hash_initialize): Use them as defaults.
46575         * tests/test-hash.c (main): Test this.
46576
46577         hash: minor optimization
46578         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
46579         when possible.
46580         (hash_initialize): Document this promise.
46581         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
46582         * tests/test-hash.c (hash_compare_strings): Test this.
46583
46584 2009-06-18  Bruno Haible  <bruno@clisp.org>
46585
46586         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
46587         going to be replaced anyway.
46588
46589 2009-06-18  Bruno Haible  <bruno@clisp.org>
46590
46591         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
46592         in one place.
46593         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
46594         be replaced anyway.
46595
46596 2009-06-18  Eric Blake  <ebb9@byu.net>
46597
46598         hash: check for resize before insertion
46599         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
46600         threshold before insertion, so that a pathological hash_rehash
46601         that fills every bucket can still trigger another rehash.
46602
46603 2009-06-18  Jim Meyering  <meyering@redhat.com>
46604
46605         hash-tests: add a loop around the small tests
46606         * tests/test-hash.c (main): Repeat small tests with selected
46607         small initial table sizes.
46608
46609 2009-06-17  Eric Blake  <ebb9@byu.net>
46610
46611         hash: minor cleanups
46612         * lib/hash.h (hash_entry): Make opaque, by moving...
46613         * lib/hash.c (hash_entry): ...here.
46614         (hash_insert): Clarify restrictions on what can be inserted.
46615         (hash_get_next): Clarify when it is safe to remove an element
46616         during traversal.
46617         (check_tuning): Skip verification when tuning is known safe.
46618         (hash_initialize): Clarify restrictions on tuning.
46619
46620 2009-06-17  Jim Meyering  <jim@meyering.net>
46621         and Eric Blake  <ebb9@byu.net>
46622
46623         hash-tests: new module
46624         * modules/hash-tests: New file.
46625         * tests/test-hash.c: New file.
46626
46627 2009-06-17  Eric Blake  <ebb9@byu.net>
46628
46629         strstr-simple: document new module
46630         * MODULES.html.sh: Document new module.
46631
46632         strstr, strcasestr: replace on platforms with broken memchr
46633         * modules/strstr: Split into...
46634         * modules/strstr-simple: ...new module that does not care about
46635         performance, but does care about glibc bug.
46636         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
46637         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
46638         if platform memchr is broken, per Debian bug 521737.
46639         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
46640         memchr.
46641         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
46642         * doc/posix-functions/strstr.texi (strstr): Document the fix.
46643         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
46644         * modules/mountlist (Depends-on): Add strstr-simple.
46645         * modules/gen-uni-tables (Depends-on): Likewise.
46646         * modules/argz (Depends-on): Add strstr.
46647
46648 2009-06-17  Bruno Haible  <bruno@clisp.org>
46649
46650         * modules/posix_spawn-internal (Depends-on): Add errno.
46651
46652 2009-06-17  Bruno Haible  <bruno@clisp.org>
46653
46654         Define missing ESTALE on Interix 3.5.
46655         * lib/errno.in.h (ESTALE): Assign a value if missing.
46656         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
46657         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
46658         missing.
46659         * doc/posix-headers/errno.texi: Mention the Interix bug.
46660         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
46661
46662 2009-06-15  Eric Blake  <ebb9@byu.net>
46663
46664         memchr, memchr2: add valgrind exception
46665         * lib/memchr.valgrind: New file.
46666         * lib/memchr2.valgrind: New file.
46667         * modules/memchr (Files): Distribute valgrind file.
46668         * modules/memchr2 (Files): Likewise.
46669
46670         docs: memchr is no longer obsolete
46671         * MODULES.html.sh: Move memchr from obsolete to string.h section.
46672         * lib/string.in.h (memchr): Simplify logic.
46673
46674 2009-06-14  Jim Meyering  <meyering@redhat.com>
46675
46676         link-follow: fix the "checking..." message to not mention trailing slash
46677         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
46678         never considered trailing slashes.
46679
46680 2009-06-14  Bruno Haible  <bruno@clisp.org>
46681
46682         * m4/memchr.m4: Mention also the bug on IA-64.
46683         * doc/posix-functions/memchr.texi: Likewise.
46684
46685 2009-06-12  Eric Blake  <ebb9@byu.net>
46686
46687         memchr: detect broken x86_64 and alpha implementations
46688         * modules/memchr-tests (Depends-on): Move mmap detection...
46689         * modules/memchr (Depends-on): ...here.
46690         (configure.ac): Set indicator.
46691         * lib/string.in.h (memchr): Declare replacement.
46692         * modules/string (Makefile.am): Trigger replacement.
46693         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
46694         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
46695         bugs.
46696         * doc/posix-functions/memchr.texi (memchr): Document the bug.
46697         * modules/getpagesize (License): Relax license.
46698
46699 2009-06-11  Bruno Haible  <bruno@clisp.org>
46700
46701         * lib/idpriv.h: Add more references.
46702
46703 2009-06-08  Bruno Haible  <bruno@clisp.org>
46704
46705         Tests for module 'idpriv-droptemp'.
46706         * modules/idpriv-droptemp-tests: New file.
46707         * tests/test-idpriv-droptemp.sh: New file.
46708         * tests/test-idpriv-droptemp.su.sh: New file.
46709         * tests/test-idpriv-droptemp.c: New file.
46710
46711         New module 'idpriv-droptemp'.
46712         * lib/idpriv-droptemp.c: New file.
46713         * modules/idpriv-droptemp: New file.
46714
46715 2009-06-08  Bruno Haible  <bruno@clisp.org>
46716
46717         Tests for module 'idpriv-drop'.
46718         * modules/idpriv-drop-tests: New file.
46719         * tests/test-idpriv-drop.sh: New file.
46720         * tests/test-idpriv-drop.su.sh: New file.
46721         * tests/test-idpriv-drop.c: New file.
46722
46723         New module 'idpriv-drop'.
46724         * lib/idpriv.h: New file.
46725         * lib-idpriv-drop.c: New file.
46726         * m4/idpriv.m4: New file.
46727         * modules/idpriv-drop: New file.
46728
46729 2009-06-08  Bruno Haible  <bruno@clisp.org>
46730
46731         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
46732         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
46733         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
46734         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
46735         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
46736         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
46737         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
46738
46739 2009-06-08  Eric Blake  <ebb9@byu.net>
46740
46741         test-strstr: use memory fence, when possible
46742         * tests/test-strstr.c (main): Use memory fence, in order to be
46743         more likely to trigger Debian bug 521737.
46744         * modules/strstr-tests (Files): Pull in additional files.
46745
46746         memchr: no longer obsolete, for wider field testing
46747         * modules/memchr (Status, Notice): Delete, this module is no
46748         longer obsolete.
46749         * modules/vasnprintf (Depends-on): Add memchr.
46750
46751 2009-06-07  Jim Meyering  <meyering@redhat.com>
46752
46753         hash: declare some functions with the warn_unused_result attribute
46754         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
46755
46756 2009-06-07  Bruno Haible  <bruno@clisp.org>
46757
46758         * tests/test-alignof.c: Don't test int64_t if it does not exist.
46759         Reported by Eric Blake.
46760
46761 2009-06-06  Eric Blake  <ebb9@byu.net>
46762
46763         test-alignof: fix typo with long double
46764         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
46765         compiler error.
46766
46767 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
46768
46769         Escape non-texinfo { and }s.
46770         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
46771         markup error.
46772
46773 2009-06-04  Jim Meyering  <meyering@redhat.com>
46774
46775         gitlog-to-changelog: don't infloop on an empty commit log
46776         * build-aux/gitlog-to-changelog: Warn about an empty log message.
46777         Reported by Boris Petersen <transacid@centerim.org>.
46778
46779 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
46780
46781         version-etc: extend for packagers
46782         Add three new configure options, intended for packagers:
46783           --with-packager="packager name"
46784           --with-packager-version="packager-specific version"
46785           --with-packager-bug-reports="packager bug reporting"
46786         An example with coreutils:
46787           $ ./configure \
46788             --with-packager=Gentoo \
46789             --with-packager-bug-report=http://bugs.gentoo.org/ \
46790             --with-packager-version="patchset 1.6"
46791           $ ./src/ls --version | head -n2
46792           ls (GNU coreutils) 7.1-dirty
46793           Packaged by Gentoo (patchset 1.6)
46794         Note that the bug reporting info via --help doesn't show up because
46795         coreutils uses its own custom emit_bug_reporting_address() implementation
46796         in src/system.h.  If it didn't, it'd look like:
46797           $ ./src/ls --help | tail -n4
46798           Report bugs to <bug-coreutils@gnu.org>.
46799           Report Gentoo bugs to <http://bugs.gentoo.org/>.
46800           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
46801           General help using GNU software: <http://www.gnu.org/gethelp/>.
46802         * lib/version-etc.c: Print new information, if provided.
46803         * m4/version-etc.m4: New file.
46804         * modules/version-etc (Files): Add m4/version-etc.m4.
46805         (configure.ac): Add gl_VERSION_ETC.
46806
46807 2009-05-31  Bruno Haible  <bruno@clisp.org>
46808
46809         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
46810         and 'int64_t'.
46811         * modules/alignof-tests (Dependencies): Add stdint.
46812         Reported by Eric Blake.
46813
46814 2009-05-31  Bruno Haible  <bruno@clisp.org>
46815
46816         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
46817         restriction due to compiler bugs.
46818         Reported by Eric Blake.
46819
46820 2009-05-31  Simon Josefsson  <simon@josefsson.org>
46821             Bruno Haible  <bruno@clisp.org>
46822
46823         Fix test-alignof failure.
46824         * lib/alignof.h (alignof_slot): New macro.
46825         (alignof_type): New macro, with the same semantics as the previous
46826         'alignof'.
46827         (alignof): Alias to alignof_slot.
46828         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
46829         check that the results are usable as constant expressions.
46830
46831 2009-05-31  Bruno Haible  <bruno@clisp.org>
46832
46833         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
46834         * tests/test-memchr.c (main): Check that memchr does not read past the
46835         first occurrence of the byte.
46836         * tests/test-strstr.c (main): Update comment.
46837         Suggested by Eric Blake.
46838
46839 2009-05-30  Bruno Haible  <bruno@clisp.org>
46840
46841         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
46842         detail how to use dumpbin.
46843         Reported by David Byron <dbyron@dbyron.com>.
46844
46845 2009-06-02  Simon Josefsson  <simon@josefsson.org>
46846
46847         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
46848
46849 2009-06-02  Simon Josefsson  <simon@josefsson.org>
46850
46851         * m4/manywarnings.m4: Add GCC 4.4 warnings.
46852
46853 2009-05-28  Bruno Haible  <bruno@clisp.org>
46854
46855         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
46856         build-aux/ files.
46857
46858 2009-05-28  Simon Josefsson  <simon@josefsson.org>
46859
46860         * gnulib-tool (func_import): Transform license on build-aux/ files too.
46861
46862 2009-05-27  Simon Josefsson  <simon@josefsson.org>
46863
46864         * gnulib-tool (sed_transform_main_lib_file)
46865         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
46866         regexps.
46867
46868 2009-05-26  Simon Josefsson  <simon@josefsson.org>
46869
46870         * tests/test-strstr.c: Add another self-test.
46871         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
46872         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
46873
46874 2009-05-23  Bruno Haible  <bruno@clisp.org>
46875
46876         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
46877         change.
46878
46879 2009-05-21  Bruno Haible  <bruno@clisp.org>
46880
46881         Simplify use of mode_t varargs.
46882         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
46883         uses 'mode_t' or 'int'.
46884         * lib/openat.c (openat): Likewise.
46885         * lib/open-safer.c (open_safer): Likewise.
46886         * m4/mode_t.m4: New file.
46887         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
46888         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
46889         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
46890         * modules/open (Files): Add m4/mode_t.m4.
46891         * modules/openat (Files): Likewise.
46892         * modules/fcntl-safer (Files): Likewise.
46893         Suggested by Eric Blake.
46894
46895 2009-05-21  Pádraig Brady  <P@draigbrady.com>
46896
46897         * doc/glibc-functions/fallocate.texi: New file.
46898         * doc/gnulib.texi: Include it.
46899
46900 2009-05-21  Eric Blake  <ebb9@byu.net>
46901             Bruno Haible  <bruno@clisp.org>
46902
46903         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
46904         invocations.
46905         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
46906
46907 2009-05-21  Eric Blake  <ebb9@byu.net>
46908             Bruno Haible  <bruno@clisp.org>
46909
46910         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
46911         include_next. Fix of 2008-11-20 commit.
46912         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
46913         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
46914         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
46915         NEXT_MATH_H.
46916         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
46917         instead of NEXT_MATH_H.
46918
46919 2009-05-21  Bruno Haible  <bruno@clisp.org>
46920
46921         Avoid redefinition warnings for SIZE_MAX.
46922         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
46923         Reported by Simon Josefsson.
46924
46925 2009-05-21  Bruno Haible  <bruno@clisp.org>
46926
46927         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
46928         AC_CACHE_VAL.
46929
46930 2009-05-20  Bruno Haible  <bruno@clisp.org>
46931
46932         Make zeroptr.h work on mingw.
46933         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
46934         mprotect.
46935         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
46936         * modules/memchr2-tests (configure.ac): Likewise.
46937         * modules/memcmp-tests (configure.ac): Likewise.
46938         * modules/memmem-tests (configure.ac): Likewise.
46939         * modules/memrchr-tests (configure.ac): Likewise.
46940         Reported by Simon Josefsson.
46941
46942 2009-05-20  Simon Josefsson  <simon@josefsson.org>
46943
46944         * tests/test-glob.c: Include string.h for strcmp prototype.
46945
46946 2009-05-20  Simon Josefsson  <simon@josefsson.org>
46947
46948         * modules/getdelim (Depends-on): Add explicit stdint, although it
46949         was implicitly already pulled in via realloc-posix.
46950         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
46951
46952 2009-05-20  Simon Josefsson  <simon@josefsson.org>
46953
46954         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
46955         G. Christensen" <tgc@jupiterrise.com>.
46956         * m4/sys_socket_h.m4: Check for sa_family_t.
46957         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
46958         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
46959         * tests/test-sys_socket.c: Check that sa_family_t works.
46960
46961 2009-05-18  Eric Blake  <ebb9@byu.net>
46962
46963         maint.mk: allow gnulib_dir in VPATH build
46964         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
46965
46966 2009-05-15  Jim Meyering  <meyering@redhat.com>
46967
46968         maint.mk: Give gnulib_dir a default definition.
46969         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
46970         Thus, most packages no longer need to specify this variable in cfg.mk
46971
46972 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
46973
46974         rename.m4: fix typos that would make non-mingw cross-configure fail
46975         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
46976
46977 2009-05-13  Eric Blake  <ebb9@byu.net>
46978
46979         mmap-anon: avoid out-of-order autoconf expansion
46980         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
46981         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
46982         * modules/memchr-tests (Depends-on): Add extensions.
46983         * modules/memchr2-tests (Depends-on): Add extensions.
46984         * modules/memcmp-tests (Depends-on): Add extensions.
46985         * modules/memmem-tests (Depends-on): Add extensions.
46986         * modules/memrchr-tests (Depends-on): Add extensions.
46987
46988 2009-05-13  Bruno Haible  <bruno@clisp.org>
46989
46990         Make some tests ISO C 99 compliant.
46991         * tests/zerosize-ptr.h: New file.
46992         * tests/test-memchr.c: Include zerosize-ptr.h.
46993         (main): Use a zero-size object pointer instead of NULL.
46994         * tests/test-memchr2.c: Include zerosize-ptr.h.
46995         (main): Use a zero-size object pointer instead of NULL.
46996         * tests/test-memcmp.c: Include zerosize-ptr.h.
46997         (main): Use a zero-size object pointer instead of NULL.
46998         * tests/test-memmem.c: Include zerosize-ptr.h.
46999         (main): Use a zero-size object pointer instead of NULL.
47000         * tests/test-memrchr.c: Include zerosize-ptr.h.
47001         (main): Use a zero-size object pointer instead of NULL.
47002         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
47003         m4/mmap-anon.m4.
47004         (Depends-on): Add getpagesize.
47005         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
47006         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
47007         m4/mmap-anon.m4.
47008         (Depends-on): Add getpagesize.
47009         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
47010         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
47011         m4/mmap-anon.m4.
47012         (Depends-on): Add getpagesize.
47013         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
47014         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
47015         m4/mmap-anon.m4.
47016         (Depends-on): Add getpagesize.
47017         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
47018         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
47019         m4/mmap-anon.m4.
47020         (Depends-on): Add getpagesize.
47021         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
47022
47023 2009-05-12  Bruno Haible  <bruno@clisp.org>
47024
47025         Tests for module 'alignof'.
47026         * modules/alignof-tests: New file.
47027         * tests/test-alignof.c: New file.
47028
47029 2009-05-12  Bruno Haible  <bruno@clisp.org>
47030
47031         Fix alignof macro.
47032         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
47033         vendor compilers that are always correct.
47034
47035 2009-05-12  Bruno Haible  <bruno@clisp.org>
47036
47037         Make the MAP_ANONYMOUS detection work on HP-UX 11.
47038         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
47039         not whether its fully works.
47040
47041 2009-05-12  Bruno Haible  <bruno@clisp.org>
47042
47043         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
47044
47045 2009-05-12  Jim Meyering  <meyering@redhat.com>
47046
47047         * top/maint.mk: Adjust backslash alignment.
47048
47049 2009-05-11  Simon Josefsson  <simon@josefsson.org>
47050
47051         * top/maint.mk: Make $(srcdir)/build-aux configurable.
47052
47053 2009-05-11  Eric Blake  <ebb9@byu.net>
47054
47055         argp: avoid undefined behavior
47056         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
47057         macros.
47058
47059 2009-05-08  Simon Josefsson  <simon@josefsson.org>
47060
47061         * tests/test-vc-list-files-git.sh: Do git config of user.email and
47062         user.name to prevent git commit from complaining.
47063
47064 2009-05-10  Bruno Haible  <bruno@clisp.org>
47065
47066         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
47067         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
47068         it rewrites every file name only once.
47069         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
47070
47071 2009-05-08  Bruno Haible  <bruno@clisp.org>
47072
47073         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
47074         instead of 'max'.
47075
47076 2009-05-08  Simon Josefsson  <simon@josefsson.org>
47077
47078         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
47079         sockaddr_storage test.
47080
47081 2009-05-07  Simon Josefsson  <simon@josefsson.org>
47082
47083         * modules/sys_socket (Makefile.am): Substitute
47084         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
47085         * m4/sys_socket_h.m4: Check for sockaddr_storage.
47086         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
47087         * tests/test-sys_socket.c: Check sockaddr_storage.
47088
47089 2009-05-08  Bruno Haible  <bruno@clisp.org>
47090
47091         New module 'alignof'.
47092         * lib/alignof.h: New file.
47093         * modules/alignof: New file.
47094
47095 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
47096             Bruno Haible  <bruno@clisp.org>
47097
47098         Fix test-file-has-acl on FreeBSD.
47099         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
47100         mask is implicitly added.
47101         * tests/test-file-has-acl.c: Include <signal.h>.
47102         (main): Terminate the test after 5 seconds.
47103         * modules/acl-tests (configure.ac): Check for alarm function.
47104
47105 2009-05-04  Bruno Haible  <bruno@clisp.org>
47106
47107         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
47108         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
47109         * modules/errno (configure.ac): Drop AC_REQUIRE.
47110         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
47111         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
47112
47113 2009-05-04  Simon Josefsson  <simon@josefsson.org>
47114
47115         * modules/glob-tests: New module.
47116         * tests/test-glob.c: Add.
47117
47118 2009-05-04  Simon Josefsson  <simon@josefsson.org>
47119
47120         * modules/fnmatch-tests: New module.
47121         * tests/test-fnmatch.c: Add.
47122
47123 2009-05-04  Eric Blake  <ebb9@byu.net>
47124
47125         maint: make the new no-submodule-changes rule VPATH-safe
47126         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
47127
47128 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
47129             Bruno Haible  <bruno@clisp.org>
47130
47131         acl: Fix infinite loop on FreeBSD.
47132         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
47133         of return value from acl_get_entry.
47134         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
47135         Likewise.
47136
47137 2009-05-03  Bruno Haible  <bruno@clisp.org>
47138
47139         * lib/acl-internal.h (acl_entries): Clarify return value.
47140         * lib/acl_entries.c (acl_entries): Likewise.
47141
47142 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
47143
47144         Bug fix in acl module.
47145         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
47146
47147 2009-05-03  Bruno Haible  <bruno@clisp.org>
47148
47149         Create gperf-generated file in the source dir, not in the build dir.
47150         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
47151         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
47152         * modules/unicase/locale-language (unicase/locale-languages.h):
47153         Likewise.
47154         * modules/unicase/special-casing (unicase/special-casing-table.h):
47155         Likewise.
47156         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
47157         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
47158         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
47159         Reported by Ralf Wildenhues.
47160
47161 2009-05-03  Bruno Haible  <bruno@clisp.org>
47162
47163         * modules/fnmatch (Description, configure.ac): Taken from
47164         fnmatch-posix.
47165         * modules/fnmatch-posix: Turn into a symbolic reference to the
47166         'fnmatch' module, and deprecate.
47167         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
47168
47169 2009-05-03  Bruno Haible  <bruno@clisp.org>
47170
47171         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
47172         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
47173         Reported by Ralf Wildenhues.
47174
47175 2009-05-04  Simon Josefsson  <simon@josefsson.org>
47176
47177         * m4/fnmatch.m4: Fix fnmatch re-define.
47178
47179 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
47180
47181         priv-set: new module and tests; adapt write-any-file
47182         * lib/priv-set.c: New file.
47183         * lib/priv-set.h: New file.
47184         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
47185         * lib/write-any-file.c: Simplify by using priv-set module.
47186         * m4/priv-set.m4: New file.
47187         * modules/priv-set: New file.
47188         * modules/unlinkdir: Add dependency on priv-set module.
47189         * modules/write-any-file: Likewise.
47190
47191         Tests for module 'priv-set'.
47192         * modules/priv-set-tests: New file.
47193         * tests/test-priv-set.c: New file.
47194
47195 2009-05-03  Jim Meyering  <meyering@redhat.com>
47196             Bruno Haible  <bruno@clisp.org>
47197
47198         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
47199         use the converted UTF-8 variant of the name instead.
47200
47201 2009-05-03  Jim Meyering  <meyering@redhat.com>
47202
47203         tests: tighten some getdate tests
47204         * tests/test-getdate.c (main): Tighten tests: require equality,
47205         not just greater than.  Set TZ envvar to UTC0.
47206
47207 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
47208
47209         getdate: correctly interpret "next monday" when run on a Monday
47210         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
47211         that e.g., "next tues" (when run on a tuesday) results in a date
47212         that is one week in the future, and not today's date.
47213         I.e., add a week when the wday is the same as the current one.
47214         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
47215         and earlier by Martin Bernreuther and Jan Minář.
47216         * tests/test-getdate.c (main): Check that "next DAY" is always in
47217         the future and that "last DAY" is always in the past.
47218
47219 2009-05-02  Jim Meyering  <meyering@redhat.com>
47220
47221         build: ensure that a release build fails when a submodule is unclean
47222         * top/maint.mk (no-submodule-changes): New rule.
47223         (alpha beta major): Depend on it.
47224
47225 2009-05-02  Bruno Haible  <bruno@clisp.org>
47226
47227         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
47228         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
47229         shell variable gl_fnmatch_required to detect which variant is
47230         requested.
47231         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
47232         gl_FUNC_FNMATCH_POSIX.
47233         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
47234         exclude fnmatch-posix.
47235
47236 2009-05-02  Bruno Haible  <bruno@clisp.org>
47237
47238         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
47239         * modules/mbsrtowcs (License): Change to LGPLv2+.
47240         * modules/strnlen1 (License): Likewise.
47241         Reported by Simon Josefsson.
47242
47243 2009-05-02  Bruno Haible  <bruno@clisp.org>
47244
47245         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
47246         "cross".
47247         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
47248         gnulib-tool was called with option --source-base=lib.
47249
47250 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47251
47252         Use automake *-local hooks without commands, for extensibility.
47253         * modules/localcharset (Makefile.am): Rename install-exec-local
47254         rule to install-exec-localcharset, and make it a prerequisite of
47255         install-exec-local.  Likewise, rename the uninstall-local rule to
47256         uninstall-localcharset, and make it a prerequisite of the former.
47257
47258 2009-05-01  Bruno Haible  <bruno@clisp.org>
47259
47260         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
47261         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
47262         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
47263         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
47264         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
47265         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
47266         m4/locale-zh.m4, m4/codeset.m4.
47267
47268         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
47269         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
47270         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
47271         m4/locale-zh.m4.
47272
47273         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
47274         REPLACE_WCRTOMB if mbstate_t must be replaced.
47275         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
47276         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
47277
47278 2009-05-01  Bruno Haible  <bruno@clisp.org>
47279
47280         Avoid compiler warnings when redefining macros defined by <libintl.h>.
47281         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
47282         dngettext, dcngettext, textdomain, bindtextdomain,
47283         bind_textdomain_codeset): Undefine before redefining.
47284
47285 2009-04-30  Bruno Haible  <bruno@clisp.org>
47286
47287         Fix bug introduced on 2009-04-25.
47288         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
47289         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
47290         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
47291         is defined.
47292         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
47293         is defined.
47294         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
47295         is defined.
47296         Reported by Elbert_Pol <elbert.pol@gmail.com>.
47297
47298 2009-04-28  Bruno Haible  <bruno@clisp.org>
47299
47300         Comment tweaks.
47301         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
47302         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
47303         * lib/unicase.h (u*_casexfrm): Likewise.
47304         Reported by Paolo Bonzini.
47305
47306 2009-04-28  Bruno Haible  <bruno@clisp.org>
47307
47308         Fix a compilation error.
47309         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
47310         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
47311         Reported by Jim Meyering.
47312
47313 2009-04-27  Bruno Haible  <bruno@clisp.org>
47314
47315         New module 'libunistring'.
47316         * modules/libunistring: New file.
47317         * m4/libunistring.m4: New file.
47318         * MODULES.html.sh (Unicode string functions): Add it.
47319
47320 2009-04-27  Eric Blake  <ebb9@byu.net>
47321
47322         maint.mk: allow package-specific header to provide <config.h>
47323         * top/maint.mk (sc_require_config_h): New variable.
47324         (sc_require_config_h, sc_require_config_h_first): Use it.
47325
47326 2009-04-27  Simon Josefsson  <simon@josefsson.org>
47327
47328         * top/maint.mk (sc_avoid_if_before_free): Except
47329         useless-if-before-free script.
47330
47331 2009-04-27  Eric Blake  <ebb9@byu.net>
47332
47333         maintainer-makefile: depend on all required helper scripts
47334         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
47335         useless-if-before-free.
47336         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
47337         version, rather than assuming gnulib checkout is available.
47338         Reported by Simen Josefsson.
47339
47340 2009-04-26  Bruno Haible  <bruno@clisp.org>
47341
47342         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
47343         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
47344         "../" or "..".
47345
47346 2009-04-26  Bruno Haible  <bruno@clisp.org>
47347
47348         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
47349         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
47350         AC_LIB_HAVE_LINKFLAGS.
47351
47352 2009-04-26  Bruno Haible  <bruno@clisp.org>
47353
47354         Simplify calling convention of u*_conv_from_encoding.
47355         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
47356         u32_conv_from_encoding): Expect a resultbuf argument and return the
47357         result directly as a pointer.
47358         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
47359         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
47360         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
47361         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
47362         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
47363         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
47364         Update.
47365         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
47366         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
47367         * lib/vasnprintf.c (VASNPRINTF): Update.
47368         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
47369         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
47370         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
47371         * NEWS: Mention the change.
47372
47373 2009-04-26  Bruno Haible  <bruno@clisp.org>
47374
47375         Simplify calling convention of u*_conv_to_encoding.
47376         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
47377         u32_conv_to_encoding): Expect a resultbuf argument and return the
47378         result directly as a pointer.
47379         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
47380         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
47381         freeing scaled_offsets if mem_iconveha failed.
47382         * lib/unicase/u-casexfrm.h (FUNC): Update.
47383         * lib/uninorm/u-normxfrm.h (FUNC): Update.
47384         * lib/vasnprintf.c (VASNPRINTF): Update.
47385         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
47386         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
47387         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
47388         * NEWS: Mention the change.
47389
47390 2009-04-26  Bruno Haible  <bruno@clisp.org>
47391
47392         Avoid test failures on AIX and OSF/1.
47393         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
47394         malloc(0).
47395         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
47396         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
47397         Likewise.
47398         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
47399         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
47400         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
47401         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
47402         * doc/posix-functions/malloc.texi: Document the portability problem
47403         related to malloc(0).
47404
47405 2009-04-26  Bruno Haible  <bruno@clisp.org>
47406
47407         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
47408         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
47409         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
47410
47411 2009-04-25  Bruno Haible  <bruno@clisp.org>
47412
47413         Avoid link error when creating a namespace clean library.
47414         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
47415         as macro with arguments if already defined as an alias.
47416         * lib/signbitf.c (gl_signbitf): Don't undefine.
47417         * lib/signbitd.c (gl_signbitd): Don't undefine.
47418         * lib/signbitl.c (gl_signbitl): Don't undefine.
47419
47420 2009-04-25  Jim Meyering  <meyering@redhat.com>
47421
47422         vc-list-files: fix another quoting bug
47423         * build-aux/vc-list-files: Avoid sed backslash expansion
47424         of pathological directory names.
47425
47426 2009-04-25  Eric Blake  <ebb9@byu.net>
47427
47428         vc-list-files: fix shell quoting error
47429         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
47430         timestamp.
47431
47432 2009-04-25  Jim Meyering  <meyering@redhat.com>
47433
47434         vc-list-files: restore lost functionality with subdir argument
47435         * build-aux/vc-list-files: When given a non-"." sub-directory
47436         argument, substitute the $dir/ prefix back onto each resulting name.
47437         Otherwise, coreutils' root_tests check would fail.
47438
47439 2009-04-24  Eric Blake  <ebb9@byu.net>
47440
47441         vc-list-files: ignore git symlinks
47442         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
47443         than ls-files, to ignore git symlinks.
47444
47445         maint.mk: import improvements from m4
47446         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
47447         (move_if_change): Delete unused macro.
47448         (news-date-check, vc-diff-check): Support VPATH builds.
47449         (announcement): Likewise.  Split --bootstrap-tools list...
47450         (boostrap-tools): ...into separate list, which can be overridden
47451         in cfg.mk.
47452         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
47453         requiring dependency on useless-if-before-free module.
47454         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
47455         Support VPATH builds.
47456
47457 2009-04-24  Jim Meyering  <meyering@redhat.com>
47458
47459         maint.mk: remove coreutils-specific rules and variables
47460         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
47461         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
47462         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
47463
47464         maint.mk: remove obsolete rule
47465         * top/maint.mk (rel-check): Remove rule.
47466         (WGET, WGETFLAGS): Remove now-unused variables.
47467
47468 2009-04-24  Simon Josefsson  <simon@josefsson.org>
47469
47470         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
47471         consistency.
47472
47473         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
47474         '$(PATH_SEPARATOR)' instead of ':'.
47475
47476 2009-04-24  Simon Josefsson  <simon@josefsson.org>
47477
47478         * lib/getopt1.c (main): Use 'const' for static array.
47479
47480 2009-04-24  Simon Josefsson  <simon@josefsson.org>
47481
47482         * top/maint.mk: Sync with coreutils.
47483         * NEWS: Explain incompatibilities.
47484
47485 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47486             Bruno Haible  <bruno@clisp.org>
47487
47488         Fix cross-compilation results.
47489         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
47490         statement, as third argument of AC_TRY_RUN.
47491         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
47492         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
47493         Likewise.
47494         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
47495         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
47496         Likewise.
47497         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
47498         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
47499         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
47500
47501 2009-04-20  Bruno Haible  <bruno@clisp.org>
47502
47503         Avoid test failure on mingw.
47504         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
47505
47506 2009-04-20  Bruno Haible  <bruno@clisp.org>
47507
47508         Avoid compilation error on mingw.
47509         * modules/localename-tests (Depends-on): Add locale.
47510
47511 2009-04-19  Bruno Haible  <bruno@clisp.org>
47512
47513         Support for building a shared library on Windows platforms.
47514         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
47515         (main): Test the presence of UNINORM_NFC here.
47516         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
47517         (main): Test the presence of UNINORM_NFD here.
47518         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
47519         (main): Test the presence of UNINORM_NFKC here.
47520         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
47521         (main): Test the presence of UNINORM_NFKD here.
47522
47523 2009-04-19  Bruno Haible  <bruno@clisp.org>
47524
47525         Avoid a compiler warning.
47526         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
47527         Change type of variable 'sequence'.
47528
47529 2009-04-19  Bruno Haible  <bruno@clisp.org>
47530
47531         * modules/configmake (Makefile.am): When the contents of configmake.h
47532         does not change, arrange to preserve its modification time.
47533
47534 2009-04-17  Simon Josefsson  <simon@josefsson.org>
47535
47536         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
47537         gettext domain.
47538
47539 2009-04-16  Jim Meyering  <meyering@redhat.com>
47540
47541         useless-if-before-free: improve conversion code
47542         * build-aux/useless-if-before-free: Adjust code-in-comment to match
47543         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
47544
47545 2009-04-14  Bruno Haible  <bruno@clisp.org>
47546
47547         * modules/fcntl (Depends-on): Add extensions.
47548         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
47549
47550 2009-04-12  Ben Pfaff  <blp@gnu.org>
47551
47552         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
47553         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
47554
47555 2009-03-20  Ben Pfaff  <blp@gnu.org>
47556
47557         Make rename replace existing destinations on Windows.
47558         * m4/rename.m4: Add test for Mingw.
47559         * lib/rename.c: Add rename replacement that uses MoveFileEx with
47560         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
47561         * doc/posix-functions/rename.texi: Document.
47562
47563 2009-04-10  Bruno Haible  <bruno@clisp.org>
47564
47565         New include file "iconveh.h".
47566         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
47567         * lib/striconveh.h: Include it.
47568         (enum iconv_ilseq_handler): Remove definition.
47569         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
47570         striconveh.h.
47571         * lib/striconveha.c: Include striconveh.h.
47572         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
47573         * modules/striconveh (Files): Add lib/iconveh.h.
47574         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
47575         lib/striconveh.h.
47576
47577 2009-04-10  Bruno Haible  <bruno@clisp.org>
47578
47579         * lib/uniconv.h: Update comment.
47580
47581 2009-04-10  Bruno Haible  <bruno@clisp.org>
47582
47583         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
47584         always.
47585         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
47586         * lib/unistr/u16-mbtouc-aux.c: Likewise.
47587         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
47588         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
47589         "unistring-notinline.h", so that the function gets defined always.
47590         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
47591         * lib/unistr/u8-uctomb.c: Likewise.
47592         * lib/unistr/u16-mbtouc.c: Likewise.
47593         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
47594         * lib/unistr/u16-uctomb.c: Likewise.
47595         * lib/unistr/u32-mbtouc.c: Likewise.
47596         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
47597         * lib/unistr/u32-uctomb.c: Likewise.
47598
47599 2009-04-10  Bruno Haible  <bruno@clisp.org>
47600
47601         Mark 'utime' obsolete.
47602         * modules/utime (Status, Notice): New sections.
47603         Suggested by Jim Meyering.
47604
47605         Fix cross-compile guess for utime test.
47606         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
47607         autoconf.
47608         * doc/posix-functions/utime.texi: Give more precisions.
47609         Reported by Jan <ipif@ymail.com>.
47610
47611 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
47612
47613         filevercmp: correct today's change
47614         * lib/filevercmp.c: Also handle coreutils' test inputs.
47615         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
47616
47617         Fix regression in 'filevercmp' module. Thanks Sven Joachim
47618         for reporting it.
47619         * lib/filevercmp.c: Special handle for "", "." and "..".
47620         * tests/test-filevercmp.c: Enlarge the set suite.
47621
47622 2009-04-07  Jim Meyering  <meyering@redhat.com>
47623
47624         useless-if-before-free: show how to remove braced useless free, too
47625         * build-aux/useless-if-before-free: still only in a comment, though.
47626
47627 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
47628
47629         maint.mk: import changes to syntax-check macros from coreutils
47630         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
47631         Use them in the relevant macros.
47632
47633 2009-04-06  Bruno Haible  <bruno@clisp.org>
47634
47635         Fix unportable use of bit-fields.
47636         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
47637         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
47638         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
47639
47640 2009-04-06  Bruno Haible  <bruno@clisp.org>
47641
47642         Avoid test failures on AIX and OSF/1.
47643         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
47644         that malloc(0) = NULL.
47645         * tests/unicase/test-u8-tolower.c (check): Likewise.
47646         * tests/unicase/test-u8-totitle.c (check): Likewise.
47647         * tests/unicase/test-u8-toupper.c (check): Likewise.
47648         * tests/unicase/test-u16-casefold.c (check): Likewise.
47649         * tests/unicase/test-u16-tolower.c (check): Likewise.
47650         * tests/unicase/test-u16-totitle.c (check): Likewise.
47651         * tests/unicase/test-u16-toupper.c (check): Likewise.
47652         * tests/unicase/test-u32-casefold.c (check): Likewise.
47653         * tests/unicase/test-u32-tolower.c (check): Likewise.
47654         * tests/unicase/test-u32-totitle.c (check): Likewise.
47655         * tests/unicase/test-u32-toupper.c (check): Likewise.
47656         * tests/uninorm/test-u8-nfc.c (check): Likewise.
47657         * tests/uninorm/test-u8-nfd.c (check): Likewise.
47658         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
47659         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
47660         * tests/uninorm/test-u16-nfc.c (check): Likewise.
47661         * tests/uninorm/test-u16-nfd.c (check): Likewise.
47662         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
47663         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
47664         * tests/uninorm/test-u32-nfc.c (check): Likewise.
47665         * tests/uninorm/test-u32-nfd.c (check): Likewise.
47666         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
47667         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
47668
47669 2009-04-05  Bruno Haible  <bruno@clisp.org>
47670
47671         Work around an autoconf limitation.
47672         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
47673         comment line if it would be longer than 3 KB.
47674
47675 2009-04-05  Bruno Haible  <bruno@clisp.org>
47676
47677         Avoid test failure with libiconv-1.13.
47678         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
47679         of the expected test results.
47680
47681 2009-04-05  Bruno Haible  <bruno@clisp.org>
47682
47683         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
47684         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
47685         that it should be installed.
47686
47687 2009-04-05  Bruno Haible  <bruno@clisp.org>
47688
47689         * gnulib-tool: New option --copy-file.
47690         (func_usage): Document it.
47691         (func_dest_tmpfilename): Moved out of func_import.
47692         (func_add_file, func_update_file): New functions, extracted from
47693         func_import.
47694         (func_import): Update.
47695
47696 2009-04-05  Karl Berry  <karl@gnu.org>
47697
47698         * README: prominently mention gnulib-tool.
47699         Rearrange sections so getting the code is near the top.
47700
47701 2009-04-05  Bruno Haible  <bruno@clisp.org>
47702
47703         * lib/unicase.h: Mention u*_cmp2.
47704         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
47705         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
47706         * lib/unicase/ulc-casecmp.c: Likewise.
47707         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
47708         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
47709         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
47710         unistr/u8-cmp.
47711         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
47712         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
47713         unistr/u16-cmp.
47714         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
47715         unistr/u32-cmp.
47716
47717         * lib/uninorm.h: Mention u*_cmp2.
47718         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
47719         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
47720         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
47721         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
47722         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
47723         unistr/u8-cmp.
47724         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
47725         unistr/u16-cmp.
47726         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
47727         unistr/u32-cmp.
47728
47729         New module 'unistr/u32-cmp2'.
47730         * lib/unistr/u32-cmp2.c: New file.
47731         * modules/unistr/u32-cmp2: New file.
47732
47733         New module 'unistr/u16-cmp2'.
47734         * lib/unistr/u16-cmp2.c: New file.
47735         * modules/unistr/u16-cmp2: New file.
47736
47737         New module 'unistr/u8-cmp2'.
47738         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
47739         * lib/unistr/u8-cmp2.c: New file.
47740         * lib/unistr/u-cmp2.h: New file.
47741         * modules/unistr/u8-cmp2: New file.
47742
47743 2009-04-05  Bruno Haible  <bruno@clisp.org>
47744
47745         * lib/unictype.h (uc_property_is_valid): New macro.
47746         * tests/unictype/test-pr_byname.c (main): Use it.
47747
47748         * lib/unistr.h: Doc fixes.
47749         * lib/uniconv.h: Doc fixes.
47750         * lib/unictype.h: Doc fixes.
47751
47752 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
47753
47754         Port coreutils 7.2 to Solaris 8.
47755
47756         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
47757         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
47758         for Solaris 8.  This is a bit of a hack, as it means it's the
47759         caller's responsibility to add -lnsl if needed, but most likely it
47760         won't be needed since only getaddrinfo uses this and getaddrinfo
47761         isn't needed on Solaris 8.
47762
47763         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
47764         problem to Solaris 8 encountered with coreutils 7.2, which
47765         resulted in a message "fnmatch.c:292: warning: passing argument 4
47766         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
47767         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
47768
47769 2009-04-03  Simon Josefsson  <simon@josefsson.org>
47770
47771         * m4/ld-version-script.m4: Add FIXME comment.
47772
47773 2009-04-02  Simon Josefsson  <simon@josefsson.org>
47774
47775         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
47776         SOVERSION variable.
47777
47778 2009-04-02  Bruno Haible  <bruno@clisp.org>
47779
47780         * Makefile (info, html, dvi, pdf): Combine the rules.
47781         Suggested by Jim Meyering.
47782
47783 2009-04-01  Bruno Haible  <bruno@clisp.org>
47784
47785         * Makefile (info, html, dvi, pdf): New targets.
47786         Reported by Reuben Thomas <rrt@sc3d.org>.
47787
47788 2009-04-01  Bruno Haible  <bruno@clisp.org>
47789
47790         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
47791         can be put into PATH.
47792         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
47793
47794 2009-04-01  Bruno Haible  <bruno@clisp.org>
47795
47796         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
47797
47798 2009-04-01  Bruno Haible  <bruno@clisp.org>
47799
47800         Rename module 'visibility'.
47801         * modules/lib-symbol-visibility: Renamed from modules/visibility.
47802         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
47803         * doc/gnulib.texi: Update.
47804         * MODULES.html.sh (Misc): Update.
47805         * NEWS: Mention the change.
47806
47807 2009-04-01  Simon Josefsson  <simon@josefsson.org>
47808
47809         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
47810         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
47811         Eric Blake <ebb9@byu.net> for review.
47812         * MODULES.html.sh: Add lib-msvc-compat.
47813         * doc/gnulib.texi: Link to new section.
47814         * m4/ld-output-def.m4: New file.
47815         * doc/ld-output-def.texi: New file.
47816
47817 2009-04-01  Simon Josefsson  <simon@josefsson.org>
47818
47819         Rename ld-version-script to lib-symbol-versions.  Suggested by
47820         Bruno Haible <bruno@clisp.org>.
47821         * modules/ld-version-script: Renamed to lib-symbol-versions.
47822         * doc/ld-version-script.texi: Fix module name.
47823         * MODULES.html.sh: Add lib-symbol-versions.
47824
47825 2009-03-31  Simon Josefsson  <simon@josefsson.org>
47826
47827         * modules/u64-tests: New file.
47828         * tests/test-u64.c: New file.
47829
47830 2009-03-04  Simon Josefsson  <simon@josefsson.org>
47831
47832         * MODULES.html.sh: Mention u64.
47833         * modules/u64: New module.
47834         * modules/crypto/sha512: Depend on u64 module instead of providing
47835         u64.h.
47836
47837 2009-03-27  Eric Blake  <ebb9@byu.net>
47838
47839         test-strerror: make debugging EAI_SYSTEM easier
47840         * modules/getaddrinfo-tests (Depends-on): Add strerror.
47841         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
47842         failure was EAI_SYSTEM.
47843
47844 2009-03-25  Bruno Haible  <bruno@clisp.org>
47845
47846         Fix a problem with --enable-relocatable on Solaris 7.
47847         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
47848         since 2008-02-24.
47849
47850 2009-03-25  Eric Blake  <ebb9@byu.net>
47851
47852         test-sockets: avoid gcc warning
47853         * tests/test-sockets.c (main): Silence compiler warning.
47854
47855 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
47856
47857         New modules nproc, pthread, contributed by Glen Lenker.
47858
47859         * MODULES.html.sh: Add pthread, nproc.
47860         * lib/nproc.c: New file.
47861         * lib/nproc.h: New file.
47862         * lib/pthread.in.h: New file.
47863         * m4/pthread.m4: New file.
47864         * modules/nproc: New file.
47865         * modules/pthread: New file.
47866
47867 2009-03-24  Simon Josefsson  <simon@josefsson.org>
47868
47869         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
47870         New variable.
47871
47872 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
47873
47874         filevercmp: handle simple~ and numbered.~3~ backup suffixes
47875         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
47876         * tests/test-filevercmp.c: Add tests for backup suffixes.
47877
47878 2009-03-24  Simon Josefsson  <simon@josefsson.org>
47879
47880         * modules/stdlib (Depends-on): Add stdint, needed when defining
47881         struct random_data on, for example, HP-UX 10.20.  Reported by
47882         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
47883
47884 2009-03-24  Simon Josefsson  <simon@josefsson.org>
47885
47886         * lib/readline.c (readline): Call fflush on stdout after printing
47887         prompt.
47888
47889 2009-03-20  Bruno Haible  <bruno@clisp.org>
47890
47891         Remove dependency from 'close' module to -lws2_32 on native Windows.
47892         * lib/close-hook.h: New file.
47893         * lib/close-hook.c: New file.
47894         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
47895         w32sock.h.
47896         (_gl_close_fd_maybe_socket): Remove function.
47897         (rpl_close): Invoke execute_all_close_hooks instead of
47898         _gl_close_fd_maybe_socket.
47899         * lib/sockets.c: Include close-hook.h, w32sock.h.
47900         (close_fd_maybe_socket): New function, essentially from lib/close.c.
47901         (close_sockets_hook): New variable.
47902         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
47903         (gl_sockets_cleanup): Unregister it.
47904         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
47905         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
47906         * modules/close-hook: New file.
47907         * modules/close (Files): Remove lib/w32sock.h.
47908         (Depends-on): Add close-hook.
47909         (Link): Remove section.
47910         * modules/sockets (Files): Add lib/w32sock.h.
47911         (Depends-on): Add close-hook.
47912         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
47913         invocation.
47914         * NEWS: Mention that LIB_CLOSE is gone.
47915
47916 2009-03-23  Eric Blake  <ebb9@byu.net>
47917
47918         signal-tests: test previous patch
47919         * tests/test-signal.c: New file.
47920         * modules/signal-tests: Likewise.
47921
47922         signal.h: always support 'volatile sig_atomic_t'
47923         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
47924         (gl_SIGNAL_H_DEFAULTS): Add a default.
47925         * modules/signal (Makefile.am): Substitute if needed.
47926         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
47927         users can blindly add volatile.
47928         * doc/posix-headers/signal.texi (signal.h): Document it.
47929         Reported by Matthew Woehlke.
47930
47931 2009-03-23  Jim Meyering  <meyering@redhat.com>
47932
47933         pathmax: PATH_MAX: use pathconf only when available
47934         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
47935         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
47936         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
47937         This avoids a link failure in a PSP cross-compilation environment
47938         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
47939
47940         * lib/vasnprintf.c (divide): Fix typo in comment.
47941
47942 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47943
47944         * gnulib-tool (func_filter_filelist): Fix comment.
47945
47946 2009-03-20  Bruno Haible  <bruno@clisp.org>
47947
47948         Make sockets.h self-contained.
47949         * lib/sockets.c: Include sockets.h first.
47950         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
47951
47952 2009-03-19  Eric Blake  <ebb9@byu.net>
47953
47954         doc: mention more functions added in cygwin 1.7.0
47955         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
47956         addition.
47957         * doc/posix-functions/log2f.texi: Likewise.
47958
47959 2009-03-19  Jim Meyering  <meyering@redhat.com>
47960
47961         fsusage: avoid syntax error due to statement-before-declaration
47962         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
47963         after all declarations.  Reported by Matthew Woehlke in
47964         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
47965
47966 2009-03-18  Eric Blake  <ebb9@byu.net>
47967
47968         build-aux/compile: sync from automake
47969         * build-aux/compile: New file, from automake.
47970         * config/srclist.txt: Mention build-aux/compile.
47971
47972 2009-03-17  Bruno Haible  <bruno@clisp.org>
47973
47974         * lib/git-merge-changelog.c: Fix typo in comment.
47975         Reported by Reuben Thomas <rrt@sc3d.org>.
47976
47977 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
47978
47979         * m4/regex.m4: update and improve help for
47980         --without-included-regex.
47981
47982 2009-03-17  Simon Josefsson  <simon@josefsson.org>
47983
47984         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
47985         failure on missing include files.
47986
47987 2009-03-17  Eric Blake  <ebb9@byu.net>
47988
47989         doc: mention more functions added in cygwin 1.7.0
47990         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
47991         addition.
47992         * doc/posix-functions/fwscanf.texi: Likewise.
47993         * doc/posix-functions/swprintf.texi: Likewise.
47994         * doc/posix-functions/swscanf.texi: Likewise.
47995         * doc/posix-functions/vfwprintf.texi: Likewise.
47996         * doc/posix-functions/vfwscanf.texi: Likewise.
47997         * doc/posix-functions/vswprintf.texi: Likewise.
47998         * doc/posix-functions/vswscanf.texi: Likewise.
47999         * doc/posix-functions/vwprintf.texi: Likewise.
48000         * doc/posix-functions/vwscanf.texi: Likewise.
48001         * doc/posix-functions/wcscasecmp.texi: Likewise.
48002         * doc/posix-functions/wcsdup.texi: Likewise.
48003         * doc/posix-functions/wcsftime.texi: Likewise.
48004         * doc/posix-functions/wcsncasecmp.texi: Likewise.
48005         * doc/posix-functions/wprintf.texi: Likewise.
48006         * doc/posix-functions/wscanf.texi: Likewise.
48007         * doc/glibc-functions/gethostbyname2.texi: Likewise.
48008
48009 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48010
48011         maint.mk: really add $(AM_MAKEFLAGS)
48012         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
48013         was inadvertently omitted in the last commit.
48014         Spotted by Bruno Haible.
48015
48016         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
48017         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
48018         $(AM_MAKEFLAGS)' rather than plain `make'.
48019
48020         gnulib-tool: execute $MAKE not make
48021         * gnulib-tool: Default $MAKE to 'make'.
48022         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
48023         than make.  Initialize $MAKE in the do-autobuild script.
48024
48025         gnulib-tool: use $MAKE not make in generated files
48026         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
48027         make, in generated files.  Initialize $MAKE in the do-autobuild
48028         script.
48029
48030         * top/GNUmakefile (_have-git-version-gen): Fix typo.
48031
48032         GNUmakefile: disable parallelism only for multiple, recursive targets
48033         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
48034         additions in the Makefile.
48035         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
48036         by Automake.
48037         (.NOTPARALLEL): Only disable parallel builds if multiple targets
48038         are listed on the command line and at least one of them is
48039         listed in $(ALL_RECURSIVE_TARGETS).
48040
48041 2009-03-14  Bruno Haible  <bruno@clisp.org>
48042
48043         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
48044         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
48045         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
48046         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
48047         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
48048         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
48049         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
48050         unistr/u8-uctomb.
48051         * modules/unistr/u8-strchr (Depends-on): Likewise.
48052         * modules/unistr/u8-strrchr (Depends-on): Likewise.
48053         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
48054         unistr/u16-uctomb.
48055         * modules/unistr/u16-strchr (Depends-on): Likewise.
48056         * modules/unistr/u16-strrchr (Depends-on): Likewise.
48057
48058 2009-03-12  Bruno Haible  <bruno@clisp.org>
48059
48060         Work around select() bug on Interix 3.5.
48061         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
48062         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
48063         * m4/select.m4: New file.
48064         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
48065         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
48066         * modules/select (Files): Add m4/select.m4.
48067         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
48068         * modules/nanosleep (Depends-on): Add select.
48069         * modules/poll (Depends-on): Likewise.
48070         * doc/posix-functions/select.texi: Mention the Interix bug.
48071         Reported by Markus Duft <mduft@gentoo.org>.
48072
48073         * lib/select.c: Renamed from lib/winsock-select.c.
48074         * modules/select (Files): Add lib/select.c, remove
48075         lib/winsock-select.c.
48076         (configure.ac): Update.
48077
48078 2009-03-12  Jim Meyering  <meyering@redhat.com>
48079
48080         avoid gcc warnings about unused macro definitions
48081         * lib/readtokens.c (STREQ): Remove unused definition.
48082         * lib/xmalloc.c (SIZE_MAX): Likewise.
48083         * lib/openat-die.c (N_): Likewise.
48084         * lib/mountlist.c (SIZE_MAX): Remove definition.
48085         Instead, include <stdint.h>.
48086         * lib/readutmp.c: Likewise.
48087         * modules/readutmp (Depends-on): Add stdint.
48088         * modules/mountlist (Depends-on): Add stdint.
48089         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
48090
48091 2009-03-10  Bruno Haible  <bruno@clisp.org>
48092
48093         Tests for module 'mbmemcasecoll'.
48094         * modules/mbmemcasecoll-tests: New file.
48095         * tests/test-mbmemcasecoll1.sh: New file.
48096         * tests/test-mbmemcasecoll2.sh: New file.
48097         * tests/test-mbmemcasecoll3.sh: New file.
48098         * tests/test-mbmemcasecoll.c: New file.
48099
48100         New module 'mbmemcasecoll'.
48101         * lib/mbmemcasecoll.h: New file.
48102         * lib/mbmemcasecoll.c: New file.
48103         * modules/mbmemcasecoll: New file.
48104
48105         * tests/test-mbmemcasecmp.h: New file, extracted from
48106         tests/test-mbmemcasecmp.c.
48107         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
48108         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
48109         (main): Update.
48110         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
48111
48112 2009-03-09  Bruno Haible  <bruno@clisp.org>
48113
48114         Tests for module 'mbmemcasecmp'.
48115         * modules/mbmemcasecmp-tests: New file.
48116         * tests/test-mbmemcasecmp1.sh: New file.
48117         * tests/test-mbmemcasecmp2.sh: New file.
48118         * tests/test-mbmemcasecmp3.sh: New file.
48119         * tests/test-mbmemcasecmp.c: New file.
48120
48121         New module 'mbmemcasecmp'.
48122         * lib/mbmemcasecmp.h: New file.
48123         * lib/mbmemcasecmp.c: New file.
48124         * modules/mbmemcasecmp: New file.
48125
48126 2009-03-09  Bruno Haible  <bruno@clisp.org>
48127
48128         Tests for module 'unicase/ulc-casecoll'.
48129         * modules/unicase/ulc-casecoll-tests: New file.
48130         * tests/unicase/test-ulc-casecoll1.sh: New file.
48131         * tests/unicase/test-ulc-casecoll2.sh: New file.
48132         * tests/unicase/test-ulc-casecoll.c: New file.
48133
48134         New module 'unicase/ulc-casecoll'.
48135         * lib/unicase.h (ulc_casecoll): New declaration.
48136         * lib/unicase/ulc-casecoll.c: New file.
48137         * modules/unicase/ulc-casecoll: New file.
48138
48139         New module 'unicase/ulc-casexfrm'.
48140         * lib/unicase.h (ulc_casexfrm): New declaration.
48141         * lib/unicase/ulc-casexfrm.c: New file.
48142         * modules/unicase/ulc-casexfrm: New file.
48143
48144 2009-03-09  Bruno Haible  <bruno@clisp.org>
48145
48146         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
48147         invocations.
48148
48149         * m4/mbscasecmp.m4: Remove file.
48150         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
48151         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
48152
48153         * m4/mbscasestr.m4: Remove file.
48154         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
48155         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
48156
48157         * m4/mbschr.m4: Remove file.
48158         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
48159         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
48160
48161         * m4/mbscspn.m4: Remove file.
48162         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
48163         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
48164
48165         * m4/mbslen.m4: Remove file.
48166         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
48167         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
48168
48169         * m4/mbsncasecmp.m4: Remove file.
48170         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
48171         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
48172
48173         * m4/mbsnlen.m4: Remove file.
48174         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
48175         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
48176
48177         * m4/mbspbrk.m4: Remove file.
48178         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
48179         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
48180
48181         * m4/mbspcasecmp.m4: Remove file.
48182         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
48183         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
48184
48185         * m4/mbsrchr.m4: Remove file.
48186         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
48187         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
48188
48189         * m4/mbssep.m4: Remove file.
48190         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
48191         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
48192
48193         * m4/mbsspn.m4: Remove file.
48194         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
48195         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
48196
48197         * m4/mbsstr.m4: Remove file.
48198         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
48199         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
48200
48201         * m4/mbstok_r.m4: Remove file.
48202         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
48203         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
48204
48205         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
48206
48207         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
48208         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
48209
48210         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
48211
48212 2009-03-08  Bruno Haible  <bruno@clisp.org>
48213
48214         Tests for module 'unicase/ulc-casecmp'.
48215         * modules/unicase/ulc-casecmp-tests: New file.
48216         * tests/unicase/test-ulc-casecmp1.sh: New file.
48217         * tests/unicase/test-ulc-casecmp2.sh: New file.
48218         * tests/unicase/test-ulc-casecmp.c: New file.
48219
48220         New module 'unicase/ulc-casecmp'.
48221         * lib/unicase.h (ulc_casecmp): New declaration.
48222         * lib/unicase/ulc-casecmp.c: New file.
48223         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
48224         'const SRC_UNIT *'.
48225         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
48226         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
48227         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
48228         * modules/unicase/ulc-casecmp: New file.
48229
48230         Tests for module 'unicase/u32-is-cased'.
48231         * modules/unicase/u32-is-cased-tests: New file.
48232         * tests/unicase/test-u32-is-cased.c: New file.
48233
48234         Tests for module 'unicase/u16-is-cased'.
48235         * modules/unicase/u16-is-cased-tests: New file.
48236         * tests/unicase/test-u16-is-cased.c: New file.
48237
48238         Tests for module 'unicase/u8-is-cased'.
48239         * modules/unicase/u8-is-cased-tests: New file.
48240         * tests/unicase/test-u8-is-cased.c: New file.
48241         * tests/unicase/test-is-cased.h: New file.
48242
48243         New module 'unicase/u32-is-cased'.
48244         * lib/unicase/u32-is-cased.c: New file.
48245         * modules/unicase/u32-is-cased: New file.
48246
48247         New module 'unicase/u16-is-cased'.
48248         * lib/unicase/u16-is-cased.c: New file.
48249         * modules/unicase/u16-is-cased: New file.
48250
48251         New module 'unicase/u8-is-cased'.
48252         * lib/unicase/u8-is-cased.c: New file.
48253         * lib/unicase/u-is-cased.h: New file.
48254         * modules/unicase/u8-is-cased: New file.
48255
48256         Tests for module 'unicase/u32-is-casefolded'.
48257         * modules/unicase/u32-is-casefolded-tests: New file.
48258         * tests/unicase/test-u32-is-casefolded.c: New file.
48259
48260         Tests for module 'unicase/u16-is-casefolded'.
48261         * modules/unicase/u16-is-casefolded-tests: New file.
48262         * tests/unicase/test-u16-is-casefolded.c: New file.
48263
48264         Tests for module 'unicase/u8-is-casefolded'.
48265         * modules/unicase/u8-is-casefolded-tests: New file.
48266         * tests/unicase/test-u8-is-casefolded.c: New file.
48267         * tests/unicase/test-is-casefolded.h: New file.
48268
48269         New module 'unicase/u32-is-casefolded'.
48270         * lib/unicase/u32-is-casefolded.c: New file.
48271         * modules/unicase/u32-is-casefolded: New file.
48272
48273         New module 'unicase/u16-is-casefolded'.
48274         * lib/unicase/u16-is-casefolded.c: New file.
48275         * modules/unicase/u16-is-casefolded: New file.
48276
48277         New module 'unicase/u8-is-casefolded'.
48278         * lib/unicase/u8-is-casefolded.c: New file.
48279         * modules/unicase/u8-is-casefolded: New file.
48280
48281         Tests for module 'unicase/u32-is-titlecase'.
48282         * modules/unicase/u32-is-titlecase-tests: New file.
48283         * tests/unicase/test-u32-is-titlecase.c: New file.
48284
48285         Tests for module 'unicase/u16-is-titlecase'.
48286         * modules/unicase/u16-is-titlecase-tests: New file.
48287         * tests/unicase/test-u16-is-titlecase.c: New file.
48288
48289         Tests for module 'unicase/u8-is-titlecase'.
48290         * modules/unicase/u8-is-titlecase-tests: New file.
48291         * tests/unicase/test-u8-is-titlecase.c: New file.
48292         * tests/unicase/test-is-titlecase.h: New file.
48293
48294         New module 'unicase/u32-is-titlecase'.
48295         * lib/unicase/u32-is-titlecase.c: New file.
48296         * modules/unicase/u32-is-titlecase: New file.
48297
48298         New module 'unicase/u16-is-titlecase'.
48299         * lib/unicase/u16-is-titlecase.c: New file.
48300         * modules/unicase/u16-is-titlecase: New file.
48301
48302         New module 'unicase/u8-is-titlecase'.
48303         * lib/unicase/u8-is-titlecase.c: New file.
48304         * modules/unicase/u8-is-titlecase: New file.
48305
48306         Tests for module 'unicase/u32-is-lowercase'.
48307         * modules/unicase/u32-is-lowercase-tests: New file.
48308         * tests/unicase/test-u32-is-lowercase.c: New file.
48309
48310         Tests for module 'unicase/u16-is-lowercase'.
48311         * modules/unicase/u16-is-lowercase-tests: New file.
48312         * tests/unicase/test-u16-is-lowercase.c: New file.
48313
48314         Tests for module 'unicase/u8-is-lowercase'.
48315         * modules/unicase/u8-is-lowercase-tests: New file.
48316         * tests/unicase/test-u8-is-lowercase.c: New file.
48317         * tests/unicase/test-is-lowercase.h: New file.
48318
48319         New module 'unicase/u32-is-lowercase'.
48320         * lib/unicase/u32-is-lowercase.c: New file.
48321         * modules/unicase/u32-is-lowercase: New file.
48322
48323         New module 'unicase/u16-is-lowercase'.
48324         * lib/unicase/u16-is-lowercase.c: New file.
48325         * modules/unicase/u16-is-lowercase: New file.
48326
48327         New module 'unicase/u8-is-lowercase'.
48328         * lib/unicase/u8-is-lowercase.c: New file.
48329         * modules/unicase/u8-is-lowercase: New file.
48330
48331         Tests for module 'unicase/u32-is-uppercase'.
48332         * modules/unicase/u32-is-uppercase-tests: New file.
48333         * tests/unicase/test-u32-is-uppercase.c: New file.
48334
48335         Tests for module 'unicase/u16-is-uppercase'.
48336         * modules/unicase/u16-is-uppercase-tests: New file.
48337         * tests/unicase/test-u16-is-uppercase.c: New file.
48338
48339         Tests for module 'unicase/u8-is-uppercase'.
48340         * modules/unicase/u8-is-uppercase-tests: New file.
48341         * tests/unicase/test-u8-is-uppercase.c: New file.
48342         * tests/unicase/test-is-uppercase.h: New file.
48343
48344         New module 'unicase/u32-is-uppercase'.
48345         * lib/unicase/u32-is-uppercase.c: New file.
48346         * modules/unicase/u32-is-uppercase: New file.
48347
48348         New module 'unicase/u16-is-uppercase'.
48349         * lib/unicase/u16-is-uppercase.c: New file.
48350         * modules/unicase/u16-is-uppercase: New file.
48351
48352         New module 'unicase/u8-is-uppercase'.
48353         * lib/unicase/u8-is-uppercase.c: New file.
48354         * modules/unicase/u8-is-uppercase: New file.
48355
48356         New module 'unicase/u32-is-invariant'.
48357         * lib/unicase/u32-is-invariant.c: New file.
48358         * modules/unicase/u32-is-invariant: New file.
48359
48360         New module 'unicase/u16-is-invariant'.
48361         * lib/unicase/u16-is-invariant.c: New file.
48362         * modules/unicase/u16-is-invariant: New file.
48363
48364         New module 'unicase/u8-is-invariant'.
48365         * lib/unicase/u8-is-invariant.c: New file.
48366         * lib/unicase/invariant.h: New file.
48367         * lib/unicase/u-is-invariant.h: New file.
48368         * modules/unicase/u8-is-invariant: New file.
48369
48370         Tests for module 'unicase/u32-casecoll'.
48371         * modules/unicase/u32-casecoll-tests: New file.
48372         * tests/unicase/test-u32-casecoll.c: New file.
48373
48374         Tests for module 'unicase/u16-casecoll'.
48375         * modules/unicase/u16-casecoll-tests: New file.
48376         * tests/unicase/test-u16-casecoll.c: New file.
48377
48378         Tests for module 'unicase/u8-casecoll'.
48379         * modules/unicase/u8-casecoll-tests: New file.
48380         * tests/unicase/test-u8-casecoll.c: New file.
48381
48382         New module 'unicase/u32-casecoll'.
48383         * lib/unicase/u32-casecoll.c: New file.
48384         * modules/unicase/u32-casecoll: New file.
48385
48386         New module 'unicase/u16-casecoll'.
48387         * lib/unicase/u16-casecoll.c: New file.
48388         * modules/unicase/u16-casecoll: New file.
48389
48390         New module 'unicase/u8-casecoll'.
48391         * lib/unicase/u8-casecoll.c: New file.
48392         * lib/unicase/u-casecoll.h: New file.
48393         * modules/unicase/u8-casecoll: New file.
48394
48395         New module 'unicase/u32-casexfrm'.
48396         * lib/unicase/u32-casexfrm.c: New file.
48397         * modules/unicase/u32-casexfrm: New file.
48398
48399         New module 'unicase/u16-casexfrm'.
48400         * lib/unicase/u16-casexfrm.c: New file.
48401         * modules/unicase/u16-casexfrm: New file.
48402
48403         New module 'unicase/u8-casexfrm'.
48404         * lib/unicase/u8-casexfrm.c: New file.
48405         * lib/unicase/u-casexfrm.h: New file.
48406         * modules/unicase/u8-casexfrm: New file.
48407
48408         Tests for module 'unicase/u32-casecmp'.
48409         * modules/unicase/u32-casecmp-tests: New file.
48410         * tests/unicase/test-u32-casecmp.c: New file.
48411
48412         Tests for module 'unicase/u16-casecmp'.
48413         * modules/unicase/u16-casecmp-tests: New file.
48414         * tests/unicase/test-u16-casecmp.c: New file.
48415
48416         Tests for module 'unicase/u8-casecmp'.
48417         * modules/unicase/u8-casecmp-tests: New file.
48418         * tests/unicase/test-u8-casecmp.c: New file.
48419         * tests/unicase/test-casecmp.h: New file.
48420
48421         New module 'unicase/u32-casecmp'.
48422         * lib/unicase/u32-casecmp.c: New file.
48423         * modules/unicase/u32-casecmp: New file.
48424
48425         New module 'unicase/u16-casecmp'.
48426         * lib/unicase/u16-casecmp.c: New file.
48427         * modules/unicase/u16-casecmp: New file.
48428
48429         New module 'unicase/u8-casecmp'.
48430         * lib/unicase/u8-casecmp.c: New file.
48431         * lib/unicase/u-casecmp.h: New file.
48432         * modules/unicase/u8-casecmp: New file.
48433
48434         Tests for module 'unicase/u32-casefold'.
48435         * modules/unicase/u32-casefold-tests: New file.
48436         * tests/unicase/test-u32-casefold.c: New file.
48437
48438         Tests for module 'unicase/u16-casefold'.
48439         * modules/unicase/u16-casefold-tests: New file.
48440         * tests/unicase/test-u16-casefold.c: New file.
48441
48442         Tests for module 'unicase/u8-casefold'.
48443         * modules/unicase/u8-casefold-tests: New file.
48444         * tests/unicase/test-u8-casefold.c: New file.
48445
48446         New module 'unicase/u32-casefold'.
48447         * lib/unicase/u32-casefold.c: New file.
48448         * modules/unicase/u32-casefold: New file.
48449
48450         New module 'unicase/u16-casefold'.
48451         * lib/unicase/u16-casefold.c: New file.
48452         * modules/unicase/u16-casefold: New file.
48453
48454         New module 'unicase/u8-casefold'.
48455         * lib/unicase/u8-casefold.c: New file.
48456         * lib/unicase/u-casefold.h: New file.
48457         * modules/unicase/u8-casefold: New file.
48458
48459         New module 'unicase/tocasefold'.
48460         * lib/unicase/casefold.h: New file.
48461         * lib/unicase/tocasefold.c: New file.
48462         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
48463         * modules/unicase/tocasefold: New file.
48464
48465         Tests for module 'unicase/u32-totitle'.
48466         * modules/unicase/u32-totitle-tests: New file.
48467         * tests/unicase/test-u32-totitle.c: New file.
48468
48469         Tests for module 'unicase/u16-totitle'.
48470         * modules/unicase/u16-totitle-tests: New file.
48471         * tests/unicase/test-u16-totitle.c: New file.
48472
48473         Tests for module 'unicase/u8-totitle'.
48474         * modules/unicase/u8-totitle-tests: New file.
48475         * tests/unicase/test-u8-totitle.c: New file.
48476
48477         New module 'unicase/u32-totitle'.
48478         * lib/unicase/u32-totitle.c: New file.
48479         * modules/unicase/u32-totitle: New file.
48480
48481         New module 'unicase/u16-totitle'.
48482         * lib/unicase/u16-totitle.c: New file.
48483         * modules/unicase/u16-totitle: New file.
48484
48485         New module 'unicase/u8-totitle'.
48486         * lib/unicase/u8-totitle.c: New file.
48487         * lib/unicase/u-totitle.h: New file.
48488         * modules/unicase/u8-totitle: New file.
48489
48490         Tests for module 'unicase/u32-tolower'.
48491         * modules/unicase/u32-tolower-tests: New file.
48492         * tests/unicase/test-u32-tolower.c: New file.
48493
48494         Tests for module 'unicase/u16-tolower'.
48495         * modules/unicase/u16-tolower-tests: New file.
48496         * tests/unicase/test-u16-tolower.c: New file.
48497
48498         Tests for module 'unicase/u8-tolower'.
48499         * modules/unicase/u8-tolower-tests: New file.
48500         * tests/unicase/test-u8-tolower.c: New file.
48501
48502         New module 'unicase/u32-tolower'.
48503         * lib/unicase/u32-tolower.c: New file.
48504         * modules/unicase/u32-tolower: New file.
48505
48506         New module 'unicase/u16-tolower'.
48507         * lib/unicase/u16-tolower.c: New file.
48508         * modules/unicase/u16-tolower: New file.
48509
48510         New module 'unicase/u8-tolower'.
48511         * lib/unicase/u8-tolower.c: New file.
48512         * modules/unicase/u8-tolower: New file.
48513
48514         Tests for module 'unicase/u32-toupper'.
48515         * modules/unicase/u32-toupper-tests: New file.
48516         * tests/unicase/test-u32-toupper.c: New file.
48517
48518         Tests for module 'unicase/u16-toupper'.
48519         * modules/unicase/u16-toupper-tests: New file.
48520         * tests/unicase/test-u16-toupper.c: New file.
48521
48522         Tests for module 'unicase/u8-toupper'.
48523         * modules/unicase/u8-toupper-tests: New file.
48524         * tests/unicase/test-u8-toupper.c: New file.
48525
48526         New module 'unicase/u32-toupper'.
48527         * lib/unicase/u32-toupper.c: New file.
48528         * modules/unicase/u32-toupper: New file.
48529
48530         New module 'unicase/u16-toupper'.
48531         * lib/unicase/u16-toupper.c: New file.
48532         * modules/unicase/u16-toupper: New file.
48533
48534         New module 'unicase/u8-toupper'.
48535         * lib/unicase/u8-toupper.c: New file.
48536         * modules/unicase/u8-toupper: New file.
48537
48538         New module 'unicase/u32-casemap'.
48539         * lib/unicase/u32-casemap.c: New file.
48540         * modules/unicase/u32-casemap: New file.
48541
48542         New module 'unicase/u16-casemap'.
48543         * lib/unicase/u16-casemap.c: New file.
48544         * modules/unicase/u16-casemap: New file.
48545
48546         New module 'unicase/u8-casemap'.
48547         * lib/unicase/unicasemap.h: New file.
48548         * lib/unicase/u8-casemap.c: New file.
48549         * lib/unicase/u-casemap.h: New file.
48550         * modules/unicase/u8-casemap: New file.
48551
48552         New module 'unicase/special-casing'.
48553         * lib/unicase/special-casing.h: New file.
48554         * lib/unicase/special-casing.c: New file.
48555         * lib/unicase/special-casing-table.gperf: New file, generated by
48556         gen-uni-tables.c.
48557         * modules/unicase/special-casing: New file.
48558
48559         Tests for module 'unicase/locale-language'.
48560         * modules/unicase/locale-language-tests: New file.
48561         * tests/unicase/test-locale-language.sh: New file.
48562         * tests/unicase/test-locale-language.c: New file.
48563
48564         New module 'unicase/locale-language'.
48565         * lib/unicase/locale-language.c: New file.
48566         * lib/unicase/locale-languages.gperf: New file.
48567         * modules/unicase/locale-language: New file.
48568
48569         Generate more tables for case conversion and case folding.
48570         * lib/gen-uni-tables.c (SCC_*): New enum items.
48571         (struct special_casing_rule): New type.
48572         (casing_rules, num_casing_rules, allocated_casing_rules): New
48573         variables.
48574         (add_casing_rule, fill_casing_rules): New functions.
48575         (struct casefold_rule): New type.
48576         (casefolding_rules, num_casefolding_rules,
48577         allocated_casefolding_rules): New variables.
48578         (fill_casefolding_rules): New function.
48579         (unicode_casefold): New variable.
48580         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
48581         sort_casing_rules, output_casing_rules): New functions.
48582         (main): Accept to more arguments: SpecialCasing.txt and
48583         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
48584         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
48585         Output mapping for casefolding.
48586
48587         * lib/unicase.h: Include stdbool.h, uninorm.h.
48588         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
48589         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
48590         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
48591         arguments.
48592         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
48593         resultp arguments.
48594         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
48595         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
48596         resultp arguments.
48597         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
48598         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
48599         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
48600         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
48601         declarations.
48602         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
48603
48604 2009-03-08  Bruno Haible  <bruno@clisp.org>
48605
48606         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
48607         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
48608         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
48609         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
48610
48611 2009-03-07  Bruno Haible  <bruno@clisp.org>
48612
48613         Adjust u*_normcmp, u*_normcoll API.
48614         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
48615         u16_normcoll, u32_normcoll): Change failure conventions.
48616         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
48617         errno and return -1.
48618         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
48619
48620 2009-03-07  Bruno Haible  <bruno@clisp.org>
48621
48622         Tests for module 'uninorm/u32-normcoll'.
48623         * modules/uninorm/u32-normcoll-tests: New file.
48624         * tests/uninorm/test-u32-normcoll.c: New file.
48625
48626         Tests for module 'uninorm/u16-normcoll'.
48627         * modules/uninorm/u16-normcoll-tests: New file.
48628         * tests/uninorm/test-u16-normcoll.c: New file.
48629
48630         Tests for module 'uninorm/u8-normcoll'.
48631         * modules/uninorm/u8-normcoll-tests: New file.
48632         * tests/uninorm/test-u8-normcoll.c: New file.
48633
48634 2009-03-07  Bruno Haible  <bruno@clisp.org>
48635
48636         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
48637         tests/uninorm/test-u32-normcmp.c.
48638         * tests/uninorm/test-u32-normcmp.c: Include it.
48639         (test_nonascii): New function, extracted from main. Add some more
48640         tests.
48641         (main): Invoke test_ascii and test_nonascii.
48642         * modules/uninorm/u32-normcmp-tests (Files): Add
48643         tests/uninorm/test-u32-normcmp.h.
48644         (Depends-on): Remove uninorm/u32-normcmp.
48645
48646         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
48647         tests/uninorm/test-u16-normcmp.c.
48648         * tests/uninorm/test-u16-normcmp.c: Include it.
48649         (test_nonascii): New function, extracted from main. Add some more
48650         tests.
48651         (main): Invoke test_ascii and test_nonascii.
48652         * modules/uninorm/u16-normcmp-tests (Files): Add
48653         tests/uninorm/test-u16-normcmp.h.
48654         (Depends-on): Remove uninorm/u16-normcmp.
48655
48656         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
48657         tests/uninorm/test-u8-normcmp.c.
48658         * tests/uninorm/test-u8-normcmp.c: Include it.
48659         (test_nonascii): New function, extracted from main. Add some more
48660         tests.
48661         (main): Invoke test_ascii and test_nonascii.
48662         * modules/uninorm/u8-normcmp-tests (Files): Add
48663         tests/uninorm/test-u8-normcmp.h.
48664         (Depends-on): Remove uninorm/u8-normcmp.
48665
48666 2009-03-07  Bruno Haible  <bruno@clisp.org>
48667
48668         New module 'uninorm/u32-normcoll'.
48669         * lib/uninorm/u32-normcoll.c: New file.
48670         * modules/uninorm/u32-normcoll: New file.
48671
48672         New module 'uninorm/u16-normcoll'.
48673         * lib/uninorm/u16-normcoll.c: New file.
48674         * modules/uninorm/u16-normcoll: New file.
48675
48676         New module 'uninorm/u8-normcoll'.
48677         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
48678         declarations.
48679         * lib/uninorm/u8-normcoll.c: New file.
48680         * lib/uninorm/u-normcoll.h: New file.
48681         * modules/uninorm/u8-normcoll: New file.
48682
48683         New module 'uninorm/u32-normxfrm'.
48684         * lib/uninorm/u32-normxfrm.c: New file.
48685         * modules/uninorm/u32-normxfrm: New file.
48686
48687         New module 'uninorm/u16-normxfrm'.
48688         * lib/uninorm/u16-normxfrm.c: New file.
48689         * modules/uninorm/u16-normxfrm: New file.
48690
48691         New module 'uninorm/u8-normxfrm'.
48692         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
48693         declarations.
48694         * lib/uninorm/u8-normxfrm.c: New file.
48695         * lib/uninorm/u-normxfrm.h: New file.
48696         * modules/uninorm/u8-normxfrm: New file.
48697
48698 2009-03-07  Bruno Haible  <bruno@clisp.org>
48699
48700         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
48701         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
48702         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
48703
48704 2009-03-07  Bruno Haible  <bruno@clisp.org>
48705
48706         New module 'memxfrm'.
48707         * lib/memxfrm.h: New file.
48708         * lib/memxfrm.c: New file.
48709         * modules/memxfrm: New file.
48710
48711 2009-03-07  Bruno Haible  <bruno@clisp.org>
48712
48713         New module 'memcmp2'.
48714         * lib/memcmp2.h: New file.
48715         * lib/memcmp2.c: New file.
48716         * modules/memcmp2: New file.
48717
48718 2009-03-07  Bruno Haible  <bruno@clisp.org>
48719
48720         Tests for module 'uninorm/decomposing-form'.
48721         * modules/uninorm/decomposing-form-tests: New file.
48722         * tests/uninorm/test-decomposing-form.c: New file.
48723
48724         New module 'uninorm/decomposing-form'.
48725         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
48726         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
48727         Add 'decomposing_variant' field.
48728         * lib/uninorm/decomposing-form.c: New file.
48729         * lib/uninorm/nfc.c (uninorm_nfc): Update.
48730         * lib/uninorm/nfd.c (uninorm_nfd): Update.
48731         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
48732         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
48733         * modules/uninorm/decomposing-form: New file.
48734         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
48735         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
48736
48737 2009-03-07  Bruno Haible  <bruno@clisp.org>
48738
48739         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
48740         strings.
48741
48742 2009-03-06  Bruno Haible  <bruno@clisp.org>
48743
48744         Tests for module 'uninorm/u32-normcmp'.
48745         * tests/uninorm/test-u32-normcmp.c: New file.
48746         * modules/uninorm/u32-normcmp-tests: New file.
48747
48748         Tests for module 'uninorm/u16-normcmp'.
48749         * tests/uninorm/test-u16-normcmp.c: New file.
48750         * modules/uninorm/u16-normcmp-tests: New file.
48751
48752         Tests for module 'uninorm/u8-normcmp'.
48753         * tests/uninorm/test-u8-normcmp.c: New file.
48754         * modules/uninorm/u8-normcmp-tests: New file.
48755
48756         New module 'uninorm/u32-normcmp'.
48757         * lib/uninorm/u32-normcmp.c: New file.
48758         * modules/uninorm/u32-normcmp: New file.
48759
48760         New module 'uninorm/u16-normcmp'.
48761         * lib/uninorm/u16-normcmp.c: New file.
48762         * modules/uninorm/u16-normcmp: New file.
48763
48764         New module 'uninorm/u8-normcmp'.
48765         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
48766         declarations.
48767         * lib/uninorm/u8-normcmp.c: New file.
48768         * lib/uninorm/u-normcmp.h: New file.
48769         * modules/uninorm/u8-normcmp: New file.
48770
48771 2009-03-06  Bruno Haible  <bruno@clisp.org>
48772
48773         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
48774         Reported by Eric Blake.
48775
48776 2009-03-06  Eric Blake  <ebb9@byu.net>
48777             Bruno Haible  <bruno@clisp.org>
48778
48779         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
48780         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
48781         condition.
48782         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
48783         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
48784         condition.
48785         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
48786
48787 2009-03-06  Eric Blake  <ebb9@byu.net>
48788
48789         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
48790         to avoid compiler warnings.
48791         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
48792
48793 2009-03-05  Bruno Haible  <bruno@clisp.org>
48794
48795         * tests/test-ftell.c (main): Disable test beyond end of file on
48796         FreeMiNT.
48797         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
48798
48799 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
48800
48801         * lib/filevercmp.c: Move hidden files up in ordering.
48802         * tests/test-filevercmp.c: Add tests for hidden files.
48803
48804 2009-03-04  Bruno Haible  <bruno@clisp.org>
48805
48806         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
48807         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
48808         AM_CFLAGS.
48809         Reported by Simon Josefsson.
48810
48811 2009-03-03  Bruno Haible  <bruno@clisp.org>
48812
48813         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
48814         Reported by Simon Josefsson.
48815
48816         * doc/ld-version-script.texi: Update node reference.
48817
48818 2009-03-03  Bruno Haible  <bruno@clisp.org>
48819
48820         * modules/visibility (License): Change to 'unlimited'.
48821         Suggested by Simon Josefsson.
48822
48823 2009-03-03  Jim Meyering  <meyering@redhat.com>
48824
48825         unlinkdir: cannot_unlink_dir may modify process state
48826         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
48827         it's neither thread-safe nor appropriate for use in a library.
48828
48829 2009-03-03  Eric Blake  <ebb9@byu.net>
48830
48831         test-closein: silence test under Darwin
48832         * tests/test-closein.sh: Ignore stderr from cat, since we don't
48833         care if it dies from EPIPE or EBADF.
48834
48835 2009-03-03  Bruno Haible  <bruno@clisp.org>
48836
48837         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
48838         earlier.
48839         * doc/visibility.texi: Fix @node and @section.
48840
48841 2009-03-03  Simon Josefsson  <simon@josefsson.org>
48842
48843         * doc/gnulib.texi: Link to sections for ld version script and
48844         visibility.
48845         * doc/visibility.texi: Add @node and @section.
48846         * modules/ld-version-script: New module.
48847         * m4/ld-version-script.m4: New file.
48848         * doc/ld-version-script.texi: New file.
48849
48850 2009-03-02  David Lutterkort  <lutter@redhat.com>
48851
48852         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
48853         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
48854
48855 2009-03-02  Bruno Haible  <bruno@clisp.org>
48856
48857         * doc/visibility.texi: Mention libtool's -export-symbols option.
48858
48859 2009-03-02  Jim Meyering  <meyering@redhat.com>
48860
48861         announce-gen: new option: --no-print-checksums
48862         * build-aux/announce-gen (usage): Describe it.
48863         (print_checksums): Print a newline here, not in the [*] footnote.
48864         (main): Honor it.
48865
48866 2009-03-01  Bruno Haible  <bruno@clisp.org>
48867
48868         Use socklen_t in the native Windows replacements prototypes.
48869         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
48870         instead of 'int'.
48871         * lib/getsockopt.c (rpl_getsockopt): Likewise.
48872         * lib/setsockopt.c (rpl_setsockopt): Likewise.
48873         * modules/getsockopt (Depends-on): Add socklen.
48874         * modules/setsockopt (Depends-on): Add socklen.
48875
48876 2009-03-01  Bruno Haible  <bruno@clisp.org>
48877
48878         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
48879         least 4.2.
48880
48881 2009-03-01  Eric Blake  <ebb9@byu.net>
48882             Bruno Haible  <bruno@clisp.org>
48883
48884         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
48885         error messages.
48886         * lib/wait-process.c (wait_subprocess): Omit error message about
48887         deadly signal sent to the child of termsigp != NULL.
48888
48889 2009-03-01  Eric Blake  <ebb9@byu.net>
48890
48891         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
48892
48893 2009-03-01  Bruno Haible  <bruno@clisp.org>
48894
48895         Avoid a gcc warning.
48896         * tests/test-sched.c (b): Make global.
48897         Reported by Eric Blake.
48898
48899 2009-01-19  Martin Lambers  <marlam@marlam.de>
48900
48901         Provide POSIX semantics for socket timeout options on W32.
48902         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
48903         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
48904         * modules/setsockopt: Depend on sys_time module for struct timeval.
48905         * modules/getsockopt: Depend on sys_time module for struct timeval.
48906
48907 2009-03-01  Simon Josefsson  <simon@josefsson.org>
48908
48909         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
48910         __USE_GNU, for consistency with netdb.in.h.
48911         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
48912
48913 2009-03-01  Bruno Haible  <bruno@clisp.org>
48914
48915         More support for FreeMiNT.
48916         * lib/fseeko.c (rpl_fseeko): Complete last commit.
48917         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
48918
48919 2009-03-01  Bruno Haible  <bruno@clisp.org>
48920
48921         More support for FreeMiNT.
48922         * lib/fpurge.c (fpurge): Correct last commit.
48923         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
48924
48925 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48926
48927         Fix unportable awk script in vc-list-files.
48928         * build-aux/vc-list-files: In the replacement awk script, use
48929         substr with a second argument of 1, not zero.
48930         Report by Simon Josefsson.
48931
48932 2009-02-28  Bruno Haible  <bruno@clisp.org>
48933
48934         More support for FreeMiNT.
48935         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
48936         to FreeMiNT today.
48937         * lib/fwriting.c (fwriting): Likewise.
48938         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
48939
48940 2009-02-28  Bruno Haible  <bruno@clisp.org>
48941
48942         * tests/test-freadseek.c (main): Disable test beyond end of file on
48943         FreeMiNT.
48944         * tests/test-ftello.c (main): Likewise.
48945         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
48946
48947 2009-02-28  Bruno Haible  <bruno@clisp.org>
48948
48949         Add tentative support for FreeMiNT.
48950         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
48951         * lib/fpurge.c (fpurge): Likewise.
48952         * lib/freadable.c (freadable): Likewise.
48953         * lib/freading.c (freading): Likewise.
48954         * lib/freadptr.c (freadptr): Likewise.
48955         * lib/freadseek.c (freadptrinc): Likewise.
48956         * lib/fseeko.c (rpl_fseeko): Likewise.
48957         * lib/fseterr.c (fseterr): Likewise.
48958         * lib/fwritable.c (fwritable): Likewise.
48959         * lib/fwriting.c (fwriting): Likewise.
48960         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
48961         Hourihane.
48962         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
48963
48964 2009-02-28  Bruno Haible  <bruno@clisp.org>
48965
48966         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
48967         SIGCHLD.
48968         Reported by Jim Meyering.
48969
48970 2009-02-28  Bruno Haible  <bruno@clisp.org>
48971
48972         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
48973         Mention the results of these tests on various platforms.
48974         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
48975         order.
48976         * doc/posix-functions/printf.texi: Likewise.
48977         * doc/posix-functions/snprintf.texi: Likewise.
48978         * doc/posix-functions/sprintf.texi: Likewise.
48979         * doc/posix-functions/vfprintf.texi: Likewise.
48980         * doc/posix-functions/vprintf.texi: Likewise.
48981         * doc/posix-functions/vsnprintf.texi: Likewise.
48982         * doc/posix-functions/vsprintf.texi: Likewise.
48983         * doc/glibc-functions/obstack_printf.texi: Likewise.
48984         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
48985
48986 2009-02-28  Bruno Haible  <bruno@clisp.org>
48987
48988         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
48989         Reported by Loïc Minier <lool@dooz.org>.
48990
48991 2009-02-27  Bruno Haible  <bruno@clisp.org>
48992
48993         * gnulib-tool (func_import): Make the sed expression used to create the
48994         sed script for updating the .gitignore file POSIX compliant.
48995         Reported by Eric Blake.
48996
48997 2009-02-27  Bruno Haible  <bruno@clisp.org>
48998
48999         * gnulib-tool (sed): Don't alias as "sed --posix".
49000         Reported by Eric Blake.
49001
49002 2009-02-27  Bruno Haible  <bruno@clisp.org>
49003
49004         Avoid test link errors.
49005         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
49006         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
49007         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
49008         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
49009         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
49010
49011 2009-02-27  Bruno Haible  <bruno@clisp.org>
49012
49013         Avoid spurious "(cached)" in configure output.
49014         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
49015         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
49016         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
49017         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
49018         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
49019         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
49020         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
49021         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
49022         Reported by Eric Blake.
49023
49024 2009-02-27  Eric Blake  <ebb9@byu.net>
49025
49026         printf: fix regression in previous patch
49027         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
49028
49029 2009-02-27  Bruno Haible  <bruno@clisp.org>
49030
49031         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
49032         value.
49033         * lib/stdint.in.h: Likewise.
49034         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
49035
49036 2009-02-27  Eric Blake  <ebb9@byu.net>
49037
49038         doc: mention more functions added in cygwin 1.7.0
49039         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
49040         addition.
49041         * doc/posix-functions/open_wmemstream.texi: Likewise.
49042         * doc/posix-functions/wcsnlen.texi: Likewise.
49043         * doc/posix-functions/wcsnrtombs.texi: Likewise.
49044         * doc/posix-functions/wcstod.texi: Likewise.
49045         * doc/posix-functions/wcstof.texi: Likewise.
49046         * doc/posix-functions/wcstoimax.texi: Likewise.
49047         * doc/posix-functions/wcstok.texi: Likewise.
49048         * doc/posix-functions/wcstoumax.texi: Likewise.
49049
49050         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
49051         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
49052         * doc/posix-functions/fprintf.texi: Update.
49053         * doc/posix-functions/printf.texi: Update.
49054         * doc/posix-functions/snprintf.texi: Update.
49055         * doc/posix-functions/sprintf.texi: Update.
49056         * doc/posix-functions/vfprintf.texi: Update.
49057         * doc/posix-functions/vprintf.texi: Update.
49058         * doc/posix-functions/vsnprintf.texi: Update.
49059         * doc/posix-functions/vsprintf.texi: Update.
49060         * doc/glibc-functions/obstack_printf.texi: Update.
49061         * doc/glibc-functions/obstack_vprintf.texi: Update.
49062
49063 2009-02-26  Eric Blake  <ebb9@byu.net>
49064
49065         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
49066         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
49067         compilation bug by using runtime conversion.
49068         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
49069         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
49070         * modules/ceill-tests (Files): Use nan.h.
49071         * modules/floorl-tests (Files): Likewise.
49072         * modules/frexpl-tests (Files): Likewise.
49073         * modules/isnanl-tests (Files): Likewise.
49074         * modules/ldexpl-tests (Files): Likewise.
49075         * modules/roundl-tests (Files): Likewise.
49076         * modules/truncl-tests (Files): Likewise.
49077         * tests/test-ceill.c (main): Use a working NaN.
49078         * tests/test-floorl.c (main): Likewise.
49079         * tests/test-frexpl.c (main): Likewise.
49080         * tests/test-isnan.c (test_long_double): Likewise.
49081         * tests/test-isnanl.h (main): Likewise.
49082         * tests/test-ldexpl.h (main): Likewise.
49083         * tests/test-roundl.h (main): Likewise.
49084         * tests/test-truncl.h (main): Likewise.
49085         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
49086
49087 2009-02-26  Eric Blake  <ebb9@byu.net>
49088             Bruno Haible  <bruno@clisp.org>
49089
49090         Work around a *printf bug with %ls on Solaris.
49091         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
49092         precision is specified, sprintf stops converting the wide string
49093         argument when the number of bytes that have been produced by this
49094         conversion equals or exceeds the precision.
49095         * doc/posix-functions/fprintf.texi: Update.
49096         * doc/posix-functions/printf.texi: Update.
49097         * doc/posix-functions/snprintf.texi: Update.
49098         * doc/posix-functions/sprintf.texi: Update.
49099         * doc/posix-functions/vfprintf.texi: Update.
49100         * doc/posix-functions/vprintf.texi: Update.
49101         * doc/posix-functions/vsnprintf.texi: Update.
49102         * doc/posix-functions/vsprintf.texi: Update.
49103         * doc/glibc-functions/obstack_printf.texi: Update.
49104         * doc/glibc-functions/obstack_vprintf.texi: Update.
49105
49106 2009-02-26  Eric Blake  <ebb9@byu.net>
49107
49108         stdlib: favor compiler check of random.h
49109         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
49110         to avoid an ObjC random.h installed by Swarm.
49111
49112 2009-02-26  Bruno Haible  <bruno@clisp.org>
49113
49114         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
49115         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
49116         Reported by Gary V. Vaughan <gary@gnu.org>.
49117
49118 2009-02-26  Bruno Haible  <bruno@clisp.org>
49119
49120         Fix *printf behaviour regarding the %ls directive.
49121         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
49122         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
49123         NEED_PRINTF_DIRECTIVE_LS.
49124         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
49125         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
49126         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
49127         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
49128         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
49129         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
49130         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
49131         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
49132         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
49133         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
49134         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
49135         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
49136         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
49137         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
49138         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
49139         * doc/posix-functions/fprintf.texi: Update.
49140         * doc/posix-functions/printf.texi: Update.
49141         * doc/posix-functions/snprintf.texi: Update.
49142         * doc/posix-functions/sprintf.texi: Update.
49143         * doc/posix-functions/vfprintf.texi: Update.
49144         * doc/posix-functions/vprintf.texi: Update.
49145         * doc/posix-functions/vsnprintf.texi: Update.
49146         * doc/posix-functions/vsprintf.texi: Update.
49147         * doc/glibc-functions/obstack_printf.texi: Update.
49148         * doc/glibc-functions/obstack_vprintf.texi: Update.
49149         Reported by Eric Blake.
49150
49151 2009-02-25  Bruno Haible  <bruno@clisp.org>
49152
49153         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
49154         with known value.
49155         Reported by Gary V. Vaughan <gary@gnu.org>.
49156
49157 2009-02-25  Bruno Haible  <bruno@clisp.org>
49158
49159         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
49160         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
49161         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
49162         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
49163         Reported by Gary V. Vaughan <gary@gnu.org>.
49164
49165 2009-02-25  Bruno Haible  <bruno@clisp.org>
49166
49167         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
49168         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
49169         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
49170         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
49171         Reported by Gary V. Vaughan <gary@gnu.org>.
49172
49173 2009-02-25  Eric Blake  <ebb9@byu.net>
49174
49175         tests: skip fseek/ftell tests if ungetc is broken
49176         * m4/ungetc.m4: New file.
49177         * modules/fseek-tests: Split test, so ungetc dependency is
49178         separate from rest of test.
49179         * modules/fseeko-tests: Likewise.
49180         * modules/ftell-tests: Likewise.
49181         * modules/ftello-tests: Likewise.
49182         * tests/test-fseek.c (main): Isolate ungetc dependency.
49183         * tests/test-fseeko.c (main): Likewise.
49184         * tests/test-ftell.c (main): Likewise.
49185         * tests/test-ftello.c (main): Likewise.
49186         * tests/test-fseek2.sh: New file.
49187         * tests/test-fseeko2.sh: Likewise.
49188         * tests/test-ftell2.sh: Likewise.
49189         * tests/test-ftello2.sh: Likewise.
49190
49191 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
49192
49193         test-getaddrinfo: fix usage of skip return code 77
49194         * tests/test-gettaddrinfo.c: Return skip code 77 only
49195         for first occurrence of skip (4x77 is not 77)
49196
49197 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
49198
49199         strtod: avoid C99 decl-after-statement
49200         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
49201
49202 2009-02-24  Eric Blake  <ebb9@byu.net>
49203
49204         strtod: detect HP-UX 11.31 bug
49205         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
49206         Reported by Gary V. Vaughan.
49207
49208 2009-02-23  Bruno Haible  <bruno@clisp.org>
49209
49210         Fix invalid read past end of memory block.
49211         * lib/vasnprintf.c (DCHAR_SET): Define.
49212         (local_wcslen): Define only when needed.
49213         (local_strnlen, local_wcsnlen): New functions.
49214         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
49215         directives that involve a conversion ourselves.
49216         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
49217         wcsnlen, mbrtowc, wcrtomb.
49218         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
49219         * tests/test-vasprintf-posix.c (test_function): Likewise.
49220         * tests/test-snprintf-posix.h (test_function): Likewise.
49221         * tests/test-sprintf-posix.h (test_function): Likewise.
49222         Reported by Ben Pfaff <blp@cs.stanford.edu>.
49223
49224 2009-02-22  Bruno Haible  <bruno@clisp.org>
49225
49226         Implement new clarified decomposition of Hangul syllables.
49227         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
49228         of type LTV, return only a pairwise decomposition.
49229         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
49230         Likewise.
49231         * tests/uninorm/test-decomposition.c (main): Updated expected result.
49232         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
49233         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
49234
49235 2009-02-22  Bruno Haible  <bruno@clisp.org>
49236
49237         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
49238         zero-length results and shrink excess allocated memory.
49239         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
49240         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
49241         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
49242         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
49243         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
49244         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
49245         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
49246         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
49247         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
49248         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
49249         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
49250         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
49251
49252 2009-02-21  Bruno Haible  <bruno@clisp.org>
49253
49254         * doc/gnulib.texi: Include safe-alloc.texi earlier.
49255         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
49256         spaces after a period. Put a space between a macro name and its
49257         argument list. Trivial rewordings.
49258         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
49259         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
49260         (main): Return 0 explicitly.
49261
49262 2009-02-21  Bruno Haible  <bruno@clisp.org>
49263
49264         Tests for module 'uninorm/filter'.
49265         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
49266         * modules/uninorm/filter-tests: New file.
49267
49268         New module 'uninorm/filter'.
49269         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
49270         uninorm_filter_flush, uninorm_filter_free): New declarations.
49271         * lib/uninorm/uninorm-filter.c: New file.
49272         * modules/uninorm/filter: New file.
49273
49274 2009-02-21  Bruno Haible  <bruno@clisp.org>
49275
49276         Tests for module 'uninorm/nfkc'.
49277         * tests/uninorm/test-nfkc.c: New file.
49278         * tests/uninorm/test-u8-nfkc.c: New file.
49279         * tests/uninorm/test-u16-nfkc.c: New file.
49280         * tests/uninorm/test-u32-nfkc.c: New file.
49281         * tests/uninorm/test-u32-nfkc-big.sh: New file.
49282         * tests/uninorm/test-u32-nfkc-big.c: New file.
49283         * modules/uninorm/nfkc-tests: New file.
49284
49285         New module 'uninorm/nfkc'.
49286         * lib/uninorm/nfkc.c: New file.
49287         * modules/uninorm/nfkc: New file.
49288
49289         Tests for module 'uninorm/nfkd'.
49290         * tests/uninorm/test-nfkd.c: New file.
49291         * tests/uninorm/test-u8-nfkd.c: New file.
49292         * tests/uninorm/test-u16-nfkd.c: New file.
49293         * tests/uninorm/test-u32-nfkd.c: New file.
49294         * tests/uninorm/test-u32-nfkd-big.sh: New file.
49295         * tests/uninorm/test-u32-nfkd-big.c: New file.
49296         * modules/uninorm/nfkd-tests: New file.
49297
49298         New module 'uninorm/nfkd'.
49299         * lib/uninorm/nfkd.c: New file.
49300         * modules/uninorm/nfkd: New file.
49301
49302         Tests for module 'uninorm/nfc'.
49303         * tests/uninorm/test-nfc.c: New file.
49304         * tests/uninorm/test-u8-nfc.c: New file.
49305         * tests/uninorm/test-u16-nfc.c: New file.
49306         * tests/uninorm/test-u32-nfc.c: New file.
49307         * tests/uninorm/test-u32-nfc-big.sh: New file.
49308         * tests/uninorm/test-u32-nfc-big.c: New file.
49309         * modules/uninorm/nfc-tests: New file.
49310
49311         New module 'uninorm/nfc'.
49312         * lib/uninorm/nfc.c: New file.
49313         * modules/uninorm/nfc: New file.
49314
49315         Tests for module 'uninorm/nfd'.
49316         * tests/uninorm/test-nfd.c: New file.
49317         * tests/uninorm/test-u8-nfd.c: New file.
49318         * tests/uninorm/test-u16-nfd.c: New file.
49319         * tests/uninorm/test-u32-nfd.c: New file.
49320         * tests/uninorm/test-u32-nfd-big.sh: New file.
49321         * tests/uninorm/test-u32-nfd-big.c: New file.
49322         * tests/uninorm/test-u32-normalize-big.h: New file.
49323         * tests/uninorm/test-u32-normalize-big.c: New file.
49324         * tests/uninorm/NormalizationTest.txt: New file, created from
49325         Unicode 5.1.0 NormalizationTest.txt.
49326         * modules/uninorm/nfd-tests: New file.
49327
49328         New module 'uninorm/nfd'.
49329         * lib/uninorm/nfd.c: New file.
49330         * modules/uninorm/nfd: New file.
49331
49332         New module 'uninorm/u32-normalize'.
49333         * lib/uninorm/u32-normalize.c: New file.
49334         * modules/uninorm/u32-normalize: New file.
49335
49336         New module 'uninorm/u16-normalize'.
49337         * lib/uninorm/u16-normalize.c: New file.
49338         * modules/uninorm/u16-normalize: New file.
49339
49340         New module 'uninorm/u8-normalize'.
49341         * lib/uninorm/u8-normalize.c: New file.
49342         * lib/uninorm/normalize-internal.h: New file.
49343         * lib/uninorm/u-normalize-internal.h: New file.
49344         * modules/uninorm/u8-normalize: New file.
49345
49346         New module 'uninorm/decompose-internal'.
49347         * lib/uninorm/decompose-internal.c: New file.
49348         * modules/uninorm/decompose-internal: New file.
49349
49350         Tests for module 'uninorm/composition'.
49351         * tests/uninorm/test-composition.c: New file.
49352         * modules/uninorm/composition-tests: New file.
49353
49354         New module 'uninorm/composition'.
49355         * lib/uninorm/composition.c: New file.
49356         * lib/uninorm/composition-table.gperf: New file, generated by
49357         gen-uni-tables.
49358         * modules/uninorm/composition: New file.
49359
49360         Tests for module 'uninorm/compat-decomposition'.
49361         * tests/uninorm/test-compat-decomposition.c: New file.
49362         * modules/uninorm/compat-decomposition-tests: New file.
49363
49364         New module 'uninorm/compat-decomposition'.
49365         * lib/uninorm/decompose-internal.h: New file.
49366         * lib/uninorm/compat-decomposition.c: New file.
49367         * modules/uninorm/compat-decomposition: New file.
49368
49369         Tests for module 'uninorm/canonical-decomposition'.
49370         * tests/uninorm/test-canonical-decomposition.c: New file.
49371         * modules/uninorm/canonical-decomposition-tests: New file.
49372
49373         New module 'uninorm/canonical-decomposition'.
49374         * lib/uninorm/canonical-decomposition.c: New file.
49375         * modules/uninorm/canonical-decomposition: New file.
49376
49377         Tests for module 'uninorm/decomposition'.
49378         * tests/uninorm/test-decomposition.c: New file.
49379         * modules/uninorm/decomposition-tests: New file.
49380
49381         New module 'uninorm/decomposition'.
49382         * lib/uninorm/decomposition.c: New file.
49383         * modules/uninorm/decomposition: New file.
49384
49385         New module 'uninorm/decomposition-table'.
49386         * lib/uninorm/decomposition-table.h: New file.
49387         * lib/uninorm/decomposition-table.c: New file.
49388         * lib/uninorm/decomposition-table1.h: New file, generated by
49389         gen-uni-tables.
49390         * lib/uninorm/decomposition-table2.h: New file, generated by
49391         gen-uni-tables.
49392         * modules/uninorm/decomposition-table: New file.
49393
49394         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
49395         (UC_DECOMP_*): New enumeration items.
49396         (get_decomposition): New function.
49397         (struct decomp_table): New type.
49398         (output_decomposition, output_decomposition_tables): New functions.
49399         (unicode_composition_exclusions): New variable.
49400         (fill_composition_exclusions, debug_output_composition_tables): New
49401         functions.
49402         (main): Accept one more argument. Invoke fill_composition_exclusions.
49403         Output decomposition and composition tables.
49404
49405         New module 'uninorm/base'.
49406         * lib/uninorm.h: New file.
49407         * lib/unictype.h: Update comment.
49408         * modules/uninorm/base: New file.
49409
49410 2009-02-21  David Lutterkort  <lutter@redhat.com>
49411
49412         Tests for module 'safe-alloc'.
49413         * tests/test-safe-alloc.c: New file.
49414         * modules/safe-alloc-tests: New file.
49415
49416         New module 'safe-alloc'.
49417         * lib/safe-alloc.h: New file.
49418         * lib/safe-alloc.c: New file.
49419         * m4/safe-alloc.m4: New file.
49420         * modules/safe-alloc: New file.
49421         * doc/safe-alloc.texi: New file.
49422         * doc/gnulib.texi: Include it.
49423         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
49424         safe-alloc.
49425
49426 2009-02-18  Bruno Haible  <bruno@clisp.org>
49427
49428         Fix link error on non-glibc systems.
49429         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
49430         variable.
49431         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
49432
49433 2009-02-18  Jim Meyering  <meyering@redhat.com>
49434
49435         fts: avoid used-uninitialized error due to recent change
49436         * lib/fts.c (fts_read): Guard uses of the new member,
49437         parent->fts_n_dirs_remaining, since it's not relevant for
49438         the parent of a directory specified on the command-line.
49439
49440 2009-02-17  James Youngman  <jay@gnu.org>
49441             Bruno Haible  <bruno@clisp.org>
49442
49443         * m4/include_next.m4: Reformulate comment.
49444
49445 2009-02-16  Jim Meyering  <meyering@redhat.com>
49446
49447         fts: add #if guards so that the fts_lgpl module still builds
49448         * lib/fts.c: Guard just-added hash-table-using parts with
49449         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
49450         Reported by Simon Josefsson.
49451
49452 2009-02-15  Bruno Haible  <bruno@clisp.org>
49453
49454         * modules/array-mergesort-tests: New file.
49455         * tests/test-array-mergesort.c: New file.
49456
49457         New module 'array-mergesort'.
49458         * modules/array-mergesort: New file.
49459         * lib/array-mergesort.h: New file.
49460
49461 2009-02-15  Bruno Haible  <bruno@clisp.org>
49462
49463         Fix 2009-02-07 commit.
49464         * lib/gen-uni-tables.c (output_predicate, output_category,
49465         output_combclass, output_bidi_category, output_decimal_digit,
49466         output_digit, output_numeric, output_mirror, output_scripts,
49467         output_ident_category, output_simple_mapping): Fix format directives.
49468         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
49469
49470 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
49471
49472         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
49473         fixes are available from IBM.
49474
49475 2009-02-13  Jim Meyering  <meyering@redhat.com>
49476
49477         fts: arrange not to stat non-directories in more cases
49478         This makes GNU find (when it doesn't need to stat each file)
49479         *much* more efficient at traversing reiserfs file systems.
49480         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
49481         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
49482         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
49483         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
49484         (leaf_optimization_applies): New function.
49485         (LCO_hash, LCO_compare): New helper functions.
49486         (link_count_optimize_ok): New function.
49487         (fts_stat): Initialize new member (if dir).
49488         (fts_read): Decrement parent's fts_n_dirs_remaining count if
49489         we've just stat'ed a directory.  Skip the stat call when possible.
49490         ---
49491         Note this AFS-related exchange:
49492         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
49493         and note find's pioctl call in find/fstype.c.
49494         But that is necessary only if you want to enable the
49495         optimization for AFS, and for now, I don't.
49496
49497         fts: move a function definition "up" (no semantic change)
49498         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
49499         "up" to precede upcoming use of a related function.
49500
49501 2009-02-11  Jim Meyering  <meyering@redhat.com>
49502
49503         fts: correct internal computation of nlinks (optimization-related)
49504         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
49505         whether the current entry is a directory, so don't test it.
49506
49507 2009-02-10  Bruno Haible  <bruno@clisp.org>
49508
49509         Tests for module 'uniwbrk/ulc-wordbreaks'.
49510         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
49511         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
49512         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
49513
49514         Tests for module 'uniwbrk/u32-wordbreaks'.
49515         * modules/uniwbrk/u32-wordbreaks-tests: New file.
49516         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
49517
49518         Tests for module 'uniwbrk/u16-wordbreaks'.
49519         * modules/uniwbrk/u16-wordbreaks-tests: New file.
49520         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
49521
49522         Tests for module 'uniwbrk/u8-wordbreaks'.
49523         * modules/uniwbrk/u8-wordbreaks-tests: New file.
49524         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
49525
49526 2009-02-10  Bruno Haible  <bruno@clisp.org>
49527
49528         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
49529         property.
49530         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
49531         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
49532         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
49533
49534 2009-02-10  Simon Josefsson  <simon@josefsson.org>
49535
49536         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
49537         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
49538
49539 2009-02-10  Bruno Haible  <bruno@clisp.org>
49540
49541         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
49542         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
49543         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
49544         * lib/unilbrk/u8-possible-linebreaks.c: Update.
49545         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
49546         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
49547
49548 2009-02-09  Simon Josefsson  <simon@josefsson.org>
49549
49550         * lib/sockets.h (gl_fd_to_handle): New function.
49551
49552         * tests/test-sockets.c: Call gl_fd_to_handle.
49553
49554 2009-02-09  Bruno Haible  <bruno@clisp.org>
49555
49556         * doc/havelib.texi: Document the conventions on bi-arch systems.
49557
49558 2009-02-08  Bruno Haible  <bruno@clisp.org>
49559
49560         Document the AC_LIB_LINKFLAGS macro.
49561         * doc/havelib.texi: New file, mostly written on 2005-05-24.
49562         * doc/gnulib.texi: Include it.
49563
49564 2009-02-08  Bruno Haible  <bruno@clisp.org>
49565
49566         Fix wrong order of sections, compared to TOC.
49567         * doc/gnulib.texi: Include relocatable-maint.texi after the
49568         "Regular expressions" node, not before.
49569
49570 2009-02-08  Bruno Haible  <bruno@clisp.org>
49571
49572         Tests for module 'unicase/totitle'.
49573         * modules/unicase/totitle-tests: New file.
49574
49575         Tests for module 'unicase/tolower'.
49576         * modules/unicase/tolower-tests: New file.
49577
49578         Tests for module 'unicase/toupper'.
49579         * modules/unicase/toupper-tests: New file.
49580         * tests/unicase/test-mapping-part1.h: New file.
49581         * tests/unicase/test-mapping-part2.h: New file.
49582
49583         New module 'unicase/totitle'.
49584         * modules/unicase/totitle: New file.
49585         * lib/unicase/totitle.c: New file.
49586
49587         New module 'unicase/tolower'.
49588         * modules/unicase/tolower: New file.
49589         * lib/unicase/tolower.c: New file.
49590
49591         New module 'unicase/toupper'.
49592         * modules/unicase/toupper: New file.
49593         * lib/unicase/toupper.c: New file.
49594         * lib/unicase/simple-mapping.h: New file.
49595
49596         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
49597         (mapping_table): New structure.
49598         (output_simple_mapping): New function.
49599         (main): Invoke output_simple_mapping_test and output_simple_mapping.
49600         * modules/gen-uni-tables (Description): Update.
49601         * lib/unicase/toupper.h: New file, automatically generated by
49602         gen-uni-tables.
49603         * lib/unicase/tolower.h: New file, automatically generated by
49604         gen-uni-tables.
49605         * lib/unicase/totitle.h: New file, automatically generated by
49606         gen-uni-tables.
49607         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
49608         gen-uni-tables.
49609         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
49610         gen-uni-tables.
49611         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
49612         gen-uni-tables.
49613
49614         New module 'unicase/base'.
49615         * modules/unicase/base: New file.
49616         * lib/unicase.h: New file.
49617
49618 2009-02-08  Bruno Haible  <bruno@clisp.org>
49619
49620         New module 'uniwbrk/ulc-wordbreaks'.
49621         * modules/uniwbrk/ulc-wordbreaks: New file.
49622         * lib/uniwbrk/ulc-wordbreaks.c: New file.
49623
49624         New module 'uniwbrk/u32-wordbreaks'.
49625         * modules/uniwbrk/u32-wordbreaks: New file.
49626         * lib/uniwbrk/u32-wordbreaks.c: New file.
49627
49628         New module 'uniwbrk/u16-wordbreaks'.
49629         * modules/uniwbrk/u16-wordbreaks: New file.
49630         * lib/uniwbrk/u16-wordbreaks.c: New file.
49631
49632         New module 'uniwbrk/u8-wordbreaks'.
49633         * modules/uniwbrk/u8-wordbreaks: New file.
49634         * lib/uniwbrk/u8-wordbreaks.c: New file.
49635         * lib/uniwbrk/u-wordbreaks.h: New file.
49636
49637         New module 'uniwbrk/table'.
49638         * modules/uniwbrk/table: New file.
49639         * lib/uniwbrk/wbrktable.h: New file.
49640         * lib/uniwbrk/wbrktable.c: New file.
49641
49642         New module 'uniwbrk/wordbreak-property'.
49643         * modules/uniwbrk/wordbreak-property: New file.
49644         * lib/uniwbrk/wordbreak-property.c: New file.
49645
49646         * lib/gen-uni-tables.c (WBP_*): New enum items.
49647         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
49648         (unicode_org_wbp): New variable.
49649         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
49650         New functions.
49651         (wbp_table): New structure.
49652         (output_wbp, output_wbrk_tables): New functions.
49653         (main): Accept additional argument. Invoke fill_org_wbp,
49654         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
49655         output_wbrk_tables.
49656         * modules/gen-uni-tables (Description): Update.
49657         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
49658         gen-uni-tables.
49659
49660         New module 'uniwbrk/base'.
49661         * modules/uniwbrk/base: New file.
49662         * lib/uniwbrk.h: New file.
49663
49664 2009-02-08  Bruno Haible  <bruno@clisp.org>
49665
49666         Update to Unicode 5.1.0.
49667         * lib/gen-uni-tables.c (is_property_alphabetic): Include
49668         U+2185..U+2188.
49669         (is_property_default_ignorable_code_point): Don't include characters
49670         of category Cc or Cs and not-a-characters.
49671         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
49672         U+0D79, U+109E, U+109F, U+A60C.
49673         * lib/unictype/bidi_of.h: Regenerated.
49674         * lib/unictype/blocks.h: Regenerated.
49675         * lib/unictype/categ_C.h: Regenerated.
49676         * lib/unictype/categ_Cf.h: Regenerated.
49677         * lib/unictype/categ_Cn.h: Regenerated.
49678         * lib/unictype/categ_L.h: Regenerated.
49679         * lib/unictype/categ_Ll.h: Regenerated.
49680         * lib/unictype/categ_Lm.h: Regenerated.
49681         * lib/unictype/categ_Lo.h: Regenerated.
49682         * lib/unictype/categ_Lu.h: Regenerated.
49683         * lib/unictype/categ_M.h: Regenerated.
49684         * lib/unictype/categ_Mc.h: Regenerated.
49685         * lib/unictype/categ_Me.h: Regenerated.
49686         * lib/unictype/categ_Mn.h: Regenerated.
49687         * lib/unictype/categ_N.h: Regenerated.
49688         * lib/unictype/categ_Nd.h: Regenerated.
49689         * lib/unictype/categ_Nl.h: Regenerated.
49690         * lib/unictype/categ_No.h: Regenerated.
49691         * lib/unictype/categ_P.h: Regenerated.
49692         * lib/unictype/categ_Pd.h: Regenerated.
49693         * lib/unictype/categ_Pe.h: Regenerated.
49694         * lib/unictype/categ_Pf.h: Regenerated.
49695         * lib/unictype/categ_Pi.h: Regenerated.
49696         * lib/unictype/categ_Po.h: Regenerated.
49697         * lib/unictype/categ_Ps.h: Regenerated.
49698         * lib/unictype/categ_S.h: Regenerated.
49699         * lib/unictype/categ_Sk.h: Regenerated.
49700         * lib/unictype/categ_Sm.h: Regenerated.
49701         * lib/unictype/categ_So.h: Regenerated.
49702         * lib/unictype/categ_of.h: Regenerated.
49703         * lib/unictype/combining.h: Regenerated.
49704         * lib/unictype/ctype_alnum.h: Regenerated.
49705         * lib/unictype/ctype_alpha.h: Regenerated.
49706         * lib/unictype/ctype_graph.h: Regenerated.
49707         * lib/unictype/ctype_lower.h: Regenerated.
49708         * lib/unictype/ctype_print.h: Regenerated.
49709         * lib/unictype/ctype_punct.h: Regenerated.
49710         * lib/unictype/ctype_upper.h: Regenerated.
49711         * lib/unictype/decdigit.h: Regenerated.
49712         * lib/unictype/digit.h: Regenerated.
49713         * lib/unictype/mirror.h: Regenerated.
49714         * lib/unictype/numeric.h: Regenerated.
49715         * lib/unictype/pr_alphabetic.h: Regenerated.
49716         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
49717         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
49718         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
49719         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
49720         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
49721         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
49722         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
49723         * lib/unictype/pr_combining.h: Regenerated.
49724         * lib/unictype/pr_dash.h: Regenerated.
49725         * lib/unictype/pr_decimal_digit.h: Regenerated.
49726         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
49727         * lib/unictype/pr_deprecated.h: Regenerated.
49728         * lib/unictype/pr_diacritic.h: Regenerated.
49729         * lib/unictype/pr_extender.h: Regenerated.
49730         * lib/unictype/pr_format_control.h: Regenerated.
49731         * lib/unictype/pr_grapheme_base.h: Regenerated.
49732         * lib/unictype/pr_grapheme_extend.h: Regenerated.
49733         * lib/unictype/pr_grapheme_link.h: Regenerated.
49734         * lib/unictype/pr_id_continue.h: Regenerated.
49735         * lib/unictype/pr_id_start.h: Regenerated.
49736         * lib/unictype/pr_ideographic.h: Regenerated.
49737         * lib/unictype/pr_ignorable_control.h: Regenerated.
49738         * lib/unictype/pr_lowercase.h: Regenerated.
49739         * lib/unictype/pr_math.h: Regenerated.
49740         * lib/unictype/pr_numeric.h: Regenerated.
49741         * lib/unictype/pr_other_alphabetic.h: Regenerated.
49742         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
49743         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
49744         * lib/unictype/pr_other_id_continue.h: Regenerated.
49745         * lib/unictype/pr_other_lowercase.h: Regenerated.
49746         * lib/unictype/pr_other_math.h: Regenerated.
49747         * lib/unictype/pr_punctuation.h: Regenerated.
49748         * lib/unictype/pr_sentence_terminal.h: Regenerated.
49749         * lib/unictype/pr_soft_dotted.h: Regenerated.
49750         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
49751         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
49752         * lib/unictype/pr_unified_ideograph.h: Regenerated.
49753         * lib/unictype/pr_uppercase.h: Regenerated.
49754         * lib/unictype/pr_xid_continue.h: Regenerated.
49755         * lib/unictype/pr_xid_start.h: Regenerated.
49756         * lib/unictype/pr_zero_width.h: Regenerated.
49757         * lib/unictype/scripts.h: Regenerated.
49758         * lib/unictype/scripts_byname.gperf: Regenerated.
49759         * lib/unictype/sy_java_ident.h: Regenerated.
49760         * lib/unilbrk/lbrkprop1.h: Regenerated.
49761         * lib/unilbrk/lbrkprop2.h: Regenerated.
49762         * tests/unictype/test-categ_C.c: Regenerated.
49763         * tests/unictype/test-categ_Cf.c: Regenerated.
49764         * tests/unictype/test-categ_Cn.c: Regenerated.
49765         * tests/unictype/test-categ_L.c: Regenerated.
49766         * tests/unictype/test-categ_Ll.c: Regenerated.
49767         * tests/unictype/test-categ_Lm.c: Regenerated.
49768         * tests/unictype/test-categ_Lo.c: Regenerated.
49769         * tests/unictype/test-categ_Lu.c: Regenerated.
49770         * tests/unictype/test-categ_M.c: Regenerated.
49771         * tests/unictype/test-categ_Mc.c: Regenerated.
49772         * tests/unictype/test-categ_Me.c: Regenerated.
49773         * tests/unictype/test-categ_Mn.c: Regenerated.
49774         * tests/unictype/test-categ_N.c: Regenerated.
49775         * tests/unictype/test-categ_Nd.c: Regenerated.
49776         * tests/unictype/test-categ_Nl.c: Regenerated.
49777         * tests/unictype/test-categ_No.c: Regenerated.
49778         * tests/unictype/test-categ_P.c: Regenerated.
49779         * tests/unictype/test-categ_Pd.c: Regenerated.
49780         * tests/unictype/test-categ_Pe.c: Regenerated.
49781         * tests/unictype/test-categ_Pf.c: Regenerated.
49782         * tests/unictype/test-categ_Pi.c: Regenerated.
49783         * tests/unictype/test-categ_Po.c: Regenerated.
49784         * tests/unictype/test-categ_Ps.c: Regenerated.
49785         * tests/unictype/test-categ_S.c: Regenerated.
49786         * tests/unictype/test-categ_Sk.c: Regenerated.
49787         * tests/unictype/test-categ_Sm.c: Regenerated.
49788         * tests/unictype/test-categ_So.c: Regenerated.
49789         * tests/unictype/test-ctype_alnum.c: Regenerated.
49790         * tests/unictype/test-ctype_alpha.c: Regenerated.
49791         * tests/unictype/test-ctype_graph.c: Regenerated.
49792         * tests/unictype/test-ctype_lower.c: Regenerated.
49793         * tests/unictype/test-ctype_print.c: Regenerated.
49794         * tests/unictype/test-ctype_punct.c: Regenerated.
49795         * tests/unictype/test-ctype_upper.c: Regenerated.
49796         * tests/unictype/test-decdigit.h: Regenerated.
49797         * tests/unictype/test-digit.h: Regenerated.
49798         * tests/unictype/test-numeric.h: Regenerated.
49799         * tests/unictype/test-pr_alphabetic.c: Regenerated.
49800         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
49801         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
49802         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
49803         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
49804         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
49805         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
49806         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
49807         * tests/unictype/test-pr_combining.c: Regenerated.
49808         * tests/unictype/test-pr_dash.c: Regenerated.
49809         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
49810         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
49811         * tests/unictype/test-pr_deprecated.c: Regenerated.
49812         * tests/unictype/test-pr_diacritic.c: Regenerated.
49813         * tests/unictype/test-pr_extender.c: Regenerated.
49814         * tests/unictype/test-pr_format_control.c: Regenerated.
49815         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
49816         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
49817         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
49818         * tests/unictype/test-pr_id_continue.c: Regenerated.
49819         * tests/unictype/test-pr_id_start.c: Regenerated.
49820         * tests/unictype/test-pr_ideographic.c: Regenerated.
49821         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
49822         * tests/unictype/test-pr_lowercase.c: Regenerated.
49823         * tests/unictype/test-pr_math.c: Regenerated.
49824         * tests/unictype/test-pr_numeric.c: Regenerated.
49825         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
49826         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
49827         Regenerated.
49828         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
49829         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
49830         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
49831         * tests/unictype/test-pr_other_math.c: Regenerated.
49832         * tests/unictype/test-pr_punctuation.c: Regenerated.
49833         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
49834         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
49835         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
49836         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
49837         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
49838         * tests/unictype/test-pr_uppercase.c: Regenerated.
49839         * tests/unictype/test-pr_xid_continue.c: Regenerated.
49840         * tests/unictype/test-pr_xid_start.c: Regenerated.
49841         * tests/unictype/test-pr_zero_width.c: Regenerated.
49842
49843         Update to Unicode 5.1.0.
49844         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
49845         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
49846         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
49847         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
49848         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
49849         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
49850         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
49851         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
49852         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
49853         (nonspacing_table_ind): Update.
49854         * tests/uniwidth/test-uc_width2.sh: Update expected result.
49855
49856         Update to Unicode 5.1.0.
49857         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
49858         code transform.
49859         * lib/uniname/uniname.c (unicode_character_name,
49860         unicode_name_character): Add the range 0x1Fxxx to the code transform.
49861         * lib/uniname/uninames.h: Regenerated.
49862         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
49863
49864 2009-02-07  Bruno Haible  <bruno@clisp.org>
49865
49866         Merge gen-ctype and gen-lbrk into a single program.
49867         * lib/gen-uni-tables.c: New file, incorporating
49868         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
49869         Add directory prefixes to the names of the generated files.
49870         * lib/unictype/gen-ctype.c: Remove file.
49871         * lib/unilbrk/gen-lbrk.c: Remove file.
49872         * modules/gen-uni-tables: New file.
49873         * modules/unictype/gen-ctype: Remove file.
49874         * modules/unilbrk/gen-lbrk: Remove file.
49875
49876 2009-02-07  Bruno Haible  <bruno@clisp.org>
49877
49878         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
49879
49880         New module 'unistr/u32-strcoll'.
49881         * modules/unistr/u32-strcoll: New file.
49882         * lib/unistr/u32-strcoll.c: New file.
49883
49884         New module 'unistr/u16-strcoll'.
49885         * modules/unistr/u16-strcoll: New file.
49886         * lib/unistr/u16-strcoll.c: New file.
49887
49888         New module 'unistr/u8-strcoll'.
49889         * modules/unistr/u8-strcoll: New file.
49890         * lib/unistr/u8-strcoll.c: New file.
49891         * lib/unistr/u-strcoll.h: New file.
49892
49893 2009-02-07  Bruno Haible  <bruno@clisp.org>
49894
49895         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
49896         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
49897         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
49898         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
49899         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
49900         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
49901
49902 2009-02-07  Bruno Haible  <bruno@clisp.org>
49903
49904         Make 64-bit clean.
49905         * lib/unictype/gen-ctype.c (output_predicate, output_category,
49906         output_combclass, output_bidi_category, output_decimal_digit,
49907         output_digit, output_numeric, output_mirror, output_scripts,
49908         output_ident_category): Use proper width specifier in format strings.
49909
49910 2009-02-07  Bruno Haible  <bruno@clisp.org>
49911
49912         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
49913         failure behaviour.
49914
49915 2009-02-07  Jim Meyering  <meyering@redhat.com>
49916
49917         regex: avoid compilation failure with upcoming gcc-4.4
49918         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
49919         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
49920         "... error: integer overflow in preprocessor expression".
49921
49922 2009-02-05  Ben Pfaff  <blp@gnu.org>
49923
49924         Fix link errors on Windows when close module is used.
49925         * modules/close: Add $(LIB_CLOSE) to Link section.
49926         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
49927         $(LIB_CLOSE) on Windows.
49928
49929 2009-02-05  Jim Meyering  <meyering@redhat.com>
49930
49931         still avoid unused-parameter warnings, but do it cleanly
49932         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
49933         (get_fs_usage): Cast to void instead.
49934         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
49935         (dev_from_mount_options, read_file_system_list): Cast to void.
49936         Prompted by Bruno Haible.
49937
49938 2009-02-04  Jim Meyering  <meyering@redhat.com>
49939
49940         fsusage.c: correct copyright year
49941         * lib/fsusage.c: Reflect year in which the change is pushed into
49942
49943         avoid misc. warnings
49944         * lib/fsusage.c (UNUSED_PARAM): Define.
49945         (get_fs_usage): Mark parameter "disk" as unused.
49946         * lib/getugroups.c (getgrent): Use "void" in prototype.
49947         * lib/mountlist.c: Mark unused parameters.
49948         (read_file_system_list): Declare a local with "const".
49949         * lib/nanosleep.c (getnow): Declare static.
49950         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
49951
49952         dirfd: set errno upon failure
49953         * lib/dirfd.c: Include <errno.h>.
49954         Set errno to ENOTSUP when returning -1.
49955         * modules/dirfd (Depends-on): Add errno.
49956         Suggested by John Kodis <kodis@comcast.net>.
49957
49958 2009-02-01  Bruno Haible  <bruno@clisp.org>
49959
49960         Don't assume sizeof (long) >= sizeof (void *).
49961         * lib/memcmp.c: Include stdint.h.
49962         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
49963         srcp2 to 'const byte *'.
49964         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
49965         types to uintptr_t.
49966         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
49967         * modules/memcmp (Depends-on): Add stdint.
49968         Reported by Ozkan Sezer <sezeroz@gmail.com>.
49969
49970 2009-01-30  Eric Blake  <ebb9@byu.net>
49971
49972         fix more require-before-expand issues
49973         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
49974         expand, AC_PROG_AWK.
49975         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
49976
49977 2009-01-28  Eric Blake  <ebb9@byu.net>
49978
49979         version-etc: use consistent URL formatting
49980         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
49981         Improve formatting.  Use fputs for string without %.
49982
49983 2009-01-28  Jim Meyering  <meyering@redhat.com>
49984
49985         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
49986         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
49987         "underquoted definition of NAME" from autoconf-2.59.
49988
49989 2009-01-28  Bruno Haible  <bruno@clisp.org>
49990
49991         * doc/gnulib.texi: Add "Obsolete modules" to index.
49992
49993 2009-01-28  Jim Meyering  <meyering@redhat.com>
49994
49995         useless-if-before-free: recognize more variants
49996         * build-aux/useless-if-before-free: Also recognize e.g.,
49997         if (NULL != p) free (p);
49998
49999 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
50000
50001         test-getaddrinfo: skip (don't fail) this test when there's no network
50002         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
50003         on the presumption that it means you lack network access.
50004
50005 2009-01-26  Jim Meyering  <meyering@redhat.com>
50006
50007         fflush: avoid warnings on modern systems
50008         * lib/fflush.c (rpl_fflush): Move declarations of locals,
50009         pos and result, into scopes where they're used.
50010
50011 2009-01-26  Eric Blake  <ebb9@byu.net>
50012
50013         Silence warning reintroduced by recent extensions patch.
50014         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
50015         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
50016         autoconf.
50017
50018         Backport improved autoconf semantics of AC_DEFUN_ONCE.
50019         * m4/00gnulib.m4: New file.
50020         * gnulib-tool (func_get_filelist): Always use it.
50021         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
50022         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
50023
50024 2009-01-25  Bruno Haible  <bruno@clisp.org>
50025
50026         Make test-quotearg work on MacOS X and AIX.
50027         * tests/test-quotearg.sh: New file.
50028         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
50029         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
50030         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
50031         include <libintl.h>.
50032         (fake_locale): Remove variable.
50033         (gettext, dgettext, dcgettext): Remove functions.
50034         (main): Instead of setting a fake locale, set a real locale. Call
50035         textdomain and bindtextdomain.
50036         * modules/quotearg-tests (Files): Add the new files.
50037         (Depends-on): Add gettext, setenv, unsetenv.
50038         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
50039         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
50040         Augment TESTS_ENVIRONMENT.
50041
50042 2009-01-25  Bruno Haible  <bruno@clisp.org>
50043
50044         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
50045         fr_FR.ISO8859-1 locale on MacOS X.
50046         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
50047         ja_JP.eucJP locale on MacOS X.
50048         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
50049         zh_CN.GB18030 locale on MacOS X.
50050
50051 2009-01-25  Bruno Haible  <bruno@clisp.org>
50052
50053         Avoid link errors on MacOS X 10.3.
50054         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
50055         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
50056
50057 2009-01-25  Bruno Haible  <bruno@clisp.org>
50058
50059         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
50060         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
50061         * modules/pipe (Files): Remove m4/posix_spawn.m4.
50062         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
50063         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
50064         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
50065         posix_spawnattr_init, posix_spawnattr_setsigmask,
50066         posix_spawnattr_setflags, posix_spawnattr_destroy.
50067
50068         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
50069         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
50070         * modules/execute (Files): Remove m4/posix_spawn.m4.
50071         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
50072         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
50073         posix_spawnattr_init, posix_spawnattr_setsigmask,
50074         posix_spawnattr_setflags, posix_spawnattr_destroy.
50075
50076 2009-01-25  Bruno Haible  <bruno@clisp.org>
50077
50078         * lib/glthread/threadlib.c: Include <stdlib.h>.
50079
50080 2009-01-25  Bruno Haible  <bruno@clisp.org>
50081
50082         * lib/glthread/threadlib.c (dummy): New declaration.
50083
50084 2009-01-25  Bruno Haible  <bruno@clisp.org>
50085
50086         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
50087         multibyte characters also for the GB18030 encoding. Don't crash when
50088         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
50089
50090 2009-01-25  Bruno Haible  <bruno@clisp.org>
50091
50092         Avoid redefining 'struct random_data' on OSF/1 5.1.
50093         * lib/stdlib.in.h: Include <random.h> if it exists.
50094         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
50095         HAVE_RANDOM_H. Include <random.h> when testing whether
50096         'struct random_data' exists.
50097         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
50098
50099 2009-01-25  Bruno Haible  <bruno@clisp.org>
50100
50101         Don't install charset.alias on MacOS X >= 10.3.
50102         * lib/localcharset.c (DARWIN7): New macro.
50103         (get_charset_aliases): Hardcode the result for Darwin7.
50104         * modules/localcharset (install-exec-local): Don't install
50105         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
50106
50107 2009-01-25  Bruno Haible  <bruno@clisp.org>
50108
50109         Don't install charset.alias on mingw and Cygwin.
50110         * modules/localcharset (install-exec-local): Don't install
50111         charset.alias on mingw and Cygwin, if the file does not yet exist.
50112         The result for these platforms is hardcoded in localcharset.c.
50113
50114 2009-01-25  Bruno Haible  <bruno@clisp.org>
50115
50116         Make it possible again to use AC_GNU_SOURCE together with gnulib.
50117         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
50118         before requiring AC_USE_SYSTEM_EXTENSIONS.
50119
50120 2009-01-25  Jim Meyering  <meyering@redhat.com>
50121
50122         c-strtod: avoid warnings
50123         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
50124         "assignment discards qualifiers from pointer target type" warnings.
50125
50126 2009-01-24  Bruno Haible  <bruno@clisp.org>
50127
50128         Add support for non-UTF-8 locales on MacOS X.
50129         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
50130         canonical encodings. For Darwin 7 and newer, don't map traditional
50131         encodings to UTF-8.
50132         Reported by Vincent Lefevre <vincent@vinc17.org>
50133         at <http://savannah.gnu.org/bugs/?25235>.
50134
50135 2009-01-24  Bruno Haible  <bruno@clisp.org>
50136
50137         * doc/gnulib.texi (Obsolete modules): New section.
50138         Reported by Mike Frysinger <vapier@gentoo.org>.
50139
50140 2009-01-24  Bruno Haible  <bruno@clisp.org>
50141
50142         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
50143         (%.dvi): New rule.
50144
50145 2009-01-24  Bruno Haible  <bruno@clisp.org>
50146
50147         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
50148         Reported by Eric Blake.
50149
50150 2009-01-24  Bruno Haible  <bruno@clisp.org>
50151
50152         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
50153         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
50154         Reported by Gary V. Vaughan <gary@gnu.org>.
50155
50156 2009-01-24  Bruno Haible  <bruno@clisp.org>
50157
50158         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
50159
50160 2009-01-23  Bruno Haible  <bruno@clisp.org>
50161
50162         Make c-strtod, c-strtold usable in libraries.
50163         * lib/c-strtod.c: Include string.h instead of xalloc.h.
50164         (C_STRTOD): Call strdup instead of xstrdup.
50165         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
50166         * modules/c-strtold (Depends-on): Likewise.
50167         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
50168         * NEWS: Mention the change.
50169         Reported by Michael Gold <mgold@ncf.ca>.
50170
50171 2009-01-23  Jim Meyering  <meyering@redhat.com>
50172
50173         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
50174         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
50175         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
50176
50177 2009-01-23  Simon Josefsson  <simon@josefsson.org>
50178
50179         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
50180         GNU CoreUtils.
50181         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
50182         * modules/version-etc (Description): Update.
50183
50184 2009-01-22  Bruno Haible  <bruno@clisp.org>
50185
50186         Cache the C locale object.
50187         * lib/c-strtod.c (c_locale_cache): New variable.
50188         (c_locale): New function.
50189         (C_STRTOD): Use it, and don't call freelocale.
50190         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
50191         Suggested by Paolo Bonzini.
50192
50193 2009-01-21  Bruno Haible  <bruno@clisp.org>
50194
50195         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
50196         conditions other than overflow.
50197
50198 2009-01-21  Bruno Haible  <bruno@clisp.org>
50199
50200         * lib/c-strtod.c: Include errno.h.
50201         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
50202         value from STRTOD_L and STRTOD.
50203
50204 2009-01-21  Bruno Haible  <bruno@clisp.org>
50205         and Jim Meyering  <meyering@redhat.com>
50206
50207         nanosleep: skip configure test (fail it) for apple universal builds
50208         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
50209         universal builds, assume that nanosleep does not work.
50210         * modules/nanosleep (Depends-on): Add multiarch.
50211
50212         mktime: skip configure test (fail it) for apple universal builds
50213         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
50214         universal builds, assume that mktime does not work.
50215         * modules/mktime (Depends-on): Add multiarch.
50216
50217 2009-01-21  Eric Blake  <ebb9@byu.net>
50218
50219         multiarch: avoid expand-before-require warning
50220         * modules/multiarch (configure.ac): Require, rather than expand,
50221         gl_MULTIARCH.
50222         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
50223         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
50224         enforce that all clients require it.  Partial reversion of
50225         2008-12-29 patch.
50226
50227         error: avoid expand-before-require warning
50228         * modules/errno (configure.ac): Require, rather than expand,
50229         gl_HEADER_ERRNO_H.
50230         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
50231         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
50232         enforce that all clients require it.
50233
50234         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
50235         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
50236         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
50237         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
50238
50239 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
50240
50241         Revert:
50242         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
50243
50244         regex: do not depend on obsolete modules.
50245         * modules/regex: Remove memcmp and memmove.
50246
50247 2009-01-20  Bruno Haible  <bruno@clisp.org>
50248
50249         Make the 'link' module link on Windows NT 4.
50250         * lib/link.c (_WIN32_WINNT): Don't define.
50251         (CreateHardLinkFuncType): New type.
50252         (CreateHardLinkFunc, initialized): New variables.
50253         (initialize): New function.
50254         (link): Invoke CreateHardLink indirectly through the function pointer.
50255
50256 2009-01-20  Bruno Haible  <bruno@clisp.org>
50257
50258         Fix compilation failure on mingw.
50259         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
50260
50261 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
50262
50263         * doc/c-strtod.texi: Mention a couple of restrictions.
50264
50265 2009-01-20  Jim Meyering  <meyering@redhat.com>
50266
50267         gettimeofday: move more declarations out of functions
50268         * lib/gettimeofday.c: Move extern declarations of tzset and
50269         gmtime out of containing functions.  Prompted by Bruno Haible.
50270
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-19  Bruno Haible  <bruno@clisp.org>
50277
50278         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
50279         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
50280         gl_BIGENDIAN, not AC_C_BIGENDIAN.
50281         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
50282         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
50283
50284 2009-01-19  Bruno Haible  <bruno@clisp.org>
50285
50286         * tests/test-link.c: Include <errno.h>.
50287         (main): Exit with code 77 when a hard link cannot be created due to
50288         the file system.
50289         * tests/test-link.sh: Skip test when a hard link cannot be created due
50290         to the file system.
50291         Suggested by Eric Blake.
50292
50293 2009-01-19  Martin Lambers  <marlam@marlam.de>
50294
50295         * modules/link-tests: New file.
50296         * tests/test-link.sh: New file.
50297         * tests/test-link.c: New file.
50298
50299 2009-01-19  Eric Blake  <ebb9@byu.net>
50300
50301         doc: mention another function added in cygwin 1.7.0
50302         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
50303         Another new function in cygwin 1.7.
50304
50305 2009-01-19  Bruno Haible  <bruno@clisp.org>
50306
50307         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
50308         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
50309         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
50310         gl_BIGENDIAN, not AC_C_BIGENDIAN.
50311         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
50312         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
50313         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
50314         * m4/md4.m4 (gl_MD4): Likewise.
50315         * m4/md5.m4 (gl_MD5): Likewise.
50316         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
50317         * m4/sha1.m4 (gl_SHA1): Likewise.
50318         * m4/sha256.m4 (gl_SHA256): Likewise.
50319         * m4/sha512.m4 (gl_SHA512): Likewise.
50320
50321 2009-01-19  Bruno Haible  <bruno@clisp.org>
50322
50323         * modules/uniname/uniname-tests (Depends-on): Add progname.
50324         * tests/uniname/test-uninames.c: Include progname.h.
50325         (main): Call set_program_name.
50326
50327         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
50328         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
50329         (main): Call set_program_name.
50330
50331         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
50332         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
50333         (main): Call set_program_name.
50334
50335         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
50336         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
50337         (main): Call set_program_name.
50338
50339         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
50340         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
50341         (main): Call set_program_name.
50342
50343         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
50344         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
50345         (main): Call set_program_name.
50346
50347         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
50348         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
50349         (main): Call set_program_name.
50350
50351         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
50352         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
50353         (main): Call set_program_name.
50354
50355         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
50356         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
50357         (main): Call set_program_name.
50358
50359 2009-01-19  Eric Blake  <ebb9@byu.net>
50360
50361         test-unistd: test previous patch
50362         * tests/test-unistd.c: Test *_FILENO macros.
50363
50364         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
50365         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
50366         Guarantee a definition.
50367         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
50368         * modules/unistd-safer (Depends-on): Add dependency on unistd.
50369         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
50370         * lib/dup-safer.c (STDERR_FILENO): Likewise.
50371         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
50372         Likewise.
50373         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
50374         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
50375         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
50376         Likewise.
50377         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
50378         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
50379         (STDERR_FILENO): Likewise.
50380         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
50381         (STDERR_FILENO): Likewise.
50382         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
50383         (STDERR_FILENO): Likewise.
50384         Reported by Elbert Pol.
50385
50386 2009-01-19  Eric Blake  <ebb9@byu.net>
50387
50388         doc: mention more functions added in cygwin 1.7.0
50389         * doc/posix-functions/abort.texi (abort): Update wording related
50390         to cygwin.
50391         * doc/posix-functions/daylight.texi (daylight): Likewise.
50392         * doc/posix-functions/optarg.texi (optarg): Likewise.
50393         * doc/posix-functions/optarg.texi (opterr): Likewise.
50394         * doc/posix-functions/optarg.texi (optind): Likewise.
50395         * doc/posix-functions/optarg.texi (optopt): Likewise.
50396         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
50397         worked in 1.5.x, and was withdrawn in 1.7.
50398         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
50399         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
50400         cygwin versions.
50401         * doc/posix-functions/perror.texi (perror): Likewise.
50402         * doc/posix-functions/printf.texi (printf): Likewise.
50403         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
50404         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
50405         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
50406         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
50407         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
50408         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
50409         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
50410         Likewise.
50411         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
50412         Likewise.
50413         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
50414         this function.
50415         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
50416         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
50417         Likewise.
50418         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
50419         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
50420         * doc/posix-functions/confstr.texi (confstr): Likewise.
50421         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
50422         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
50423         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
50424         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
50425         * doc/posix-functions/fputws.texi (fputws): Likewise.
50426         * doc/posix-functions/fwide.texi (fwide): Likewise.
50427         * doc/posix-functions/getwc.texi (getwc): Likewise.
50428         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
50429         * doc/posix-functions/putwc.texi (putwc): Likewise.
50430         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
50431         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
50432         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
50433         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
50434         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
50435         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
50436         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
50437         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
50438         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
50439         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
50440         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
50441
50442 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
50443
50444         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
50445         * lib/ioctl.c: Include <sys/ioctl.h>.
50446
50447 2009-01-19  Simon Josefsson  <simon@josefsson.org>
50448
50449         * modules/getdate-tests (Depends-on): Add progname.
50450         * tests/test-getdate.c: Use progname module, to avoid link errors
50451         on non-glibc systems.
50452
50453 2009-01-18  Simon Josefsson  <simon@josefsson.org>
50454
50455         * modules/filenamecat-tests (Depends-on): Add progname.
50456         * modules/fstrcmp-tests (Depends-on): Likewise.
50457
50458         * tests/test-filenamecat.c: Use progname module, to avoid link
50459         errors on non-glibc systems.
50460         * tests/test-fstrcmp.c: Likewise.
50461
50462 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
50463
50464         gettimeofday: avoid warning: nested extern declaration of 'localtime'
50465         * lib/gettimeofday.c: Move extern declaration out of function.
50466
50467 2009-01-18  Bruno Haible  <bruno@clisp.org>
50468
50469         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
50470         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
50471         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
50472
50473 2009-01-18  Bruno Haible  <bruno@clisp.org>
50474
50475         * lib/strftime.c (MEMPCPY): Remove unused macro.
50476         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
50477
50478 2009-01-18  Martin Lambers  <marlam@marlam.de>
50479
50480         New module 'link'.
50481         * lib/unistd.in.h (link): New declaration.
50482         * lib/link.c: New file.
50483         * m4/link.m4: New file.
50484         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
50485         HAVE_LINK.
50486         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
50487         * modules/link: New file.
50488         * doc/posix-functions/link.texi: Mention the new module.
50489
50490 2009-01-18  Bruno Haible  <bruno@clisp.org>
50491
50492         * tests/test-avltree_list.c (main): Call set_program_name.
50493         * tests/test-avltree_oset.c (main): Likewise.
50494         * tests/test-obstack-printf.c: Include progname.h.
50495         (main): Call set_program_name.
50496         * tests/test-quotearg.c: Include progname.h.
50497         (main): Call set_program_name.
50498         * tests/test-xmemdup0.c: Include progname.h.
50499         (main): Call set_program_name.
50500
50501 2009-01-18  Bruno Haible  <bruno@clisp.org>
50502
50503         New module 'alphasort'.
50504         * lib/dirent.in.h (alphasort): New declaration.
50505         * lib/alphasort.c: New file, from glibc with modifications.
50506         * m4/alphasort.m4: New file.
50507         * modules/alphasort: New file.
50508         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
50509         HAVE_ALPHASORT.
50510         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
50511         HAVE_ALPHASORT.
50512         * doc/posix-functions/alphasort.texi: Mention the new module and the
50513         portability problems.
50514
50515 2009-01-18  Bruno Haible  <bruno@clisp.org>
50516
50517         New module 'scandir'.
50518         * lib/dirent.in.h (scandir): New declaration.
50519         * lib/scandir.c: New file, from glibc with modifications.
50520         * m4/scandir.m4: New file.
50521         * modules/scandir: New file.
50522         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
50523         HAVE_SCANDIR.
50524         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
50525         HAVE_SCANDIR.
50526         * doc/posix-functions/scandir.texi: Mention the new module and the
50527         portability problems.
50528
50529 2009-01-17  Bruno Haible  <bruno@clisp.org>
50530
50531         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
50532         Update documentation.
50533         (func_remove_suffix): Escape all dots in the suffix. Update
50534         documentation.
50535         (func_filter_filelist): Update documentation.
50536         Reported by Ralf Wildenhues.
50537
50538 2009-01-17  Bruno Haible  <bruno@clisp.org>
50539
50540         * modules/dprintf-posix-tests: New file.
50541         * tests/test-dprintf-posix.sh: New file.
50542         * tests/test-dprintf-posix.c: New file.
50543
50544         New modules 'dprintf', 'dprintf-posix'.
50545         * lib/stdio.in.h (dprintf): New declaration.
50546         * lib/dprintf.c: New file.
50547         * m4/dprintf.m4: New file.
50548         * m4/dprintf-posix.m4: New file.
50549         * modules/dprintf: New file.
50550         * modules/dprintf-posix: New file.
50551         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
50552         HAVE_DPRINTF, REPLACE_DPRINTF.
50553         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
50554         HAVE_DPRINTF, REPLACE_DPRINTF.
50555         * doc/posix-functions/dprintf.texi: Mention the new modules.
50556
50557 2009-01-17  Bruno Haible  <bruno@clisp.org>
50558
50559         * modules/vdprintf-posix-tests: New file.
50560         * tests/test-vdprintf-posix.sh: New file.
50561         * tests/test-vdprintf-posix.c: New file.
50562
50563         New modules 'vdprintf', 'vdprintf-posix'.
50564         * lib/stdio.in.h (vdprintf): New declaration.
50565         * lib/vdprintf.c: New file.
50566         * m4/vdprintf.m4: New file.
50567         * m4/vdprintf-posix.m4: New file.
50568         * modules/vdprintf: New file.
50569         * modules/vdprintf-posix: New file.
50570         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
50571         HAVE_VDPRINTF, REPLACE_VDPRINTF.
50572         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
50573         HAVE_VDPRINTF, REPLACE_VDPRINTF.
50574         * doc/posix-functions/vdprintf.texi: Mention the new modules.
50575
50576 2009-01-17  Bruno Haible  <bruno@clisp.org>
50577
50578         Fix replacement of fopen on mingw.
50579         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
50580         mingw.
50581
50582 2009-01-17  Bruno Haible  <bruno@clisp.org>
50583
50584         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
50585         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
50586
50587 2009-01-17  Bruno Haible  <bruno@clisp.org>
50588
50589         Avoid test-fflush2.sh failure on mingw.
50590         * tests/test-fflush2.c: Include binary-io.h.
50591         (main): Put standard input into binary mode.
50592         * modules/fflush-tests (Depends-on): Add binary-io.
50593
50594 2009-01-17  Bruno Haible  <bruno@clisp.org>
50595
50596         * lib/wchar.in.h: In another particular situation, include only the
50597         system's <wchar.h> file.
50598         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
50599         Reported by Albert Chin-A-Young <china@thewrittenword.com>
50600         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
50601
50602 2009-01-17  Bruno Haible  <bruno@clisp.org>
50603
50604         Support for stripping executables in --enable-relocatable.
50605         * build-aux/install-reloc: Expect one more argument, or an environment
50606         variable RELOC_STRIP_PROG. If set, strip the destination program and
50607         its wrapper.
50608         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
50609         RELOC_STRIP_PROG.
50610         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
50611         to set RELOCATABLE_STRIP.
50612         * NEWS: Mention the new Makefile requirement.
50613
50614 2009-01-17  Bruno Haible  <bruno@clisp.org>
50615
50616         * build-aux/install-reloc: Remove debugging information left over by
50617         C compiler on MacOS X.
50618
50619 2009-01-17  Bruno Haible  <bruno@clisp.org>
50620
50621         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
50622         * lib/progreloc.c (find_executable): Fix type of pointer passed to
50623         _NSGetExecutablePath.
50624
50625 2009-01-16  Jim Meyering  <meyering@redhat.com>
50626
50627         strerror: avoid warnings about discarding "const"
50628         * lib/strerror.c (rpl_strerror): Instead of returning a const
50629         string from each and every "case", use a variable, and add a single
50630         cast after the switch.
50631
50632 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
50633
50634         * lib/arpa_inet.in.h: Add extern "C" block for C++.
50635
50636 2009-01-16  Bruno Haible  <bruno@clisp.org>
50637
50638         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
50639         array initializer syntax that also works in C++ mode.
50640         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
50641
50642 2009-01-16  Jim Meyering  <meyering@redhat.com>
50643
50644         poll: suppress a warning
50645         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
50646         to ignore "...unsigned expression < 0 is always false" warnings.
50647
50648 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
50649
50650         poll: remove declarations of unused variables
50651         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
50652         sockbuf and optlen.
50653
50654 2009-01-15  Bruno Haible  <bruno@clisp.org>
50655
50656         Make fflush-after-ungetc POSIX compliant on BSD systems.
50657         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
50658         (clear_ungetc_buffer): Implement also for other systems.
50659         (rpl_fflush): On glibc systems, invoke
50660         clear_ungetc_buffer_preserving_position. Otherwise, invoke
50661         clear_ungetc_buffer after fetching the stream's position, not before.
50662
50663 2009-01-15  Bruno Haible  <bruno@clisp.org>
50664
50665         Make fflush-after-ungetc POSIX compliant on glibc systems.
50666         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
50667         after ungetc.
50668         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
50669         (rpl_fflush): On glibc systems, simply call the system's fflush
50670         function after clearing the ungetc buffer.
50671         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
50672         Instead, lseek only to the end of file, then use the system's fseeko
50673         for the rest. On glibc systems, reset the EOF indicator bit.
50674
50675 2009-01-15  Jim Meyering  <meyering@redhat.com>
50676
50677         openmp.m4: revert quote-adding change, for portability to older autoconf
50678         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
50679         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
50680         Simon Josefsson noticed the problem when using autoconf-2.61.
50681
50682 2009-01-15  Bruno Haible  <bruno@clisp.org>
50683
50684         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
50685         * tests/test-fflush2.c (ASSERT): Always fail.
50686         (main): Add two tests for fflush() after ungetc(), taking into account
50687         the Austin Group's clarification.
50688         Suggested by Eric Blake.
50689
50690 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
50691
50692         mktime.m4: remove K&R-style function prototypes
50693         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
50694         for the Sun C++ compiler.
50695
50696 2009-01-14  Bruno Haible  <bruno@clisp.org>
50697
50698         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
50699         while including <wchar.h>.
50700         * lib/wchar.in.h: In two particular situations on HP-UX, include only
50701         the system's <wchar.h> file.
50702         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
50703
50704 2009-01-14  Bruno Haible  <bruno@clisp.org>
50705
50706         * m4/csharp.m4: Don't mention gettext on the serial number line.
50707         * m4/csharpexec.m4: Likewise.
50708         * m4/eaccess.m4: Likewise.
50709         * m4/javaexec.m4: Likewise.
50710         * m4/sig_atomic_t.m4: Likewise.
50711         * m4/tmpdir.m4: Likewise.
50712         * m4/intldir.m4: Bump gettext version.
50713         * m4/lib-ld.m4: Likewise.
50714
50715 2009-01-14  Bruno Haible  <bruno@clisp.org>
50716
50717         * lib/progname.c (set_program_name): Add more comments.
50718         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
50719
50720 2009-01-14  Simon Josefsson  <simon@josefsson.org>
50721
50722         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
50723         were sys/stat.h does not define it.
50724
50725 2009-01-14  Jim Meyering  <meyering@redhat.com>
50726
50727         many *.m4 files: improve m4 quoting
50728         99% of this change was performed by running the following commands:
50729         git ls-files | grep '\.m4$' | xargs perl -pi \
50730           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
50731           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
50732           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
50733           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
50734         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
50735         The remainder were to add Copyright dates, increment serial numbers,
50736         undo some changes in comments, exclude m4/intl.m4, and add quotes
50737         around the "1" in ",1" where the unusual spacing prohibited the
50738         above regexps from doing the job.  For more details, see
50739         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
50740         * m4/acl.m4: Modified.
50741         * m4/afs.m4: Likewise.
50742         * m4/alloca.m4: Likewise.
50743         * m4/argp.m4: Likewise.
50744         * m4/argz.m4: Likewise.
50745         * m4/atexit.m4: Likewise.
50746         * m4/bison-i18n.m4: Likewise.
50747         * m4/bison.m4: Likewise.
50748         * m4/byteswap.m4: Likewise.
50749         * m4/c-stack.m4: Likewise.
50750         * m4/c-strtod.m4: Likewise.
50751         * m4/calloc.m4: Likewise.
50752         * m4/canonicalize-lgpl.m4: Likewise.
50753         * m4/chown.m4: Likewise.
50754         * m4/clock_time.m4: Likewise.
50755         * m4/codeset.m4: Likewise.
50756         * m4/copy-file.m4: Likewise.
50757         * m4/csharp.m4: Likewise.
50758         * m4/csharpcomp.m4: Likewise.
50759         * m4/csharpexec.m4: Likewise.
50760         * m4/d-ino.m4: Likewise.
50761         * m4/d-type.m4: Likewise.
50762         * m4/dirfd.m4: Likewise.
50763         * m4/double-slash-root.m4: Likewise.
50764         * m4/eaccess.m4: Likewise.
50765         * m4/eealloc.m4: Likewise.
50766         * m4/environ.m4: Likewise.
50767         * m4/errno_h.m4: Likewise.
50768         * m4/euidaccess.m4: Likewise.
50769         * m4/execute.m4: Likewise.
50770         * m4/fatal-signal.m4: Likewise.
50771         * m4/fchdir.m4: Likewise.
50772         * m4/fcntl_h.m4: Likewise.
50773         * m4/fileblocks.m4: Likewise.
50774         * m4/filenamecat.m4: Likewise.
50775         * m4/findprog.m4: Likewise.
50776         * m4/flexmember.m4: Likewise.
50777         * m4/fnmatch.m4: Likewise.
50778         * m4/fopen.m4: Likewise.
50779         * m4/fpending.m4: Likewise.
50780         * m4/fprintf-posix.m4: Likewise.
50781         * m4/free.m4: Likewise.
50782         * m4/frexp.m4: Likewise.
50783         * m4/frexpl.m4: Likewise.
50784         * m4/fsusage.m4: Likewise.
50785         * m4/ftruncate.m4: Likewise.
50786         * m4/gc-camellia.m4: Likewise.
50787         * m4/gc-random.m4: Likewise.
50788         * m4/gc.m4: Likewise.
50789         * m4/getaddrinfo.m4: Likewise.
50790         * m4/getcwd-abort-bug.m4: Likewise.
50791         * m4/getcwd-path-max.m4: Likewise.
50792         * m4/getdate.m4: Likewise.
50793         * m4/getdomainname.m4: Likewise.
50794         * m4/getgroups.m4: Likewise.
50795         * m4/gethostname.m4: Likewise.
50796         * m4/gethrxtime.m4: Likewise.
50797         * m4/getline.m4: Likewise.
50798         * m4/getloadavg.m4: Likewise.
50799         * m4/getndelim2.m4: Likewise.
50800         * m4/getpass.m4: Likewise.
50801         * m4/gettext.m4: Likewise.
50802         * m4/gettime.m4: Likewise.
50803         * m4/gettimeofday.m4: Likewise.
50804         * m4/gnulib-common.m4: Likewise.
50805         * m4/group-member.m4: Likewise.
50806         * m4/host-os.m4: Likewise.
50807         * m4/iconv.m4: Likewise.
50808         * m4/iconv_open.m4: Likewise.
50809         * m4/inet_ntop.m4: Likewise.
50810         * m4/inet_pton.m4: Likewise.
50811         * m4/inline.m4: Likewise.
50812         * m4/intldir.m4: Likewise.
50813         * m4/intlmacosx.m4: Likewise.
50814         * m4/intmax.m4: Likewise.
50815         * m4/intmax_t.m4: Likewise.
50816         * m4/inttypes.m4: Likewise.
50817         * m4/inttypes_h.m4: Likewise.
50818         * m4/inttypes-pri.m4: Likewise.
50819         * m4/isapipe.m4: Likewise.
50820         * m4/isnand.m4: Likewise.
50821         * m4/isnanf.m4: Likewise.
50822         * m4/isnanl.m4: Likewise.
50823         * m4/javacomp.m4: Likewise.
50824         * m4/javaexec.m4: Likewise.
50825         * m4/jm-winsz1.m4: Likewise.
50826         * m4/jm-winsz2.m4: Likewise.
50827         * m4/lchown.m4: Likewise.
50828         * m4/lcmessage.m4: Likewise.
50829         * m4/ldexpl.m4: Likewise.
50830         * m4/lib-ld.m4: Likewise.
50831         * m4/lib-link.m4: Likewise.
50832         * m4/libsigsegv.m4: Likewise.
50833         * m4/link-follow.m4: Likewise.
50834         * m4/localcharset.m4: Likewise.
50835         * m4/locale-fr.m4: Likewise.
50836         * m4/locale-ja.m4: Likewise.
50837         * m4/locale-tr.m4: Likewise.
50838         * m4/locale-zh.m4: Likewise.
50839         * m4/lock.m4: Likewise.
50840         * m4/longlong.m4: Likewise.
50841         * m4/ls-mntd-fs.m4: Likewise.
50842         * m4/lstat.m4: Likewise.
50843         * m4/malloc.m4: Likewise.
50844         * m4/mathl.m4: Likewise.
50845         * m4/mbrtowc.m4: Likewise.
50846         * m4/mbstate_t.m4: Likewise.
50847         * m4/mbswidth.m4: Likewise.
50848         * m4/memchr.m4: Likewise.
50849         * m4/memcmp.m4: Likewise.
50850         * m4/memcpy.m4: Likewise.
50851         * m4/memmem.m4: Likewise.
50852         * m4/memmove.m4: Likewise.
50853         * m4/mempcpy.m4: Likewise.
50854         * m4/memrchr.m4: Likewise.
50855         * m4/memset.m4: Likewise.
50856         * m4/minmax.m4: Likewise.
50857         * m4/mkdir-slash.m4: Likewise.
50858         * m4/mkdtemp.m4: Likewise.
50859         * m4/mktime.m4: Likewise.
50860         * m4/mmap-anon.m4: Likewise.
50861         * m4/mountlist.m4: Likewise.
50862         * m4/nanosleep.m4: Likewise.
50863         * m4/nls.m4: Likewise.
50864         * m4/nocrash.m4: Likewise.
50865         * m4/open.m4: Likewise.
50866         * m4/openat.m4: Likewise.
50867         * m4/openmp.m4: Likewise.
50868         * m4/pathmax.m4: Likewise.
50869         * m4/perl.m4: Likewise.
50870         * m4/physmem.m4: Likewise.
50871         * m4/pipe.m4: Likewise.
50872         * m4/po.m4: Likewise.
50873         * m4/poll.m4: Likewise.
50874         * m4/posixtm.m4: Likewise.
50875         * m4/posixver.m4: Likewise.
50876         * m4/printf-frexp.m4: Likewise.
50877         * m4/printf-frexpl.m4: Likewise.
50878         * m4/printf-posix.m4: Likewise.
50879         * m4/printf-posix-rpl.m4: Likewise.
50880         * m4/printf.m4: Likewise.
50881         * m4/progtest.m4: Likewise.
50882         * m4/putenv.m4: Likewise.
50883         * m4/readline.m4: Likewise.
50884         * m4/readlink.m4: Likewise.
50885         * m4/readutmp.m4: Likewise.
50886         * m4/realloc.m4: Likewise.
50887         * m4/regex.m4: Likewise.
50888         * m4/relocatable.m4: Likewise.
50889         * m4/relocatable-lib.m4: Likewise.
50890         * m4/rename-dest-slash.m4: Likewise.
50891         * m4/rename.m4: Likewise.
50892         * m4/rmdir-errno.m4: Likewise.
50893         * m4/rmdir.m4: Likewise.
50894         * m4/roundf.m4: Likewise.
50895         * m4/roundl.m4: Likewise.
50896         * m4/rpmatch.m4: Likewise.
50897         * m4/save-cwd.m4: Likewise.
50898         * m4/selinux-selinux-h.m4: Likewise.
50899         * m4/setenv.m4: Likewise.
50900         * m4/settime.m4: Likewise.
50901         * m4/sig2str.m4: Likewise.
50902         * m4/sig_atomic_t.m4: Likewise.
50903         * m4/signalblocking.m4: Likewise.
50904         * m4/signbit.m4: Likewise.
50905         * m4/sigpipe.m4: Likewise.
50906         * m4/sockets.m4: Likewise.
50907         * m4/sockpfaf.m4: Likewise.
50908         * m4/st_dm_mode.m4: Likewise.
50909         * m4/stat-time.m4: Likewise.
50910         * m4/stdbool.m4: Likewise.
50911         * m4/stdint.m4: Likewise.
50912         * m4/stdint_h.m4: Likewise.
50913         * m4/stpcpy.m4: Likewise.
50914         * m4/stpncpy.m4: Likewise.
50915         * m4/strcase.m4: Likewise.
50916         * m4/strchrnul.m4: Likewise.
50917         * m4/strcspn.m4: Likewise.
50918         * m4/strdup.m4: Likewise.
50919         * m4/strftime.m4: Likewise.
50920         * m4/strndup.m4: Likewise.
50921         * m4/strnlen.m4: Likewise.
50922         * m4/strpbrk.m4: Likewise.
50923         * m4/strptime.m4: Likewise.
50924         * m4/strsep.m4: Likewise.
50925         * m4/strtod.m4: Likewise.
50926         * m4/strtoimax.m4: Likewise.
50927         * m4/strtok_r.m4: Likewise.
50928         * m4/strtol.m4: Likewise.
50929         * m4/strtoll.m4: Likewise.
50930         * m4/strtoul.m4: Likewise.
50931         * m4/strtoull.m4: Likewise.
50932         * m4/strtoumax.m4: Likewise.
50933         * m4/strverscmp.m4: Likewise.
50934         * m4/threadlib.m4: Likewise.
50935         * m4/timegm.m4: Likewise.
50936         * m4/tm_gmtoff.m4: Likewise.
50937         * m4/tmpdir.m4: Likewise.
50938         * m4/tmpfile.m4: Likewise.
50939         * m4/tzset.m4: Likewise.
50940         * m4/uintmax_t.m4: Likewise.
50941         * m4/unlinkdir.m4: Likewise.
50942         * m4/unlocked-io.m4: Likewise.
50943         * m4/uptime.m4: Likewise.
50944         * m4/userspec.m4: Likewise.
50945         * m4/utimbuf.m4: Likewise.
50946         * m4/utime.m4: Likewise.
50947         * m4/utimes-null.m4: Likewise.
50948         * m4/utimes.m4: Likewise.
50949         * m4/vararrays.m4: Likewise.
50950         * m4/vasnprintf.m4: Likewise.
50951         * m4/vfprintf-posix.m4: Likewise.
50952         * m4/vprintf-posix.m4: Likewise.
50953         * m4/wait-process.m4: Likewise.
50954         * m4/wchar_t.m4: Likewise.
50955         * m4/wint_t.m4: Likewise.
50956         * m4/write-any-file.m4: Likewise.
50957         * m4/yield.m4: Likewise.
50958
50959 2009-01-13  Bruno Haible  <bruno@clisp.org>
50960
50961         Avoid test-copy-file.sh failures when ACL support insufficient.
50962         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
50963         TESTS_ENVIRONMENT.
50964         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
50965         Reported by Jim Meyering.
50966
50967 2009-01-13  Bruno Haible  <bruno@clisp.org>
50968
50969         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
50970         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
50971         * modules/unistdio/u8-printf-parse (Files): Likewise.
50972         * modules/unistdio/u32-printf-parse (Files): Likewise.
50973         * modules/unistdio/ulc-printf-parse (Files): Likewise.
50974
50975 2009-01-13  Simon Josefsson  <simon@josefsson.org>
50976
50977         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
50978         and m4/inttypes_h.m4 too.
50979
50980 2009-01-12  Eric Blake  <ebb9@byu.net>
50981
50982         tests: IRIX 6.2 cc can't compile -0.0 into .data
50983         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
50984         rather than at compile-time.
50985         * tests/test-floorl.c (minus_zero): Likewise.
50986         * tests/test-frexpl.c (minus_zero): Likewise.
50987         * tests/test-isnan.c (minus_zerol): Likewise.
50988         * tests/test-isnanl.h (minus_zero): Likewise.
50989         * tests/test-ldexpl.c (minus_zero): Likewise.
50990         * tests/test-roundl.c (minus_zero): Likewise.
50991         * tests/test-signbit.c (minus_zerol): Likewise.
50992         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
50993         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
50994         * tests/test-truncl.c (minus_zero): Likewise.
50995         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
50996         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
50997         Reported by Tom G. Christensen and Nelson H. F. Beebe.
50998
50999 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
51000
51001         regex: fix glibc bug 9697
51002         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
51003         handling.
51004
51005 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
51006
51007         regex: fix glibc bug 697
51008         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
51009         being NULL also if there are no backreferences.
51010
51011 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
51012
51013         regex: merge glibc changes
51014         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
51015         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
51016         re_string_skip_chars, re_string_reconstruct): Likewise.
51017         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
51018
51019 2009-01-07  Jim Meyering  <meyering@redhat.com>
51020
51021         poll: filter through cppi
51022         * lib/poll.c: Indent cpp directives to reflect nesting.
51023
51024 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
51025
51026         poll: don't return uninitialized
51027         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
51028
51029 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
51030
51031         avoid compile failure on AIX 6.1
51032         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
51033         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
51034
51035 2009-01-04  Jim Meyering  <meyering@redhat.com>
51036
51037         remove duplicate inclusion of <stdio.h>
51038         * tests/test-fprintf-posix.c: Likewise.
51039         * tests/test-printf-posix.c: Likewise.
51040         * tests/test-snprintf-posix.c: Likewise.
51041         * tests/test-sprintf-posix.c: Likewise.
51042         * tests/test-vasprintf-posix.c: Likewise.
51043         * tests/test-vfprintf-posix.c: Likewise.
51044         * tests/test-vprintf-posix.c: Likewise.
51045         * tests/test-vsnprintf-posix.c: Likewise.
51046         * tests/test-vsprintf-posix.c: Likewise.
51047
51048 2009-01-03  Jim Meyering  <meyering@redhat.com>
51049
51050         gnulib-tool: fix sed-based filtering
51051         * gnulib-tool (func_filter_filelist): Remove extra backslash
51052         in sed_fff_filter definition.
51053
51054 2009-01-02  Jim Meyering  <meyering@redhat.com>
51055
51056         strftime: avoid compilation failure on Solaris 2.6
51057         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
51058         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
51059         Don't #define mbrlen or mbsinit, since now they're guaranteed to
51060         be available.  Reported by Tom G. Christensen.  Details in
51061         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
51062
51063 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51064             Bruno Haible  <bruno@clisp.org>
51065
51066         Speed up gnulib-tool by doing more string processing through shell
51067         built-ins.
51068         * gnulib-tool (fast_func_append): New variable.
51069         (func_remove_prefix, func_remove_suffix): New functions.
51070         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
51071         (func_filter_filelist): New function.
51072         (func_get_dependencies): Use func_remove_suffix instead of sed.
51073         (func_get_automake_snippet): Use func_filter_filelist instead of a
51074         subshell and sed invocation.
51075
51076 2009-01-01  Bruno Haible  <bruno@clisp.org>
51077
51078         Fix a security bug.
51079         * gnulib-tool (func_import, import, update): Don't allow the characters
51080         '"', '$', '`', '\' in macro arguments that become part of commands that
51081         are evaluated.
51082
51083 2009-01-01  Bruno Haible  <bruno@clisp.org>
51084
51085         * gnulib-tool (func_reset_sigpipe): Add more comments.
51086
51087 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51088
51089         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
51090         func_emit_tests_Makefile_am, func_import): Abort loops early if we
51091         already know the answer.
51092
51093 2009-01-01  Jim Meyering  <meyering@redhat.com>
51094
51095         * lib/version-etc.c (version_etc_va): Update copyright year.
51096
51097 2008-12-30  Bruno Haible  <bruno@clisp.org>
51098
51099         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
51100         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
51101         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
51102
51103 2008-12-29  Eric Blake  <ebb9@byu.net>
51104
51105         multiarch: avoid autoconf AC_REQUIRE bug
51106         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
51107         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
51108         2.63 and older.
51109         Reported by Bruno Haible, and analyzed in
51110         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
51111
51112 2008-12-29  Bruno Haible  <bruno@clisp.org>
51113
51114         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
51115         files in subdirectories correctly.
51116         Reported by Ralf Wildenhues.
51117
51118 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51119
51120         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
51121         rather than 'join FILE -', for Solaris join.
51122
51123 2008-12-29  Bruno Haible  <bruno@clisp.org>
51124
51125         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
51126         quoting.
51127         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
51128         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
51129         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
51130         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
51131         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
51132         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
51133         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
51134         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
51135         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
51136         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
51137         * m4/nls.m4 (AM_NLS): Likewise.
51138         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
51139         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
51140         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
51141         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
51142         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
51143         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
51144         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
51145         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
51146         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
51147         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
51148         * m4/xsize.m4 (gl_XSIZE): Likewise.
51149         Suggested by Jim Meyering.
51150
51151 2008-11-17  Bruce Korb  <bkorb@gnu.org>
51152
51153         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
51154         * lib/parse-duration.c: use a switch instead of cascading if's.
51155
51156 2008-12-29  Eric Blake  <ebb9@byu.net>
51157
51158         wchar.h: supply WEOF on Irix 5.3
51159         * lib/wchar.in.h (wint_t): Also supply WEOF.
51160         * lib/wctype.in.h (wint_t): Likewise.
51161         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
51162         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
51163         Reported by Tom G. Christensen.
51164
51165 2008-12-26  Bruno Haible  <bruno@clisp.org>
51166
51167         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
51168         i486, i586, i686.
51169
51170 2008-12-26  Bruno Haible  <bruno@clisp.org>
51171
51172         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
51173
51174 2008-12-26  Bruno Haible  <bruno@clisp.org>
51175
51176         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
51177         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
51178         not __STDC_CONSTANT_MACROS.
51179         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
51180
51181 2008-12-25  Bruno Haible  <bruno@clisp.org>
51182
51183         Add support for universal builds to vasnprintf.
51184         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
51185         universal builds, guess no.
51186         * modules/vasnprintf-posix (Depends-on): Add multiarch.
51187         * modules/vasprintf-posix (Depends-on): Likewise.
51188         * modules/fprintf-posix (Depends-on): Likewise.
51189         * modules/vfprintf-posix (Depends-on): Likewise.
51190         * modules/snprintf-posix (Depends-on): Likewise.
51191         * modules/vsnprintf-posix (Depends-on): Likewise.
51192         * modules/sprintf-posix (Depends-on): Likewise.
51193         * modules/vsprintf-posix (Depends-on): Likewise.
51194         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
51195         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
51196         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
51197         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
51198         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
51199         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
51200         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
51201
51202         Add support for universal builds to <inttypes.h>.
51203         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
51204         _SCNu64_PREFIX): In Apple
51205         universal builds, define directly, using _LP64.
51206         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
51207         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
51208         * modules/inttypes (Depends-on): Add multiarch.
51209         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
51210
51211         Add support for universal builds to <stdint.h>.
51212         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
51213         universal builds, define directly, using _LP64.
51214         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
51215         Apple universal builds, don't test for the size and suffix of ptrdiff_t
51216         and size_t.
51217         * modules/stdint (Depends-on): Add multiarch.
51218         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
51219
51220         New module 'multiarch'.
51221         * modules/multiarch: New file.
51222         * m4/multiarch.m4: New file.
51223
51224 2008-12-25  Bruno Haible  <bruno@clisp.org>
51225
51226         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
51227
51228 2008-12-25  Bruno Haible  <bruno@clisp.org>
51229
51230         * modules/btowc (License): Relicense under LGPLv2+.
51231         * modules/mbsinit (License): Likewise.
51232         * modules/mbrtowc (License): Likewise.
51233         * modules/wcrtomb (License): Likewise.
51234         * modules/streq (License): Likewise.
51235         Reported by David Lutterkort <lutter@redhat.com>.
51236
51237 2008-12-23  Bruno Haible  <bruno@clisp.org>
51238
51239         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
51240
51241 2008-12-23  Bruno Haible  <bruno@clisp.org>
51242
51243         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
51244         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
51245         GETADDRINFO_LIB, not in LIBS.
51246         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
51247         * modules/canon-host (Link): Likewise.
51248         * NEWS: Mention the change.
51249         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
51250         GETADDRINFO_LIB.
51251
51252 2008-12-22  Bruno Haible  <bruno@clisp.org>
51253
51254         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
51255         * doc/posix-functions/iswalpha_l.texi: Likewise.
51256         * doc/posix-functions/iswblank_l.texi: Likewise.
51257         * doc/posix-functions/iswcntrl_l.texi: Likewise.
51258         * doc/posix-functions/iswctype_l.texi: Likewise.
51259         * doc/posix-functions/iswdigit_l.texi: Likewise.
51260         * doc/posix-functions/iswgraph_l.texi: Likewise.
51261         * doc/posix-functions/iswlower_l.texi: Likewise.
51262         * doc/posix-functions/iswprint_l.texi: Likewise.
51263         * doc/posix-functions/iswpunct_l.texi: Likewise.
51264         * doc/posix-functions/iswspace_l.texi: Likewise.
51265         * doc/posix-functions/iswupper_l.texi: Likewise.
51266         * doc/posix-functions/iswxdigit_l.texi: Likewise.
51267         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
51268         * doc/posix-functions/open_wmemstream.texi: Likewise.
51269         * doc/posix-functions/swscanf.texi: Likewise.
51270         * doc/posix-functions/towctrans_l.texi: Likewise.
51271         * doc/posix-functions/towlower.texi: Likewise.
51272         * doc/posix-functions/towlower_l.texi: Likewise.
51273         * doc/posix-functions/towupper.texi: Likewise.
51274         * doc/posix-functions/towupper_l.texi: Likewise.
51275         * doc/posix-functions/vfwprintf.texi: Likewise.
51276         * doc/posix-functions/vfwscanf.texi: Likewise.
51277         * doc/posix-functions/vswscanf.texi: Likewise.
51278         * doc/posix-functions/vwprintf.texi: Likewise.
51279         * doc/posix-functions/vwscanf.texi: Likewise.
51280         * doc/posix-functions/wcpcpy.texi: Likewise.
51281         * doc/posix-functions/wcpncpy.texi: Likewise.
51282         * doc/posix-functions/wcscasecmp.texi: Likewise.
51283         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
51284         * doc/posix-functions/wcscoll_l.texi: Likewise.
51285         * doc/posix-functions/wcsdup.texi: Likewise.
51286         * doc/posix-functions/wcsncasecmp.texi: Likewise.
51287         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
51288         * doc/posix-functions/wcsnlen.texi: Likewise.
51289         * doc/posix-functions/wcsnrtombs.texi: Likewise.
51290         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
51291         * doc/posix-functions/wctrans_l.texi: Likewise.
51292         * doc/posix-functions/wctype_l.texi: Likewise.
51293         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
51294         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
51295         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
51296         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
51297         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
51298         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
51299         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
51300         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
51301         * doc/glibc-functions/wcschrnul.texi: Likewise.
51302         * doc/glibc-functions/wcsftime_l.texi: Likewise.
51303         * doc/glibc-functions/wcstod_l.texi: Likewise.
51304         * doc/glibc-functions/wcstof_l.texi: Likewise.
51305         * doc/glibc-functions/wcstol_l.texi: Likewise.
51306         * doc/glibc-functions/wcstold_l.texi: Likewise.
51307         * doc/glibc-functions/wcstoll_l.texi: Likewise.
51308         * doc/glibc-functions/wcstoq.texi: Likewise.
51309         * doc/glibc-functions/wcstoul_l.texi: Likewise.
51310         * doc/glibc-functions/wcstoull_l.texi: Likewise.
51311         * doc/glibc-functions/wcstouq.texi: Likewise.
51312         * doc/glibc-functions/wmempcpy.texi: Likewise.
51313
51314 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
51315             Eric Blake  <ebb9@byu.net>
51316             Paolo Bonzini  <bonzini@gnu.org>
51317             Bruno Haible  <bruno@clisp.org>
51318
51319         Make c-stack work on Haiku.
51320         * lib/c-stack.c (SA_ONSTACK): Define fallback.
51321         (c_stack_action): Use SA_ONSTACK flag.
51322
51323 2008-12-22  Bruno Haible  <bruno@clisp.org>
51324
51325         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
51326
51327 2008-12-22  Bruno Haible  <bruno@clisp.org>
51328
51329         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
51330         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
51331         being overridden.
51332         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
51333         New macros.
51334         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
51335         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
51336         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
51337         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
51338
51339 2008-12-22  Bruno Haible  <bruno@clisp.org>
51340
51341         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
51342         from test code.
51343
51344 2008-12-22  Eric Blake  <ebb9@byu.net>
51345
51346         Avoid gcc warnings on cygwin.
51347         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
51348         Avoid unused variable.
51349         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
51350         Likewise.
51351
51352 2008-12-22  Bruno Haible  <bruno@clisp.org>
51353
51354         Remove HAVE_MBRTOWC conditionals.
51355         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
51356         (mbscasecmp): Assume mbrtowc function.
51357         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
51358         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
51359         * lib/mbschr.c: Include mbuiter.h unconditionally.
51360         (mbschr): Assume mbrtowc function.
51361         * lib/mbscspn.c: Include mbuiter.h unconditionally.
51362         (mbscspn): Assume mbrtowc function.
51363         * lib/mbslen.c: Include mbuiter.h unconditionally.
51364         (mbslen): Assume mbrtowc function.
51365         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
51366         (mbsncasecmp): Assume mbrtowc function.
51367         * lib/mbsnlen.c: Include mbiter.h unconditionally.
51368         (mbsnlen): Assume mbrtowc function.
51369         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
51370         (mbspbrk): Assume mbrtowc function.
51371         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
51372         (mbspcasecmp): Assume mbrtowc function.
51373         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
51374         (mbsrchr): Assume mbrtowc function.
51375         * lib/mbssep.c: Include mbuiter.h unconditionally.
51376         (mbssep): Assume mbrtowc function.
51377         * lib/mbsspn.c: Include mbuiter.h unconditionally.
51378         (mbsspn): Assume mbrtowc function.
51379         * lib/mbsstr.c: Include mbuiter.h unconditionally.
51380         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
51381         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
51382         (mbstok_r): Assume mbrtowc function.
51383         * lib/propername.c: Include mbuiter.h unconditionally.
51384         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
51385         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
51386         (trim2): Assume mbrtowc function.
51387         * lib/mbswidth.c (mbsinit): Remove fallback definition.
51388         (mbsnwidth): Assume mbrtowc function.
51389         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
51390         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
51391         fallback definitions.
51392         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
51393
51394 2008-12-22  Bruno Haible  <bruno@clisp.org>
51395
51396         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
51397
51398 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
51399
51400         * modules/regex: Request emulations for the mb*/wc* functions we need.
51401         * m4/regex.m4: Don't look for those functions here.
51402         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
51403
51404 2008-12-22  Bruno Haible  <bruno@clisp.org>
51405
51406         * modules/fnmatch (Depends-on): Remove duplicated dependency.
51407
51408 2008-12-21  Bruno Haible  <bruno@clisp.org>
51409
51410         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
51411         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
51412         (Include): Remove conditionalization.
51413         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
51414         (Include): Remove conditionalization.
51415         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
51416         (Include): Remove conditionalization.
51417         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
51418         * m4/mbfile.m4 (gl_MBFILE): Likewise.
51419         * NEWS: Mention the change.
51420         Reported by Alan Hourihane <alanh@fairlite.co.uk>
51421         via Sergey Poznyakoff <gray@gnu.org.ua>.
51422
51423 2008-12-21  Bruno Haible  <bruno@clisp.org>
51424
51425         * MODULES.html.sh (Extended multibyte and wide character utilities
51426         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
51427         wcrtomb, wcsrtombs.
51428         (Support for systems lacking POSIX:2008): Add accept, bind, close,
51429         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
51430         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
51431         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
51432
51433 2008-12-21  Bruno Haible  <bruno@clisp.org>
51434
51435         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
51436
51437 2008-12-21  Bruno Haible  <bruno@clisp.org>
51438
51439         * modules/wcsnrtombs-tests: New file.
51440         * tests/test-wcsnrtombs1.sh: New file.
51441         * tests/test-wcsnrtombs2.sh: New file.
51442         * tests/test-wcsnrtombs3.sh: New file.
51443         * tests/test-wcsnrtombs4.sh: New file.
51444         * tests/test-wcsnrtombs.c: New file.
51445
51446         New module 'wcsnrtombs'.
51447         * lib/wchar.in.h (wcsnrtombs): New declaration.
51448         * lib/wcsnrtombs.c: New file.
51449         * lib/wcsrtombs-state.c: New file.
51450         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
51451         (internal_state): Remove variable.
51452         * m4/wcsnrtombs.m4: New file.
51453         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
51454         compilation units.
51455         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
51456         HAVE_WCSNRTOMBS.
51457         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
51458         HAVE_WCSNRTOMBS.
51459         * modules/wcsnrtombs: New file.
51460         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
51461         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
51462
51463 2008-12-21  Bruno Haible  <bruno@clisp.org>
51464
51465         * modules/wcsrtombs-tests: New file.
51466         * tests/test-wcsrtombs1.sh: New file.
51467         * tests/test-wcsrtombs2.sh: New file.
51468         * tests/test-wcsrtombs3.sh: New file.
51469         * tests/test-wcsrtombs4.sh: New file.
51470         * tests/test-wcsrtombs.c: New file.
51471
51472         New module 'wcsrtombs'.
51473         * lib/wchar.in.h (wcsrtombs): New declaration.
51474         * lib/wcsrtombs.c: New file.
51475         * m4/wcsrtombs.m4: New file.
51476         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
51477         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
51478         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
51479         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
51480         * modules/wcsrtombs: New file.
51481         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
51482         bugs.
51483
51484 2008-12-21  Bruno Haible  <bruno@clisp.org>
51485
51486         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
51487         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
51488         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
51489         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
51490         if not correct.
51491         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
51492         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
51493         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
51494         m4/locale-zh.m4, m4/codeset.m4.
51495         * doc/posix-functions/wcrtomb.texi: Document the bug.
51496
51497 2008-12-21  Bruno Haible  <bruno@clisp.org>
51498
51499         Work around a btowc() bug on IRIX 6.5.
51500         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
51501         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
51502         REPLACE_WTOBC if not.
51503         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
51504         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
51505         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
51506
51507 2008-12-21  Bruno Haible  <bruno@clisp.org>
51508
51509         * modules/wcrtomb-tests: New file.
51510         * tests/test-wcrtomb.sh: New file.
51511         * tests/test-wcrtomb.c: New file.
51512
51513         New module 'wcrtomb'.
51514         * lib/wchar.in.h (wcrtomb): New declaration.
51515         * lib/wcrtomb.c: New file.
51516         * m4/wcrtomb.m4: New file.
51517         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
51518         HAVE_WCRTOMB.
51519         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
51520         HAVE_WCRTOMB.
51521         * modules/wcrtomb: New file.
51522         * doc/posix-functions/wcrtomb.texi: Mention the new module.
51523
51524 2008-12-21  Bruno Haible  <bruno@clisp.org>
51525
51526         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
51527         * modules/mbsrtowcs (Files): Likewise.
51528         * modules/wctob (Files): Likewise.
51529         * modules/c-strcase-tests (Files): Likewise.
51530         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
51531         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
51532         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
51533         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
51534         * modules/vasnprintf-posix-tests (Files): Likewise.
51535
51536 2008-12-21  William Pursell  <bill.pursell@gmail.com>
51537
51538         gitlog-to-changelog: pass all command-line arguments to git-log
51539         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
51540         it is sometimes convenient to filter the commits in various ways.
51541         gitlog-to-changelog only allows --since to specify a start date,
51542         but git-log itself supports many other filtering mechanisms.
51543         At the moment, I want to filter by branch name.  Rather than
51544         adding a --branch option to gitlog-to-changelog, it seems more
51545         flexible to simply pass all options directly to git-log and let
51546         git do the work.  Notice that this effectively makes --since a
51547         redundant option for gitlog-to-changelog, but removing it would
51548         require current usage to change since calls would then require
51549         an additional '--'.
51550
51551 2008-12-21  Bruno Haible  <bruno@clisp.org>
51552
51553         * modules/mbsnrtowcs-tests: New file.
51554         * tests/test-mbsnrtowcs1.sh: New file.
51555         * tests/test-mbsnrtowcs2.sh: New file.
51556         * tests/test-mbsnrtowcs3.sh: New file.
51557         * tests/test-mbsnrtowcs4.sh: New file.
51558         * tests/test-mbsnrtowcs.c: New file.
51559
51560         New module 'mbsnrtowcs'.
51561         * lib/wchar.in.h (mbsnrtowcs): New declaration.
51562         * lib/mbsnrtowcs.c: New file.
51563         * lib/mbsrtowcs-state.c: New file.
51564         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
51565         (internal_state): Remove variable.
51566         * m4/mbsnrtowcs.m4: New file.
51567         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
51568         compilation units.
51569         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
51570         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
51571         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
51572         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
51573         * modules/mbsnrtowcs: New file.
51574         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
51575         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
51576         portability problem.
51577
51578 2008-12-21  Bruno Haible  <bruno@clisp.org>
51579
51580         Work around mbsrtowcs bug.
51581         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
51582         (gl_FUNC_MBSRTOWCS): Invoke it.
51583         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
51584         m4/locale-zh.m4.
51585         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
51586
51587 2008-12-21  Bruno Haible  <bruno@clisp.org>
51588
51589         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
51590
51591 2008-12-21  Bruno Haible  <bruno@clisp.org>
51592
51593         Update doc for AIX.
51594         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
51595         16-bit wchar_t type.
51596         * doc/posix-functions/btowc.texi: Likewise.
51597         * doc/posix-functions/fgetwc.texi: Likewise.
51598         * doc/posix-functions/fgetws.texi: Likewise.
51599         * doc/posix-functions/fputwc.texi: Likewise.
51600         * doc/posix-functions/fputws.texi: Likewise.
51601         * doc/posix-functions/fwide.texi: Likewise.
51602         * doc/posix-functions/fwprintf.texi: Likewise.
51603         * doc/posix-functions/fwscanf.texi: Likewise.
51604         * doc/posix-functions/getwchar.texi: Likewise.
51605         * doc/posix-functions/getwc.texi: Likewise.
51606         * doc/posix-functions/iswalnum.texi: Likewise.
51607         * doc/posix-functions/iswalpha.texi: Likewise.
51608         * doc/posix-functions/iswblank.texi: Likewise.
51609         * doc/posix-functions/iswcntrl.texi: Likewise.
51610         * doc/posix-functions/iswctype.texi: Likewise.
51611         * doc/posix-functions/iswdigit.texi: Likewise.
51612         * doc/posix-functions/iswgraph.texi: Likewise.
51613         * doc/posix-functions/iswlower.texi: Likewise.
51614         * doc/posix-functions/iswprint.texi: Likewise.
51615         * doc/posix-functions/iswpunct.texi: Likewise.
51616         * doc/posix-functions/iswspace.texi: Likewise.
51617         * doc/posix-functions/iswupper.texi: Likewise.
51618         * doc/posix-functions/iswxdigit.texi: Likewise.
51619         * doc/posix-functions/mbrtowc.texi: Likewise.
51620         * doc/posix-functions/mbsrtowcs.texi: Likewise.
51621         * doc/posix-functions/mbstowcs.texi: Likewise.
51622         * doc/posix-functions/mbtowc.texi: Likewise.
51623         * doc/posix-functions/putwchar.texi: Likewise.
51624         * doc/posix-functions/putwc.texi: Likewise.
51625         * doc/posix-functions/swprintf.texi: Likewise.
51626         * doc/posix-functions/tolower.texi: Likewise.
51627         * doc/posix-functions/toupper.texi: Likewise.
51628         * doc/posix-functions/towctrans.texi: Likewise.
51629         * doc/posix-functions/ungetwc.texi: Likewise.
51630         * doc/posix-functions/vswprintf.texi: Likewise.
51631         * doc/posix-functions/wcrtomb.texi: Likewise.
51632         * doc/posix-functions/wcscat.texi: Likewise.
51633         * doc/posix-functions/wcschr.texi: Likewise.
51634         * doc/posix-functions/wcscmp.texi: Likewise.
51635         * doc/posix-functions/wcscoll.texi: Likewise.
51636         * doc/posix-functions/wcscpy.texi: Likewise.
51637         * doc/posix-functions/wcscspn.texi: Likewise.
51638         * doc/posix-functions/wcsftime.texi: Likewise.
51639         * doc/posix-functions/wcslen.texi: Likewise.
51640         * doc/posix-functions/wcsncat.texi: Likewise.
51641         * doc/posix-functions/wcsncmp.texi: Likewise.
51642         * doc/posix-functions/wcsncpy.texi: Likewise.
51643         * doc/posix-functions/wcspbrk.texi: Likewise.
51644         * doc/posix-functions/wcsrchr.texi: Likewise.
51645         * doc/posix-functions/wcsrtombs.texi: Likewise.
51646         * doc/posix-functions/wcsspn.texi: Likewise.
51647         * doc/posix-functions/wcsstr.texi: Likewise.
51648         * doc/posix-functions/wcstod.texi: Likewise.
51649         * doc/posix-functions/wcstof.texi: Likewise.
51650         * doc/posix-functions/wcstoimax.texi: Likewise.
51651         * doc/posix-functions/wcstok.texi: Likewise.
51652         * doc/posix-functions/wcstold.texi: Likewise.
51653         * doc/posix-functions/wcstoll.texi: Likewise.
51654         * doc/posix-functions/wcstol.texi: Likewise.
51655         * doc/posix-functions/wcstombs.texi: Likewise.
51656         * doc/posix-functions/wcstoull.texi: Likewise.
51657         * doc/posix-functions/wcstoul.texi: Likewise.
51658         * doc/posix-functions/wcstoumax.texi: Likewise.
51659         * doc/posix-functions/wcswidth.texi: Likewise.
51660         * doc/posix-functions/wcsxfrm.texi: Likewise.
51661         * doc/posix-functions/wctob.texi: Likewise.
51662         * doc/posix-functions/wctomb.texi: Likewise.
51663         * doc/posix-functions/wctrans.texi: Likewise.
51664         * doc/posix-functions/wctype.texi: Likewise.
51665         * doc/posix-functions/wcwidth.texi: Likewise.
51666         * doc/posix-functions/wmemchr.texi: Likewise.
51667         * doc/posix-functions/wmemcmp.texi: Likewise.
51668         * doc/posix-functions/wmemcpy.texi: Likewise.
51669         * doc/posix-functions/wmemmove.texi: Likewise.
51670         * doc/posix-functions/wmemset.texi: Likewise.
51671         * doc/posix-functions/wprintf.texi: Likewise.
51672         * doc/posix-functions/wscanf.texi: Likewise.
51673
51674 2008-12-21  Bruno Haible  <bruno@clisp.org>
51675
51676         Update doc for HP-UX 11.11.
51677         * doc/posix-functions/btowc.texi: Clarify that the function is missing
51678         in HP-UX version 11.00, not in all versions of HP-UX 11.
51679         * doc/posix-functions/fwide.texi: Likewise.
51680         * doc/posix-functions/fwprintf.texi: Likewise.
51681         * doc/posix-functions/fwscanf.texi: Likewise.
51682         * doc/posix-functions/inet_ntop.texi: Likewise.
51683         * doc/posix-functions/inet_pton.texi: Likewise.
51684         * doc/posix-functions/mbrlen.texi: Likewise.
51685         * doc/posix-functions/mbrtowc.texi: Likewise.
51686         * doc/posix-functions/mbsinit.texi: Likewise.
51687         * doc/posix-functions/mbsrtowcs.texi: Likewise.
51688         * doc/posix-functions/swprintf.texi: Likewise.
51689         * doc/posix-functions/swscanf.texi: Likewise.
51690         * doc/posix-functions/towctrans.texi: Likewise.
51691         * doc/posix-functions/vfwprintf.texi: Likewise.
51692         * doc/posix-functions/vswprintf.texi: Likewise.
51693         * doc/posix-functions/vwprintf.texi: Likewise.
51694         * doc/posix-functions/wcrtomb.texi: Likewise.
51695         * doc/posix-functions/wcsrtombs.texi: Likewise.
51696         * doc/posix-functions/wcsstr.texi: Likewise.
51697         * doc/posix-functions/wctob.texi: Likewise.
51698         * doc/posix-functions/wctrans.texi: Likewise.
51699         * doc/posix-functions/wmemchr.texi: Likewise.
51700         * doc/posix-functions/wmemcmp.texi: Likewise.
51701         * doc/posix-functions/wmemcpy.texi: Likewise.
51702         * doc/posix-functions/wmemmove.texi: Likewise.
51703         * doc/posix-functions/wmemset.texi: Likewise.
51704         * doc/posix-functions/wprintf.texi: Likewise.
51705         * doc/posix-functions/wscanf.texi: Likewise.
51706
51707 2008-12-21  Bruno Haible  <bruno@clisp.org>
51708
51709         Work around a portability problem.
51710         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
51711         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
51712
51713 2008-12-20  Bruno Haible  <bruno@clisp.org>
51714
51715         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
51716         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
51717         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
51718         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
51719         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
51720
51721         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
51722         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
51723         set.
51724         (GNULIB_defined_mbstate_t): New macro.
51725         (mbsinit): Redefine if REPLACE_MBSINIT is set.
51726         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
51727         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
51728         reuses the system's mbrtowc function but works around the bugs.
51729         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
51730         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
51731         macros.
51732         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
51733         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
51734         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
51735         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
51736         REPLACE_MBSINIT if mbsinit needs to be overridden.
51737         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
51738         REPLACE_MBSINIT, REPLACE_MBRTOWC.
51739         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
51740         REPLACE_MBSINIT, REPLACE_MBRTOWC.
51741         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
51742         m4/locale-zh.m4.
51743         (Depends): Add mbsinit.
51744         * modules/mbsinit (Depends): Add mbrtowc.
51745         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
51746
51747 2008-12-20  Bruno Haible  <bruno@clisp.org>
51748
51749         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
51750         so that there are no conversion errors on AIX.
51751         * tests/test-mbsrtowcs.c (main): LIkewise.
51752
51753 2008-12-20  Bruno Haible  <bruno@clisp.org>
51754
51755         Work around wctob bug on Solaris <= 9.
51756         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
51757         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
51758         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
51759         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
51760         * modules/wctob (Files): Add m4/locale-fr.m4.
51761         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
51762
51763 2008-12-20  Bruno Haible  <bruno@clisp.org>
51764
51765         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
51766         /dev/null.
51767         * tests/test-select-in.sh: Likewise.
51768         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
51769
51770 2008-12-20  Bruno Haible  <bruno@clisp.org>
51771
51772         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
51773         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
51774         Cygwin 1.5.x.
51775
51776 2008-12-20  Bruno Haible  <bruno@clisp.org>
51777
51778         Ensure mbstate_t is defined on HP-UX 11.11.
51779         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
51780         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
51781         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
51782         AC_USE_SYSTEM_EXTENSIONS.
51783         * modules/fnmatch (Depends-on): Add extensions.
51784         * modules/mbrlen (Depends-on): Likewise.
51785         * modules/mbrtowc (Depends-on): Likewise.
51786         * modules/mbsinit (Depends-on): Likewise.
51787         * modules/mbsrtowcs (Depends-on): Likewise.
51788         * modules/mbswidth (Depends-on): Likewise.
51789         * modules/quotearg (Depends-on): Likewise.
51790         * modules/strftime (Depends-on): Likewise.
51791
51792 2008-12-20  Bruno Haible  <bruno@clisp.org>
51793
51794         Ensure wctob is declared on IRIX 6.5.
51795         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
51796         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
51797         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
51798         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
51799         of HAVE_WCTOB.
51800         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
51801         HAVE_WCTOB.
51802         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
51803
51804 2008-12-19  Bruno Haible  <bruno@clisp.org>
51805
51806         * modules/mbsrtowcs-tests: New file.
51807         * tests/test-mbsrtowcs1.sh: New file.
51808         * tests/test-mbsrtowcs2.sh: New file.
51809         * tests/test-mbsrtowcs3.sh: New file.
51810         * tests/test-mbsrtowcs4.sh: New file.
51811         * tests/test-mbsrtowcs.c: New file.
51812
51813         New module 'mbsrtowcs'.
51814         * lib/wchar.in.h (mbsrtowcs): New declaration.
51815         * lib/mbsrtowcs.c: New file.
51816         * m4/mbsrtowcs.m4: New file.
51817         * modules/mbsrtowcs: New file.
51818         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
51819         HAVE_MBSRTOWCS.
51820         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
51821         HAVE_MBSRTOWCS.
51822         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
51823
51824 2008-12-19  Bruno Haible  <bruno@clisp.org>
51825
51826         New module 'mbrlen'.
51827         * lib/wchar.in.h (mbrlen): New declaration.
51828         * lib/mbrlen.c: New file.
51829         * m4/mbrlen.m4: New file.
51830         * modules/mbrlen: New file.
51831         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
51832         HAVE_MBRLEN.
51833         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
51834         HAVE_MBRLEN.
51835         * doc/posix-functions/mbrlen.texi: Document the new module.
51836
51837 2008-12-19  Bruno Haible  <bruno@clisp.org>
51838
51839         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
51840         * modules/mbrtowc (Depends-on): Add verify.
51841         Suggested by Paul Eggert.
51842
51843 2008-12-18  Bruno Haible  <bruno@clisp.org>
51844
51845         * modules/mbsinit-tests: New file.
51846         * tests/test-mbsinit.sh: New file.
51847         * tests/test-mbsinit.c: New file.
51848
51849 2008-12-18  Bruno Haible  <bruno@clisp.org>
51850
51851         * modules/mbrtowc-tests: New file.
51852         * tests/test-mbrtowc1.sh: New file.
51853         * tests/test-mbrtowc2.sh: New file.
51854         * tests/test-mbrtowc3.sh: New file.
51855         * tests/test-mbrtowc4.sh: New file.
51856         * tests/test-mbrtowc.c: New file.
51857
51858         New module 'mbrtowc'.
51859         * lib/wchar.in.h (mbstate_t): Override when the system does not have
51860         mbsinit and mbrtowc.
51861         (mbrtowc): New declaration.
51862         * lib/mbrtowc.c: New file.
51863         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
51864         * modules/mbrtowc: New file.
51865         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
51866         HAVE_MBRTOWC.
51867         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
51868         HAVE_MBRTOWC.
51869         * doc/posix-functions/mbrtowc.texi: Document the new module.
51870
51871 2008-12-18  Bruno Haible  <bruno@clisp.org>
51872
51873         New module 'wctob'.
51874         * lib/wchar.in.h (wctob): New declaration.
51875         * lib/wctob.c: New file.
51876         * m4/wctob.m4: New file.
51877         * modules/wctob: New file.
51878         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
51879         HAVE_WCTOB.
51880         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
51881         * doc/posix-functions/wctob.texi: Document the new module.
51882
51883 2008-12-18  Bruno Haible  <bruno@clisp.org>
51884
51885         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
51886         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
51887
51888 2008-12-18  Simon Josefsson  <simon@josefsson.org>
51889
51890         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
51891         G. Christensen" <tgc@jupiterrise.com>.
51892
51893         * lib/flock.c: Need to include errno.h.  Reported by "Tom
51894         G. Christensen" <tgc@jupiterrise.com>.
51895
51896         * lib/flock.c: Need to include string.h.  Reported by "Tom
51897         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
51898         <ebb9@byu.net>.
51899
51900 2008-12-18  Bruno Haible  <bruno@clisp.org>
51901
51902         * m4/locale-ja.m4: New file, from GNU gettext.
51903
51904 2008-12-17  Bruno Haible  <bruno@clisp.org>
51905
51906         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
51907         Suggested by Eric Blake.
51908
51909 2008-12-17  Bruno Haible  <bruno@clisp.org>
51910
51911         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
51912
51913 2008-12-17  Bruno Haible  <bruno@clisp.org>
51914
51915         * lib/mbsinit.c: Include verify.h. Verify an assumption.
51916         * modules/mbsinit (Depends-on): Add verify.
51917         Suggested by Paul Eggert.
51918
51919 2008-12-17  Bruno Haible  <bruno@clisp.org>
51920
51921         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
51922         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
51923         gl_FUNC_MBRTOWC.
51924         * m4/mbiter.m4 (gl_MBITER): LIkewise.
51925         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
51926         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
51927         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
51928         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
51929         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
51930         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
51931         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
51932         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
51933         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
51934         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
51935         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
51936         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
51937         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
51938         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
51939         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
51940         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
51941         * modules/trim (configure.ac): Likewise.
51942
51943 2008-12-17  Bruno Haible  <bruno@clisp.org>
51944
51945         * modules/btowc-tests: New file.
51946         * tests/test-btowc1.sh: New file.
51947         * tests/test-btowc2.sh: New file.
51948         * tests/test-btowc.c: New file.
51949
51950         New module 'btowc'.
51951         * lib/wchar.in.h (btowc): New declaration.
51952         * lib/btowc.c: New file.
51953         * m4/btowc.m4: New file.
51954         * modules/btowc: New file.
51955         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
51956         HAVE_BTOWC.
51957         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
51958         * doc/posix-functions/btowc.texi: Document the new module.
51959
51960 2008-12-17  Bruno Haible  <bruno@clisp.org>
51961
51962         New module 'mbsinit'.
51963         * lib/wchar.in.h (mbsinit): New declaration.
51964         * lib/mbsinit.c: New file.
51965         * m4/mbsinit.m4: New file.
51966         * modules/mbsinit: New file.
51967         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
51968         HAVE_MBSINIT.
51969         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
51970         HAVE_MBSINIT.
51971         * doc/posix-functions/mbsinit.texi: Document the new module.
51972
51973 2008-12-16  Bruno Haible  <bruno@clisp.org>
51974
51975         * lib/unistd.in.h: Add comment.
51976         * tests/test-environ.c: Don't include <stdlib.h>.
51977
51978 2008-12-16  Bruno Haible  <bruno@clisp.org>
51979
51980         * lib/parse-duration.h (parse_duration): Document return value
51981         convention.
51982         * lib/parse-duration.c: Include specification header first. Add
51983         comments.
51984         (_): Remove macro.
51985         (parse_year_month_day, parse_hour_minute_second): Move side effects
51986         outside of strchr call.
51987         (parse_non_iso8601): Move side effects outside of isspace call.
51988         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
51989         call.
51990
51991 2008-12-16  Bruno Haible  <bruno@clisp.org>
51992
51993         * tests/test-parse-duration.sh: Produce no output when the test
51994         succeeds.
51995
51996 2008-12-16  Bruno Haible  <bruno@clisp.org>
51997
51998         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
51999         expressions.
52000
52001 2008-12-15  Bruno Haible  <bruno@clisp.org>
52002
52003         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
52004         * doc/glibc-functions/flistxattr.texi: Likewise.
52005         * doc/glibc-functions/fopencookie.texi: Likewise.
52006         * doc/glibc-functions/fremovexattr.texi: Likewise.
52007         * doc/glibc-functions/fsetxattr.texi: Likewise.
52008         * doc/glibc-functions/getxattr.texi: Likewise.
52009         * doc/glibc-functions/lgetxattr.texi: Likewise.
52010         * doc/glibc-functions/listxattr.texi: Likewise.
52011         * doc/glibc-functions/llistxattr.texi: Likewise.
52012         * doc/glibc-functions/lremovexattr.texi: Likewise.
52013         * doc/glibc-functions/lsetxattr.texi: Likewise.
52014         * doc/glibc-functions/removexattr.texi: Likewise.
52015         * doc/glibc-functions/setxattr.texi: Likewise.
52016         * doc/posix-functions/open_memstream.texi: Likewise.
52017
52018 2008-12-15  Eric Blake  <ebb9@byu.net>
52019
52020         Update doc for cygwin 1.7.
52021         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
52022         functions.
52023         * doc/posix-functions/fchmodat.texi: Likewise.
52024         * doc/posix-functions/fchownat.texi: Likewise.
52025         * doc/posix-functions/fdopendir.texi: Likewise.
52026         * doc/posix-functions/fmemopen.texi: Likewise.
52027         * doc/posix-functions/freeaddrinfo.texi: Likewise.
52028         * doc/posix-functions/fstatat.texi: Likewise.
52029         * doc/posix-functions/futimens.texi: Likewise.
52030         * doc/posix-functions/gai_strerror.texi: Likewise.
52031         * doc/posix-functions/getaddrinfo.texi: Likewise.
52032         * doc/posix-functions/getnameinfo.texi: Likewise.
52033         * doc/posix-functions/if_freenameindex.texi: Likewise.
52034         * doc/posix-functions/if_indextoname.texi: Likewise.
52035         * doc/posix-functions/if_nameindex.texi: Likewise.
52036         * doc/posix-functions/if_nametoindex.texi: Likewise.
52037         * doc/posix-functions/insque.texi: Likewise.
52038         * doc/posix-functions/linkat.texi: Likewise.
52039         * doc/posix-functions/llrint.texi: Likewise.
52040         * doc/posix-functions/llrintf.texi: Likewise.
52041         * doc/posix-functions/llrintl.texi: Likewise.
52042         * doc/posix-functions/lockf.texi: Likewise.
52043         * doc/posix-functions/lrintl.texi: Likewise.
52044         * doc/posix-functions/mkdirat.texi: Likewise.
52045         * doc/posix-functions/mkfifoat.texi: Likewise.
52046         * doc/posix-functions/mknodat.texi: Likewise.
52047         * doc/posix-functions/mq_close.texi: Likewise.
52048         * doc/posix-functions/mq_getattr.texi: Likewise.
52049         * doc/posix-functions/mq_notify.texi: Likewise.
52050         * doc/posix-functions/mq_open.texi: Likewise.
52051         * doc/posix-functions/mq_receive.texi: Likewise.
52052         * doc/posix-functions/mq_send.texi: Likewise.
52053         * doc/posix-functions/mq_setattr.texi: Likewise.
52054         * doc/posix-functions/mq_timedreceive.texi: Likewise.
52055         * doc/posix-functions/mq_timedsend.texi: Likewise.
52056         * doc/posix-functions/mq_unlink.texi: Likewise.
52057         * doc/posix-functions/open_memstream.texi: Likewise.
52058         * doc/posix-functions/openat.texi: Likewise.
52059         * doc/posix-functions/posix_fadvise.texi: Likewise.
52060         * doc/posix-functions/posix_fallocate.texi: Likewise.
52061         * doc/posix-functions/posix_madvise.texi: Likewise.
52062         * doc/posix-functions/posix_memalign.texi: Likewise.
52063         * doc/posix-functions/posix_openpt.texi: Likewise.
52064         * doc/posix-functions/readlinkat.texi: Likewise.
52065         * doc/posix-functions/remque.texi: Likewise.
52066         * doc/posix-functions/renameat.texi: Likewise.
52067         * doc/posix-functions/rintl.texi: Likewise.
52068         * doc/posix-functions/sem_unlink.texi: Likewise.
52069         * doc/posix-functions/shm_open.texi: Likewise.
52070         * doc/posix-functions/shm_unlink.texi: Likewise.
52071         * doc/posix-functions/signgam.texi: Likewise.
52072         * doc/posix-functions/sigset.texi: Likewise.
52073         * doc/posix-functions/stpcpy.texi: Likewise.
52074         * doc/posix-functions/stpncpy.texi: Likewise.
52075         * doc/posix-functions/strerror.texi: Likewise.
52076         * doc/posix-functions/strtod.texi: Likewise.
52077         * doc/posix-functions/symlinkat.texi: Likewise.
52078         * doc/posix-functions/unlinkat.texi: Likewise.
52079         * doc/posix-functions/utimensat.texi: Likewise.
52080         * doc/glibc-functions/bindresvport.texi: Likewise.
52081         * doc/glibc-functions/dn_expand.texi: Likewise.
52082         * doc/glibc-functions/exp10.texi: Likewise.
52083         * doc/glibc-functions/exp10f.texi: Likewise.
52084         * doc/glibc-functions/fgetxattr.texi: Likewise.
52085         * doc/glibc-functions/flistxattr.texi: Likewise.
52086         * doc/glibc-functions/fopencookie.texi: Likewise.
52087         * doc/glibc-functions/freeifaddrs.texi: Likewise.
52088         * doc/glibc-functions/fremovexattr.texi: Likewise.
52089         * doc/glibc-functions/fsetxattr.texi: Likewise.
52090         * doc/glibc-functions/getifaddrs.texi: Likewise.
52091         * doc/glibc-functions/getxattr.texi: Likewise.
52092         * doc/glibc-functions/lgetxattr.texi: Likewise.
52093         * doc/glibc-functions/listxattr.texi: Likewise.
52094         * doc/glibc-functions/llistxattr.texi: Likewise.
52095         * doc/glibc-functions/lremovexattr.texi: Likewise.
52096         * doc/glibc-functions/lsetxattr.texi: Likewise.
52097         * doc/glibc-functions/pow10.texi: Likewise.
52098         * doc/glibc-functions/pow10f.texi: Likewise.
52099         * doc/glibc-functions/rcmd_af.texi: Likewise.
52100         * doc/glibc-functions/removexattr.texi: Likewise.
52101         * doc/glibc-functions/res_init.texi: Likewise.
52102         * doc/glibc-functions/res_mkquery.texi: Likewise.
52103         * doc/glibc-functions/res_query.texi: Likewise.
52104         * doc/glibc-functions/res_querydomain.texi: Likewise.
52105         * doc/glibc-functions/res_send.texi: Likewise.
52106         * doc/glibc-functions/rresvport_af.texi: Likewise.
52107         * doc/glibc-functions/setxattr.texi: Likewise.
52108         * doc/glibc-functions/strcasestr.texi: Likewise.
52109
52110 2008-12-15  Bruno Haible  <bruno@clisp.org>
52111
52112         Fix compilation error on OSF/1 4.0.
52113         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
52114         <sys/time.h>, simply delegate to the system header.
52115         Reported by Daniel Richard G. <oss@teragram.com>.
52116
52117 2008-12-15  Bruno Haible  <bruno@clisp.org>
52118
52119         * doc/posix-functions/openat.texi: Mention the 'openat' module.
52120         * doc/posix-functions/fchmodat.texi: Likewise.
52121         * doc/posix-functions/fchownat.texi: Likewise.
52122         * doc/posix-functions/fdopendir.texi: Likewise.
52123         * doc/posix-functions/fstatat.texi: Likewise.
52124         * doc/posix-functions/mkdirat.texi: Likewise.
52125         * doc/posix-functions/unlinkat.texi: Likewise.
52126
52127 2008-12-14  Bruno Haible  <bruno@clisp.org>
52128
52129         Update doc for POSIX:2008.
52130         * doc/posix-functions/faccessat.texi: New file.
52131         * doc/posix-functions/fchmodat.texi: New file.
52132         * doc/posix-functions/fchownat.texi: New file.
52133         * doc/posix-functions/fdopendir.texi: New file.
52134         * doc/posix-functions/fstatat.texi: New file.
52135         * doc/posix-functions/futimens.texi: New file.
52136         * doc/posix-functions/linkat.texi: New file.
52137         * doc/posix-functions/mkdirat.texi: New file.
52138         * doc/posix-functions/mkfifoat.texi: New file.
52139         * doc/posix-functions/mknodat.texi: New file.
52140         * doc/posix-functions/open_wmemstream.texi: New file.
52141         * doc/posix-functions/openat.texi: New file.
52142         * doc/posix-functions/psiginfo.texi: New file.
52143         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
52144         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
52145         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
52146         * doc/posix-functions/readlinkat.texi: New file.
52147         * doc/posix-functions/renameat.texi: New file.
52148         * doc/posix-functions/strerror_l.texi: New file.
52149         * doc/posix-functions/symlinkat.texi: New file.
52150         * doc/posix-functions/unlinkat.texi: New file.
52151         * doc/posix-functions/utimensat.texi: New file.
52152         * doc/gnulib.texi (Function Substitutes): Add these subsections.
52153
52154 2008-12-14  Bruno Haible  <bruno@clisp.org>
52155
52156         Update doc for POSIX:2008.
52157         * doc/posix-functions/alphasort.texi: Renamed from
52158         doc/glibc-functions/alphasort.texi.
52159         * doc/posix-functions/dirfd.texi: Renamed from
52160         doc/glibc-functions/dirfd.texi.
52161         * doc/posix-functions/dprintf.texi: Renamed from
52162         doc/glibc-functions/dprintf.texi.
52163         * doc/posix-functions/duplocale.texi: Renamed from
52164         doc/glibc-functions/duplocale.texi.
52165         * doc/posix-functions/fexecve.texi: Renamed from
52166         doc/glibc-functions/fexecve.texi.
52167         * doc/posix-functions/fmemopen.texi: Renamed from
52168         doc/glibc-functions/fmemopen.texi.
52169         * doc/posix-functions/freelocale.texi: Renamed from
52170         doc/glibc-functions/freelocale.texi.
52171         * doc/posix-functions/getdate_err.texi: Renamed from
52172         doc/glibc-functions/getdate_err.texi.
52173         * doc/posix-functions/isalnum_l.texi: Renamed from
52174         doc/glibc-functions/isalnum_l.texi.
52175         * doc/posix-functions/isalpha_l.texi: Renamed from
52176         doc/glibc-functions/isalpha_l.texi.
52177         * doc/posix-functions/isblank_l.texi: Renamed from
52178         doc/glibc-functions/isblank_l.texi.
52179         * doc/posix-functions/iscntrl_l.texi: Renamed from
52180         doc/glibc-functions/iscntrl_l.texi.
52181         * doc/posix-functions/isdigit_l.texi: Renamed from
52182         doc/glibc-functions/isdigit_l.texi.
52183         * doc/posix-functions/isgraph_l.texi: Renamed from
52184         doc/glibc-functions/isgraph_l.texi.
52185         * doc/posix-functions/islower_l.texi: Renamed from
52186         doc/glibc-functions/islower_l.texi.
52187         * doc/posix-functions/isprint_l.texi: Renamed from
52188         doc/glibc-functions/isprint_l.texi.
52189         * doc/posix-functions/ispunct_l.texi: Renamed from
52190         doc/glibc-functions/ispunct_l.texi.
52191         * doc/posix-functions/isspace_l.texi: Renamed from
52192         doc/glibc-functions/isspace_l.texi.
52193         * doc/posix-functions/isupper_l.texi: Renamed from
52194         doc/glibc-functions/isupper_l.texi.
52195         * doc/posix-functions/iswalnum_l.texi: Renamed from
52196         doc/glibc-functions/iswalnum_l.texi.
52197         * doc/posix-functions/iswalpha_l.texi: Renamed from
52198         doc/glibc-functions/iswalpha_l.texi.
52199         * doc/posix-functions/iswblank_l.texi: Renamed from
52200         doc/glibc-functions/iswblank_l.texi.
52201         * doc/posix-functions/iswcntrl_l.texi: Renamed from
52202         doc/glibc-functions/iswcntrl_l.texi.
52203         * doc/posix-functions/iswctype_l.texi: Renamed from
52204         doc/glibc-functions/iswctype_l.texi.
52205         * doc/posix-functions/iswdigit_l.texi: Renamed from
52206         doc/glibc-functions/iswdigit_l.texi.
52207         * doc/posix-functions/iswgraph_l.texi: Renamed from
52208         doc/glibc-functions/iswgraph_l.texi.
52209         * doc/posix-functions/iswlower_l.texi: Renamed from
52210         doc/glibc-functions/iswlower_l.texi.
52211         * doc/posix-functions/iswprint_l.texi: Renamed from
52212         doc/glibc-functions/iswprint_l.texi.
52213         * doc/posix-functions/iswpunct_l.texi: Renamed from
52214         doc/glibc-functions/iswpunct_l.texi.
52215         * doc/posix-functions/iswspace_l.texi: Renamed from
52216         doc/glibc-functions/iswspace_l.texi.
52217         * doc/posix-functions/iswupper_l.texi: Renamed from
52218         doc/glibc-functions/iswupper_l.texi.
52219         * doc/posix-functions/iswxdigit_l.texi: Renamed from
52220         doc/glibc-functions/iswxdigit_l.texi.
52221         * doc/posix-functions/isxdigit_l.texi: Renamed from
52222         doc/glibc-functions/isxdigit_l.texi.
52223         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
52224         doc/glibc-functions/mbsnrtowcs.texi.
52225         * doc/posix-functions/mkdtemp.texi: Renamed from
52226         doc/glibc-functions/mkdtemp.texi.
52227         * doc/posix-functions/newlocale.texi: Renamed from
52228         doc/glibc-functions/newlocale.texi.
52229         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
52230         doc/glibc-functions/nl_langinfo_l.texi.
52231         * doc/posix-functions/open_memstream.texi: Renamed from
52232         doc/glibc-functions/open_memstream.texi.
52233         * doc/posix-functions/opterr.texi: Renamed from
52234         doc/glibc-functions/opterr.texi.
52235         * doc/posix-functions/optind.texi: Renamed from
52236         doc/glibc-functions/optind.texi.
52237         * doc/posix-functions/optopt.texi: Renamed from
52238         doc/glibc-functions/optopt.texi.
52239         * doc/posix-functions/psignal.texi: Renamed from
52240         doc/glibc-functions/psignal.texi.
52241         * doc/posix-functions/scandir.texi: Renamed from
52242         doc/glibc-functions/scandir.texi.
52243         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
52244         doc/glibc-functions/sched_get_priority_min.texi.
52245         * doc/posix-functions/signgam.texi: Renamed from
52246         doc/glibc-functions/signgam.texi.
52247         * doc/posix-functions/stpcpy.texi: Renamed from
52248         doc/glibc-functions/stpcpy.texi.
52249         * doc/posix-functions/stpncpy.texi: Renamed from
52250         doc/glibc-functions/stpncpy.texi.
52251         * doc/posix-functions/strcasecmp_l.texi: Renamed from
52252         doc/glibc-functions/strcasecmp_l.texi.
52253         * doc/posix-functions/strcoll_l.texi: Renamed from
52254         doc/glibc-functions/strcoll_l.texi.
52255         * doc/posix-functions/strfmon_l.texi: Renamed from
52256         doc/glibc-functions/strfmon_l.texi.
52257         * doc/posix-functions/strftime_l.texi: Renamed from
52258         doc/glibc-functions/strftime_l.texi.
52259         * doc/posix-functions/strncasecmp_l.texi: Renamed from
52260         doc/glibc-functions/strncasecmp_l.texi.
52261         * doc/posix-functions/strndup.texi: Renamed from
52262         doc/glibc-functions/strndup.texi.
52263         * doc/posix-functions/strnlen.texi: Renamed from
52264         doc/glibc-functions/strnlen.texi.
52265         * doc/posix-functions/strsignal.texi: Renamed from
52266         doc/glibc-functions/strsignal.texi.
52267         * doc/posix-functions/strxfrm_l.texi: Renamed from
52268         doc/glibc-functions/strxfrm_l.texi.
52269         * doc/posix-functions/timer_gettime.texi: Renamed from
52270         doc/glibc-functions/timer_gettime.texi.
52271         * doc/posix-functions/tolower_l.texi: Renamed from
52272         doc/glibc-functions/tolower_l.texi.
52273         * doc/posix-functions/toupper_l.texi: Renamed from
52274         doc/glibc-functions/toupper_l.texi.
52275         * doc/posix-functions/towctrans_l.texi: Renamed from
52276         doc/glibc-functions/towctrans_l.texi.
52277         * doc/posix-functions/towlower_l.texi: Renamed from
52278         doc/glibc-functions/towlower_l.texi.
52279         * doc/posix-functions/towupper_l.texi: Renamed from
52280         doc/glibc-functions/towupper_l.texi.
52281         * doc/posix-functions/uselocale.texi: Renamed from
52282         doc/glibc-functions/uselocale.texi.
52283         * doc/posix-functions/vdprintf.texi: Renamed from
52284         doc/glibc-functions/vdprintf.texi.
52285         * doc/posix-functions/wcpcpy.texi:
52286         Renamed from doc/glibc-functions/wcpcpy.texi.
52287         * doc/posix-functions/wcpncpy.texi: Renamed from
52288         doc/glibc-functions/wcpncpy.texi.
52289         * doc/posix-functions/wcscasecmp.texi: Renamed from
52290         doc/glibc-functions/wcscasecmp.texi.
52291         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
52292         doc/glibc-functions/wcscasecmp_l.texi.
52293         * doc/posix-functions/wcscoll_l.texi: Renamed from
52294         doc/glibc-functions/wcscoll_l.texi.
52295         * doc/posix-functions/wcsdup.texi: Renamed from
52296         doc/glibc-functions/wcsdup.texi.
52297         * doc/posix-functions/wcsncasecmp.texi: Renamed from
52298         doc/glibc-functions/wcsncasecmp.texi.
52299         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
52300         doc/glibc-functions/wcsncasecmp_l.texi.
52301         * doc/posix-functions/wcsnlen.texi: Renamed from
52302         doc/glibc-functions/wcsnlen.texi.
52303         * doc/posix-functions/wcsnrtombs.texi: Renamed from
52304         doc/glibc-functions/wcsnrtombs.texi.
52305         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
52306         doc/glibc-functions/wcsxfrm_l.texi.
52307         * doc/posix-functions/wctrans_l.texi: Renamed from
52308         doc/glibc-functions/wctrans_l.texi.
52309         * doc/posix-functions/wctype_l.texi: Renamed from
52310         doc/glibc-functions/wctype_l.texi.
52311         * doc/gnulib.texi (Function Substitutes): Add these subsections.
52312         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
52313         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
52314         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
52315         these subsections.
52316         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
52317         Remove sections.
52318
52319 2008-12-14  Bruno Haible  <bruno@clisp.org>
52320
52321         Update doc for POSIX:2008.
52322         * doc/posix-functions/*.texi: Update URL of POSIX specification.
52323
52324 2008-12-14  Bruno Haible  <bruno@clisp.org>
52325
52326         Update doc for POSIX:2008.
52327         * doc/pastposix-functions/bcmp.texi: Renamed from
52328         doc/posix-functions/bcmp.texi.
52329         * doc/pastposix-functions/bcopy.texi: Renamed from
52330         doc/posix-functions/bcopy.texi.
52331         * doc/pastposix-functions/bsd_signal.texi: Renamed from
52332         doc/posix-functions/bsd_signal.texi.
52333         * doc/pastposix-functions/bzero.texi: Renamed from
52334         doc/posix-functions/bzero.texi.
52335         * doc/pastposix-functions/ecvt.texi: Renamed from
52336         doc/posix-functions/ecvt.texi.
52337         * doc/pastposix-functions/fcvt.texi: Renamed from
52338         doc/posix-functions/fcvt.texi.
52339         * doc/pastposix-functions/ftime.texi: Renamed from
52340         doc/posix-functions/ftime.texi.
52341         * doc/pastposix-functions/gcvt.texi: Renamed from
52342         doc/posix-functions/gcvt.texi.
52343         * doc/pastposix-functions/getcontext.texi: Renamed from
52344         doc/posix-functions/getcontext.texi.
52345         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
52346         doc/posix-functions/gethostbyaddr.texi.
52347         * doc/pastposix-functions/gethostbyname.texi: Renamed from
52348         doc/posix-functions/gethostbyname.texi.
52349         * doc/pastposix-functions/getwd.texi: Renamed from
52350         doc/posix-functions/getwd.texi.
52351         * doc/pastposix-functions/h_errno.texi: Renamed from
52352         doc/posix-functions/h_errno.texi.
52353         * doc/pastposix-functions/index.texi: Renamed from
52354         doc/posix-functions/index.texi.
52355         * doc/pastposix-functions/makecontext.texi: Renamed from
52356         doc/posix-functions/makecontext.texi.
52357         * doc/pastposix-functions/mktemp.texi: Renamed from
52358         doc/posix-functions/mktemp.texi.
52359         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
52360         doc/posix-functions/pthread_attr_getstackaddr.texi.
52361         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
52362         doc/posix-functions/pthread_attr_setstackaddr.texi.
52363         * doc/pastposix-functions/rindex.texi: Renamed from
52364         doc/posix-functions/rindex.texi.
52365         * doc/pastposix-functions/scalb.texi: Renamed from
52366         doc/posix-functions/scalb.texi.
52367         * doc/pastposix-functions/setcontext.texi: Renamed from
52368         doc/posix-functions/setcontext.texi.
52369         * doc/pastposix-functions/swapcontext.texi: Renamed from
52370         doc/posix-functions/swapcontext.texi.
52371         * doc/pastposix-functions/ualarm.texi: Renamed from
52372         doc/posix-functions/ualarm.texi.
52373         * doc/pastposix-functions/usleep.texi: Renamed from
52374         doc/posix-functions/usleep.texi.
52375         * doc/pastposix-functions/vfork.texi: Renamed from
52376         doc/posix-functions/vfork.texi.
52377         * doc/pastposix-functions/wcswcs.texi: Renamed from
52378         doc/posix-functions/wcswcs.texi.
52379         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
52380         (Function Substitutes): Update.
52381
52382 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52383
52384         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
52385         m4/strerror.m4.
52386
52387 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52388             Bruno Haible  <bruno@clisp.org>
52389
52390         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
52391
52392 2008-12-13  Bruno Haible  <bruno@clisp.org>
52393
52394         * modules/strtoull (Depends-on): Remove unistd.
52395
52396 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52397
52398         * modules/strtoull (Depends-on): Add stdlib.
52399
52400 2008-12-11  Simon Josefsson  <simon@josefsson.org>
52401
52402         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
52403
52404 2008-12-10  Jim Meyering  <meyering@redhat.com>
52405
52406         gl_ASSERT: don't say assertions are disabled when they're not
52407         * m4/assert.m4 (gl_ASSERT): Do not make configure report
52408         "checking whether to enable assertions... no", when they are in
52409         fact enabled.  This is solely a bug in the output of configure.
52410         In spite of saying "no", NDEBUG was not defined in that case.
52411         Also, as noted by Eric Blake, leave assertions enabled upon
52412         --enable-assert=INVALID.
52413
52414 2008-12-10  Bruno Haible  <bruno@clisp.org>
52415
52416         Change MODULES.html to refer to POSIX:2008 where possible.
52417         * MODULES.html.sh (POSIX2008_URL): New variable.
52418         (posix_headers): Remove sys/timeb, ucontext.
52419         (posix2001_headers): New variable.
52420         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
52421         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
52422         index, makecontext, mktemp, pthread_attr_getstackaddr,
52423         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
52424         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
52425         (posix2001_functions): New variable.
52426         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
52427         otherwise.
52428
52429 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52430
52431         add missing include to parse-duration.c
52432         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
52433         * modules/parse-duration (Depends-on): Add xalloc.
52434
52435         fix sed script reading maint.mk
52436         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
52437         (syntax-check-rules): Use it.
52438
52439 2008-12-09  Bruno Haible  <bruno@clisp.org>
52440
52441         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
52442         MacOS X 10.4/PowerPC.
52443         Reported by Simon Josefsson.
52444
52445 2008-12-08  Jim Meyering  <meyering@redhat.com>
52446
52447         work around mingw's lack of some S_IF definitions
52448         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
52449         Reported by Simon Josefsson.
52450
52451 2008-12-08  Bruno Haible  <bruno@clisp.org>
52452
52453         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
52454         applied to variables. Needed on MacOS X 10.4/PowerPC.
52455         Reported by Simon Josefsson.
52456
52457 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
52458         and Eric Blake  <ebb9@byu.net>
52459
52460         assert: honor --enable-assert
52461         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
52462         order to honor --enable-assert, rather than treating it as a
52463         synonym for --disable-assert.
52464
52465 2008-12-08  Jim Meyering  <meyering@redhat.com>
52466
52467         * lib/posixtm.c: Remove now-useless declaration of mktime.
52468
52469         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
52470
52471 2008-12-07  Bruno Haible  <bruno@clisp.org>
52472
52473         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
52474         test_once): Mark functions as static.
52475         * tests/test-tls.c (test_tls): Likewise.
52476
52477 2008-12-07  Bruno Haible  <bruno@clisp.org>
52478
52479         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
52480         iconv_register_autodetect.
52481
52482 2008-12-07  Jim Meyering  <meyering@redhat.com>
52483
52484         posixtm.c: avoid a warning
52485         * lib/posixtm.c (posixtime): Don't initialize tm0.
52486         It's no longer needed to placate gcc4's -Wuninitialized,
52487         and the attempt to placate would elicit a new warning.
52488
52489         unicodeio.c: mark unused parameters
52490         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
52491         (fallback_failure_callback): Likewise.
52492
52493 2008-12-07  Bruno Haible  <bruno@clisp.org>
52494
52495         * gnulib-tool (func_create_testdir): When building the tests
52496         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
52497         Reported by Simon Josefsson.
52498
52499 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52500
52501         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
52502
52503 2008-12-06  Bruno Haible  <bruno@clisp.org>
52504
52505         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
52506         Suggested by Eric Blake.
52507
52508 2008-12-06  Bruno Haible  <bruno@clisp.org>
52509
52510         Fix a c-stack test failure on MacOS X.
52511         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
52512         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
52513         handler for SIGBUS as well.
52514         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
52515         install a signal handler for SIGBUS as well.
52516         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
52517
52518 2008-12-06  Bruno Haible  <bruno@clisp.org>
52519
52520         Advocacy documentation.
52521         * doc/gnulib-intro.texi (Benefits): New section.
52522         * doc/gnulib.texi: Update.
52523
52524 2008-12-06  Bruno Haible  <bruno@clisp.org>
52525
52526         Document the 'manywarnings' module.
52527         * doc/manywarnings.texi: New file.
52528         * doc/gnulib.texi: Include it.
52529
52530 2008-12-05  Eric Blake  <ebb9@byu.net>
52531
52532         tests: silence some gcc warnings
52533         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
52534         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
52535         type mismatches.
52536
52537 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52538             Bruno Haible  <bruno@clisp.org>
52539
52540         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
52541
52542 2008-11-29  Jim Meyering  <meyering@redhat.com>
52543
52544         unicodeio.c: mark unused parameters
52545         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
52546         (fallback_failure_callback): Likewise.
52547
52548         fts: fix a thinko
52549         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
52550         (set_stat_type): Return S_IF*-valued "type" directly.
52551         Prompted by James Youngman's spotting a related bug.
52552         Confirmed by further testing through find.
52553
52554         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
52555         * lib/fts.c (D_TYPE): Define.
52556         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
52557         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
52558         (s_ifmt_shift_bits): New function.
52559         (set_stat_type): New function.
52560         (fts_build): When not calling fts_stat, call set_stat_type
52561         to propagate dirent.d_type info to fts_read caller.
52562         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
52563         fts_statp->st_mode type information may be valid.
52564
52565 2008-11-28  Simon Josefsson  <simon@josefsson.org>
52566
52567         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
52568         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
52569         <sds@gnu.org>.
52570
52571 2008-11-20  Bruno Haible  <bruno@clisp.org>
52572
52573         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
52574         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
52575         INCLUDE_NEXT.
52576         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
52577         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
52578         * modules/math (Makefile.am): Substitute
52579         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
52580         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
52581
52582 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
52583             Bruno Haible  <bruno@clisp.org>
52584
52585         * lib/stdint.in.h: Define all type macros so that their expansion is
52586         a single typedef'ed token. Fixes a compilation failure in Boost which
52587         does "using ::int8_t;".
52588
52589 2008-11-18  Simon Josefsson  <simon@josefsson.org>
52590
52591         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
52592         gl_MANYWARN_ALL_GCC.
52593         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
52594         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
52595         * modules/manywarnings: New file.
52596         * MODULES.html.sh: Mention manywarnings module.
52597
52598 2008-11-18  Bruno Haible  <bruno@clisp.org>
52599
52600         * doc/gnulib-tool.texi (Unit tests): New section.
52601
52602 2008-11-18  Simon Josefsson  <simon@josefsson.org>
52603
52604         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
52605         paths like 'lib/po/foo.po'.
52606
52607 2008-11-17  Simon Josefsson  <simon@josefsson.org>
52608
52609         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
52610         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
52611
52612 2008-11-17  Simon Josefsson  <simon@josefsson.org>
52613
52614         * m4/warnings.m4: Use CPPFLAGS to really check whether the
52615         parameter works.
52616
52617 2008-11-17  Simon Josefsson  <simon@josefsson.org>
52618
52619         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
52620
52621 2008-11-17  Bruce Korb  <bkorb@gnu.org>
52622
52623         * modules/parse-duration-tests: New file.
52624         * tests/test-parse-duration.sh: New file.
52625         * tests/test-parse-duration.c: New file.
52626
52627         New module 'parse-duration'.
52628         * lib/parse-duration.h: New file.
52629         * lib/parse-duration.c: New file.
52630         * modules/parse-duration: New file.
52631
52632 2008-11-17  Bruno Haible  <bruno@clisp.org>
52633
52634         * tests/test-select-out.sh: Comment out the first pipe test.
52635         Reported by Simon Josefsson.
52636
52637 2008-11-17  Bruno Haible  <bruno@clisp.org>
52638
52639         * modules/getaddrinfo (Depends-on): Add servent, hostent.
52640         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
52641         gl_HOSTENT.
52642
52643 2008-11-17  Bruno Haible  <bruno@clisp.org>
52644
52645         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
52646         -lnetwork and -lnet. Needed for Haiku and BeOS.
52647
52648 2008-11-16  Bruno Haible  <bruno@clisp.org>
52649
52650         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
52651
52652 2008-11-16  Bruno Haible  <bruno@clisp.org>
52653
52654         Avoid test failure on Haiku.
52655         * tests/test-fsync.c: Include <errno.h>.
52656         (main): Don't require that fsync (0) fails.
52657
52658 2008-11-15  Bruno Haible  <bruno@clisp.org>
52659
52660         New module 'hostent'.
52661         * modules/hostent: New file.
52662         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
52663
52664 2008-11-15  Bruno Haible  <bruno@clisp.org>
52665
52666         New module 'servent'.
52667         * modules/servent: New file.
52668         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
52669
52670 2008-11-15  Bruno Haible  <bruno@clisp.org>
52671
52672         Avoid generating same test program with two different rules.
52673         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
52674         test-frexp to test-frexp-nolibm.
52675         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
52676         test-frexpl to test-frexpl-nolibm.
52677
52678 2008-11-15  Bruno Haible  <bruno@clisp.org>
52679
52680         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
52681         $(FREXPL_LIBM).
52682
52683 2008-11-15  Bruno Haible  <bruno@clisp.org>
52684
52685         * lib/netdb.in.h: Activate the definitions also when the system's
52686         <netdb.h> has 'struct addrinfo'.
52687         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
52688         EAI_OVERFLOW or AI_NUMERICSERV.
52689         * doc/posix-headers/netdb.texi: Document the problem.
52690
52691 2008-11-15  Bruno Haible  <bruno@clisp.org>
52692
52693         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
52694
52695         Make the 'sched' module work on platforms where <sched.h> exists but
52696         is incomplete (such as Haiku).
52697         * lib/sched.in.h; Include the system's <sched.h> if it exists.
52698         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
52699         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
52700         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
52701         HAVE_STRUCT_SCHED_PARAM.
52702         * modules/sched (Depends-on): Add include_next.
52703         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
52704         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
52705         * doc/posix-headers/sched.texi: Document the issue.
52706
52707 2008-11-13  Jim Meyering  <meyering@redhat.com>
52708
52709         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
52710         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
52711         test would fail due to the difference in the Report bugs to ...
52712         line.  The expected address is empty, "<>", while the actual
52713         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
52714
52715 2008-11-12  Bruno Haible  <bruno@clisp.org>
52716
52717         lstat: don't compile lstat.c on systems lacking lstat
52718         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
52719         which don't have lstat; this is handled by lib/sys_stat.in.h already.
52720         Reported by Daniel P. Berrange via Jim Meyering.
52721
52722 2008-11-12  Jim Meyering  <meyering@redhat.com>
52723
52724         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
52725
52726 2008-11-12  Simon Josefsson  <simon@josefsson.org>
52727
52728         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
52729         instead.
52730
52731 2008-11-12  Bruno Haible  <bruno@clisp.org>
52732
52733         * lib/unicodeio.c: Include unistr.h.
52734         (utf8_wctomb): Remove function.
52735         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
52736
52737 2008-11-12  Simon Josefsson  <simon@josefsson.org>
52738
52739         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
52740         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
52741         <bruno@clisp.org>.
52742         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
52743
52744 2008-11-12  Simon Josefsson  <simon@josefsson.org>
52745
52746         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
52747         * doc/gnulib.texi: Add section for warnings.
52748
52749 2008-11-11  Bruno Haible  <bruno@clisp.org>
52750
52751         * lib/sockets.h: Add a comment.
52752
52753 2008-11-11  Karl Berry  <karl@gnu.org>
52754
52755         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
52756
52757 2008-11-11  Eric Blake  <ebb9@byu.net>
52758
52759         fdl.texi: avoid git symlinks
52760         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
52761
52762 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
52763
52764         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
52765
52766 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
52767
52768         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
52769         (gl_WARN_ADD): Substitute $2 if literal.
52770
52771 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
52772
52773         * m4/warning.m4: Remove.
52774
52775 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
52776
52777         * m4/warnings.m4: Almost complete rewrite. :-)
52778
52779 2008-11-10  Simon Josefsson  <simon@josefsson.org>
52780
52781         * modules/warnings: New module.
52782         * m4/warnings.m4: New file.
52783         * MODULES.html.sh: Mention warnings module.
52784         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
52785         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52786
52787 2008-11-10  Eric Blake  <ebb9@byu.net>
52788
52789         fdl.texi: make a symlink to the latest version
52790         * doc/standards.texi: Revert today's earlier change.
52791         * doc/fdl-1.2.texi: Rename from old fdl.texi...
52792         * doc/fdl.texi: ...and replace this with a symlink to the newer
52793         fdl-1.3.texi.
52794
52795 2008-11-10  Bruno Haible  <bruno@clisp.org>
52796
52797         * tests/test-select-fd.c (main): Accept the result file name as fourth
52798         argument.
52799         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
52800         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
52801
52802 2008-11-10  Bruno Haible  <bruno@clisp.org>
52803
52804         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
52805         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
52806         as autoconf-substituted macros.
52807         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
52808         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
52809         gl_NETDB_H_DEFAULTS. Set these variables.
52810         * modules/netdb (Makefile.am): Substitute these variables.
52811
52812 2008-11-10  Eric Blake  <ebb9@byu.net>
52813
52814         standards.texi: include correct file for FDL 1.3
52815         * doc/standards.texi (GNU Free Documentation License): Change
52816         include file to pull in FDL 1.3, not 1.2.
52817
52818         fdl.texi: revert accidental change to license
52819         * doc/fdl.texi: This is FDL 1.2, not 1.3.
52820
52821 2008-11-10  Bruno Haible  <bruno@clisp.org>
52822
52823         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
52824         cross-compiling guesses also when the native compile gives no result.
52825
52826 2008-11-10  Bruno Haible  <bruno@clisp.org>
52827
52828         * lib/spawni.c (__spawni): Force variable into the stack.
52829
52830 2008-11-10  Bruno Haible  <bruno@clisp.org>
52831
52832         Add support for Haiku.
52833         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
52834         glibc and BeOS, but also on Haiku.
52835         * lib/fpurge.c (fpurge): Likewise.
52836         * lib/freadable.c (freadable): Likewise.
52837         * lib/freadahead.c (freadahead): Likewise.
52838         * lib/freading.c (freading): Likewise.
52839         * lib/freadptr.c (freadptr): Likewise.
52840         * lib/freadseek.c (freadptrinc): Likewise.
52841         * lib/fseeko.c (rpl_fseeko): Likewise.
52842         * lib/fseterr.c (fseterr): Likewise.
52843         * lib/fwritable.c (fwritable): Likewise.
52844         * lib/fwriting.c (fwriting): Likewise.
52845         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
52846
52847 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
52848
52849         * lib/config.charset: Treat Haiku like BeOS.
52850
52851 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
52852
52853         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
52854         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
52855
52856 2008-11-08  Bruno Haible  <bruno@clisp.org>
52857
52858         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
52859         AC_CACHE_CHECK.
52860
52861 2008-11-08  Bruno Haible  <bruno@clisp.org>
52862
52863         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
52864
52865 2008-11-08  Bruno Haible  <bruno@clisp.org>
52866
52867         * tests/test-select-fd.c: New file.
52868         * tests/test-select-in.sh: New file.
52869         * tests/test-select-out.sh: New file.
52870         * tests/test-select-stdin.c: New file.
52871         * modules/select-tests (Files): Add the new files.
52872         (Depends-on): Add gettimeofday.
52873         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
52874         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
52875         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
52876
52877 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
52878             Bruno Haible  <bruno@clisp.org>
52879
52880         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
52881
52882 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
52883
52884         * build-aux/pmccabe2html: Added support for C++ source files.
52885
52886 2008-11-05  Ben Pfaff  <blp@gnu.org>
52887
52888         Fix lib/close.c build on Windows.
52889         * modules/close (Files): Add lib/w32sock.h.
52890
52891 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
52892
52893         Accept Bison's NEWS format.
52894         * build-aux/announce-gen (print_news_deltas): Tweak
52895         $re_prefix.
52896
52897 2008-11-04  Bruno Haible  <bruno@clisp.org>
52898
52899         * modules/random_r (Maintainer): Add glibc.
52900
52901 2008-11-04  Simon Josefsson  <simon@josefsson.org>
52902
52903         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
52904         by karl@freefriends.org (Karl Berry).
52905         * doc/alloca.texi: Likewise.
52906         * doc/c-ctype.texi: Likewise.
52907         * doc/c-strcase.texi: Likewise.
52908         * doc/c-strcaseeq.texi: Likewise.
52909         * doc/c-strcasestr.texi: Likewise.
52910         * doc/c-strstr.texi: Likewise.
52911         * doc/c-strtod.texi: Likewise.
52912         * doc/c-strtold.texi: Likewise.
52913         * doc/ctime.texi: Likewise.
52914         * doc/error.texi: Likewise.
52915         * doc/fdl.texi: Likewise.
52916         * doc/gcd.texi: Likewise.
52917         * doc/getdate.texi: Likewise.
52918         * doc/gnulib-intro.texi: Likewise.
52919         * doc/gnulib-tool.texi: Likewise.
52920         * doc/gnulib.texi: Likewise.
52921         * doc/inet_ntoa.texi: Likewise.
52922         * doc/maintain.texi: Likewise.
52923         * doc/make-stds.texi: Likewise.
52924         * doc/quote.texi: Likewise.
52925         * doc/regexprops-generic.texi: Likewise.
52926         * doc/standards.texi: Likewise.
52927         * doc/verify.texi: Likewise.
52928         * doc/visibility.texi: Likewise.
52929         * doc/gnulib.texi (GNU Free Documentation License): Include
52930         fdl-1.3.texi instead of fdl.texi.
52931
52932 2008-11-04  Simon Josefsson  <simon@josefsson.org>
52933
52934         * doc/fdl-1.3.texi: New file, from
52935         <http://www.gnu.org/licenses/fdl-1.3.texi>.
52936         * modules/fdl-1.3: Add.
52937         * MODULES.html.sh: Add fdl-1.3.
52938
52939 2008-11-03  Bruno Haible  <bruno@clisp.org>
52940
52941         Make determination of absolute name of header file work with AIX xlc.
52942         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
52943         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
52944         preprocessing.
52945         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
52946         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
52947
52948 2008-11-03  Simon Josefsson  <simon@josefsson.org>
52949
52950         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
52951         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
52952         <ludo@gnu.org>.
52953
52954 2008-11-02  Bruno Haible  <bruno@clisp.org>
52955
52956         Mark 'strpbrk' obsolete.
52957         * modules/strpbrk (Status, Notice): New sections.
52958         * modules/strtok_r (Depends-on): Add strpbrk.
52959
52960 2008-11-02  Bruno Haible  <bruno@clisp.org>
52961
52962         Mark 'strdup' obsolete.
52963         * modules/strdup (Status, Notice): New sections.
52964         * modules/findprog (Depends-on): Add strdup.
52965         * modules/getaddrinfo (Depends-on): Likewise.
52966         * modules/localename (Depends-on): Likewise.
52967         * modules/relocatable-lib (Depends-on): Likewise.
52968         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
52969         * modules/relocatable-prog (Depends-on): Likewise.
52970         * modules/trim (Depends-on): Likewise.
52971         * modules/unictype/gen-ctype (Depends-on): Likewise.
52972         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
52973
52974 2008-11-02  Bruno Haible  <bruno@clisp.org>
52975
52976         Mark 'strcspn' obsolete.
52977         * modules/strcspn (Status, Notice): New sections.
52978
52979 2008-11-02  Bruno Haible  <bruno@clisp.org>
52980
52981         Mark 'rmdir' obsolete.
52982         * modules/rmdir (Status, Notice): New sections.
52983         * modules/clean-temp (Depends-on): Add rmdir.
52984         * modules/openat (Depends-on): Likewise.
52985
52986 2008-11-02  Bruno Haible  <bruno@clisp.org>
52987
52988         Mark 'raise' obsolete.
52989         * modules/raise (Status, Notice): New sections.
52990         (Include): Specify <signal.h>.
52991         * modules/stdio (Depends-on): Add raise.
52992         * modules/write (Depends-on): Likewise.
52993
52994 2008-11-02  Bruno Haible  <bruno@clisp.org>
52995
52996         Mark 'memset' obsolete.
52997         * modules/memset (Status, Notice): New sections.
52998
52999 2008-11-02  Bruno Haible  <bruno@clisp.org>
53000
53001         Mark 'memmove' obsolete.
53002         * modules/memmove (Status, Notice): New sections.
53003         * modules/argp (Depends-on): Add memmove.
53004         * modules/argz (Depends-on): Likewise.
53005         * modules/canonicalize (Depends-on): Likewise.
53006         * modules/canonicalize-lgpl (Depends-on): Likewise.
53007         * modules/fts (Depends-on): Likewise.
53008         * modules/getcwd (Depends-on): Likewise.
53009         * modules/human (Depends-on): Likewise.
53010         * modules/regex (Depends-on): Likewise.
53011         * modules/striconveh (Depends-on): Likewise.
53012         * modules/trim (Depends-on): Likewise.
53013         * modules/unistr/u8-move (Depends-on): Likewise.
53014         * modules/unistr/u16-move (Depends-on): Likewise.
53015         * modules/unistr/u32-move (Depends-on): Likewise.
53016
53017 2008-11-02  Bruno Haible  <bruno@clisp.org>
53018
53019         Mark 'memcpy' obsolete.
53020         * modules/memcpy (Status, Notice): New sections.
53021
53022 2008-11-02  Bruno Haible  <bruno@clisp.org>
53023
53024         Mark 'memcmp' obsolete.
53025         * modules/memcmp (Status, Notice): New sections.
53026         * modules/argmatch (Depends-on): Add memchr.
53027         * modules/backupfile (Depends-on): Likewise.
53028         * modules/c-strcasestr (Depends-on): Likewise.
53029         * modules/crypto/des (Depends-on): Likewise.
53030         * modules/csharpcomp (Depends-on): Likewise.
53031         * modules/fnmatch (Depends-on): Likewise.
53032         * modules/git-merge-changelog (Depends-on): Likewise.
53033         * modules/isnand (Depends-on): Likewise.
53034         * modules/isnand-nolibm (Depends-on): Likewise.
53035         * modules/isnanf (Depends-on): Likewise.
53036         * modules/isnanf-nolibm (Depends-on): Likewise.
53037         * modules/isnanl (Depends-on): Likewise.
53038         * modules/isnanl-nolibm (Depends-on): Likewise.
53039         * modules/mbchar (Depends-on): Likewise.
53040         * modules/memcoll (Depends-on): Likewise.
53041         * modules/quotearg (Depends-on): Likewise.
53042         * modules/regex (Depends-on): Likewise.
53043         * modules/relocatable-prog (Depends-on): Likewise.
53044         * modules/same (Depends-on): Likewise.
53045         * modules/signbit (Depends-on): Likewise.
53046         * modules/strcasestr-simple (Depends-on): Likewise.
53047         * modules/unictype/gen-ctype (Depends-on): Likewise.
53048         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
53049         * modules/uniname/uniname (Depends-on): Likewise.
53050         * modules/unistr/u8-cmp (Depends-on): Likewise.
53051
53052 2008-11-02  Bruno Haible  <bruno@clisp.org>
53053
53054         Mark 'memchr' obsolete.
53055         * modules/memchr (Status, Notice): New sections.
53056         * modules/argp (Depends-on): Add memchr.
53057         * modules/base64 (Depends-on): Likewise.
53058         * modules/c-strcasestr (Depends-on): Likewise.
53059         * modules/chdir-long (Depends-on): Likewise.
53060         * modules/fnmatch (Depends-on): Likewise.
53061         * modules/getsubopt (Depends-on): Likewise.
53062         * modules/git-merge-changelog (Depends-on): Likewise.
53063         * modules/glob (Depends-on): Likewise.
53064         * modules/strcasestr-simple (Depends-on): Likewise.
53065         * modules/strnlen (Depends-on): Likewise.
53066
53067 2008-11-02  Bruno Haible  <bruno@clisp.org>
53068
53069         Mark 'atexit' obsolete.
53070         * modules/atexit (Status, Notice): New sections.
53071         * modules/chdir-long (Depends-on): Add atexit.
53072         * modules/wait-process (Depends-on): Likewise.
53073
53074 2008-11-02  Bruno Haible  <bruno@clisp.org>
53075
53076         * gnulib-tool: New option --with-obsolete.
53077         (func_usage): Document it.
53078         (func_modules_transitive_closure): Drop obsolete dependencies if
53079         incobsolete is not true.
53080         (func_import): Read and save the incobsolete variable to the cache.
53081
53082 2008-11-02  Bruno Haible  <bruno@clisp.org>
53083
53084         * modules/TEMPLATE-EXTENDED: New field 'Status'.
53085         * gnulib-tool: New option --extract-status.
53086         (func_usage): Document it.
53087         (sed_extract_prog): Recognize it.
53088         (func_get_status): New function.
53089
53090 2008-10-30  Simon Josefsson  <simon@josefsson.org>
53091
53092         * modules/sockets (License): Change from LGPL to LGPLv2+.
53093
53094 2008-10-28  Simon Josefsson  <simon@josefsson.org>
53095
53096         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
53097
53098 2008-10-28  Simon Josefsson  <simon@josefsson.org>
53099
53100         * MODULES.html.sh (Support for systems lacking POSIX:2001):
53101         Mention times and sys_times.
53102         * modules/sys_times, modules/sys_times-tests: New modules.
53103         * modules/times, modules/times-tests: Likewise
53104         * m4/sys_times_h.m4: New file.
53105         * lib/sys_times.in.h: Likewise
53106         * lib/times.c: Likewise.
53107         * tests/test-sys_times.c: Likewise.
53108         * tests/test-times.c: Likewise.
53109         * doc/posix-headers/sys_times.texi: Update.
53110         * doc/posix-functions/times.texi: Update.
53111
53112 2008-10-28  Jim Meyering  <meyering@redhat.com>
53113
53114         * modules/tempname (Depends-on): Add lstat.
53115
53116         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
53117
53118 2008-10-28  Simon Josefsson  <simon@josefsson.org>
53119
53120         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
53121         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
53122         using idiom used elsewhere in gnulib.
53123
53124 2008-10-27  Jim Meyering  <meyering@redhat.com>
53125
53126         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
53127
53128 2008-10-27  Simon Josefsson  <simon@josefsson.org>
53129
53130         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
53131         TESTS_ENVIRONMENT, for shell scripts that needs to call built
53132         programs.
53133         * tests/test-argp-2.sh: Use $EXEEXT when needed.
53134
53135 2008-10-27  Simon Josefsson  <simon@josefsson.org>
53136
53137         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
53138
53139 2008-10-27  Bruno Haible  <bruno@clisp.org>
53140
53141         * tests/test-lstat.c: Include <stdio.h>.
53142
53143 2008-10-27  Simon Josefsson  <simon@josefsson.org>
53144
53145         * modules/lstat-tests: New module.
53146         * tests/test-lstat.c: New file.
53147
53148 2008-10-26  Jim Meyering  <meyering@redhat.com>
53149
53150         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
53151
53152 2008-10-26  Simon Josefsson  <simon@josefsson.org>
53153             Bruno Haible  <bruno@clisp.org>
53154
53155         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
53156         * modules/configmake (Include): Add a note that the include must come
53157         after all system headers.
53158         * lib/javaversion.c: Include configmake.h after all other includes.
53159
53160 2008-10-26  Bruno Haible  <bruno@clisp.org>
53161
53162         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
53163         HAVE_STRUCT_RANDOM_DATA to 1.
53164         (gl_STDLIB_H): Simplify.
53165
53166 2008-10-26  Simon Josefsson  <simon@josefsson.org>
53167
53168         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
53169         substitute HAVE_STRUCT_RANDOM_DATA.
53170         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
53171         random_data.
53172         * modules/stdlib (Makefile.am): Substitute
53173         HAVE_STRUCT_RANDOM_DATA.
53174
53175 2008-10-26  Simon Josefsson  <simon@josefsson.org>
53176
53177         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
53178         * doc/gnulib-intro.texi (Copyright): Likewise.
53179
53180 2008-10-26  Simon Josefsson  <simon@josefsson.org>
53181
53182         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
53183         findings.
53184
53185 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
53186             Bruno Haible  <bruno@clisp.org>
53187
53188         * lib/unistd.in.h: Include <winsock2.h>.
53189         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
53190         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
53191         Provide dummy declarations.
53192         (gethostname): Override.
53193         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
53194         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
53195         gl_PREREQ_SYS_H_WINSOCK2.
53196         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
53197         * doc/posix-functions/gethostname.texi: More details.
53198
53199 2008-10-25  Bruno Haible  <bruno@clisp.org>
53200
53201         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
53202         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
53203         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
53204
53205         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
53206         here ...
53207         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
53208         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
53209         gl_UNISTD_H_DEFAULTS.
53210
53211 2008-10-25  Eric Blake  <ebb9@byu.net>
53212
53213         signbit: avoid spurious compiler failure
53214         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
53215         declarations inside function.
53216
53217 2008-10-24  Simon Josefsson  <simon@josefsson.org>
53218             Bruno Haible  <bruno@clisp.org>
53219
53220         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
53221         * modules/random_r (Depends-on): Add stdint.
53222
53223 2008-10-24  Bruno Haible  <bruno@clisp.org>
53224
53225         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
53226         Eggert.
53227         * modules/strerror (License): Likewise.
53228
53229 2008-10-24  Jim Meyering  <meyering@redhat.com>
53230
53231         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
53232         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
53233
53234 2008-10-24  Eric Blake  <ebb9@byu.net>
53235
53236         getgroups: fix compilation when getgroups is available
53237         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
53238         but with <config.h> override of getgroups disabled.
53239
53240 2008-10-24  Simon Josefsson  <simon@josefsson.org>
53241
53242         * doc/gnulib.texi (Header files): Add note about C++ problems.
53243         Explained by Bruno Haible <bruno@clisp.org>.
53244
53245 2008-10-23  Bruno Haible  <bruno@clisp.org>
53246
53247         Define a dummy SA_NODEFER macro on Interix.
53248         * lib/signal.in.h (SA_NODEFER): Define fallback.
53249         Reported by Aleksey Cheusov <cheusov@tut.by> via
53250         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
53251
53252 2008-10-23  Bruno Haible  <bruno@clisp.org>
53253
53254         * modules/freadahead (License): Change to LGPLv2+.
53255         Suggested by Simon Josefsson.
53256
53257 2008-10-23  Jim Meyering  <meyering@redhat.com>
53258
53259         random_r: new module
53260         * modules/random_r: New file.
53261         * m4/random_r.m4: New file.
53262         * lib/random_r.c: New file, from glibc.
53263         * modules/random_r-tests: New file.
53264         * tests/test-random_r.c: New file.
53265         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
53266          Declare.
53267         (RAND_MAX): Define.
53268         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
53269         * modules/stdlib: Substitute them, too.
53270         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
53271         * doc/glibc-functions/initstate_r.texi: Mention the new module.
53272         * doc/glibc-functions/random_r.texi: Likewise.
53273         * doc/glibc-functions/setstate_r.texi: Likewise.
53274         * doc/glibc-functions/srandom_r.texi: Likewise.
53275         * config/srclist.txt: Mention it.
53276
53277 2008-10-23  David Lutterkort  <lutter@redhat.com>
53278
53279         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
53280         link requirement
53281
53282 2008-10-23  Jim Meyering  <meyering@redhat.com>
53283
53284         selinux-h: mark parameters of stub functions as intentionally unused
53285         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
53286         * lib/se-context.in.h: Likewise.
53287
53288 2008-10-22  Simon Josefsson  <simon@josefsson.org>
53289
53290         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
53291
53292 2008-10-22  Simon Josefsson  <simon@josefsson.org>
53293
53294         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
53295
53296 2008-10-22  Eric Blake  <ebb9@byu.net>
53297
53298         glthread/thread: avoid compiler warning
53299         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
53300         Add unreachable abort to silence compiler.
53301
53302 2008-10-22  Eric Blake  <ebb9@byu.net>
53303
53304         netdb: also supply struct addrinfo for cygwin 1.5.x
53305         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
53306         older cygwin.
53307         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
53308         cygwin.
53309         * doc/posix-headers/netdb.texi (netdb.h): Document this.
53310
53311 2008-10-22  Bruno Haible  <bruno@clisp.org>
53312
53313         * users.txt: Update entry about pspp.
53314
53315 2008-10-21  Bruno Haible  <bruno@clisp.org>
53316
53317         Simplification.
53318         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
53319         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
53320
53321         Simplification.
53322         * lib/ioctl.c (ioctl): Don't undefine.
53323         * lib/socket.c (socket): Don't undefine.
53324
53325         Remove unused module indicator macros.
53326         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
53327         GNULIB_$1 as a C macro.
53328
53329         * doc/posix-functions/close.texi: Undo last change.
53330         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
53331         Windows platforms.
53332
53333 2008-10-21  Bruno Haible  <bruno@clisp.org>
53334
53335         Add gethostname() declaration to <unistd.h>.
53336         * lib/unistd.in.h (gethostname): New declaration.
53337         * lib/gethostname.c: Include <unistd.h>.
53338         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
53339         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
53340         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
53341         and HAVE_GETHOSTNAME.
53342         * modules/gethostname (Depends-on): Add unistd.
53343         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53344         (Include): Specify <unistd.h>.
53345         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
53346         HAVE_GETHOSTNAME.
53347         * tests/test-gethostname.c: Include <unistd.h> first.
53348
53349 2008-10-21  Bruno Haible  <bruno@clisp.org>
53350
53351         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
53352         * modules/select-tests (Depends-on): Likewise.
53353         Reported by Simon Josefsson.
53354
53355 2008-10-21  Simon Josefsson  <simon@josefsson.org>
53356
53357         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
53358         * lib/accept.c: New file, based on winsock.c.
53359         * lib/bind.c: New file, based on winsock.c.
53360         * lib/connect.c: New file, based on winsock.c.
53361         * lib/getpeername.c: New file, based on winsock.c.
53362         * lib/getsockname.c: New file, based on winsock.c.
53363         * lib/getsockopt.c: New file, based on winsock.c.
53364         * lib/ioctl.c: New file, based on winsock.c.
53365         * lib/listen.c: New file, based on winsock.c.
53366         * lib/recv.c: New file, based on winsock.c.
53367         * lib/recvfrom.c: New file, based on winsock.c.
53368         * lib/send.c: New file, based on winsock.c.
53369         * lib/sendto.c: New file, based on winsock.c.
53370         * lib/setsockopt.c: New file, based on winsock.c.
53371         * lib/shutdown.c: New file, based on winsock.c.
53372         * lib/socket.c: New file, based on winsock.c.
53373         * lib/w32sock.h: New file, based on winsock.c.
53374         * lib/winsock.c: Remove file.
53375         * modules/accept: Likewise.
53376         * modules/bind: Likewise.
53377         * modules/connect: Likewise.
53378         * modules/getpeername: Likewise.
53379         * modules/getsockname: Likewise.
53380         * modules/getsockopt: Likewise.
53381         * modules/ioctl: Likewise.
53382         * modules/listen: Likewise.
53383         * modules/recv: Likewise.
53384         * modules/recvfrom: Likewise.
53385         * modules/send: Likewise.
53386         * modules/sendto: Likewise.
53387         * modules/setsockopt: Likewise.
53388         * modules/shutdown: Likewise.
53389         * modules/socket: Use socket.c instead of winsock.c.
53390         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
53391         * doc/posix-functions/accept.texi: Doc fix.
53392         * doc/posix-functions/bind.texi: Doc fix.
53393         * doc/posix-functions/close.texi: Doc fix.
53394         * doc/posix-functions/connect.texi: Doc fix.
53395         * doc/posix-functions/getpeername.texi: Doc fix.
53396         * doc/posix-functions/getsockname.texi: Doc fix.
53397         * doc/posix-functions/getsockopt.texi: Doc fix.
53398         * doc/posix-functions/ioctl.texi: Doc fix.
53399         * doc/posix-functions/listen.texi: Doc fix.
53400         * doc/posix-functions/recv.texi: Doc fix.
53401         * doc/posix-functions/recvfrom.texi: Doc fix.
53402         * doc/posix-functions/send.texi: Doc fix.
53403         * doc/posix-functions/sendto.texi: Doc fix.
53404         * doc/posix-functions/setsockopt.texi: Doc fix.
53405         * doc/posix-functions/shutdown.texi: Doc fix.
53406         * doc/posix-functions/socket.texi: Doc fix.
53407
53408 2008-10-20  Bruno Haible  <bruno@clisp.org>
53409
53410         Take into account the role of SIGABRT_COMPAT on Windows 2008.
53411         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
53412         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
53413         as an alias for SIGABRT.
53414         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
53415         (sigaction): Map it to SIGABRT.
53416         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
53417
53418 2008-10-20  Bruno Haible  <bruno@clisp.org>
53419
53420         * lib/fts.c: Don't include lstat.h.
53421         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
53422
53423         Move the lstat() declaration to <sys/stat.h>.
53424         * lib/lstat.h: Remove file.
53425         * lib/sys_stat.in.h: Add special invocation convention.
53426         (lstat): New declaration.
53427         * lib/lstat.c (orig_lstat): New function.
53428         (rpl_lstat): Use orig_lstat instead of lstat.
53429         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
53430         AC_C_INLINE. Set REPLACE_LSTAT.
53431         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
53432         and REPLACE_LSTAT.
53433         * modules/lstat (Files): Remove lib/lstat.h.
53434         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
53435         (Include): Specify <sys/stat.h> instead of lstat.h.
53436         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
53437         REPLACE_LSTAT.
53438         * NEWS: Mention the change.
53439
53440 2008-10-20  Bruno Haible  <bruno@clisp.org>
53441
53442         * modules/posix_spawn-tests: New file.
53443         * tests/test-posix_spawn3.c: New file.
53444
53445 2008-10-20  Bruno Haible  <bruno@clisp.org>
53446
53447         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
53448         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
53449         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
53450         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
53451         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
53452
53453 2008-10-20  Bruno Haible  <bruno@clisp.org>
53454
53455         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
53456         of posix_spawn on AIX 5.3.
53457
53458 2008-10-20  Bruno Haible  <bruno@clisp.org>
53459
53460         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
53461
53462 2008-10-20  Bruno Haible  <bruno@clisp.org>
53463
53464         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
53465         of AC_LANG_PROGRAM.
53466
53467 2008-10-20  Simon Josefsson  <simon@josefsson.org>
53468
53469         * lib/netdb.in.h: Don't define GNU specific constants until they
53470         are supported or needed.  Reported by Bruno Haible
53471         <bruno@clisp.org>.
53472
53473 2008-10-20  Simon Josefsson  <simon@josefsson.org>
53474
53475         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
53476
53477 2008-10-20  Simon Josefsson  <simon@josefsson.org>
53478
53479         * lib/getaddrinfo.h: Remove file.
53480         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
53481         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
53482         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
53483         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
53484         * modules/netdb: Substitute GNULIB_GETADDRINFO.
53485         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
53486         * tests/test-getaddrinfo.c: Likewise.
53487         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
53488         * NEWS: Mention change.
53489
53490 2008-10-19  Bruno Haible  <bruno@clisp.org>
53491
53492         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
53493
53494 2008-10-19  Bruno Haible  <bruno@clisp.org>
53495
53496         * lib/wait-process.c: Include simply <sys/wait.h>.
53497         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
53498         WIFSTOPPED): Remove fallback definitions.
53499         * modules/wait-process (Depends-on): Add sys_wait.
53500
53501         New module 'sys_wait'.
53502         * modules/sys_wait: New file.
53503         * lib/sys_wait.in.h: New file, partially copied from
53504         lib/wait-process.c.
53505         * m4/sys_wait_h.m4: New file.
53506         * doc/posix-headers/sys_wait.texi: Mention the new module.
53507
53508 2008-10-19  Bruno Haible  <bruno@clisp.org>
53509
53510         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
53511
53512 2008-10-19  Bruno Haible  <bruno@clisp.org>
53513
53514         Assume that waitpid() fills an 'int' status, not a 'union wait'.
53515         * lib/wait-process.c (WAIT_T): Remove type.
53516         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
53517         (wait_subprocess): Update.
53518
53519 2008-10-19  Bruno Haible  <bruno@clisp.org>
53520
53521         New module 'atoll'.
53522         * modules/atoll: New file.
53523         * lib/stdlib.in.h (atoll): New declaration.
53524         * lib/atoll.c: New file, from glibc with modifications.
53525         * m4/atoll.m4: New file.
53526         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
53527         HAVE_ATOLL.
53528         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
53529         * doc/posix-functions/atoll.texi: Mention the new module.
53530
53531 2008-10-19  Bruno Haible  <bruno@clisp.org>
53532
53533         Add strtoull() declaration to <stdlib.h>.
53534         * lib/stdlib.in.h (strtoull): New declaration.
53535         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
53536         Set HAVE_STRTOULL.
53537         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
53538         HAVE_STRTOULL.
53539         * modules/strtoull (Depends-on): Add stdlib.
53540         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
53541         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
53542         HAVE_STRTOULL.
53543
53544 2008-10-19  Bruno Haible  <bruno@clisp.org>
53545
53546         Add strtoll() declaration to <stdlib.h>.
53547         * lib/stdlib.in.h (strtoll): New declaration.
53548         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
53549         Set HAVE_STRTOLL.
53550         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
53551         HAVE_STRTOLL.
53552         * modules/strtoll (Depends-on): Add stdlib.
53553         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
53554         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
53555
53556 2008-10-19  Bruno Haible  <bruno@clisp.org>
53557
53558         * modules/bcopy (Depends-on): Add strings.
53559         (Include): Specify <strings.h>.
53560
53561 2008-10-19  Bruno Haible  <bruno@clisp.org>
53562
53563         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
53564
53565 2008-10-19  Bruno Haible  <bruno@clisp.org>
53566
53567         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
53568         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
53569         mingw.
53570
53571 2008-10-19  Bruno Haible  <bruno@clisp.org>
53572
53573         * lib/atanl.c: Don't include isnanl.h.
53574         * lib/cosl.c: Likewise.
53575         * lib/ldexpl.c: Likewise.
53576         * lib/logl.c: Likewise.
53577         * lib/sinl.c: Likewise.
53578         * lib/sqrtl.c: Likewise.
53579         * lib/tanl.c: Likewise.
53580
53581         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
53582         * lib/isnanf.h: Remove file.
53583         * lib/isnand.h: Remove file.
53584         * lib/isnanl.h: Remove file.
53585         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
53586         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
53587         macros.
53588         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
53589         HAVE_ISNANF, don't define it as a C macro.
53590         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
53591         HAVE_ISNAND, don't define it as a C macro.
53592         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
53593         HAVE_ISNANL, don't define it as a C macro.
53594         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
53595         HAVE_ISNAN[FDL].
53596         * modules/isnanf (Files): Remove lib/isnanf.h.
53597         (Depends-on): Add math.
53598         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
53599         (Include): Specify <math.h> instead of isnanf.h.
53600         * modules/isnand (Files): Remove lib/isnand.h.
53601         (Depends-on): Add math.
53602         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
53603         (Include): Specify <math.h> instead of isnand.h.
53604         * modules/isnanl (Files): Remove lib/isnanl.h.
53605         (Depends-on): Add math.
53606         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
53607         (Include): Specify <math.h> instead of isnanl.h.
53608         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
53609         HAVE_ISNAN[FDL].
53610         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
53611         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
53612         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
53613         * NEWS: Mention the change.
53614
53615 2008-10-18  Bruno Haible  <bruno@clisp.org>
53616
53617         Add getusershell(), setusershell(), endusershell() declarations to
53618         <unistd.h>.
53619         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
53620         declarations.
53621         * lib/getusershell.c: Include unistd.h.
53622         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
53623         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
53624         HAVE_GETUSERSHELL.
53625         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
53626         and HAVE_GETUSERSHELL.
53627         * modules/getusershell (Depends-on): Add unistd, extensions.
53628         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53629         (Include): Specify <unistd.h>.
53630         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
53631         HAVE_GETUSERSHELL.
53632
53633 2008-10-18  Bruno Haible  <bruno@clisp.org>
53634
53635         Add a getloadavg() declaration to <stdlib.h>.
53636         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
53637         getloadavg declaration.
53638         (getloadavg): New declaration.
53639         * lib/getloadavg.c: Include <stdlib.h> first.
53640         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
53641         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
53642         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
53643         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
53644         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
53645         * modules/getloadavg (Depends-on): Add stdlib, extensions.
53646         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
53647         (Include): Specify <stdlib.h>.
53648         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
53649         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
53650
53651 2008-10-18  Bruno Haible  <bruno@clisp.org>
53652
53653         * lib/dirchownmod.c: Don't include lchmod.h.
53654
53655         Move the lchmod() declaration to <sys/stat.h>.
53656         * lib/lchmod.h: Remove file.
53657         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
53658         (lchmod): New declaration, moved here from lib/lchown.h.
53659         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
53660         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
53661         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
53662         and HAVE_LCHMOD.
53663         * modules/lchmod (Files): Remove lib/lchmod.h.
53664         (Depends-on): Add sys_stat, extensions.
53665         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
53666         (Include): Specify <sys/stat.h> instead of lchmod.h.
53667         * modules/sys_stat (Depends-on): Add link-warning.
53668         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
53669         definition of GL_LINK_WARNING.
53670         * NEWS: Mention the change.
53671
53672 2008-10-18  Bruno Haible  <bruno@clisp.org>
53673
53674         * lib/fchdir.c: Don't include dirfd.h.
53675         * lib/fts.c: Likewise.
53676         * lib/getcwd.c: Likewise.
53677         * lib/glob.c: Likewise.
53678
53679         Move the dirfd() declaration to <dirent.h>.
53680         * lib/dirfd.h: Remove file.
53681         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
53682         (dirfd): New declaration.
53683         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
53684         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
53685         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
53686         HAVE_DECL_DIRFD.
53687         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
53688         HAVE_DECL_DIRFD.
53689         * modules/dirfd (Files): Remove lib/dirfd.h.
53690         (Depends-on): Add dirent, extensions.
53691         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
53692         (Include): Specify <dirent.h> instead of dirfd.h.
53693         * modules/dirent (Depends-on): Add link-warning.
53694         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
53695         definition of GL_LINK_WARNING.
53696         * NEWS: Mention the change.
53697
53698 2008-10-18  Bruno Haible  <bruno@clisp.org>
53699
53700         Move the euidaccess() declaration to <unistd.h>.
53701         * lib/euidaccess.h: Remove file.
53702         * lib/unistd.in.h (euidaccess): New declaration.
53703         * lib/euidaccess.c: Don't include euidaccess.h.
53704         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
53705         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
53706         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
53707         and HAVE_EUIDACCESS.
53708         * modules/euidaccess (Files): Remove lib/euidaccess.h.
53709         (Depends-on): Add unistd.
53710         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53711         (Include): Specify <unistd.h> instead of euidaccess.h.
53712         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
53713         HAVE_EUIDACCESS.
53714         * NEWS: Mention the change.
53715
53716 2008-10-18  Bruno Haible  <bruno@clisp.org>
53717
53718         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
53719
53720         Move the getdomainname() declaration to <unistd.h>.
53721         * lib/getdomainname.h: Remove file.
53722         * lib/unistd.in.h (getdomainname): New declaration.
53723         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
53724         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
53725         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
53726         HAVE_GETDOMAINNAME.
53727         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
53728         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
53729         * modules/getdomainname (Files): Remove lib/getdomainname.h.
53730         (Depends-on): Add unistd, extensions.
53731         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53732         (Includes): Specify <unistd.h> instead of getdomainname.h.
53733         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
53734         HAVE_GETDOMAINNAME.
53735         * NEWS: Mention the change.
53736
53737 2008-10-18  Bruno Haible  <bruno@clisp.org>
53738
53739         * modules/dirent: New file.
53740         * m4/dirent_h.m4: New file.
53741         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
53742         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
53743         * modules/fchdir (Files): Remove lib/dirent.in.h.
53744         (Depends-on): Add dirent.
53745         (Makefile.am): Move rules to modules/dirent.
53746         * doc/posix-headers/dirent.texi: Mention the new module.
53747
53748 2008-10-18  Bruno Haible  <bruno@clisp.org>
53749
53750         Avoid -Wunused-parameter warnings in public gnulib header files.
53751         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
53752         macro.
53753         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
53754
53755 2008-10-18  Bruno Haible  <bruno@clisp.org>
53756
53757         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
53758         * doc/glibc-functions/error.texi: Mention the module 'error'.
53759         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
53760         * doc/glibc-functions/getdomainname.texi: Mention the module
53761         'getdomainname'.
53762         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
53763         * doc/glibc-functions/getpagesize.texi: Mention the module
53764         'getpagesize'.
53765         * doc/glibc-functions/getusershell.texi: Mention the module
53766         'getusershell'.
53767         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
53768         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
53769         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
53770         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
53771         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
53772         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
53773         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
53774         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
53775         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
53776         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
53777         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
53778         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
53779         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
53780         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
53781
53782 2008-10-17  Bruno Haible  <bruno@clisp.org>
53783
53784         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
53785         HP-UX and IRIX, use -0.0L.
53786         * tests/test-ceill.c (minus_zero): Likewise.
53787         * tests/test-floorl.c (minus_zero): Likewise.
53788         * tests/test-frexpl.c (minus_zero): Likewise.
53789         * tests/test-isnan.c (minus_zerol): Likewise.
53790         * tests/test-isnanl.h (minus_zero): Likewise.
53791         * tests/test-ldexpl.c (minus_zero): Likewise.
53792         * tests/test-roundl.c (minus_zero): Likewise.
53793         * tests/test-signbit.c (minus_zerol): Likewise.
53794         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
53795         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
53796         * tests/test-truncl.c (minus_zero): Likewise.
53797         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
53798         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
53799         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
53800         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
53801
53802 2008-10-17  Bruno Haible  <bruno@clisp.org>
53803
53804         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
53805         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
53806         that it gets activated only for gcc >= 3.0.
53807         * lib/dirent.in.h: Likewise.
53808         * lib/errno.in.h: Likewise.
53809         * lib/fcntl.in.h: Likewise.
53810         * lib/float.in.h: Likewise.
53811         * lib/iconv.in.h: Likewise.
53812         * lib/inttypes.in.h: Likewise.
53813         * lib/locale.in.h: Likewise.
53814         * lib/math.in.h: Likewise.
53815         * lib/netdb.in.h: Likewise.
53816         * lib/netinet_in.in.h: Likewise.
53817         * lib/search.in.h: Likewise.
53818         * lib/signal.in.h: Likewise.
53819         * lib/spawn.in.h: Likewise.
53820         * lib/stdarg.in.h: Likewise.
53821         * lib/stdint.in.h: Likewise.
53822         * lib/stdio.in.h: Likewise.
53823         * lib/stdlib.in.h: Likewise.
53824         * lib/string.in.h: Likewise.
53825         * lib/strings.in.h: Likewise.
53826         * lib/sys_file.in.h: Likewise.
53827         * lib/sys_ioctl.in.h: Likewise.
53828         * lib/sys_select.in.h: Likewise.
53829         * lib/sys_socket.in.h: Likewise.
53830         * lib/sys_stat.in.h: Likewise.
53831         * lib/sys_time.in.h: Likewise.
53832         * lib/sysexits.in.h: Likewise.
53833         * lib/time.in.h: Likewise.
53834         * lib/unistd.in.h: Likewise.
53835         * lib/wchar.in.h: Likewise.
53836         * lib/wctype.in.h: Likewise.
53837         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
53838
53839 2008-10-17  Jim Meyering  <meyering@redhat.com>
53840
53841         ignore-value: don't depend on inline module
53842         * modules/ignore-value (Depends-on): Remove 'inline'.
53843         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
53844         Suggestion from Bruno Haible.
53845
53846 2008-10-17  Bruno Haible  <bruno@clisp.org>
53847
53848         New implementation of condition variables for Win32.
53849         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
53850         (gl_linked_waitqueue_t): New type.
53851         (gl_cond_t): Use it.
53852         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
53853         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
53854         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
53855         (glthread_cond_init_func, glthread_cond_wait_func,
53856         glthread_cond_timedwait_func, glthread_cond_signal_func,
53857         glthread_cond_broadcast_func, glthread_cond_destroy_func):
53858         Reimplemented on the basis of gl_linked_waitqueue_t.
53859         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
53860         gl_waitqueue_t.
53861         (gl_rwlock_t): Update.
53862         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
53863
53864 2008-10-17  Simon Josefsson  <simon@josefsson.org>
53865
53866         * modules/recvfrom (Depends-on): Add dependency on getpeername.
53867         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
53868
53869 2008-10-17  Jim Meyering  <meyering@redhat.com>
53870
53871         ignore-value: new module
53872         * modules/ignore-value: New file.
53873         * lib/ignore-value.h: New file.
53874         * MODULES.html.sh (Compiler warning management): New section,
53875         just for this module.  More to come.
53876
53877 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
53878
53879         open-safer.c: avoid 'signed and unsigned in conditional...' warning
53880         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
53881         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
53882
53883 2008-10-16  Jim Meyering  <meyering@redhat.com>
53884
53885         openat-die.c: avoid 'no previous prototype' warning
53886         * lib/openat-die.c: Include "openat.h".
53887         Reported by Reuben Thomas <rrt@sc3d.org>.
53888
53889 2008-10-16  Simon Josefsson  <simon@josefsson.org>
53890
53891         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
53892         * lib/netdb.in.h: Fix typo.
53893         Reported by Bruno Haible  <bruno@clisp.org>
53894
53895         * lib/netdb.in.h: Include sys/socket.h for platforms without
53896         netdb.h, to get structures like hostent on MinGW.
53897         * modules/netdb (Depends-on): Add sys_socket.
53898
53899 2008-10-15  Simon Josefsson  <simon@josefsson.org>
53900
53901         * modules/netdb, modules/netdb-tests: New file.
53902         * m4/netdb_h.m4: New file.
53903         * lib/netdb.in.h: Add, currently just an empty file pending
53904         definitions.
53905         * tests/test-netdb.c: New file.
53906         * doc/posix-headers/netdb.texi: Mention that we replace it if
53907         needed.
53908         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
53909         netdb.
53910
53911 2008-10-15  Simon Josefsson  <simon@josefsson.org>
53912
53913         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
53914         with code.
53915
53916 2008-10-13  Bruno Haible  <bruno@clisp.org>
53917
53918         * lib/glthread/cond.c (glthread_cond_wait_func,
53919         glthread_cond_timedwait_func): Add a comment.
53920
53921 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
53922
53923         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
53924         * tests/test-select.c: Likewise,
53925
53926 2008-10-13  Bruno Haible  <bruno@clisp.org>
53927
53928         * lib/glthread/cond.c (glthread_cond_wait_func,
53929         glthread_cond_timedwait_func): Fix variable name.
53930         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
53931
53932 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
53933
53934         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
53935         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
53936         struct sockaddr.sa_len.
53937         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
53938
53939 2008-10-13  Simon Josefsson  <simon@josefsson.org>
53940
53941         * build-aux/pmccabe2html: Add css and css_url parameters.
53942
53943 2008-10-12  Bruno Haible  <bruno@clisp.org>
53944
53945         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
53946         calling aclx_get.
53947         Reported by Rainer Tammer <tammer@tammer.net>.
53948
53949 2008-10-12  Bruno Haible  <bruno@clisp.org>
53950
53951         Use msvcrt aware primitives for creation/termination of Win32 threads.
53952         * lib/glthread/thread.c: Include <process.h>.
53953         (glthread_create_func): Use _beginthreadex instead of CreateThread.
53954         (wrapper_func): Update signature.
53955         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
53956
53957 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
53958             Bruno Haible  <bruno@clisp.org>
53959
53960         Provide a Win32 implementation of the 'cond' module.
53961         * lib/glthread/cond.h [USE_WIN32]: New implementation.
53962         * lib/glthread/cond.c (glthread_cond_init_func,
53963         glthread_cond_wait_func, glthread_cond_timedwait_func,
53964         glthread_cond_signal_func, glthread_cond_broadcast_func,
53965         glthread_cond_destroy_func) [USE_WIN32]: New functions.
53966         * modules/cond (Dependencies): Add gettimeofday.
53967
53968 2008-10-11  Bruno Haible  <bruno@clisp.org>
53969
53970         Make sleep work on older versions of mingw.
53971         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
53972         only whether it exists.
53973         * doc/posix-functions/sleep.texi: Mention the problem with older
53974         versions of mingw.
53975
53976 2008-10-11  Bruno Haible  <bruno@clisp.org>
53977
53978         New module 'shutdown'.
53979         * modules/shutdown: New file.
53980         * lib/sys_socket.in.h (shutdown): New declaration.
53981         * lib/winsock.c (shutdown): New function.
53982         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
53983         GNULIB_SHUTDOWN.
53984         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
53985         * doc/posix-functions/shutdown.texi: Document the new module.
53986
53987 2008-10-11  Jim Meyering  <meyering@redhat.com>
53988
53989         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
53990
53991 2008-10-11  Bruno Haible  <bruno@clisp.org>
53992
53993         New module 'fclose'.
53994         * modules/fclose: New file.
53995         * lib/stdio.in.h (fclose): New declaration.
53996         * lib/fclose.c: New file.
53997         * m4/fclose.m4: New file.
53998         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
53999         REPLACE_FCLOSE.
54000         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
54001         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
54002         REPLACE_FCLOSE.
54003         * modules/close (Depends-on): fclose.
54004         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
54005
54006 2008-10-11  Bruno Haible  <bruno@clisp.org>
54007
54008         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
54009         set errno and don't call _close.
54010
54011 2008-10-10  Bruno Haible  <bruno@clisp.org>
54012
54013         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
54014         ACL, not afterwards. Fixes test failure on Cygwin.
54015
54016 2008-10-09  Ben Pfaff  <blp@gnu.org>
54017
54018         * build-aux/announce-gen: Fix gnulib version related part of usage
54019         message.  Die with a useful error message if no tarballs are
54020         found.
54021
54022 2008-10-10  Jim Meyering  <meyering@redhat.com>
54023
54024         bootstrap: use git's --depth=N option only if it's supported
54025         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
54026         recognize the --depth option.  Reported by Pádraig Brady.
54027
54028 2008-10-09  Bruno Haible  <bruno@clisp.org>
54029
54030         New module 'ioctl'.
54031         * modules/ioctl: New file.
54032         * lib/sys_socket.in.h (ioctl): Remove declaration.
54033         * lib/winsock.c: Include <sys/ioctl.h>.
54034         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
54035         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
54036         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
54037         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
54038         * doc/posix-functions/ioctl.texi: Mention the new module.
54039
54040 2008-10-09  Bruno Haible  <bruno@clisp.org>
54041
54042         New module 'sys_ioctl'.
54043         * lib/sys_ioctl.in.h: New file.
54044         * m4/sys_ioctl_h.m4: New file.
54045         * modules/sys_ioctl: New file.
54046         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
54047
54048 2008-10-09  Bruno Haible  <bruno@clisp.org>
54049
54050         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
54051         * lib/winsock.c: Include <stdarg.h>.
54052         (rpl_ioctl): Change to second argument 'int' and then varargs.
54053
54054 2008-10-09  Bruno Haible  <bruno@clisp.org>
54055
54056         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
54057         when the sys_socket module is present and the system has <winsock2.h>.
54058
54059 2008-10-09  Bruno Haible  <bruno@clisp.org>
54060
54061         * doc/posix-functions/close.texi: Mention module 'close' instead of
54062         module 'sys_socket'.
54063
54064 2008-10-09  Bruno Haible  <bruno@clisp.org>
54065
54066         * doc/glibc-headers/sys_ioctl.texi: New file.
54067         * doc/gnulib.texi: Include it.
54068
54069 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
54070             Bruno Haible  <bruno@clisp.org>
54071
54072         Combine the two replacements of 'close'.
54073         * lib/sys_socket.in.h (close): Define to a reminder to include
54074         <unistd.h>.
54075         (_gl_close_fd_maybe_socket): New declaration.
54076         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
54077         * lib/winsock.c (close): Remove undefinition.
54078         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
54079         needed for the gnulib module 'close'.
54080         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
54081         define to an error symbol or to a warning, if suitable.
54082         * lib/close.c: Include <sys/socket.h>.
54083         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
54084         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
54085         UNISTD_H_HAVE_WINSOCK2_H.
54086         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
54087         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
54088         UNISTD_H_HAVE_WINSOCK2_H.
54089         * modules/sys_socket (Files): Add m4/unistd_h.m4.
54090         (configure.ac): Set a module indicator.
54091         (Makefile.am): Substitute GNULIB_CLOSE.
54092         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
54093         * modules/poll-tests (Depends-on): Add close.
54094         * modules/select-tests (Depends-on): Likewise.
54095
54096 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
54097             Bruno Haible  <bruno@clisp.org>
54098
54099         New module 'close'.
54100         * modules/close: New file.
54101         * lib/unistd.in.h (close): Move declaration out of the
54102         FCHDIR_REPLACEMENT scope.
54103         (_gl_unregister_fd): New declaration.
54104         * lib/close.c: New file.
54105         * lib/fchdir.c (rpl_close): Remove function.
54106         * m4/close.m4: New file.
54107         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
54108         close.
54109         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
54110         REPLACE_CLOSE.
54111         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
54112         REPLACE_CLOSE.
54113         * modules/fchdir (Depends-on): Add close.
54114
54115 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
54116             Bruno Haible  <bruno@clisp.org>
54117
54118         * lib/fcntl.in.h (open): Simplify conditionals.
54119         (_gl_register_fd): New declaration.
54120         * lib/fchdir.c (rpl_open): Remove function.
54121         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
54122         also.
54123         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
54124         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
54125         open.
54126
54127 2008-10-09  Jim Meyering  <meyering@redhat.com>
54128
54129         GNUmakefile: use the more name-space-friendly "_version"
54130         * top/GNUmakefile (_dummy): Update.
54131         (_version): Rename from "version".
54132
54133 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
54134             Bruno Haible  <bruno@clisp.org>
54135
54136         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
54137         rpl_close.
54138         (_gl_register_fd): New function, extracted from rpl_open.
54139         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
54140         (rpl_open, rpl_opendir): Use _gl_register_fd.
54141
54142 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
54143
54144         Fix organization of 'open' replacement.
54145         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
54146         (gl_FUNC_OPEN): Use it.
54147         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
54148
54149 2008-10-08  Bruno Haible  <bruno@clisp.org>
54150
54151         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
54152
54153 2008-10-08  Simon Josefsson  <simon@josefsson.org>
54154
54155         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
54156         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
54157         listen).
54158
54159 2008-10-08  Eric Blake  <ebb9@byu.net>
54160
54161         GNUmakefile: add 'make version' target
54162         * top/GNUmakefile (_curr-ver): Split version update rules...
54163         (version): ...into a target.
54164
54165 2008-10-07  Bruno Haible  <bruno@clisp.org>
54166
54167         Use a more portable replacement expression for -0.0L.
54168         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
54169         instead of -0.0L. Fix m4 quotation.
54170
54171         * tests/test-signbit.c: Include <float.h>.
54172         (minus_zero): New variable.
54173         (test_signbitl): Use minus_zero instead of -zero.
54174         * modules/signbit-tests (Depends-on): Add float.
54175
54176         * tests/test-ceill.c: Include <float.h>.
54177         (zero): Remove variable.
54178         (minus_zero): New variable.
54179         (main): Use minus_zero instead of -zero.
54180         * modules/ceill-tests (Depends-on): Add float.
54181
54182         * tests/test-floorl.c: Include <float.h>.
54183         (zero): Remove variable.
54184         (minus_zero): New variable.
54185         (main): Use minus_zero instead of -zero.
54186         * modules/floorl-tests (Depends-on): Add float.
54187
54188         * tests/test-roundl.c: Include <float.h>.
54189         (zero): Remove variable.
54190         (minus_zero): New variable.
54191         (main): Use minus_zero instead of -zero.
54192         * modules/roundl-tests (Depends-on): Add float.
54193
54194         * tests/test-truncl.c: Include <float.h>.
54195         (zero): Remove variable.
54196         (minus_zero): New variable.
54197         (main): Use minus_zero instead of -zero.
54198         * modules/truncl-tests (Depends-on): Add float.
54199
54200         * tests/test-frexpl.c (zero): Remove variable.
54201         (minus_zero): New variable.
54202         (main): Use minus_zero instead of -zero.
54203         * modules/frexpl-tests (Depends-on): Add float.
54204
54205         * tests/test-isnan.c (zerol): Remove variable.
54206         (minus_zerol): New variable.
54207         (test_long_double): Use minus_zerol instead of -zerol.
54208         * modules/isnan-tests (Depends-on): Add float.
54209
54210         * tests/test-isnanl.h (zero): Remove variable.
54211         (minus_zero): New variable.
54212         (main): Use minus_zero instead of -zero.
54213         * modules/isnanl-nolibm-tests (Depends-on): Add float.
54214         * modules/isnanl-tests (Depends-on): Add float.
54215
54216         * tests/test-ldexpl.c (zero): Remove variable.
54217         (minus_zero): New variable.
54218         (main): Use minus_zero instead of -zero.
54219         * modules/ldexpl-tests (Depends-on): Add float.
54220
54221         * tests/test-snprintf-posix.h (zerol): Remove variable.
54222         (minus_zerol): New variable.
54223         (test_function): Use minus_zerol instead of -zerol.
54224         * modules/snprintf-posix-tests (Depends-on): Add float.
54225         * modules/vsnprintf-posix-tests (Depends-on): Add float.
54226
54227         * tests/test-sprintf-posix.h (zerol): Remove variable.
54228         (minus_zerol): New variable.
54229         (test_function): Use minus_zerol instead of -zerol.
54230         * modules/sprintf-posix-tests (Depends-on): Add float.
54231         * modules/vsprintf-posix-tests (Depends-on): Add float.
54232
54233         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
54234         (minus_zerol): New variable.
54235         (test_function): Use minus_zerol instead of -zerol.
54236         * modules/vasnprintf-posix-tests (Depends-on): Add float.
54237
54238         * tests/test-vasprintf-posix.c (zerol): Remove variable.
54239         (minus_zerol): New variable.
54240         (test_function): Use minus_zerol instead of -zerol.
54241         * modules/vasprintf-posix-tests (Depends-on): Add float.
54242
54243 2008-10-07  Simon Josefsson  <simon@josefsson.org>
54244
54245         * MODULES.html.sh (Support for building documentation): Mention
54246         pmccabe2html.  Sort entries.
54247
54248         Add pmccabe2html module, from gnupdf.
54249         * build-aux/pmccabe.css: New file.
54250         * build-aux/pmccabe2html: New file.
54251         * m4/pmccabe2html.m4: New file.
54252         * modules/pmccabe2html: New file.
54253
54254 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
54255
54256         flock: new module
54257         * MODULES.html.sh: Add to list of modules.
54258         * lib/flock.c: flock implementation for Windows and Unix systems
54259         which have fcntl.
54260         * doc/glibc-functions/flock.texi: Update documentation.
54261         * lib/sys_file.in.h: <sys/file.h> header file.
54262         * m4/flock.m4: M4 macros.
54263         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
54264         * modules/flock: flock module.
54265         * modules/flock-tests: flock tests module.
54266         * modules/sys_file: sys/file.h module.
54267         * tests/test-flock.c: test suite for flock.
54268
54269 2008-10-06  Jim Meyering  <meyering@redhat.com>
54270
54271         bootstrap: check for LT_INIT more portably still ;-)
54272         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
54273         Spotted by Bruno Haible.
54274
54275 2008-10-06  Eric Blake  <ebb9@byu.net>
54276
54277         test-signbit: avoid tripping Irix cc bug on -0.0L
54278         * tests/test-signbit.c (minus_zerol): Delete, and replace with
54279         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
54280         entire testsuite consistent and avoids an Irix 6.2 bug.
54281
54282 2008-10-05  Bruno Haible  <bruno@clisp.org>
54283             Jim Meyering  <jim@meyering.net>
54284
54285         Add an option for ignoring EPIPE during close_stdout.
54286         * lib/closeout.h: Include <stdbool.h>.
54287         (close_stdout_set_ignore_EPIPE): New declaration.
54288         * lib/closeout.c: Include <stdbool.h>.
54289         (ignore_EPIPE): New variable.
54290         (close_stdout_set_ignore_EPIPE): New function.
54291         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
54292         * lib/close-stream.c (close_stream): Mention the possible EPIPE
54293         failure.
54294         * modules/closeout (Depends-on): Add stdbool.
54295
54296 2008-10-05  Bruno Haible  <bruno@clisp.org>
54297
54298         * modules/accept: New file.
54299         * modules/bind: New file.
54300         * modules/connect: New file.
54301         * modules/getpeername: New file.
54302         * modules/getsockname: New file.
54303         * modules/getsockopt: New file.
54304         * modules/listen: New file.
54305         * modules/recv: New file.
54306         * modules/recvfrom: New file.
54307         * modules/send: New file.
54308         * modules/sendto: New file.
54309         * modules/setsockopt: New file.
54310         * modules/socket: New file.
54311         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
54312         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
54313         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
54314         the particular module is requested. Add a link warning when the
54315         particular module is not requested.
54316         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
54317         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
54318         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
54319         the particular module is requested.
54320         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
54321         gl_SYS_SOCKET_H_DEFAULTS): New macros.
54322         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
54323         * modules/sys_socket (Depends-on): Add link-warning.
54324         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
54325         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
54326         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
54327         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
54328         GL_LINK_WARNING.
54329         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
54330         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
54331         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
54332         * doc/posix-functions/getpeername.texi: Mention the new module
54333         'getpeername'.
54334         * doc/posix-functions/getsockname.texi: Mention the new module
54335         'getsockname'.
54336         * doc/posix-functions/getsockopt.texi: Mention the new module
54337         'getsockopt'.
54338         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
54339         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
54340         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
54341         * doc/posix-functions/send.texi: Mention the new module 'send'.
54342         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
54343         * doc/posix-functions/setsockopt.texi: Mention the new module
54344         'setsockopt'.
54345         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
54346         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
54347         listen, connect, accept.
54348         * modules/select-tests (Depends-on): Likewise.
54349
54350 2008-10-05  Bruno Haible  <bruno@clisp.org>
54351
54352         * lib/winsock.c (strerror): Remove unused #undef.
54353         (rpl_close): Remove unused local variable.
54354
54355         * modules/sys_socket (Depends-on); Add errno.
54356
54357 2008-10-05  Bruno Haible  <bruno@clisp.org>
54358
54359         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
54360         (select): Add a link warning when the 'select' module is not used.
54361         * modules/sys_select (Depends-on): Add link-warning.
54362         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
54363         Suggested by Paolo Bonzini.
54364
54365 2008-10-05  Jim Meyering  <meyering@redhat.com>
54366
54367         bootstrap: check for LT_INIT more portably
54368         * build-aux/bootstrap: Avoid using grep -E, since it's not
54369         portable enough.  Suggestion from Bruno Haible.
54370
54371 2008-10-05  Bruno Haible  <bruno@clisp.org>
54372
54373         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
54374         as being fixed by gnulib.
54375
54376 2008-10-05  Bruno Haible  <bruno@clisp.org>
54377
54378         * modules/select-tests: New file, mostly copied from
54379         modules/sys_select-tests.
54380         * tests/test-select.c: New file, mostly copied from
54381         tests/test-sys_select.c.
54382         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
54383         * modules/sys_select-tests (Depends-on): Remove all dependencies.
54384         (Makefile.am): Remove test_sys_select_LDADD.
54385
54386         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
54387         to an undefined symbol, for an error message.
54388         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
54389         (gl_SYS_SELECT_H_DEFAULTS): New macro.
54390         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
54391         winsock-select.c here.
54392         * modules/sys_select (Files): Remove lib/winsock-select.c.
54393         (Depends-on): Remove alloca.
54394         (Makefile.am): Substitute GNULIB_SELECT.
54395         * modules/select: New file.
54396         * doc/posix-functions/select.texi: Update.
54397
54398 2008-10-05  Bruno Haible  <bruno@clisp.org>
54399
54400         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
54401         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
54402         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
54403         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
54404         getdtablesize.
54405         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
54406         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
54407
54408 2008-10-05  Bruno Haible  <bruno@clisp.org>
54409
54410         * modules/getdtablesize-tests: New file.
54411         * tests/test-getdtablesize.c: New file.
54412
54413         New module 'getdtablesize'.
54414         * lib/unistd.in.h (getdtablesize): New declaration.
54415         * lib/getdtablesize.c: New file.
54416         * m4/getdtablesize.m4: New file.
54417         * modules/getdtablesize: New file.
54418         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
54419         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
54420         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
54421         HAVE_GETDTABLESIZE.
54422         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
54423
54424 2008-10-05  Bruno Haible  <bruno@clisp.org>
54425
54426         * modules/sched (Makefile.am): Fix typo.
54427         Reported by Simon Josefsson.
54428
54429 2008-10-05  Jim Meyering  <meyering@redhat.com>
54430
54431         bootstrap: check for LT_INIT, too
54432         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
54433         are deprecated.  Suggestion from Ralf Wildenhues.
54434
54435 2008-10-05  Bruno Haible  <bruno@clisp.org>
54436
54437         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
54438         overriding them by ours.
54439         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
54440
54441 2008-10-05  Jim Meyering  <meyering@redhat.com>
54442
54443         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
54444         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
54445         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
54446
54447 2008-10-04  Bruno Haible  <bruno@clisp.org>
54448
54449         * modules/dup2 (License): Change to LGPLv2+.
54450         * modules/sleep (License): Likewise.
54451         * modules/perror (License): Likewise.
54452         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
54453         Blake.
54454         * modules/signal (License): Likewise.
54455         * modules/sigprocmask (License): Likewise.
54456         * modules/raise (License): Change to LGPLv2+, with approval by Jim
54457         Meyering.
54458
54459 2008-10-04  Bruno Haible  <bruno@clisp.org>
54460
54461         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
54462         Reported by Rainer Tammer <tammer@tammer.net>.
54463
54464 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
54465             Bruno Haible  <bruno@clisp.org>
54466
54467         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
54468         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
54469         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
54470
54471 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
54472
54473         filevercmp: new module
54474         * lib/filevercmp.h: New function filevercmp comparing version strings.
54475         * lib/filevercmp.c: Implementation of filevercmp function.
54476         * modules/filevercmp: Module metadata.
54477         * tests/test-filevercmp.c: Unit test for new module.
54478         * modules/filevercmp-tests: Unit test metadata.
54479         * MODULES.html.sh: Add filevercmp module.
54480
54481 2008-10-03  Bruno Haible  <bruno@clisp.org>
54482
54483         * lib/c-ctype.h: Add comment.
54484         Reported by Jim Meyering.
54485
54486 2008-10-02  Bruno Haible  <bruno@clisp.org>
54487
54488         * modules/posix_spawn-internal (Depends-on): Add 'open'.
54489
54490 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
54491
54492         * build-aux/bootstrap: Allow renaming bootstrap, and change the
54493         name of bootstrap.conf accordingly.
54494
54495 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
54496
54497         * build-aux/bootstrap: Install git-merge-changelog configuration
54498         items into .gitconfig if needed.
54499
54500 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
54501
54502         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
54503         git repository, and initialize/update it accordingly.
54504
54505 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
54506
54507         * modules/fsync-tests: New file.
54508         * tests/test-fsync.c: New file.
54509
54510         New module 'fsync'.
54511         * lib/fsync.c: New file.
54512         * m4/fsync.m4: New file.
54513         * modules/fsync: New file.
54514         * lib/unistd.in.h (fsync): New declaration.
54515         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
54516         GNULIB_FSYNC and HAVE_FSYNC.
54517         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
54518         * MODULES.html.sh (posix_functions): Add fsync.
54519         * doc/posix-functions/fsync.texi: Mention the new module.
54520
54521 2008-10-02  Jim Meyering  <meyering@redhat.com>
54522
54523         fts.c: sync with similar code from coreutils' remove.c
54524         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
54525         Guard also with "#if defined __linux__", since for now at least,
54526         this code is Linux-kernel-specific.
54527
54528 2008-10-02  Jim Meyering  <meyering@redhat.com>
54529
54530         fts: bug fixes
54531         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
54532         Include <sys/vfs.h>, not <sys/statfs.h>.
54533
54534         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
54535         Include <sys/vfs.h>, not <sys/statfs.h>.
54536
54537 2008-10-01  Bruno Haible  <bruno@clisp.org>
54538
54539         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
54540         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
54541         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
54542         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
54543         * doc/posix-functions/posix_spawnp.texi: Likewise.
54544         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
54545         whether posix_spawn actually works.
54546         * m4/pipe.m4 (gl_PIPE): Likewise.
54547         * modules/execute (Files): Add m4/posix_spawn.m4.
54548         * modules/pipe (Files): Add m4/posix_spawn.m4.
54549         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
54550
54551 2008-10-01  Jim Meyering  <meyering@redhat.com>
54552
54553         remove trailing spaces
54554         * NEWS: Likewise.
54555         * lib/poll.c (poll): Likewise.
54556         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
54557         * lib/winsock.c (rpl_close): Likewise.
54558         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
54559         * modules/yield: Likewise.
54560         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
54561         * tests/test-sys_select.c (connect_to_socket): Likewise.
54562
54563         fts.c: adjust a new interface to be more generally useful
54564         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
54565         (fts_build): Adjust caller.
54566
54567 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54568
54569         * modules/cond-tests: New file.
54570         * tests/test-cond.c: New file.
54571
54572 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54573             Bruno Haible  <bruno@clisp.org>
54574
54575         * modules/cond (Dependencies): Add errno, time.
54576         * lib/glthread/cond.h: Include <time.h>.
54577         (gl_cond_define, gl_cond_define_initialized): Use the same definition
54578         across platforms.
54579
54580 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54581             Bruno Haible  <bruno@clisp.org>
54582
54583         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
54584
54585 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54586             Bruno Haible  <bruno@clisp.org>
54587
54588         * modules/tls-tests (Depends-on): Add thread, yield.
54589         (configure.ac): Remove all checks.
54590         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
54591         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
54592         gl_thread_self): Remove definitions. Include glthread/thread.h and
54593         glthread/yield.h instead.
54594         (test_tls): Pass an additional NULL argument to gl_thread_join.
54595
54596 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54597             Bruno Haible  <bruno@clisp.org>
54598
54599         * modules/lock-tests (Depends-on): Add thread, yield.
54600         (configure.ac): Remove all checks.
54601         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
54602         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
54603         gl_thread_self): Remove definitions. Include glthread/thread.h and
54604         glthread/yield.h instead.
54605         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
54606         additional NULL argument to gl_thread_join.
54607
54608 2008-09-30  Bruno Haible  <bruno@clisp.org>
54609
54610         Fix the Win32 implementation of the 'thread' module.
54611         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
54612         pointer type.
54613         (gl_thread_self): Invoke gl_thread_self_func.
54614         (gl_thread_self_func): New declaration.
54615         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
54616         (do_init_self_key, init_self_key): New functions.
54617         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
54618         Remove some fields.
54619         (running_threads, running_lock): Remove variables.
54620         (get_current_thread_handle): New function.
54621         (gl_thread_self_func, wrapper_func, glthread_create_func,
54622         glthread_join_func, gl_thread_exit_func): Largely rewritten and
54623         simplified.
54624
54625 2008-09-30  Bruno Haible  <bruno@clisp.org>
54626
54627         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
54628         files.
54629
54630 2008-09-30  Jim Meyering  <meyering@redhat.com>
54631
54632         fts.m4: correct the test for statfs.f_type
54633         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
54634         when checking for statfs.f_type.
54635
54636 2008-09-15  Simon Josefsson  <simon@josefsson.org>
54637
54638         tests: avoid some compiler warnings
54639         * tests/test-memchr.c (main): Pass NULL indirectly.
54640         * tests/test-getdate.c (main): Remove unused variable 'ret'.
54641
54642 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
54643
54644         getdate.y: disallow countable dayshifts like "4 yesterday ago"
54645         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
54646         exactly specified dayshifts.
54647         (dayshift): New rule.
54648         (rel): Add dayshift.
54649         (relative_time_table) [tomorrow, yesterday, today, now]:
54650         Use tDAY_SHIFT in place of tDAY_UNIT.
54651         * tests/test-getdate.c: Add tests for now-disallowed countable
54652         dayshifts, e.g., "4 yesterday ago".
54653
54654 2008-09-29  Bruno Haible  <bruno@clisp.org>
54655
54656         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
54657         * tests/test-posix_spawn1.in.sh: Renamed from
54658         tests/test-posix_spawn.in.sh.
54659         * tests/test-posix_spawn2.c: New file.
54660         * tests/test-posix_spawn2.in.sh: New file.
54661         * modules/posix_spawnp-tests (Files): Update.
54662         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
54663
54664 2008-09-29  Bruno Haible  <bruno@clisp.org>
54665
54666         Propagate effects of putenv/setenv/unsetenv to child processes.
54667         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
54668         * lib/pipe.c (create_pipe): Likewise.
54669
54670 2008-09-29  Bruno Haible  <bruno@clisp.org>
54671
54672         Enable use of shell scripts as executables in mingw.
54673         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
54674         run the program as a shell script.
54675         * lib/pipe.c (create_pipe): Likewise.
54676         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
54677         resulting array.
54678
54679 2008-09-29  Eric Blake  <ebb9@byu.net>
54680
54681         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
54682
54683 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
54684
54685         * doc/posix-functions/accept.texi: Update mingw problems.
54686         * doc/posix-functions/bind.texi: Update mingw problems.
54687         * doc/posix-functions/close.texi: Update mingw problems.
54688         * doc/posix-functions/connect.texi: Update mingw problems.
54689         * doc/posix-functions/getpeername.texi: Update mingw problems.
54690         * doc/posix-functions/getsockname.texi: Update mingw problems.
54691         * doc/posix-functions/getsockopt.texi: Update mingw problems.
54692         * doc/posix-functions/ioctl.texi: Update mingw problems.
54693         * doc/posix-functions/listen.texi: Update mingw problems.
54694         * doc/posix-functions/recv.texi: Update mingw problems.
54695         * doc/posix-functions/recvfrom.texi: Update mingw problems.
54696         * doc/posix-functions/select.texi: Update mingw problems.
54697         * doc/posix-functions/send.texi: Update mingw problems.
54698         * doc/posix-functions/sendto.texi: Update mingw problems.
54699         * doc/posix-functions/setsockopt.texi: Update mingw problems.
54700         * doc/posix-functions/socket.texi: Update mingw problems.
54701
54702 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
54703             Bruno Haible  <bruno@clisp.org>
54704
54705         * lib/sys_select.in.h: Include sys/time.h.
54706         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
54707         * modules/sys_select: Depend on sys_time.
54708         * tests/test-sys_select.c: Test that sys/select.h defines struct
54709         timeval fully.
54710
54711 2008-09-29  Bruno Haible  <bruno@clisp.org>
54712
54713         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
54714         * lib/sys_select.in.h: Likewise.
54715
54716 2008-09-29  Bruno Haible  <bruno@clisp.org>
54717
54718         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
54719
54720 2008-09-29  Bruno Haible  <bruno@clisp.org>
54721
54722         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
54723         Set LIBSOCKET instead of augmenting LIBS.
54724         * modules/sockets (Link): New section.
54725         * modules/sockets-tests (test_sockets_LDADD): New variable.
54726         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
54727         * modules/poll-tests (test_poll_LDADD): New variable.
54728         * NEWS: Document the change.
54729
54730 2008-09-29  Bruno Haible  <bruno@clisp.org>
54731
54732         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
54733         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
54734         ARPA_INET_H directly.
54735         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
54736
54737 2008-09-28  Bruno Haible  <bruno@clisp.org>
54738
54739         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
54740         from gl_HEADER_SYS_SOCKET.
54741         (gl_HEADER_SYS_SOCKET): Invoke it.
54742         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
54743
54744 2008-09-28  Bruno Haible  <bruno@clisp.org>
54745
54746         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
54747         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
54748         Needed on OSF/1 4.0.
54749
54750 2008-09-28  Bruno Haible  <bruno@clisp.org>
54751
54752         Override open more carefully.
54753         * lib/open.c (orig_open): New function.
54754         (rpl_open): Use orig_open instead of open.
54755         * lib/fcntl.in.h: Add special invocation convention.
54756         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
54757         (gl_FUNC_OPEN): Invoke it.
54758
54759         Override freopen more carefully.
54760         * lib/freopen.c (orig_freopen): New function.
54761         (rpl_freopen): Use orig_freopen instead of freopen.
54762         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
54763         (gl_FUNC_FREOPEN): Invoke it.
54764
54765         Override fopen more carefully.
54766         * lib/fopen.c (orig_fopen): New function.
54767         (rpl_fopen): Use orig_fopen instead of fopen.
54768         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
54769         (gl_FUNC_FOPEN): Invoke it.
54770         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
54771
54772 2008-09-28  Bruno Haible  <bruno@clisp.org>
54773
54774         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
54775         SIGPIPE.
54776
54777 2008-09-28  Bruno Haible  <bruno@clisp.org>
54778
54779         * tests/test-sigaction.c (handler, main): Disable the check whether
54780         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
54781         glibc systems with LinuxThreads.
54782
54783 2008-09-28  Bruno Haible  <bruno@clisp.org>
54784
54785         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
54786
54787         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
54788         with AIX xlc.
54789         * lib/fcntl.in.h (open): Likewise.
54790         Reported by Rainer Tammer <tammer@tammer.net>.
54791
54792 2008-09-28  Bruno Haible  <bruno@clisp.org>
54793
54794         * modules/posix_spawnp-tests: New file.
54795         * tests/test-posix_spawn.c: New file.
54796         * tests/test-posix_spawn.in.sh: New file.
54797
54798         New module 'posix_spawnp'.
54799         * modules/posix_spawnp: New file.
54800         * lib/spawnp.c: New file, from GNU libc with modifications.
54801         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
54802
54803         New module 'posix_spawn'.
54804         * modules/posix_spawn: New file.
54805         * lib/spawn.c: New file, from GNU libc with modifications.
54806         * doc/posix-functions/posix_spawn.texi: Mention the new module.
54807
54808         New module 'posix_spawnattr_destroy'.
54809         * modules/posix_spawnattr_destroy: New file.
54810         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
54811         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
54812         module.
54813
54814         New module 'posix_spawnattr_setsigmask'.
54815         * modules/posix_spawnattr_setsigmask: New file.
54816         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
54817         modifications.
54818         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
54819         new module.
54820
54821         New module 'posix_spawnattr_getsigmask'.
54822         * modules/posix_spawnattr_getsigmask: New file.
54823         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
54824         modifications.
54825         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
54826         new module.
54827
54828         New module 'posix_spawnattr_setsigdefault'.
54829         * modules/posix_spawnattr_setsigdefault: New file.
54830         * lib/spawnattr_setdefault.c: New file, from GNU libc with
54831         modifications.
54832         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
54833         new module.
54834
54835         New module 'posix_spawnattr_getsigdefault'.
54836         * modules/posix_spawnattr_getsigdefault: New file.
54837         * lib/spawnattr_getdefault.c: New file, from GNU libc with
54838         modifications.
54839         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
54840         new module.
54841
54842         New module 'posix_spawnattr_setschedpolicy'.
54843         * modules/posix_spawnattr_setschedpolicy: New file.
54844         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
54845         modifications.
54846         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
54847         new module.
54848
54849         New module 'posix_spawnattr_getschedpolicy'.
54850         * modules/posix_spawnattr_getschedpolicy: New file.
54851         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
54852         modifications.
54853         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
54854         new module.
54855
54856         New module 'posix_spawnattr_setschedparam'.
54857         * modules/posix_spawnattr_setschedparam: New file.
54858         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
54859         modifications.
54860         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
54861         new module.
54862
54863         New module 'posix_spawnattr_getschedparam'.
54864         * modules/posix_spawnattr_getschedparam: New file.
54865         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
54866         modifications.
54867         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
54868         new module.
54869
54870         New module 'posix_spawnattr_setpgroup'.
54871         * modules/posix_spawnattr_setpgroup: New file.
54872         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
54873         modifications.
54874         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
54875         module.
54876
54877         New module 'posix_spawnattr_getpgroup'.
54878         * modules/posix_spawnattr_getpgroup: New file.
54879         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
54880         modifications.
54881         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
54882         module.
54883
54884         New module 'posix_spawnattr_setflags'.
54885         * modules/posix_spawnattr_setflags: New file.
54886         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
54887         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
54888         module.
54889
54890         New module 'posix_spawnattr_getflags'.
54891         * modules/posix_spawnattr_getflags: New file.
54892         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
54893         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
54894         module.
54895
54896         New module 'posix_spawnattr_init'.
54897         * modules/posix_spawnattr_init: New file.
54898         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
54899         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
54900         module.
54901
54902         New module 'posix_spawn_file_actions_destroy'.
54903         * modules/posix_spawn_file_actions_destroy: New file.
54904         * lib/spawn_faction_destroy.c: New file, from GNU libc with
54905         modifications.
54906         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
54907         the new module.
54908
54909         New module 'posix_spawn_file_actions_addopen'.
54910         * modules/posix_spawn_file_actions_addopen: New file.
54911         * lib/spawn_faction_addopen.c: New file, from GNU libc with
54912         modifications.
54913         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
54914         the new module.
54915
54916         New module 'posix_spawn_file_actions_adddup2'.
54917         * modules/posix_spawn_file_actions_adddup2: New file.
54918         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
54919         modifications.
54920         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
54921         the new module.
54922
54923         New module 'posix_spawn_file_actions_addclose'.
54924         * modules/posix_spawn_file_actions_addclose: New file.
54925         * lib/spawn_faction_addclose.c: New file, from GNU libc with
54926         modifications.
54927         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
54928         the new module.
54929
54930         New module 'posix_spawn_file_actions_init'.
54931         * modules/posix_spawn_file_actions_init: New file.
54932         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
54933         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
54934         new module.
54935
54936         New module 'posix_spawn-internal'.
54937         * modules/posix_spawn-internal: New file.
54938         * lib/spawn_int.h: New file, from GNU libc with modifications.
54939         * lib/spawni.c: New file, from GNU libc with modifications.
54940         * m4/posix_spawn.m4: New file.
54941
54942         New module 'spawn'.
54943         * modules/spawn: New file.
54944         * lib/spawn.in.h: New file, from GNU libc with modifications.
54945         * m4/spawn_h.m4: New file.
54946         * doc/posix-headers/spawn.texi: Mention the new module.
54947
54948 2008-09-28  Bruno Haible  <bruno@clisp.org>
54949
54950         * modules/sched-tests: New file.
54951         * tests/test-sched.c: New file.
54952
54953         New module 'sched'.
54954         * modules/sched: New file.
54955         * lib/sched.in.h: New file.
54956         * m4/sched_h.m4: New file.
54957         * doc/posix-headers/sched.texi: Mention the new module.
54958
54959 2008-09-27  Eric Blake  <ebb9@byu.net>
54960
54961         Fix previous patch, and tweak references to $0.
54962         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
54963         (func_version, func_gnulib_dir): Don't call this program
54964         gnulib-tool.
54965         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
54966         with using $0 in function.
54967         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
54968         (func_fatal_error): Reuse the name the user invoked us with.
54969
54970 2008-09-27  Bruno Haible  <bruno@clisp.org>
54971
54972         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
54973         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
54974         (gl_ICONV_H): Not here.
54975         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
54976         instead of assigning ICONV_H directly.
54977
54978         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
54979         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
54980         WCHAR_H directly.
54981
54982 2008-09-27  Bruno Haible  <bruno@clisp.org>
54983
54984         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
54985         * modules/arpa_inet (Depends-on): Add link-warning.
54986         (Makefile.am): Insert the definition of GL_LINK-WARNING.
54987         * modules/unistd (Makefile.am): Likewise.
54988
54989 2008-09-26  Bruno Haible  <bruno@clisp.org>
54990
54991         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
54992         variables.
54993         (func_version): Essentially copied from gnulib-tool.
54994         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
54995         func_readlink): Copied from gnulib-tool.
54996
54997 2008-09-26  Bruno Haible  <bruno@clisp.org>
54998
54999         * gnulib-tool (func_version): Change directory to $gnulib_dir before
55000         invoking git-version-gen.
55001
55002 2008-09-26  Bruno Haible  <bruno@clisp.org>
55003
55004         * posix-modules: Update to directory names changed on 2008-01-19.
55005         Remove commas in output before splitting into words. No more need to
55006         avoid 'ftruncate' since 2007-02-19.
55007
55008 2008-09-26  Bruno Haible  <bruno@clisp.org>
55009
55010         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
55011
55012 2008-09-26  Bruno Haible  <bruno@clisp.org>
55013
55014         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
55015         * modules/fwriteerror (Depends-on): Add errno.
55016
55017 2008-09-26  Bruno Haible  <bruno@clisp.org>
55018
55019         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
55020         * tests/test-vc-list-files-cvs.sh: Likewise.
55021
55022 2008-09-26  Bruno Haible  <bruno@clisp.org>
55023
55024         * doc/posix-headers/sys_resource.texi: Reorder items.
55025
55026 2008-09-26  Jim Meyering  <meyering@redhat.com>
55027
55028         fts: tweak inode comparison function
55029         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
55030         inode numbers, as documented.
55031
55032         fts: sort dirent entries on inode number before traversing
55033         This avoids a quadratic, seek-related performance penalty when
55034         operating on a directory containing many entries (measurable at 10k;
55035         3.5 hours at 2 million entries with a cold cache) on certain types
55036         of file systems, including ext3 and ext4, but not tmpfs.
55037         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
55038         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
55039         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
55040         (fs_handles_readdir_ordered_dirents_efficiently): New function.
55041         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
55042         (fts_build): Set the stat.st_ino member from D_INO.
55043         If it is likely to be useful, sort dirent entries on inode number.
55044
55045         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
55046         and the struct statfs.f_type member.
55047         * modules/fts (Depends-on): Add d-ino.
55048
55049 2008-09-26  Bruno Haible  <bruno@clisp.org>
55050
55051         * modules/sigpipe-die (Depends-on): Add sigpipe.
55052
55053         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
55054         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
55055         and GNULIB_STDIO_H_SIGPIPE are set.
55056         * lib/stdio-write.c: New file.
55057         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
55058         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
55059         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
55060         REPLACE_STDIO_WRITE_FUNCS.
55061         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
55062         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
55063         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
55064         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
55065         * modules/stdio (Files): Add lib/stdio-write.c.
55066         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
55067         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
55068         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
55069         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
55070         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
55071         REPLACE_FPRINTF_POSIX.
55072         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
55073         REPLACE_PRINTF_POSIX.
55074         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
55075         REPLACE_VFPRINTF_POSIX.
55076         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
55077         REPLACE_VPRINTF_POSIX.
55078         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
55079         SIGPIPE issue.
55080         * doc/posix-functions/fputc.texi: Likewise.
55081         * doc/posix-functions/fputs.texi: Likewise.
55082         * doc/posix-functions/fwrite.texi: Likewise.
55083         * doc/posix-functions/printf.texi: Likewise.
55084         * doc/posix-functions/putc.texi: Likewise.
55085         * doc/posix-functions/putchar.texi: Likewise.
55086         * doc/posix-functions/puts.texi: Likewise.
55087         * doc/posix-functions/vfprintf.texi: Likewise.
55088         * doc/posix-functions/vprintf.texi: Likewise.
55089
55090         * modules/safe-write (Depends-on): Add write.
55091
55092         * modules/sigpipe-tests: New file.
55093         * tests/test-sigpipe.c: New file.
55094         * tests/test-sigpipe.sh: New file.
55095
55096         * modules/write: New file.
55097         * lib/unistd.in.h: Include <sys/types.h>.
55098         (write): New declaration.
55099         * lib/write.c: New file.
55100         * m4/write.m4: New file.
55101         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
55102         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
55103         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
55104         GNULIB_WRITE, REPLACE_WRITE.
55105         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
55106         and the SIGPIPE issue.
55107
55108         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
55109         (raise): New declaration.
55110         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
55111         (ext_signal): New function.
55112         (rpl_raise): New function.
55113         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
55114         GNULIB_SIGNAL_H_SIGPIPE.
55115         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
55116         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
55117
55118         * modules/sigpipe: New file.
55119         * m4/sigpipe.m4: New file.
55120
55121 2008-09-25  Derek Price  <derek@ximbiot.com>
55122             Bruno Haible  <bruno@clisp.org>
55123
55124         * gnulib-tool (func_import): Report all license incompatibilities, not
55125         just the first one.
55126
55127 2008-09-25  Bruno Haible  <bruno@clisp.org>
55128
55129         * gnulib-tool (func_import): When computing the edits, consider not
55130         only the Makefile.ams that exist but also those that will be generated.
55131
55132 2008-09-25  Simon Josefsson  <simon@josefsson.org>
55133
55134         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
55135         fixes gnulib-tool --test warning about duplicate dependency.
55136
55137 2008-09-25  Bruno Haible  <bruno@clisp.org>
55138
55139         * gnulib-tool: Don't ask the user to perform edits in the generated
55140         Makefile.ams.
55141         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
55142         apply to the Makefile.am being generated.
55143         (func_emit_tests_Makefile_am): Execute edits that apply to the
55144         Makefile.am being generated.
55145         (func_import): Setup list of Makefile.am edits before emitting the
55146         Makefile.ams, not at the end.
55147         (func_create_testdir): Update.
55148         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
55149
55150 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55151
55152         * gnulib-tool (func_import): Store the --tests-base option in the
55153         comment in gnulib-cache.m4.
55154
55155 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
55156
55157         * NEWS: Document increased portability that sys_select now provides.
55158
55159         * lib/sys_select.in.h: Install select wrapper.
55160         * lib/sys_socket.in.h: Use more descriptive name when there is no
55161         select wrapper.
55162         * lib/winsock-select.c: New.
55163         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
55164         Require gl_HEADER_SYS_SOCKET.
55165         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
55166         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
55167         * tests/test-sys_select.c: Add functional tests.
55168
55169 2008-09-24  Eric Blake  <ebb9@byu.net>
55170
55171         open, fopen: close fd leak in last patch
55172         * lib/open.c (rpl_open): Close fd before returning error.
55173         * lib/fopen.c (rpl_fopen): Close fd before returning error.
55174         * doc/posix-functions/open.texi (open): Document that Irix also
55175         has the bug.
55176         * doc/posix-functions/fopen.texi (fopen): Likewise.
55177         Reported by Paolo Bonzini.
55178
55179 2008-09-24  Bruno Haible  <bruno@clisp.org>
55180
55181         Ensure that a filename ending in a slash cannot be used to access a
55182         non-directory.
55183         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
55184         to check whether it's really a directory.
55185         * lib/fopen.c: Include fcntl.h, unistd.h.
55186         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
55187         and fdopen().
55188         * modules/fopen (Depends-on): Add unistd.
55189         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
55190         * tests/test-fopen.c (main): Likewise.
55191         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
55192         * doc/posix-functions/fopen.texi: Likewise.
55193         Reported by Eric Blake.
55194
55195 2008-09-23  Eric Blake  <ebb9@byu.net>
55196
55197         c-stack: avoid compiler optimizations when provoking overflow
55198         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
55199         recursion harder to optimize, to ensure a stack overflow occurs.
55200         * tests/test-c-stack.c (recurse): Likewise.
55201         Borrowed from libsigsegv.
55202
55203         c-stack: work around Irix sigaltstack bug
55204         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
55205         whether sigaltstack uses wrong end of stack_t (copied in part from
55206         libsigsegv).
55207         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
55208         Irix bug, without requiring an over-allocation.
55209         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
55210         bug.
55211
55212         fopen: document mingw bug on directories
55213         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
55214         not allowing a stream visiting a directory, even though reading
55215         from such a stream is not portable.
55216
55217 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
55218
55219         * lib/poll.c: Rewrite.
55220         * modules/poll: Depend on alloca.
55221
55222 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
55223
55224         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
55225         instead define prototypes for a full set of wrappers.  Ensure
55226         that Cygwin does not use the compatibility code, which is only
55227         for MinGW.
55228         * lib/winsock.c: New.
55229         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
55230         * modules/sys_socket: Add lib/winsock.c.
55231
55232         * modules/poll-tests: Add errno and perror.
55233         * tests/test-poll.c: Use ioctl, not ioctlsocket.
55234
55235 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
55236
55237         * tests/test-poll.c: Downgrade minimum needed Winsock version.
55238
55239 2008-09-23  Bruno Haible  <bruno@clisp.org>
55240
55241         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
55242         * doc/glibc-functions/*: Likewise.
55243
55244 2008-09-23  Simon Josefsson  <simon@josefsson.org>
55245
55246         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
55247         success.
55248
55249 2008-09-22  Eric Blake  <ebb9@byu.net>
55250             Bruno Haible  <bruno@clisp.org>
55251
55252         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
55253         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
55254         supply %A but mishandle pseudo-NaN.
55255         Reported by Simon Josefsson.
55256
55257 2008-09-21  Bruno Haible  <bruno@clisp.org>
55258
55259         * tests/test-lock.c (main): Tweak skip message.
55260         * tests/test-tls.c (main): Likewise.
55261
55262 2008-09-21  Bruno Haible  <bruno@clisp.org>
55263
55264         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
55265         whether 'struct sigaction' has sa_sigaction here...
55266         (gl_PREREQ_SIG_HANDLER_H): ... not here.
55267         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
55268
55269 2008-09-21  Bruno Haible  <bruno@clisp.org>
55270
55271         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
55272         section.
55273         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
55274         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
55275         the new section.
55276         (Support for obsolete systems lacking POSIX:2001): New section.
55277         (String handling <string.h>): Move strdup to the new section.
55278         Suggested by Simon Josefsson and Paolo Bonzini.
55279
55280 2008-09-21  Bruno Haible  <bruno@clisp.org>
55281
55282         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
55283         exponents in %e and %g results on 'long double'. Needed for mingw's
55284         improved *printf functions.
55285         * tests/test-vasprintf-posix.c (test_function): Likewise.
55286         * tests/test-snprintf-posix.h (test_function): Likewise.
55287         * tests/test-sprintf-posix.h (test_function): Likewise.
55288         Reported by Eric Blake.
55289
55290 2008-09-21  Bruno Haible  <bruno@clisp.org>
55291
55292         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
55293         * tests/test-sprintf-posix.h (test_function): Likewise.
55294
55295 2008-09-21  Bruno Haible  <bruno@clisp.org>
55296
55297         * modules/getpass (Depends-on): Add strdup-posix.
55298
55299         New module 'strdup-posix'.
55300         * modules/strdup-posix: New file.
55301         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
55302         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
55303         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
55304         REPLACE_STRDUP.
55305         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
55306         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
55307         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
55308         strdup-posix.
55309
55310         * modules/strdup (Depends-on): Remove malloc-posix.
55311
55312 2008-09-20  Bruno Haible  <bruno@clisp.org>
55313
55314         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
55315         Wildenhues.
55316
55317 2008-09-20  Bruno Haible  <bruno@clisp.org>
55318
55319         Ensure that wint_t gets defined on IRIX 5.3.
55320         * lib/wchar.in.h (wint_t): Define if not defined by the system.
55321         * lib/wctype.in.h (wint_t): Likewise.
55322         (__wctype_wint_t): Remove type.
55323         (isw*): Use wint_t instead of __wctype_wint_t.
55324         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
55325         * modules/wchar (Files): Add m4/wint_t.m4.
55326         (Makefile.am): Substitute HAVE_WINT_T.
55327         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
55328         * tests/test-wctype.c: Check that wint_t is defined.
55329         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
55330         * doc/posix-headers/wctype.texi: Likewise.
55331         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
55332
55333 2008-09-18  Bruno Haible  <bruno@clisp.org>
55334
55335         * gnulib-tool (func_exit): Update comment.
55336
55337 2008-09-18  Simon Josefsson  <simon@josefsson.org>
55338
55339         * modules/getaddrinfo (Depends-on): Remove strdup, this module
55340         assumes strdup exists and does not depend on strdup to return
55341         ENOMEM on out of memory conditions.
55342
55343 2008-09-18  Bruno Haible  <bruno@clisp.org>
55344
55345         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
55346         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
55347         digits for the exponent.
55348
55349 2008-09-18  Jim Meyering  <meyering@redhat.com>
55350             Bruno Haible  <bruno@clisp.org>
55351
55352         * lib/vasnprintf.c (decimal_point_char): Define also if
55353         NEED_PRINTF_INFINITE_LONG_DOUBLE.
55354
55355 2008-09-16  Bruno Haible  <bruno@clisp.org>
55356         and Eric Blake  <ebb9@byu.net>
55357
55358         vasnprintf: support Irix 5.3
55359         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
55360         that mishandle long double infinity.
55361         Reported by Tom G. Christensen.
55362
55363 2008-09-16  Bruno Haible  <bruno@clisp.org>
55364
55365         * doc/glibc-functions/scandir.texi: Mention the function is missing on
55366         Solaris 9.
55367         * doc/glibc-functions/alphasort.texi: Likewise.
55368         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
55369
55370 2008-09-16  Jim Meyering  <meyering@redhat.com>
55371
55372         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
55373         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
55374         a umask modification leak out of a subshell.  Otherwise, the
55375         opensolaris /bin/sh would be accepted and thus cause unwarranted
55376         failures in the coreutils test suite.
55377
55378 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
55379
55380         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
55381         to succeed.
55382
55383 2008-09-16  Jim Meyering  <meyering@redhat.com>
55384
55385         avoid spurious test failure when library is built without ACL support
55386         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
55387         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
55388         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
55389         * tests/test-copy-acl.sh: Likewise.
55390
55391 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55392
55393         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
55394         based on character occurrence counts.
55395
55396 2008-09-15  Eric Blake  <ebb9@byu.net>
55397
55398         tests: avoid some compiler warnings
55399         * tests/test-memchr.c (main): Pass NULL indirectly.
55400         * tests/test-closein.c (main): Avoid unused variable.
55401
55402 2008-09-15  Bruno Haible  <bruno@clisp.org>
55403
55404         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
55405         are missing on OpenBSD 4.0 individually.
55406         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
55407
55408 2008-09-15  Bruno Haible  <bruno@clisp.org>
55409
55410         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
55411         * doc/posix-functions/strerror.texi: Mention also Cygwin.
55412         * doc/posix-functions/perror.texi: Likewise.
55413         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
55414         is missing.
55415         Reported by Eric Blake.
55416
55417         * lib/errno.in.h: Use replacement values >= 2000.
55418         Reported by Eric Blake.
55419
55420 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55421
55422         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
55423         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
55424         limit.
55425         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
55426         compareseq was aborted.
55427
55428 2008-09-14  Bruno Haible  <bruno@clisp.org>
55429
55430         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
55431         yvec_edit_count.
55432         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
55433         (fstrcmp_bounded): Simplify result computation accordingly.
55434
55435 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55436
55437         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
55438         (fstrcmp): Define in terms of fstrcmp_bounded.
55439         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
55440         lower_bound argument.
55441         Return quickly if the result is certainly < lower_bound.
55442         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
55443
55444 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55445
55446         * lib/diffseq.h (EARLY_ABORT): New macro.
55447         (compareseq): Change return type to bool. Return true when EARLY_ABORT
55448         evaluates to true.
55449
55450 2008-09-14  Bruno Haible  <bruno@clisp.org>
55451
55452         * modules/perror-tests: New file.
55453         * tests/test-perror.sh: New file.
55454         * tests/test-perror.c: New file.
55455
55456         New module 'perror'.
55457         * lib/stdio.in.h (perror): New declaration.
55458         * lib/perror.c: New file.
55459         * m4/perror.m4: New file.
55460         * modules/perror: New file.
55461         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
55462         * doc/posix-functions/perror.texi: Mention the perror module.
55463         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
55464         REPLACE_PERROR.
55465         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
55466         REPLACE_PERROR.
55467
55468 2008-09-14  Bruno Haible  <bruno@clisp.org>
55469
55470         * modules/stdio (Makefile.am): Reorder to match the order in
55471         lib/stdio.in.h.
55472         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
55473
55474 2008-09-13  Bruno Haible  <bruno@clisp.org>
55475
55476         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
55477
55478 2008-09-13  Bruno Haible  <bruno@clisp.org>
55479
55480         Extend strerror to cover the added errno values.
55481         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
55482         (rpl_strerror): Provide error messages for the added errno values and
55483         for the WSA* values.
55484         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
55485         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
55486         strerror.
55487         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
55488         * modules/strerror (Depends-on): Add errno.
55489         * doc/posix-functions/strerror.texi: Document the change.
55490         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
55491         and EOVERFLOW.
55492
55493 2008-09-13  Bruno Haible  <bruno@clisp.org>
55494
55495         * modules/EOVERFLOW: Remove file.
55496         * m4/eoverflow.m4: Remove file.
55497         * modules/EOVERFLOW-tests: Remove file.
55498         * tests/test-EOVERFLOW.c: Remove file.
55499         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
55500         * modules/ftell (Depends-on): Likewise.
55501         * modules/getdelim (Depends-on): Likewise.
55502         * modules/getugroups (Depends-on): Likewise.
55503         * modules/poll (Depends-on): Likewise.
55504         * modules/snprintf (Depends-on): Likewise.
55505         * modules/sprintf-posix (Depends-on): Likewise.
55506         * modules/vasnprintf (Depends-on): Likewise.
55507         * modules/vasprintf (Depends-on): Likewise.
55508         * modules/vfprintf-posix (Depends-on): Likewise.
55509         * modules/vsnprintf (Depends-on): Likewise.
55510         * modules/vsprintf-posix (Depends-on): Likewise.
55511         * modules/xvasprintf (Depends-on): Likewise.
55512         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
55513         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
55514         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
55515         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
55516         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
55517         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
55518         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
55519         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
55520         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
55521         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
55522         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
55523         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
55524         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
55525         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
55526         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
55527         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
55528         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
55529         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
55530         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
55531         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
55532         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
55533         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
55534         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
55535         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
55536         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
55537         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
55538         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
55539         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
55540         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
55541         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
55542         * MODULES.html.sh: Remove EOVERFLOW.
55543         * NEWS: Mention the change.
55544
55545 2008-09-13  Bruno Haible  <bruno@clisp.org>
55546
55547         * modules/errno-tests: New file.
55548         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
55549
55550         * lib/errno.in.h: New file.
55551         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
55552         * modules/errno: New file.
55553         * doc/posix-headers/errno.texi: Update documentation.
55554         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
55555
55556 2008-09-13  Bruno Haible  <bruno@clisp.org>
55557
55558         * tests/test-poll.c: Use #if for native Windows, rather than testing
55559         __MSVCRT__.
55560
55561 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55562             Bruno Haible  <bruno@clisp.org>
55563
55564         * lib/glob.c: Don't include <pwd.h> on native Windows.
55565         (WINDOWS32): New macro.
55566         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
55567
55568 2008-09-13  Bruno Haible  <bruno@clisp.org>
55569
55570         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
55571         (ETIMEDOUT): Remove macro.
55572         (glthread_cond_timedwait_multithreaded): New declaration.
55573         (glthread_cond_timedwait): Use it.
55574         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
55575         (glthread_cond_timedwait_multithreaded): New function.
55576
55577 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
55578
55579         * modules/poll-tests: Do not check for io.h.
55580         * tests/test-poll.c: Check for __MSVCRT__ instead.
55581
55582 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
55583
55584         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
55585         * modules/poll-tests: Add inet_pton, stdbool, sockets.
55586         * tests/test-poll.c: Use them.  Use _pipe on Windows.
55587
55588 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
55589
55590         * modules/poll-tests: New.
55591         * tests/test-poll.c: New.
55592
55593 2008-09-12  Eric Blake  <ebb9@byu.net>
55594
55595         frexp: test for NetBSD failure on -0.0
55596         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
55597         not all, bugs from NetBSD 3.0 have been fixed.
55598         * doc/posix-functions/frexp.texi (frexp): Document bug.
55599         Reported by Thomas Klausner.
55600
55601         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
55602         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
55603         literal -0.0.
55604         Reported by Jonathan C. Patschke <jp@centtech.com>.
55605
55606 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55607
55608         * lib/glthread/cond.h: Use dummy implementation also if
55609         USE_WIN32_THREADS.
55610
55611 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55612
55613         * modules/fnmatch-posix (License): Change to LGPLv2+.
55614         * modules/fnmatch-gnu (License): Likewise.
55615
55616 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55617
55618         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
55619
55620 2008-09-11  Jim Meyering  <meyering@redhat.com>
55621
55622         * users.txt: Add gtk-vnc.
55623
55624 2008-09-08  Simon Josefsson  <simon@josefsson.org>
55625
55626         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
55627         rotate amounts.
55628
55629         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
55630         required for 16-bit and 8-bit rotates.
55631         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
55632         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
55633         UINT8_MAX instead of hard-coded constants.
55634         Suggested by Paul Eggert.
55635
55636 2008-09-07  Bruno Haible  <bruno@clisp.org>
55637
55638         * tests/test-striconveh.c (main): Check behaviour when converting from
55639         UTF-7.
55640
55641         Make striconveh work better with stateful encodings.
55642         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
55643         that iconv does not increment the inptr when returning -1/EINVAL.
55644
55645 2008-09-07  Bruno Haible  <bruno@clisp.org>
55646
55647         * build-aux/config.rpath: Update according to libtool-2.2.6.
55648         * build-aux/config.libpath: Likewise.
55649
55650 2008-09-06  Bruno Haible  <bruno@clisp.org>
55651
55652         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
55653         * lib/freadptr.c (freadptr): Likewise.
55654         * lib/freadseek.c (freadptrinc): Likewise.
55655         Reported by Simon Josefsson.
55656
55657 2008-09-06  Bruno Haible  <bruno@clisp.org>
55658
55659         * modules/freadptr (License): Change to LGPLv2+.
55660         * modules/freadseek (License): Likewise.
55661         Suggested by Eric Blake.
55662
55663         * modules/memchr2 (License): Change to LGPLv2+.
55664         Approved by Eric Blake.
55665
55666 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55667             Bruno Haible  <bruno@clisp.org>
55668
55669         Make gnulib-tool work with native 'sed' on AIX.
55670         * gnulib-tool (sed_noop): New variable.
55671         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
55672         func_add_or_update, func_create_testdir): Use it to initialize sed
55673         script variables.
55674         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
55675
55676 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
55677             Bruno Haible  <bruno@clisp.org>
55678
55679         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
55680         also works after #include directives.
55681
55682 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
55683
55684         getdate.y: reject an out-of-range timezone value
55685         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
55686         the range [-24...+24].  When specified with only one or two digits,
55687         * tests/test-getdate.c: Tests for the fix.
55688         * doc/getdate.texi: Document this change.
55689
55690 2008-09-03  Bruno Haible  <bruno@clisp.org>
55691
55692         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
55693
55694 2008-09-02  Simon Josefsson  <simon@josefsson.org>
55695
55696         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
55697         <bruce.korb@gmail.com> with ideas from Ben Pfaff
55698         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
55699         Blake <ebb9@byu.net>.
55700
55701         * tests/test-bitrotate.c: Add more test vectors.
55702
55703 2008-09-02  Eric Blake  <ebb9@byu.net>
55704
55705         vasnprintf-posix: handle large precision via %.*d
55706         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
55707         when handling it ourselves.
55708         * tests/test-vasnprintf-posix.c (test_function): Add test.
55709         * tests/test-snprintf-posix.h (test_function): Likewise.
55710         * tests/test-sprintf-posix.h (test_function): Likewise.
55711         * tests/test-vasprintf-posix.c (test_function): Likewise.
55712         Reported by Alain Guibert.
55713
55714 2008-09-01  Eric Blake  <ebb9@byu.net>
55715
55716         c-stack: make configure-time check more robust
55717         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
55718         successful sigaction call.
55719         Reported by Tom G. Christensen.
55720
55721 2008-09-01  Bruno Haible  <bruno@clisp.org>
55722
55723         New module 'findprog-lgpl'.
55724         * modules/findprog-lgpl: New file.
55725         * lib/findprog-lgpl.c: New file.
55726         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
55727         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
55728         to decide whether to use strdup or xstrdup, concatenated_filename or
55729         xconcatenated_filename.
55730
55731 2008-09-01  Bruno Haible  <bruno@clisp.org>
55732
55733         Split module 'concat-filename' into 'concat-filename' (LGPL) and
55734         'xconcat-filename' (GPL).
55735         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
55736         (License): Change to LGPLv2+.
55737         * modules/xconcat-filename: New file.
55738         * lib/concat-filename.h (concatenated_filename): Change specification.
55739         (xconcatenated_filename): New declaration.
55740         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
55741         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
55742         memory situations.
55743         * lib/xconcat-filename.c: New file.
55744         * NEWS: Mention the change.
55745         * lib/findprog.c: Include concat-filename.h, not filename.h.
55746         (find_in_path): Use xconcatenated_filename instead of
55747         concatenated_filename.
55748         * lib/javacomp.c: Include concat-filename.h, not filename.h.
55749         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
55750         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
55751         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
55752         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
55753         instead of concatenated_filename.
55754         * lib/javaexec.c: Include concat-filename.h, not filename.h.
55755         (execute_java_class): Use xconcatenated_filename instead of
55756         concatenated_filename.
55757         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
55758         * modules/javacomp (Depends-on): Likewise.
55759         * modules/javaexec (Depends-on): Likewise.
55760
55761 2008-09-01  Bruno Haible  <bruno@clisp.org>
55762
55763         Split module 'filename' into 'filename' and 'concat-filename'.
55764         * modules/filename: Keep only lib/filename.h.
55765         (License): Change to LGPLv2+.
55766         * modules/concat-filename: New file, extracted from modules/filename.
55767         * lib/filename.h (concatenated_filename): Remove declaration.
55768         * lib/concat-filename.h: New file, extracted from lib/filename.h.
55769         * lib/concat-filename.c: Include concat-filename.h.
55770         * NEWS: Mention the change.
55771
55772 2008-09-01  Simon Josefsson  <simon@josefsson.org>
55773
55774         * lib/bitrotate.h (rotl8, rotr8): Add.
55775
55776         * modules/bitrotate (configure.ac): Need
55777         AC_REQUIRE([AC_C_INLINE]).
55778         (Description): Mention stdint.h.  Reported by Bruno Haible
55779         <bruno@clisp.org>.
55780
55781         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
55782         Paolo Bonzini <bonzini@gnu.org>.
55783
55784 2008-08-31  Bruno Haible  <bruno@clisp.org>
55785
55786         Assume Solaris specific bi-arch conventions on Solaris systems.
55787         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
55788         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
55789         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
55790         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
55791         like acl_libdirstem.
55792         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
55793         acl_libdirstem.
55794         * NEWS: Mention the change.
55795         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
55796
55797 2008-08-31  Jim Meyering  <meyering@redhat.com>
55798
55799         * lib/strftime.h: Add comments describing the two added arguments.
55800
55801         remove duplicate #include directives
55802         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
55803         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
55804
55805 2008-08-31  Bruno Haible  <bruno@clisp.org>
55806
55807         New module 'sigpipe-die'.
55808         * modules/sigpipe-die: New file.
55809         * lib/sigpipe-die.h: New file.
55810         * lib/sigpipe-die.c: New file.
55811         * MODULES.html.sh (Signal handling): Add sigpipe-die.
55812
55813 2008-08-31  Bruno Haible  <bruno@clisp.org>
55814
55815         Don't override previously installed signal handlers.
55816         * lib/fatal-signal.c (saved_sigactions): New variable.
55817         (uninstall_handlers): Reset the signal to the saved handler, not
55818         to SIG_DFL (except when ignored).
55819         (install_handlers): Save the previous handlers.
55820
55821 2008-08-30  Bruno Haible  <bruno@clisp.org>
55822
55823         * gnulib-tool (func_reset_sigpipe): New function.
55824         (func_get_automake_snippet, func_modules_transitive_closure,
55825         func_import): Invoke it before a join command that reads from stdin,
55826         to avoid "echo: write error: Broken pipe" error messages on stderr.
55827         Reported by Sam Steingold <sds@gnu.org>.
55828
55829 2008-08-30  Bruno Haible  <bruno@clisp.org>
55830
55831         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
55832         Code copied from m4/open.m4.
55833         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
55834         access and the filename ends in a slash. Code copied from lib/open.c.
55835         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
55836         * tests/test-fopen.c (main): Check against bug with trailing slash.
55837
55838 2008-08-29  Bruno Haible  <bruno@clisp.org>
55839
55840         Avoid some "gcc -pedantic" warnings.
55841         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
55842         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
55843         * lib/dirent.in.h: Likewise.
55844         * lib/fcntl.in.h: Likewise.
55845         * lib/float.in.h: Likewise.
55846         * lib/iconv.in.h: Likewise.
55847         * lib/inttypes.in.h: Likewise.
55848         * lib/locale.in.h: Likewise.
55849         * lib/math.in.h: Likewise.
55850         * lib/netinet_in.in.h: Likewise.
55851         * lib/search.in.h: Likewise.
55852         * lib/signal.in.h: Likewise.
55853         * lib/stdarg.in.h: Likewise.
55854         * lib/stdint.in.h: Likewise.
55855         * lib/stdio.in.h: Likewise.
55856         * lib/stdlib.in.h: Likewise.
55857         * lib/string.in.h: Likewise.
55858         * lib/strings.in.h: Likewise.
55859         * lib/sys_select.in.h: Likewise.
55860         * lib/sys_socket.in.h: Likewise.
55861         * lib/sys_stat.in.h: Likewise.
55862         * lib/sys_time.in.h: Likewise.
55863         * lib/sysexits.in.h: Likewise.
55864         * lib/time.in.h: Likewise.
55865         * lib/unistd.in.h: Likewise.
55866         * lib/wchar.in.h: Likewise.
55867         * lib/wctype.in.h: Likewise.
55868         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
55869         * modules/fchdir (Makefile.am): Likewise.
55870         * modules/fcntl (Makefile.am): Likewise.
55871         * modules/float (Makefile.am): Likewise.
55872         * modules/iconv_open (Makefile.am): Likewise.
55873         * modules/inttypes (Makefile.am): Likewise.
55874         * modules/locale (Makefile.am): Likewise.
55875         * modules/math (Makefile.am): Likewise.
55876         * modules/netinet_in (Makefile.am): Likewise.
55877         * modules/search (Makefile.am): Likewise.
55878         * modules/signal (Makefile.am): Likewise.
55879         * modules/stdarg (Makefile.am): Likewise.
55880         * modules/stdint (Makefile.am): Likewise.
55881         * modules/stdio (Makefile.am): Likewise.
55882         * modules/stdlib (Makefile.am): Likewise.
55883         * modules/string (Makefile.am): Likewise.
55884         * modules/strings (Makefile.am): Likewise.
55885         * modules/sys_select (Makefile.am): Likewise.
55886         * modules/sys_socket (Makefile.am): Likewise.
55887         * modules/sys_stat (Makefile.am): Likewise.
55888         * modules/sys_time (Makefile.am): Likewise.
55889         * modules/sysexits (Makefile.am): Likewise.
55890         * modules/time (Makefile.am): Likewise.
55891         * modules/unistd (Makefile.am): Likewise.
55892         * modules/wchar (Makefile.am): Likewise.
55893         * modules/wctype (Makefile.am): Likewise.
55894         Reported by Reuben Thomas <rrt@sc3d.org>.
55895
55896 2008-08-29  Bruno Haible  <bruno@clisp.org>
55897
55898         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
55899         any more.
55900
55901 2008-08-29  Simon Josefsson  <simon@josefsson.org>
55902
55903         * MODULES.html.sh (Misc): Add bitrotate.
55904
55905         * modules/bitrotate: New file.
55906
55907         * lib/bitrotate.h: New file.
55908
55909         * modules/bitrotate-tests: New file.
55910
55911         * tests/test-bitrotate.c: New file.
55912
55913         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
55914         on the bitrotate module.
55915
55916         * lib/arctwo.c: Use new bitrotate module.
55917
55918 2008-08-29  Jim Meyering  <meyering@redhat.com>
55919
55920         bootstrap: merge changes from coreutils
55921         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
55922         of copied files.  Remove a kludge, now that this is fixed.
55923         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
55924         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
55925         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
55926
55927 2008-08-29  Bruno Haible  <bruno@clisp.org>
55928
55929         * MODULES.html.sh: Remove --cvs-urls option.
55930
55931 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
55932
55933         maint.mk: adjust to file name change
55934         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
55935
55936 2008-08-28  Jim Meyering  <meyering@redhat.com>
55937
55938         * modules/getndelim2 (License): Relicense to LGPLv2+.
55939         Approved by Richard Stallman for the version of 1995, and by
55940         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
55941
55942 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
55943
55944         * lib/getdelim.c (flockfile, funlockfile): Make all of them
55945         dummy if one is not available.  Do not touch them if
55946         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
55947         (getc_maybe_unlocked): New.
55948         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
55949
55950 2008-08-26  Eric Blake  <ebb9@byu.net>
55951
55952         doc/INSTALL: resync from autoconf
55953         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
55954         (INSTALL_PRELUDE): Delete; this is done more efficiently by
55955         moving...
55956         * install.texi [!autoconf]: ...here.  Resync from autoconf.
55957         * INSTALL: Regenerate.
55958         * INSTALL.ISO: New file.
55959         * INSTALL.UTF-8: Likewise.
55960
55961 2008-08-26  Jim Meyering  <meyering@redhat.com>
55962
55963         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
55964         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
55965         these definitions conditional, so that they may be overridden, too.
55966
55967 2008-08-26  Bruno Haible  <bruno@clisp.org>
55968
55969         Generate INSTALL file variants with prettier quotes.
55970         * doc/Makefile (INSTALL_PRELUDE): New macro.
55971         (INSTALL): Use it.
55972         (INSTALL.ISO, INSTALL.UTF-8): New rules.
55973
55974 2008-08-26  Bruno Haible  <bruno@clisp.org>
55975
55976         Run makeinfo in an English locale.
55977         * doc/Makefile (MAKEINFO): New variable.
55978
55979 2008-08-26  Bruno Haible  <bruno@clisp.org>
55980
55981         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
55982         Suggested by Eric Blake.
55983
55984 2008-08-25  Bruno Haible  <bruno@clisp.org>
55985
55986         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
55987
55988 2008-08-25  Eric Blake  <ebb9@byu.net>
55989
55990         c-stack: test that stack overflow can be caught
55991         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
55992         that platform allows handling stack overflow; at least OS/2 EMX
55993         has sigaltstack, but crashes before transferring control to
55994         handler on stack overflow.
55995         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
55996         check for HAVE_STACK_OVERFLOW_HANDLING.
55997         Reported by Elbert Pol.
55998
55999 2008-08-25  Bruno Haible  <bruno@clisp.org>
56000
56001         * doc/posix-functions/strftime.texi: Fix description of strftime
56002         module.
56003
56004 2008-08-24  Bruno Haible  <bruno@clisp.org>
56005
56006         * tests/uniwidth/test-uc_width2.c: New file.
56007         * tests/uniwidth/test-uc_width2.sh: New file.
56008         * modules/uniwidth/width-tests (Files): Add the new files.
56009         (TESTS): Add uniwidth/test-uc_width2.sh.
56010         (TESTS_ENVIRONMENT): New variable.
56011         (check_PROGRAMS): Add test-uc_width2.
56012         (test_uc_width2_SOURCES): New variable.
56013
56014         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
56015         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
56016         not 0x00AB.
56017         Reported by Alexander V. Lukyanov <lav@netis.ru>.
56018
56019 2008-08-22  Eric Blake  <ebb9@byu.net>
56020
56021         test-lock, test-tls: mention why a test is skipped
56022         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
56023         skipped.
56024         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
56025
56026         count-one-bits: relax license
56027         * modules/count-one-bits (License): Relicense to LGPLv2+.
56028         Suggested by Ludovic Courtès, approved by Ben Pfaff.
56029
56030 2008-08-22  Andreas Schwab  <schwab@suse.de>
56031
56032         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
56033         Remove spurious space in assignment.
56034
56035 2008-08-21  Simon Josefsson  <simon@josefsson.org>
56036
56037         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
56038         Paul Eggert <eggert@CS.UCLA.EDU>.
56039
56040 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
56041
56042         * modules/gettext: Add m4/threadlib.m4.
56043
56044 2008-08-19  Eric Blake  <ebb9@byu.net>
56045
56046         test-c-stack: fix compilation failure on FreeBSD 5.0
56047         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
56048         headers before <sys/resource.h>.
56049         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
56050         the bug.
56051         Reported by Nelson H. F. Beebe.
56052
56053         strverscmp: migrate from "strverscmp.h" to <string.h>
56054         * modules/string (Makefile.am): Add new hooks.
56055         * modules/strverscmp (Files): Remove strverscmp.h.
56056         (Depends-on): Add string.
56057         (configure.ac): Add indicator.
56058         (Include): Mention new header.
56059         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
56060         defaults.
56061         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
56062         results.
56063         * lib/strverscmp.h: Delete.
56064         * lib/string.in.h (strverscmp): Provide declaration, when needed.
56065         * tests/test-strverscmp.c (includes): Adjust client.
56066         * lib/check-version.c (includes): Likewise.
56067         * NEWS: Document the change.
56068
56069         strverscmp: add unit test
56070         * modules/strverscmp-tests: New file.
56071         * tests/test-strverscmp.c: Likewise.
56072
56073 2008-08-19  Simon Josefsson  <simon@josefsson.org>
56074
56075         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
56076         regarding Windows crypto stuff, from Mono.
56077
56078 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
56079
56080         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
56081         if present, for intel RND.  Return error on failures.
56082
56083 2008-08-18  Ben Pfaff  <blp@gnu.org>
56084
56085         gitlog-to-changelog: give better diagnostic for failed pipe-open
56086         * build-aux/gitlog-to-changelog: Improve error message: suggest
56087         that the version of Git may be too old.
56088
56089 2008-08-18  Simon Josefsson  <simon@josefsson.org>
56090
56091         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
56092         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
56093
56094 2008-08-18  Bruno Haible  <bruno@clisp.org>
56095
56096         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
56097         pthread_in_use().
56098
56099 2008-08-18  Bruno Haible  <bruno@clisp.org>
56100
56101         * lib/glthread/threadlib.c: Include <pthread.h>.
56102
56103 2008-08-18  Bruno Haible  <bruno@clisp.org>
56104
56105         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
56106         glthread_recursive_lock_* macros.
56107         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
56108         Fix syntax error.
56109
56110 2008-08-18  Bruno Haible  <bruno@clisp.org>
56111
56112         * lib/glthread/thread.c: Avoid forcing a context switch right after
56113         thread creation.
56114
56115 2008-08-17  Bruno Haible  <bruno@clisp.org>
56116
56117         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
56118         * lib/glthread/thread.h: Provide Win32 specific implementation.
56119         * modules/thread (Files): Add lib/glthread/thread.c.
56120         (Depends-on): Add lock.
56121         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
56122
56123 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56124
56125         New module 'yield'.
56126         * modules/yield: New file.
56127         * lib/glthread/yield.h: New file.
56128         * m4/yield.m4: New file.
56129         * MODULES.html.sh (Multithreading): Add yield.
56130
56131 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56132
56133         New module 'thread'.
56134         * modules/thread: New file.
56135         * lib/glthread/thread.h: New file.
56136         * m4/thread.m4: New file.
56137         * MODULES.html.sh (Multithreading): Add thread.
56138
56139 2008-08-17  Bruno Haible  <bruno@clisp.org>
56140
56141         * lib/glthread/lock.h: Include <stdlib.h> always.
56142         * lib/glthread/tls.h: Likewise.
56143         * lib/glthread/cond.h: Likewise.
56144
56145 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56146
56147         New module 'cond'.
56148         * modules/cond: New file.
56149         * lib/glthread/cond.h: New file.
56150         * lib/glthread/cond.c: New file.
56151         * m4/cond.m4: New file.
56152         * MODULES.html.sh (Multithreading): Add cond.
56153
56154 2008-08-16  Eric Blake  <ebb9@byu.net>
56155
56156         c-stack: fix regression on Irix 5.3 from 2008-06-21
56157         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
56158         sa_sigaction...
56159         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
56160         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
56161         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
56162         * modules/signal (Makefile.am): Use the value.
56163         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
56164         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
56165         * doc/posix-headers/signal.texi (signal.h): Document this
56166         portability issue.
56167         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
56168         Reported by Tom G. Christensen.
56169
56170 2008-08-17  Bruno Haible  <bruno@clisp.org>
56171
56172         New module 'threadlib'.
56173         * modules/threadlib: New file.
56174         * lib/glthread/threadlib.c: New file, extracted from
56175         lib/glthread/lock.c.
56176         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
56177         functions.
56178         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
56179         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
56180         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
56181         macros.
56182         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
56183         (gl_DISABLE_THREADS): Remove macro.
56184         * modules/lock (Files): Remove build-aux/config.rpath.
56185         (Depends-on): Remove havelib. Add threadlib.
56186         (configure.ac-early): Remove section.
56187         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
56188         * modules/tls (Depends-on): Remove lock. Add threadlib.
56189         (Link): New section, copied from threadlib.
56190         * MODULES.html.sh (Multithreading): Add threadlib.
56191
56192 2008-08-14  Bruno Haible  <bruno@clisp.org>
56193
56194         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
56195         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
56196         glthread_rwlock_unlock, glthread_rwlock_destroy,
56197         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
56198         glthread_recursive_lock_destroy): Define as macros always.
56199         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
56200         glthread_lock_lock.
56201         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
56202         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
56203         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
56204         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
56205         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
56206         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
56207         (glthread_recursive_lock_lock_func): Renamed from
56208         glthread_recursive_lock_lock.
56209         (glthread_recursive_lock_unlock_func): Renamed from
56210         glthread_recursive_lock_unlock.
56211         (glthread_recursive_lock_destroy_func): Renamed from
56212         glthread_recursive_lock_destroy.
56213
56214 2008-08-14  Bruno Haible  <bruno@clisp.org>
56215
56216         * lib/glthread/lock.h: Renamed from lib/lock.h.
56217         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
56218         * lib/glthread/tls.h: Renamed from lib/tls.h.
56219         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
56220         * lib/fstrcmp.c: Update includes.
56221         * lib/strsignal.c: Update includes.
56222         * modules/lock (Files, Makefile.am): Update.
56223         (Include): Change to "glthread/lock.h".
56224         * modules/tls (Files, Makefile.am): Update.
56225         (Include): Change to "glthread/tls.h".
56226         * tests/test-lock.c: Update includes.
56227         * tests/test-tls.c: Update includes.
56228         * NEWS: Mention the renamed header files.
56229
56230 2008-08-11  Jim Meyering  <meyering@redhat.com>
56231
56232         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
56233
56234 2008-08-11  Eric Blake  <ebb9@byu.net>
56235
56236         test-c-stack: avoid C99-ism
56237         * tests/test-c-stack.c (main): Fix whitespace, move declaration
56238         before statement.
56239         Reported by Alain Guibert.
56240
56241 2008-08-10  Jim Meyering  <meyering@redhat.com>
56242
56243         ensure that return value of uinttostr et al are not ignored
56244         * lib/inttostr.h (__GNUC_PREREQ): Define.
56245         (__attribute_warn_unused_result__): Define.
56246         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
56247
56248 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
56249
56250         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
56251         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
56252
56253 2008-08-07  Jim Meyering  <meyering@redhat.com>
56254
56255         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
56256
56257         * modules/mkstemp (License): Relicense under LGPLv2+.
56258         * modules/tempname (License): Likewise.
56259
56260 2008-08-06  Bruno Haible  <bruno@clisp.org>
56261
56262         * lib/poll.c (poll): Further micro-optimization.
56263
56264 2008-08-06  Jim Meyering  <meyering@redhat.com>
56265
56266         inet_pton.c: use locale-independent tolower
56267         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
56268         (inet_pton6): Use c_tolower rather than tolower.
56269         * modules/inet_pton (Depends-on): Add c-ctype.
56270
56271 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
56272
56273         * lib/poll.c (poll): Avoid division when timeout is 0, cache
56274         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
56275
56276 2008-08-06  Jim Meyering  <meyering@redhat.com>
56277
56278         * modules/inet_pton (License): Relicense under LGPLv2+.
56279
56280 2008-08-03  Bruno Haible  <bruno@clisp.org>
56281
56282         Additional non-aborting API for lock and tls.
56283         * lib/lock.h: Include <errno.h>.
56284         (glthread_lock_init): New macro/function.
56285         (gl_lock_init): Define as wrapper around glthread_lock_init.
56286         (glthread_lock_lock): New macro/function.
56287         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
56288         (glthread_lock_unlock): New macro/function.
56289         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
56290         (glthread_lock_destroy): New macro/function.
56291         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
56292         (glthread_rwlock_init): New macro/function.
56293         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
56294         (glthread_rwlock_rdlock): New macro/function.
56295         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
56296         (glthread_rwlock_wrlock): New macro/function.
56297         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
56298         (glthread_rwlock_unlock): New macro/function.
56299         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
56300         (glthread_rwlock_destroy): New macro/function.
56301         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
56302         (glthread_recursive_lock_init): New macro/function.
56303         (gl_recursive_lock_init): Define as wrapper around
56304         glthread_recursive_lock_init.
56305         (glthread_recursive_lock_lock): New macro/function.
56306         (gl_recursive_lock_lock): Define as wrapper around
56307         glthread_recursive_lock_lock.
56308         (glthread_recursive_lock_unlock): New macro/function.
56309         (gl_recursive_lock_unlock): Define as wrapper around
56310         glthread_recursive_lock_unlock.
56311         (glthread_recursive_lock_destroy): New macro/function.
56312         (gl_recursive_lock_destroy): Define as wrapper around
56313         glthread_recursive_lock_destroy.
56314         (glthread_once): New macro/function.
56315         (gl_once): Define as wrapper around glthread_once.
56316         Update function declarations.
56317         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
56318         glthread_rwlock_init. Return error code.
56319         (glthread_rwlock_rdlock_multithreaded): Renamed from
56320         glthread_rwlock_rdlock. Return error code.
56321         (glthread_rwlock_wrlock_multithreaded): Renamed from
56322         glthread_rwlock_wrlock. Return error code.
56323         (glthread_rwlock_unlock_multithreaded): Renamed from
56324         glthread_rwlock_unlock. Return error code.
56325         (glthread_rwlock_destroy_multithreaded): Renamed from
56326         glthread_rwlock_destroy. Return error code.
56327         (glthread_recursive_lock_init_multithreaded): Renamed from
56328         glthread_recursive_lock_init. Return error code.
56329         (glthread_recursive_lock_lock_multithreaded): Renamed from
56330         glthread_recursive_lock_lock. Return error code.
56331         (glthread_recursive_lock_unlock_multithreaded): Renamed from
56332         glthread_recursive_lock_unlock. Return error code.
56333         (glthread_recursive_lock_destroy_multithreaded): Renamed from
56334         glthread_recursive_lock_destroy. Return error code.
56335         (glthread_once_call): Make static.
56336         (glthread_once_multithreaded): Renamed from glthread_once.
56337         * lib/tls.h: Include <errno.h>.
56338         (glthread_tls_key_init): New macro/function.
56339         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
56340         (glthread_tls_set): New macro/function.
56341         (gl_tls_set): Define as wrapper around glthread_tls_set.
56342         (glthread_tls_key_destroy): New macro/function.
56343         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
56344         Update function declarations.
56345         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
56346         glthread_tls_get.
56347         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
56348
56349 2008-08-04  Eric Blake  <ebb9@byu.net>
56350
56351         gnumakefile: use space, not TAB, outside of targets
56352         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
56353
56354 2008-08-02  Jim Meyering  <meyering@redhat.com>
56355
56356         getdate.y: avoid locale-dependent date parsing failure
56357         In Turkish locales, getdate would fail to recognize keywords
56358         containing a lowercase "i".  The solution is not to rely on
56359         locale-sensitive case-conversion.
56360         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
56361         (lookup_word): Use c_toupper in place of toupper.
56362         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
56363         Reported by Vefa Bicakci <bicave@superonline.com> in
56364         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
56365         * modules/getdate (Depends-on): Add c-ctype.
56366
56367 2008-08-02  Bruno Haible  <bruno@clisp.org>
56368
56369         * gnulib-tool (func_import): When updating or creating a .gitignore
56370         file, prepend each added line with a slash, and ignore leading slashes
56371         from the existing lines.
56372         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
56373
56374 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56375
56376         Portability fix for GNU make 3.79.1.
56377         * top/GNUmakefile: Avoid 'else COND', which older GNU make
56378         versions do not understand.
56379
56380 2008-08-01  Bruno Haible  <bruno@clisp.org>
56381
56382         Work around bug of HP-UX 10.20 cc with -0.0 literal.
56383         * tests/test-isnanf.h (zero): New variable.
56384         (main): Avoid literal -0.0f.
56385         * tests/test-isnand.h (zero): New variable.
56386         (main): Avoid literal -0.0.
56387         * tests/test-isnanl.h (zero): New variable.
56388         (main): Avoid literal -0.0L.
56389         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
56390         (test_float, test_double, test_long_double): Avoid literals -0.0f,
56391         -0.0, -0.0L.
56392         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
56393         (test_signbitd): Avoid literal -0.0.
56394         (test_signbitl): Avoid literal -0.0L.
56395         * tests/test-ceilf1.c (zero): New variable.
56396         (main): Avoid literal -0.0f.
56397         * tests/test-ceill.c (zero): New variable.
56398         (main): Avoid literal -0.0L.
56399         * tests/test-floorf1.c (zero): New variable.
56400         (main): Avoid literal -0.0f.
56401         * tests/test-floorl.c (zero): New variable.
56402         (main): Avoid literal -0.0L.
56403         * tests/test-roundf1.c (zero): New variable.
56404         (main): Avoid literal -0.0f.
56405         * tests/test-round1.c (zero): New variable.
56406         (main): Avoid literal -0.0.
56407         * tests/test-roundl.c (zero): New variable.
56408         (main): Avoid literal -0.0L.
56409         * tests/test-truncf1.c (zero): New variable.
56410         (main): Avoid literal -0.0f.
56411         * tests/test-trunc1.c (zero): New variable.
56412         (main): Avoid literal -0.0.
56413         * tests/test-truncl.c (zero): New variable.
56414         (main): Avoid literal -0.0L.
56415         * tests/test-frexp.c (zero): New variable.
56416         (main): Avoid literal -0.0.
56417         * tests/test-frexpl.c (zero): New variable.
56418         (main): Avoid literal -0.0L.
56419         * tests/test-ldexpl.c (zero): New variable.
56420         (main): Avoid literal -0.0L.
56421         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
56422         (zerod, zerol): New variables.
56423         (test_function): Avoid literals -0.0, -0.0L.
56424         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
56425         (zerod, zerol): New variables.
56426         (test_function): Avoid literals -0.0, -0.0L.
56427         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
56428         (zerod, zerol): New variables.
56429         (test_function): Avoid literals -0.0, -0.0L.
56430         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
56431         (zerod, zerol): New variables.
56432         (test_function): Avoid literals -0.0, -0.0L.
56433         * tests/test-strtod.c (zero): New variable.
56434         (main): Avoid literal -0.0.
56435         Reported by Jonathan C. Patschke <jp@centtech.com>.
56436
56437 2008-07-31  Jim Meyering  <meyering@redhat.com>
56438
56439         sha256.h: correct definition of SHA224_DIGEST_SIZE
56440         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
56441         Reported by Paulie Pena IV <paulie4@gmail.com>.
56442         Define as 224 / 8, rather than as a literal.
56443         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
56444         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
56445         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
56446
56447 2008-07-31  Bruno Haible  <bruno@clisp.org>
56448
56449         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
56450         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
56451         Reported by Jonathan Patschke <jp@centtech.com>.
56452
56453 2008-07-31  Bruno Haible  <bruno@clisp.org>
56454
56455         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
56456         Reported by Paolo Bonzini <bonzini@gnu.org>.
56457
56458 2008-07-30  Eric Blake  <ebb9@byu.net>
56459
56460         test-strtod: allow compilation without -lm
56461         * tests/test-strtod.c (main): Avoid link dependence on fabs.
56462         Reported by Dennis Clarke <blastwave@gmail.com>.
56463
56464 2008-07-28  Jim Meyering  <meyering@redhat.com>
56465
56466         bootstrap: work also when there are no .po files in po/
56467         * build-aux/bootstrap (update_po_files): Complete the change
56468         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
56469
56470 2008-07-27  Jim Meyering  <meyering@redhat.com>
56471
56472         * users.txt: Add zile.
56473
56474 2008-07-26  Ben Pfaff  <blp@gnu.org>
56475
56476         Add missing dependencies on new m4/exponent[fdl].m4 files.
56477         * modules/isnanf-nolibm: Add m4/exponentf.m4.
56478         * modules/isnand-nolibm: Add m4/exponentd.m4.
56479         * modules/isnanl-nolibm: Add m4/exponentl.m4.
56480         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
56481         m4/isnan[fdl].m4, because the macros actually used moved.
56482         Reported by Jim Meyering.
56483
56484 2008-07-14  Ben Pfaff  <blp@gnu.org>
56485
56486         Add isinf module.
56487         * lib/isinf.c: New file.
56488         * lib/math.in.h: Define isinf macro if we have decided to replace
56489         it.
56490         * m4/isinf.m4: New file.
56491         * m4/math_h.m4: Initialize and substitute variables for isinf
56492         module.
56493         * modules/isinf: New file.
56494         * modules/isinf-tests: New file.
56495         * modules/math: Add substitutions for new module.
56496         * tests/test-isinf.c: New file.
56497         * doc/posix-functions/isinf.texi: Mention new module.
56498         * MODULES.html.sh: Mention new module.
56499
56500 2008-07-14  Ben Pfaff  <blp@gnu.org>
56501
56502         Factor out some macros for use by additional modules.
56503         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
56504         exponentf.m4.
56505         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
56506         exponentd.m4.
56507         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
56508         file exponentl.m4.
56509         * m4/exponentf.m4: New file.
56510         * m4/exponentd.m4: New file.
56511         * m4/exponentl.m4: New file.
56512         * modules/isnanf: Use new file m4/exponentf.m4.
56513         * modules/isnand: Use new file m4/exponentd.m4.
56514         * modules/isnanl: Use new file m4/exponentl.m4.
56515
56516 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
56517
56518         mktime.c: normalize tp->tm_isdst value to -1/0/1.
56519         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
56520         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
56521         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
56522
56523         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
56524         readlink on platforms without PATH_MAX.
56525
56526 2008-07-21  Eric Blake  <ebb9@byu.net>
56527
56528         Warn, not fail, on stale version.
56529         * top/GNUmakefile (_curr-ver): Tone down previous patch.
56530
56531         Don't allow installation with stale devel version number.
56532         * top/GNUmakefile (_is-install-target): New macro.
56533         (_curr-ver): Forbid installation with stale version number.
56534
56535 2008-07-20  Bruno Haible  <bruno@clisp.org>
56536
56537         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
56538         TESTS_ENVIRONMENT.
56539         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
56540
56541 2008-07-20  Bruno Haible  <bruno@clisp.org>
56542
56543         * lib/c-stack.h (c_stack_action): Add documentation.
56544         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
56545
56546 2008-07-20  Bruno Haible  <bruno@clisp.org>
56547
56548         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
56549         * modules/readlink (License): Likewise.
56550
56551 2008-07-17  Eric Blake  <ebb9@byu.net>
56552
56553         * modules/c-stack (Link): Fix typo.
56554
56555         Make c-stack use libsigsegv, when available.
56556         * modules/c-stack (Depends-on): Add libsigsegv.
56557         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
56558         needed.
56559         * lib/c-stack.c (SIGSTKSZ): Define fallback.
56560         (segv_handler, overflow_handler, c_stack_action)
56561         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
56562         implementation when libsigsegv is available, but only when using
56563         the library is necessary.
56564         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
56565         comment, explaining why XSI check fails on Linux.
56566         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
56567         * tests/test-c-stack2.sh: Tweak skip message.
56568         * NEWS: Document new link-time requirements.
56569
56570 2008-07-16  Eric Blake  <ebb9@byu.net>
56571
56572         c-stack: Expose false positives when not using libsigsegv.
56573         * modules/c-stack-tests (Files): Expand test.
56574         * tests/test-c-stack.c (main): Add means to conditionally trigger
56575         non-overflow SIGSEGV.
56576         * tests/test-c-stack2.sh: New file.
56577
56578 2008-07-14  Bruno Haible  <bruno@clisp.org>
56579
56580         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
56581         Reported by Eric Blake.
56582
56583 2008-07-14  Sam Steingold  <sds@gnu.org>
56584             Bruno Haible  <bruno@clisp.org>
56585
56586         New module libsigsegv.
56587         * modules/libsigsegv: New file.
56588         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
56589         modifications.
56590         * MODULES.html.sh (Signal handling): New section.
56591
56592 2008-07-14  Bruno Haible  <bruno@clisp.org>
56593
56594         * modules/unictype/ctype-* (Description): Add the word "function".
56595         Improves the resulting doc in MODULES.html.
56596
56597 2008-07-12  Ben Pfaff  <blp@gnu.org>
56598
56599         Add longlong module.
56600         * modules/longlong: New file.
56601
56602 2008-07-12  Bruno Haible  <bruno@clisp.org>
56603
56604         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
56605         to empty.
56606
56607 2008-07-10  Ben Pfaff  <blp@gnu.org>
56608
56609         Add isnan module.
56610         * doc/posix-functions/isnan.texi: Mention new module.
56611         * lib/math.in.h: Define isnan macro if we have decided to replace
56612         it.
56613         * m4/isnan.m4: New file.
56614         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
56615         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
56616         also.
56617         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
56618         redundancy.
56619         * m4/math_h.m4: Initialize and substitute variables for isnan
56620         module.
56621         * modules/isnan: New file.
56622         * modules/isnan-tests: New file.
56623         * modules/math: Add substitutions for new module.
56624         * tests/test-isnan.c: New file.
56625         * MODULES.html.sh: Mention new module.
56626
56627 2008-07-10  Ben Pfaff  <blp@gnu.org>
56628
56629         Add isnanf module.
56630         * lib/isnanf.m4: New file.
56631         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
56632         (gl_HAVE_ISNANF_IN_LIBM): New macro.
56633         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
56634         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
56635         * modules/isnanf: New file.
56636         * modules/isnanf-tests: New file.
56637         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
56638         files.
56639         * tests/test-isnanf-nolibm.c: factored most of its contents into
56640         new file tests/test-isnanf.h.
56641         * tests/test-isnanf.h: New file.
56642         * tests/test-isnanf.c: New file.
56643         * MODULES.html.sh: Mention new module.
56644         * doc/glibc-functions/isnanf.texi: Mention new module.
56645
56646 2008-07-10  Ben Pfaff  <blp@gnu.org>
56647
56648         Add isnand module.
56649         * lib/isnand.h: New file.
56650         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
56651         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
56652         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
56653         functionality also.
56654         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
56655         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
56656         (gl_HAVE_ISNAND_IN_LIBM): New macro.
56657         * modules/isnand: New file.
56658         * modules/isnand-tests: New file.
56659         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
56660         files.
56661         * tests/test-isnand-nolibm.c: factored most of its contents into
56662         new file tests/test-isnand.h.
56663         * tests/test-isnand.h: New file.
56664         * tests/test-isnand.c: New file.
56665         * MODULES.html.sh: Mention new module.
56666
56667 2008-07-10  Ben Pfaff  <blp@gnu.org>
56668
56669         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
56670         * lib/isnand.h: Rename lib/isnand-nolibm.h.
56671         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
56672         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
56673         * modules/isnanf-nolibm: Update references to renamed files.
56674         * modules/isnand-nolibm: Likewise.
56675         * modules/isnanf-nolibm-tests: Likewise.
56676         * modules/isnand-nolibm-tests: Likewise.
56677         * lib/frexp.c: Likewise.
56678         * lib/isfinite.c: Likewise.
56679         * lib/signbitd.c: Likewise.
56680         * lib/signbitf.c: Likewise.
56681         * lib/vasnprintf.c: Likewise.
56682         * tests/test-ceilf1.c: Likewise.
56683         * tests/test-ceilf2.c: Likewise.
56684         * tests/test-floorf1.c: Likewise.
56685         * tests/test-floorf2.c: Likewise.
56686         * tests/test-frexp.c: Likewise.
56687         * tests/test-round1.c: Likewise.
56688         * tests/test-round2.c: Likewise.
56689         * tests/test-roundf1.c: Likewise.
56690         * tests/test-strtod.c: Likewise.
56691         * tests/test-trunc1.c: Likewise.
56692         * tests/test-trunc2.c: Likewise.
56693         * tests/test-truncf1.c: Likewise.
56694         * tests/test-truncf2.c: Likewise.
56695         * NEWS: Mention the renamed header files.
56696
56697 2008-07-11  Jim Meyering  <meyering@redhat.com>
56698
56699         vc-list-files: make the last-resort awk code more portable
56700         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
56701         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
56702         does not support it.
56703
56704 2008-07-10  Eric Blake  <ebb9@byu.net>
56705
56706         Work with tar's bootstrap.
56707         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
56708         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
56709         an m4 comment.
56710
56711 2008-07-09  Jim Meyering  <meyering@redhat.com>
56712
56713         posix-shell.m4: fix typo that made this test malfunction
56714         * m4/posix-shell.m4: Remove capitalization in variable name.
56715
56716 2008-07-08  Bruno Haible  <bruno@clisp.org>
56717
56718         * m4/onceonly.m4: Update comments.
56719         Reported by Ben Pfaff <blp@cs.stanford.edu>.
56720
56721 2008-07-04  Jim Meyering  <meyering@redhat.com>
56722
56723         * users.txt: Add vc-dwim.
56724         (bison, coreutils): Use the gitweb URL.
56725
56726 2008-07-03  Jim Meyering  <meyering@redhat.com>
56727
56728         * users.txt: Add libffcall.  From Sam Steingold.
56729
56730 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
56731
56732         getdate.y: do not ignore TZ with relative day, month or year offset
56733         * lib/getdate.y (get_date): Move the tz-handling block to follow the
56734         relative-date-handling, since otherwise, the latter would clobber the
56735         sole output (an updated Start value) of the tz-handling block.
56736         * tests/test-getdate.c: Tests for the fix
56737
56738 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56739
56740         Recognize 'foo_LIBRARIES += libgnu.a'.
56741         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
56742         makefile snippet has already specified an installation location,
56743         also using '+='.
56744
56745 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
56746
56747         getdate.y: factor out common actions
56748         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
56749         Use them in place of open-coded actions.
56750
56751 2008-07-01  Simon Josefsson  <simon@josefsson.org>
56752
56753         Add self-test for getdate module.
56754         * modules/getdate-tests: New file.
56755         * tests/test-getdate.c: New file.
56756
56757 2008-06-29  Bruno Haible  <bruno@clisp.org>
56758
56759         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
56760         .gitignore.
56761         Reported by Sylvain Beucler <beuc@beuc.net>.
56762
56763 2008-06-29  Bruno Haible  <bruno@clisp.org>
56764
56765         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
56766         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
56767
56768 2008-06-29  Bruno Haible  <bruno@clisp.org>
56769
56770         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
56771         EXTRA_DIST.
56772         Reported by Sylvain Beucler <beuc@beuc.net>.
56773
56774 2008-06-26  Jim Meyering  <meyering@redhat.com>
56775
56776         make several modules depend on the "open" module
56777         This provides slightly increased consistency when opening-for-write
56778         the name of a non-directory spelled with a trailing slash.
56779         * modules/chdir-safer: Likewise.
56780         * modules/chown: Likewise.
56781         * modules/clean-temp: Likewise.
56782         * modules/copy-file: Likewise.
56783         * modules/fchdir: Likewise.
56784         * modules/fcntl-safer: Likewise.
56785         * modules/pipe: Likewise.
56786         * modules/utime: Likewise.
56787         Prompted by Eric Blake and Bruno Haible.
56788
56789 2008-06-24  Andreas Schwab  <schwab@suse.de>
56790
56791         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
56792         literals can be used as initializers for global variables.
56793
56794 2008-06-23  Eric Blake  <ebb9@byu.net>
56795
56796         Make gnulib-cache.m4 easier to diff.
56797         * gnulib-tool (func_import): Allow newlines when reading cached
56798         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
56799
56800 2008-06-23  Bruno Haible  <bruno@clisp.org>
56801
56802         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
56803         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
56804         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
56805         m4/signalblocking.m4.
56806         (gl_PREREQ_SIGACTION): Don't invoke it.
56807         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
56808         gl_PREREQ_SIG_HANDLER_H.
56809         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
56810         Don't check for sigaction here.
56811
56812 2008-06-23  Bruno Haible  <bruno@clisp.org>
56813
56814         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
56815         (install_handlers): Don't set the SA_RESETHAND flag.
56816
56817 2008-06-23  Bruno Haible  <bruno@clisp.org>
56818
56819         * m4/sigaction.m4: Comment fixes.
56820         * lib/signal.in.h: Likewise.
56821
56822 2008-06-23  Eric Blake  <ebb9@byu.net>
56823
56824         Fix typo.
56825         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
56826
56827         Avoid SA_ namespace.
56828         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
56829         Reported by Ralf Wildenhues.
56830
56831         Avoid test failure due to SA_RESTORER.
56832         * tests/test-sigaction.c (SA_MASK): New macro.
56833         (main): Avoid failing due to extension flags being set.
56834         Reported by Jim Meyering.
56835
56836         Revert use of sig-handler.h in sigprocmask.c.
56837         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
56838         it requires the existence of struct sigaction.
56839         * lib/sigprocmask.c (handler_t): Restore typedef.
56840         (rpl_signal, old_handlers): Use local type.
56841
56842 2008-06-22  Bruno Haible  <bruno@clisp.org>
56843
56844         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
56845         conditionally.
56846         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
56847
56848 2008-06-22  Bruno Haible  <bruno@clisp.org>
56849
56850         * doc/posix-functions/siginterrupt.texi: Move note.
56851
56852         * lib/signal.in.h (SA_RESTART): New macro.
56853         * lib/sigaction.c: Update comment.
56854
56855         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
56856
56857         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
56858         (gl_PREREQ_SIGPROCMASK): Invoke it.
56859         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
56860
56861         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
56862
56863         * lib/sigprocmask.c: Update a comment.
56864
56865 2008-06-21  Eric Blake  <ebb9@byu.net>
56866
56867         Use sigaction module rather than signal().
56868         * modules/c-stack (Depends-on): Add sigaction.
56869         * modules/fatal-signal (Depends-on): Likewise.
56870         * modules/nanosleep (Depends-on): Likewise.
56871         * modules/sigprocmask (Files): Add sig-handler.h.
56872         * modules/sigaction (Files): Likewise.
56873         * lib/sig-handler.h (get_handler): New file, suggested by Paul
56874         Eggert.
56875         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
56876         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
56877         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
56878         (init_fatal_signals): Likewise.
56879         * lib/nanosleep.c (rpl_nanosleep): Likewise.
56880         (siginterrupt): Delete fallback.
56881         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
56882         instead.
56883         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
56884         siginterrupt.
56885
56886         New module sigaction, for mingw.
56887         * modules/sigaction: New module...
56888         * modules/sigaction-tests: ...and its test.
56889         * m4/sigaction.m4: New file.
56890         * lib/sigaction.c: Likewise.
56891         * tests/test-sigaction.c: Likewise.
56892         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
56893         * modules/signal (Makefile.am): Likewise.
56894         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
56895         needed.
56896         * doc/posix-headers/signal.texi (signal.h): Mention provided
56897         types.
56898         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
56899         that sigaction is preferable.
56900         * doc/posix-functions/sigaction.texi (sigaction): Mention new
56901         module.
56902         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
56903         sigaction.
56904
56905         Improve robustness of sigprocmask by overriding signal.
56906         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
56907         is in use.
56908         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
56909         (SIGKILL, SIGSTOP): Provide fallbacks.
56910         (rpl_signal): Implement.
56911         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
56912         signal can be called inside handlers.
56913
56914         Fix nanosleep module on mingw.
56915         * modules/nanosleep (Depends-on): Add sys_select.
56916         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
56917
56918         Fix licensing of sigprocmask.
56919         * modules/raise (License): Relicense as LGPL.
56920
56921 2008-06-21  Bruno Haible  <bruno@clisp.org>
56922
56923         * lib/propername.c (proper_name_utf8): Don't use the transliterated
56924         result if it contains question marks.
56925         Reported by Michael Geng <linux@michaelgeng.de>.
56926
56927 2008-06-19  Bruno Haible  <bruno@clisp.org>
56928
56929         Fix CVS-ism.
56930         * doc/gnulib.texi: Include updated-stamp.texi.
56931         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
56932         (updated-stamp.texi): New rule.
56933         (gnulib.info): Depend on it.
56934         * doc/.gitignore: Add updated-stamp.texi.
56935         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
56936
56937 2008-06-19  Bruno Haible  <bruno@clisp.org>
56938
56939         * doc/Makefile (gnulib.info): Update and simplify dependencies.
56940         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
56941
56942 2008-06-19  Eric Blake  <ebb9@byu.net>
56943
56944         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
56945         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
56946         Reported by Stepan Kasal.
56947
56948 2008-06-18  Bruno Haible  <bruno@clisp.org>
56949
56950         * lib/fatal-signal.c (init_fatal_signals): Add comment.
56951         Reported by Eric Blake.
56952
56953 2008-06-18  Eric Blake  <ebb9@byu.net>
56954
56955         Work around cygwin 1.5.25 strsignal bug.
56956         * tests/test-strsignal.c: Allow for const char *.
56957         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
56958
56959 2008-06-18  Simon Josefsson  <simon@josefsson.org>
56960
56961         * users.txt: Update URL to article and add author/date
56962         information.
56963
56964 2008-06-17  Bruno Haible  <bruno@clisp.org>
56965
56966         New macro gl_DISABLE_THREADS.
56967         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
56968         if the user did not pass --enable-threads or --disable-threads option.
56969         (gl_DISABLE_THREADS): New macro.
56970         Reported by Eric Blake <ebb9@byu.net>.
56971
56972 2008-06-17  Bruno Haible  <bruno@clisp.org>
56973
56974         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
56975         when the macro ignores it.
56976         Based on a patch by Eric Blake <ebb9@byu.net>.
56977
56978 2008-06-17  Bruno Haible  <bruno@clisp.org>
56979
56980         * modules/tls (License): Change to LGPLv2+.
56981         Reported by Eric Blake.
56982
56983 2008-06-17  Eric Blake  <ebb9@byu.net>
56984
56985         Simplify c-stack prerequisites.
56986         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
56987         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
56988         no longer requires <ucontext.h> to exist.  Optimize setrlimit
56989         check.
56990         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
56991         <sys/resource.h>.
56992
56993         Move c-stack test into testsuite.
56994         * modules/c-stack-tests: New file.
56995         * lib/c-stack.c [DEBUG]: Move test program...
56996         * tests/test-c-stack.c: ...into this new file.  Skip rather than
56997         fail test if sigaltstack is lacking.
56998         * tests/test-c-stack.sh: New driver file.
56999
57000 2008-06-16  Eric Blake  <ebb9@byu.net>
57001
57002         Use raise module consistently.
57003         * modules/fatal-signal (Depends-on): Add raise.
57004         * modules/sigprocmask (Depends-on): Likewise.
57005         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
57006         * lib/sigprocmask.c (sigprocmask): Likewise.
57007         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
57008         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
57009
57010         Fix compliance bug in sigpending.
57011         * lib/sigprocmask.c (sigpending): Return pending array via
57012         parameter, not return value.
57013
57014 2008-06-14  Eric Blake  <ebb9@byu.net>
57015
57016         Improve obstack-printf test code.
57017         * tests/test-obstack-printf.c (test_function): Fix comment, and
57018         simplify usage of obstack_* in macros.  Add a test for coverage.
57019         Reported by Bruno Haible.
57020
57021 2008-06-14  Bruno Haible  <bruno@clisp.org>
57022
57023         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
57024         array size as a constant, not as a const variable.
57025         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
57026         AC_USE_SYSTEM_EXTENSIONS.
57027         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
57028         Test whether the obstack_printf function actually exists.
57029         * modules/obstack-printf (Depends-on): Add extensions.
57030         (Include): Remove obstack.h.
57031         * modules/obstack-printf-posix (Depends-on): Add extensions.
57032         (Include): Remove obstack.h.
57033
57034 2008-06-13  Eric Blake  <ebb9@byu.net>
57035
57036         Add obstack-printf and obstack-printf-posix modules.
57037         * modules/obstack-printf: New file.
57038         * modules/obstack-printf-posix: Likewise.
57039         * MODULES.html.sh (Misc): Mention them.
57040         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
57041         Likewise.
57042         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
57043         Likewise.
57044         * modules/stdio (Makefile.am): Accomodate new modules.
57045         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
57046         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
57047         Declare.
57048         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
57049         functions.
57050         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
57051         (gl_REPLACE_OBSTACK_PRINTF): New macros
57052         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
57053         * tests/test-obstack-printf.c: New file.
57054         * modules/obstack-printf-tests: Likewise.
57055         * modules/obstack-printf-posix-tests: Likewise.
57056
57057 2008-06-11  Bruno Haible  <bruno@clisp.org>
57058
57059         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
57060         * lib/open.c: Include errno.h.
57061         (open): Fail when attempting to write to a file that has a trailing
57062         slash.
57063         * tests/test-open.c (main): Test against trailing slash bug.
57064         * doc/posix-functions/open.texi: Mention the trailing slash bug.
57065
57066 2008-06-10  Bruno Haible  <bruno@clisp.org>
57067
57068         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
57069         for $? to work inside the trap command, with various /bin/sh-s.
57070         * tests/test-vc-list-files-cvs.sh: Likewise.
57071
57072 2008-06-10  Bruno Haible  <bruno@clisp.org>
57073
57074         * lib/acl-internal.h: Don't include gettext.h here.
57075         * lib/set-mode-acl.c: Include gettext.h here.
57076         * lib/copy-acl.c: Likewise.
57077
57078 2008-06-10  Bruno Haible  <bruno@clisp.org>
57079
57080         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
57081         * lib/wait-process.c (wait_subprocess): Likewise.
57082         * lib/execute.h (execute): Add termsigp argument.
57083         * lib/execute.c (execute): Likewise.
57084         * lib/csharpcomp.c (compile_csharp_using_pnet,
57085         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
57086         * lib/csharpexec.c (execute_csharp_using_pnet,
57087         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
57088         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
57089         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
57090         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
57091         is_jikes_present): Update.
57092         * lib/javaexec.c (execute_java_class): Update.
57093         * lib/javaversion.c (execute_and_read_line): Update.
57094         * NEWS: Document the changes.
57095         Reported by Eric Blake.
57096
57097 2008-06-10  Eric Blake  <ebb9@byu.net>
57098
57099         Add missing include.
57100         * tests/test-strstr.c (includes): Add <signal.h>.
57101         * tests/test-strcasestr.c (includes): Likewise.
57102         * tests/test-memmem.c (includes): Likewise.
57103
57104 2008-06-10  Bruno Haible  <bruno@clisp.org>
57105
57106         * lib/wait-process.c (wait_subprocess): Add an assertion.
57107
57108 2008-06-10  Bruno Haible  <bruno@clisp.org>
57109
57110         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
57111
57112 2008-06-10  Bruno Haible  <bruno@clisp.org>
57113
57114         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
57115         using alarm().
57116         * tests/test-strcasestr.c (main): Likewise.
57117         * tests/test-strstr.c (main): Likewise.
57118
57119 2008-06-09  Bruno Haible  <bruno@clisp.org>
57120
57121         Work around the Solaris 10 ACE ACLs ABI change.
57122         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
57123         declare if ACL_NO_TRIVIAL is present.
57124         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
57125         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
57126         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
57127         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
57128         define if ACL_NO_TRIVIAL is present.
57129         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
57130         and use the current ABI.
57131         (file_has_acl): Use same #if condition as elsewhere.
57132         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
57133         in use, and use the current ABI.
57134         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
57135         Reported by Jim Meyering.
57136
57137 2008-06-09  Eric Blake  <ebb9@byu.net>
57138
57139         Work around environments that (stupidly) ignore SIGALRM.
57140         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
57141         before using alarm().
57142         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
57143         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
57144         Reported by Ian Beckwith <ianb@erislabs.net>.
57145
57146         Produce autobuild blurb earlier in log.
57147         * modules/autobuild (configure.ac-early): Move AB_INIT here.
57148
57149 2008-06-09  Jim Meyering  <meyering@redhat.com>
57150         and OndÅ™ej Vašík  <ovasik@redhat.com>
57151
57152         utimens.c: correct kernel bug work-around
57153         OndÅ™ej Vašík found that the invalid return value of 280 indicates
57154         failure, not success, and the kernel bug we're trying to work
57155         around affects not just the utimensat call, but also the fallback
57156         futimens call.
57157         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
57158         not success.
57159         [HAVE_FUTIMENS]: Use the same work-around, here.
57160
57161 2008-06-09  Jim Meyering  <meyering@redhat.com>
57162
57163         add more guards around definition of ACE_-related code
57164         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
57165         ALLOW and ACE_OWNER are also defined.
57166
57167 2008-06-08  Bruno Haible  <bruno@clisp.org>
57168
57169         * lib/acl-internal.h: Add me as co-author.
57170         * lib/file-has-acl.c: Likewise.
57171         * lib/set-mode-acl.c: Likewise.
57172         * lib/copy-acl.c: Likewise.
57173
57174 2008-06-08  Bruno Haible  <bruno@clisp.org>
57175
57176         Add support for AIX ACLs.
57177         * lib/acl-internal.h (acl_nontrivial): New declaration.
57178         * lib/file-has-acl.c (acl_nontrivial): New function.
57179         (file_has_acl): Add implementation using AIX 4 ACL API.
57180         * lib/set-mode-acl.c (qset_acl): Likewise.
57181         * lib/copy-acl.c (qcopy_acl): Likewise.
57182
57183 2008-06-08  Bruno Haible  <bruno@clisp.org>
57184
57185         Add support for HP-UX ACLs.
57186         * lib/acl-internal.h (acl_nontrivial): New declaration.
57187         * lib/file-has-acl.c (acl_nontrivial): New function.
57188         (file_has_acl): Add implementation using HP-UX 11 ACL API.
57189         * lib/set-mode-acl.c (qset_acl): Likewise.
57190         * lib/copy-acl.c (qcopy_acl): Likewise.
57191
57192 2008-06-08  Bruno Haible  <bruno@clisp.org>
57193
57194         Add support for Cygwin ACLs.
57195         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
57196         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
57197         the chmod_or_fchmod call.
57198         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
57199
57200 2008-06-08  Bruno Haible  <bruno@clisp.org>
57201
57202         Fix bug with setuid modes in Solaris 10+ code.
57203         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
57204         succeeded, when the mode contains some special bits.
57205
57206 2008-06-08  Bruno Haible  <bruno@clisp.org>
57207
57208         Add support for Solaris 7..10 ACLs.
57209         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
57210         declarations.
57211         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
57212         functions.
57213         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
57214         * lib/set-mode-acl.c (qset_acl): Likewise.
57215         * lib/copy-acl.c (qcopy_acl): Likewise.
57216
57217 2008-06-08  Bruno Haible  <bruno@clisp.org>
57218
57219         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
57220         declaration.
57221         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
57222         (acl_access_nontrivial): Remove MacOS X case.
57223         (file_has_acl): Use acl_extended_nontrivial.
57224         * lib/copy-acl.c (qcopy_acl): Likewise.
57225
57226 2008-06-08  Bruno Haible  <bruno@clisp.org>
57227
57228         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
57229
57230 2008-06-08  Jim Meyering  <meyering@redhat.com>
57231
57232         * modules/acl (Maintainer): Add Bruno Haible.
57233
57234 2008-06-07  Bruno Haible  <bruno@clisp.org>
57235
57236         Improve support for Tru64 ACLs.
57237         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
57238         ACL on OSF/1.
57239
57240 2008-06-07  Bruno Haible  <bruno@clisp.org>
57241
57242         Add support for MacOS X ACLs.
57243         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
57244         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
57245         * lib/set-mode-acl.c (qset_acl): Likewise.
57246         * lib/copy-acl.c (qcopy_acl): Likewise.
57247
57248 2008-06-07  Bruno Haible  <bruno@clisp.org>
57249
57250         Fix memory leak introduced on 2008-05-22.
57251         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
57252         use.
57253
57254 2008-06-07  Bruno Haible  <bruno@clisp.org>
57255
57256         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
57257         to construct an empty ACL.
57258
57259 2008-06-07  Bruno Haible  <bruno@clisp.org>
57260
57261         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
57262         precisely.
57263         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
57264
57265 2008-06-07  Bruno Haible  <bruno@clisp.org>
57266
57267         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
57268         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
57269
57270 2008-06-07  Bruno Haible  <bruno@clisp.org>
57271
57272         * doc/posix-functions/_setjmp.texi: Explain the use of this function
57273         regardless of POSIX.
57274         * doc/posix-functions/_longjmp.texi: Likewise.
57275         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
57276         SystemV platform in this case.
57277
57278 2008-06-06  Eric Blake  <ebb9@byu.net>
57279
57280         Document abort() bugs.
57281         * doc/posix-functions/abort.texi (abort): Mention anomalies.
57282
57283         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
57284         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
57285         sigsetjmp.
57286         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
57287         siglongjmp, but only as a macro.
57288         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
57289         is obsolete.
57290         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
57291
57292         Tweak documentation to cover cygwin argz bugs.
57293         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
57294         argz bug fix; no code change needed since no cygwin releases
57295         occurred between the last fix and the bug being tested.
57296         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
57297         module and recently fixed cygwin bugs.
57298         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
57299         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
57300         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
57301         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
57302         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
57303         Likewise.
57304         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
57305         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
57306         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
57307         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
57308         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
57309         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
57310         Likewise.
57311
57312         Avoid gcc warning on cygwin.
57313         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
57314         !ACL_NO_TRIVIAL]: Avoid unused variable.
57315
57316 2008-06-05  Eric Blake  <ebb9@byu.net>
57317
57318         Be tolerant of UNKNOWN version in gnulib-tool test dir.
57319         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
57320         git-version-gen fails to come up with a version.
57321         Reported by Simon Josefsson.
57322
57323 2008-06-05  Jim Meyering  <meyering@redhat.com>
57324             Paul Eggert  <eggert@cs.ucla.edu>
57325
57326         utimens.c: work around a probable Linux kernel bug
57327         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
57328         appears to be a kernel bug that causes utimensat to return 280
57329         instead of 0, indicating success.
57330
57331 2008-06-04  Bruno Haible  <bruno@clisp.org>
57332
57333         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
57334         2008-06-01 commit.
57335
57336 2008-06-04  Bruno Haible  <bruno@clisp.org>
57337
57338         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
57339         * lib/file-has-acl.c (acl_access_nontrivial): New function.
57340         (file_has_acl): Use it. Save errno afterwards.
57341         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
57342
57343 2008-06-03  Bruno Haible  <bruno@clisp.org>
57344
57345         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
57346         draft code. Simplify #ifs.
57347         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
57348         Put Solaris code after POSIX-draft code. Fix comments regarding
57349         Solaris 10, HP-UX. Mention Cygwin.
57350         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
57351
57352 2008-06-03  Eric Blake  <ebb9@byu.net>
57353
57354         Provide fallback for older kernels.
57355         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
57356         Provide runtime fallback if kernel lacks support.
57357         Reported by Mike Frysinger.
57358
57359 2008-06-02  Bruno Haible  <bruno@clisp.org>
57360
57361         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
57362         it exists.
57363
57364 2008-06-02  Bruno Haible  <bruno@clisp.org>
57365
57366         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
57367         * lib/copy-acl.c (qcopy_acl): Update comment.
57368
57369 2008-06-02  Bruno Haible  <bruno@clisp.org>
57370
57371         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
57372         like ACL APIs.
57373
57374 2008-06-02  Bruno Haible  <bruno@clisp.org>
57375
57376         * tests/test-file-has-acl.sh: Use different code for Cygwin.
57377         * tests/test-set-mode-acl.sh: Likewise.
57378         * tests/test-copy-acl.sh: Likewise.
57379         * tests/test-copy-file.sh: Likewise.
57380
57381 2008-06-02  Bruno Haible  <bruno@clisp.org>
57382
57383         * tests/test-file-has-acl.sh: Remove unused code.
57384
57385 2008-06-01  Bruno Haible  <bruno@clisp.org>
57386
57387         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
57388         (copy_acl): Just a wrapper around qcopy_acl that emits the error
57389         messages.
57390         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
57391
57392 2008-06-01  Bruno Haible  <bruno@clisp.org>
57393
57394         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
57395         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
57396         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
57397         APIs.
57398         * modules/acl-tests (configure.ac): Remove tests now contained in
57399         m4/acl.m4.
57400
57401 2008-06-02  Jim Meyering  <meyering@redhat.com>
57402
57403         announce-gen: use a better key-server host name
57404         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
57405         it may be more consistently reliable.  Suggested by Werner Koch
57406         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
57407
57408 2008-06-01  Bruno Haible  <bruno@clisp.org>
57409
57410         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
57411         Reported by Voroskoi Andras <voroskoi@gmail.com>.
57412
57413 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
57414
57415         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
57416
57417 2008-06-01  Bruno Haible  <bruno@clisp.org>
57418
57419         New ACL tests.
57420         * tests/test-file-has-acl.sh: New file.
57421         * tests/test-file-has-acl.c: New file.
57422         * tests/test-set-mode-acl.sh: New file.
57423         * tests/test-set-mode-acl.c: New file.
57424         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
57425         * tests/test-copy-acl.c: New file.
57426         * modules/acl-tests: New file, based on modules/copy-file-tests.
57427         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
57428         (Depends-on): Add acl-tests.
57429         (configure.ac): Remove checks.
57430         (Makefile.am): Don't create test-sameacls program here any more.
57431
57432 2008-06-01  Bruno Haible  <bruno@clisp.org>
57433
57434         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
57435         * tests/test-sameacls.c: Include progname.h.
57436         (main): Invoke set_program_name. Portability fixes for MacOS X,
57437         Solaris, HP-UX.
57438
57439 2008-06-01  Bruno Haible  <bruno@clisp.org>
57440
57441         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
57442         function.
57443         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
57444
57445 2008-06-01  Bruno Haible  <bruno@clisp.org>
57446
57447         * modules/rpmatch (Depends-on): Add strdup.
57448
57449 2008-06-01  Bruno Haible  <bruno@clisp.org>
57450
57451         * lib/pipe.c: Include unistd-safer.h.
57452         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
57453         * modules/pipe (Depends-on): Add unistd-safer.
57454
57455 2008-05-30  Simon Josefsson  <simon@josefsson.org>
57456
57457         * modules/autobuild (configure.ac): Call AB_INIT.
57458
57459 2008-05-30  Simon Josefsson  <simon@josefsson.org>
57460
57461         * tests/test-getaddrinfo.c: Don't print debug messages by default.
57462         Suggested by Bruno Haible <bruno@clisp.org>.
57463
57464 2008-05-30  Simon Josefsson  <simon@josefsson.org>
57465
57466         * tests/test-base64.c: Cast size_t to unsigned long when invoking
57467         printf.  Use %lu instead of %d.  Reported by Bruno Haible
57468         <bruno@clisp.org>.
57469
57470 2008-05-29  Eric Blake  <ebb9@byu.net>
57471
57472         Prefer new POSIX 200x interfaces over futimesat.
57473         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
57474         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
57475         when available.
57476         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
57477
57478 2008-05-28  Bruno Haible  <bruno@clisp.org>
57479
57480         * modules/stpcpy (License): Change to LGPLv2+.
57481         Requested by David Lutterkort <dlutter@redhat.com>.
57482
57483 2008-05-27  Bruno Haible  <bruno@clisp.org>
57484
57485         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
57486         current mingw.
57487         Reported by Jose E. Marchesi <jemarch@gnu.org>.
57488
57489 2008-05-27  Bruno Haible  <bruno@clisp.org>
57490
57491         * modules/iconv_open (Link): New section, from module 'iconv'.
57492         * modules/striconv (Link): Likewise.
57493         * modules/striconveh (Link): Likewise.
57494         * modules/xstriconv (Link): Likewise.
57495         * modules/unicodeio (Link): Likewise.
57496         * modules/propername (Link): Likewise.
57497         Reported by Jim Meyering.
57498
57499 2008-05-26  Jim Meyering  <meyering@redhat.com>
57500
57501         sha256: do not artificially restrict buffer length to be < 2^32
57502         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
57503         uint32_t to size_t.
57504         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
57505         to match.
57506
57507         avoid unaligned access errors, e.g., on sparc
57508         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
57509         direct access through a possibly-unaligned uint64* pointer.
57510         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
57511         direct access through a possibly-unaligned uint32* pointer.
57512         Prompted by this patch from Tom "spot" Callaway:
57513         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
57514
57515         sha512.c: fix typo in comment
57516         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
57517
57518 2008-05-25  Bruno Haible  <bruno@clisp.org>
57519
57520         * lib/set-mode-acl.c: Renamed from lib/acl.c.
57521         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
57522         (Makefile.am): Update lib_SOURCES.
57523
57524 2008-05-25  Bruno Haible  <bruno@clisp.org>
57525
57526         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
57527
57528 2008-05-25  Jim Meyering  <meyering@redhat.com>
57529
57530         useless-if-before-free: freed expr may have white-space differences
57531         * build-aux/useless-if-before-free: Recognize cases in which the
57532         freed expression differs from the tested one in embedded white
57533         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
57534         $1 was used, so we can't make any regexp shy.  Improved tests now
57535         detect this.
57536
57537         useless-if-before-free: accept white space in the expression.
57538         * build-aux/useless-if-before-free: For now, any white space
57539         in the expression must be identical in the free argument.
57540
57541         useless-if-before-free: efficiency tweak
57542         * build-aux/useless-if-before-free: Make the expression-matching
57543         regexp "shy".
57544         Make the *outer* regexp shy, not the expr-matching one.
57545
57546         update code-in-comment to accept cast of free arg
57547         * build-aux/useless-if-before-free: Update regexp.
57548
57549 2008-05-25  Bruno Haible  <bruno@clisp.org>
57550
57551         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
57552         * modules/copy-file-tests (Files, Makefile.am): Update.
57553         * tests/test-copy-file.c (func_test_copy): Update.
57554
57555 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
57556
57557         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
57558
57559 2008-05-23  Bruno Haible  <bruno@clisp.org>
57560
57561         Improve support for ACLs on OSF/1.
57562         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
57563         Remove fallback for unknown flavors of ACLs.
57564
57565 2008-05-22  Bruno Haible  <bruno@clisp.org>
57566
57567         Add support for ACLs on OSF/1.
57568         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
57569         replacements.
57570         (acl_free_text): New macro fallback.
57571         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
57572         acl_free.
57573         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
57574         acl_free_text function. Require AC_C_INLINE.
57575
57576 2008-05-22  Bruno Haible  <bruno@clisp.org>
57577
57578         Make copy_acl work on MacOS X 10.5.
57579         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
57580         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
57581         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
57582         If MODE_INSIDE_ACL, don't assume that every system has the same text
57583         representation for ACLs as FreeBSD.
57584         * lib/copy-acl.c (copy_acl): Add support for platforms with
57585         !MODE_INSIDE_ACL.
57586         * lib/file-has-acl.c (file_has_acl): Likewise.
57587         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
57588         FreeBSD, MacOS X, or IRIX, respectively.
57589
57590 2008-05-22  Bruno Haible  <bruno@clisp.org>
57591
57592         * lib/acl.h: Don't include <sys/acl.h>.
57593         (GETACLCNT): Move fallback to lib/acl-internal.h.
57594         * lib/acl-internal.h: Include <sys/acl.h> here.
57595         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
57596
57597 2008-05-22  Bruno Haible  <bruno@clisp.org>
57598
57599         Split off copy_acl function to separate file.
57600         * lib/copy-acl.c: New file, extracted from lib/acl.c.
57601         * lib/acl.c (copy_acl): Moved function to separate file.
57602         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
57603         * modules/acl (Files): Add lib/copy-acl.c.
57604         (Makefiles.am): Augment lib_SOURCES.
57605
57606 2008-05-22  Bruno Haible  <bruno@clisp.org>
57607
57608         * modules/copy-file-tests: New file.
57609         * tests/test-copy-file.sh: New file.
57610         * tests/test-copy-file.c: New file.
57611         * tests/test-copy-file-sameacls.c: New file.
57612
57613 2008-05-22  Eric Blake  <ebb9@byu.net>
57614
57615         Avoid gcc warning.
57616         * tests/test-memcmp.c (main): Pass NULL indirectly.
57617
57618 2008-05-21  Bruno Haible  <bruno@clisp.org>
57619
57620         Add reference doc about ACLs.
57621         * doc/acl-resources.txt: New file.
57622         * doc/acl-cygwin.txt: New file.
57623
57624 2008-05-21  Bruno Haible  <bruno@clisp.org>
57625
57626         Avoid one more warning from gcc.
57627         * lib/vasnprintf.c (IF_LINT): Update comments.
57628         (VASNPRINTF): Use it also for the 'prefix' array initializer.
57629
57630 2008-05-21  Jim Meyering  <meyering@redhat.com>
57631
57632         avoid a warning from gcc
57633         * lib/vasnprintf.c (IF_LINT): Define.
57634         (scale10_round_decimal_long_double):
57635         Use it to avoid a "may be used uninitialized" warning.
57636         (scale10_round_decimal_double): Likewise.
57637
57638 2008-05-21  Simon Josefsson  <simon@josefsson.org>
57639
57640         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
57641         declared.
57642
57643 2008-05-20  Bruno Haible  <bruno@clisp.org>
57644
57645         * tests/test-memcmp.c (main): Test also the sign of the result. Test
57646         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
57647
57648 2008-05-20  Simon Josefsson  <simon@josefsson.org>
57649
57650         * modules/memcmp-tests: New file.
57651         * tests/test-memcmp.c: New file.
57652
57653 2008-05-19  Bruno Haible  <bruno@clisp.org>
57654
57655         * modules/propername (Notice, configure.ac): Put quoted "..." into
57656         --keyword option.
57657         * lib/propername.h: Update comments accordingly.
57658         Reported by Eric Blake.
57659
57660 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
57661
57662         * modules/getpass-gnu (Depends-on): Add fseeko.
57663
57664 2008-05-19  Simon Josefsson  <simon@josefsson.org>
57665
57666         * modules/base64-tests: New file.
57667
57668 2008-05-19  Bo Borgerson <gigabo@gmail.com>
57669
57670         * lib/base64.c (base64_decode_ctx): If a decode context structure
57671         was passed in use it to ignore newlines.  If a context structure
57672         was _not_ passed in, continue to treat newlines as garbage (this
57673         is the historical behavior).  Formerly base64_decode.
57674         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
57675         takes a decode context structure.
57676         * lib/base64.h (base64_decode): Macro for four-argument calls.
57677         (base64_decode_alloc): Likewise.
57678         * lib/base64.c (base64_decode_ctx): If a decode context structure
57679         was passed in use it to ignore newlines.  If a context structure
57680         was _not_ passed in, continue to treat newlines as garbage (this
57681         is the historical behavior).  Formerly base64_decode.
57682         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
57683         takes a decode context structure.
57684         * lib/base64.h (base64_decode): Macro for four-argument calls.
57685         (base64_decode_alloc): Likewise.
57686
57687 2008-05-19  Jim Meyering  <meyering@redhat.com>
57688
57689         avoid a warning from gcc
57690         * lib/trim.c (IF_LINT): Define.
57691         (trim2): Use it to avoid a "may be used uninitialized" warning.
57692
57693         Fix doc typo.
57694         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
57695
57696 2008-05-19  Bruno Haible  <bruno@clisp.org>
57697
57698         * doc/glibc-functions/getpass.texi: Document limits of other
57699         implementations.
57700
57701 2008-05-19  Simon Josefsson  <simon@josefsson.org>
57702             Bruno Haible <bruno@clisp.org>
57703
57704         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
57705
57706 2008-05-18  Bruno Haible  <bruno@clisp.org>
57707
57708         * modules/propername: New file, from GNU gettext.
57709         * lib/propername.h: New file, from GNU gettext.
57710         * lib/propername.c: New file, from GNU gettext.
57711         * MODULES.html.sh (Internationalization functions): Add propername.
57712
57713 2008-05-16  Jim Meyering  <meyering@redhat.com>
57714             Bruno Haible  <bruno@clisp.org>
57715
57716         Avoid some warnings from "gcc -Wshadow".
57717         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
57718
57719 2008-05-15  Eric Blake  <ebb9@byu.net>
57720
57721         Extend previous patch to cygwin 1.7.0.
57722         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
57723         fast implementation in cygwin >= 1.7.0.
57724         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
57725         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
57726
57727 2008-05-15  Bruno Haible  <bruno@clisp.org>
57728
57729         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
57730         implementation in glibc >= 2.9.
57731         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
57732         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
57733
57734 2008-05-15  Bruno Haible  <bruno@clisp.org>
57735
57736         * MODULES.html.sh (Internationalization functions): Remove linebreak.
57737         (Unicode string functions): Add unilbrk/*.
57738         Reported by Karl Berry.
57739
57740 2008-05-15  Eric Blake  <ebb9@byu.net>
57741
57742         Fix violation of <stdbool.h> replacement in regex.
57743         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
57744         * lib/regexec.c (re_search_internal): Likewise.
57745         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
57746
57747 2008-05-15  Jim Meyering  <meyering@redhat.com>
57748
57749         avoid distracting test output when git or cvs is not found
57750         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
57751         * tests/test-vc-list-files-git.sh: Likewise.
57752
57753 2008-05-15  Eric Blake  <ebb9@byu.net>
57754
57755         Glibc finally accepted the memmem speedup code, bugzilla #5514.
57756         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
57757         glibc version.
57758         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
57759         * doc/posix-functions/strstr.texi (strstr): Likewise.
57760         * lib/str-two-way.h (MAX): Sychronize with glibc.
57761
57762 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
57763
57764         * lib/regcomp.c (optimize_utf8): Add a note on why we test
57765         opr.ctx_type.
57766         (calc_first): Initialize constraint field.
57767         (duplicate_node_closure): Use it instead of special casing ANCHORS.
57768         Fix grammar.
57769         (duplicate_node): Merge constraint field for all node types.
57770         (calc_eclosure_iter): Look at constraint field for all node types.
57771         * lib/regex_internal.c (create_cd_newstate): Don't look at
57772         opr.ctx_type.
57773
57774 2008-05-14  Bruno Haible  <bruno@clisp.org>
57775
57776         Help GCC to do better code generation.
57777         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
57778         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
57779         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
57780         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
57781         Declare with attribute 'malloc' if supported.
57782
57783 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
57784
57785         use "echo STR|wc -c" rather than unportable "expr length STR"
57786         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
57787         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
57788
57789 2008-05-14  Jim Meyering  <meyering@redhat.com>
57790
57791         use dd ibs=$n count=1 ... rather than less-portable head -c$n
57792         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
57793         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
57794         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
57795         via Collin Lasse.
57796
57797 2008-05-14  Eric Blake  <ebb9@byu.net>
57798
57799         Avoid quadratic growth in gl_LIBSOURCES.
57800         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
57801         Suggested by Bruno Haible.
57802
57803         Test xmemdup0.
57804         * modules/xmemdup0-tests: New file.
57805         * tests/test-xmemdup0.c: Likewise.
57806
57807 2008-05-13  Eric Blake  <ebb9@byu.net>
57808
57809         Split xmemdup0 into its own module.
57810         * modules/xmemdup0: New file.
57811         * lib/xmemdup0.h: Likewise.
57812         * lib/xmemdup0.c: Likewise.
57813         * MODULES.html.sh (Memory management functions): Add xmemdup0.
57814         * lib/xalloc.h (xmemdup0): Remove.
57815         * lib/xmalloc.c (xmemdup0): Likewise.
57816
57817 2008-05-13  Eric Blake  <ebb9@byu.net>
57818             Bruno Haible  <bruno@clisp.org>
57819
57820         Reduce number of forks required during autoconf.
57821         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
57822         and gl_LIBSOURCES_DIR.
57823         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
57824         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
57825         m4_syscmd per file.
57826         <m4_foreach_w>: Move...
57827         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
57828
57829 2008-05-13  Eric Blake  <ebb9@byu.net>
57830
57831         * gnulib-tool: Fix various comment typos.
57832
57833 2008-05-12  Bruno Haible  <bruno@clisp.org>
57834
57835         Tailor the linebreaking algorithm.
57836         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
57837
57838 2008-05-12  Bruno Haible  <bruno@clisp.org>
57839
57840         Update to Unicode 5.0.0.
57841         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
57842         LBP_JV, LBP_JT. Redistribute values.
57843         (unilbrk_table): Change size.
57844         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
57845         Unicode TR#14 rev. 22.
57846         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
57847         LBP_JV, LBP_JT. Redistribute values.
57848         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
57849         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
57850         Update.
57851         * lib/unilbrk/lbrkprop1.h: Regenerated.
57852         * lib/unilbrk/lbrkprop2.h: Regenerated.
57853         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
57854         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
57855         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
57856         Likewise.
57857         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
57858         Likewise.
57859         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
57860         result.
57861         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
57862         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
57863         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
57864         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
57865         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
57866         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
57867
57868 2008-05-11  Bruno Haible  <bruno@clisp.org>
57869
57870         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
57871
57872 2008-05-11  Bruno Haible  <bruno@clisp.org>
57873
57874         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
57875         * modules/unilbrk/gen-lbrk: New file.
57876
57877 2008-05-11  Bruno Haible  <bruno@clisp.org>
57878
57879         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
57880         * m4/sha512.m4 (gl_SHA512): Likewise.
57881
57882 2008-05-11  Jim Meyering  <meyering@redhat.com>
57883
57884         New modules: crypto/sha256, crypto/sha512 (from coreutils)
57885         * modules/crypto/sha256: New file.
57886         * modules/crypto/sha512: Likewise.
57887         * lib/sha256.c: Likewise.
57888         * lib/sha256.h: Likewise.
57889         * lib/sha512.c: Likewise.
57890         * lib/sha512.h: Likewise.
57891         * lib/u64.h: Likewise.
57892         * m4/sha256.m4: Likewise.
57893         * m4/sha512.m4: Likewise.
57894         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
57895
57896 2008-05-10  Bruno Haible  <bruno@clisp.org>
57897
57898         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
57899         (Input/Output <stdio.h>): Add xprintf.
57900         (Signal handling <signal.h>): Add strsignal.
57901         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
57902         (Core language properties): Add func.
57903         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
57904         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
57905         strings.
57906         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
57907         (Input/output): New section.
57908         (File system functions): Add openat-die, stat-macros.
57909         (Networking functions): Add sockets.
57910         (Unicode string functions): Add unictype/*.
57911         (Support for building libraries and executables): Add gperf.
57912         (Support for building documentation): Add agpl-3.0.
57913         (Misc): Add nocrash.
57914
57915 2008-05-10  Bruno Haible  <bruno@clisp.org>
57916
57917         * modules/unictype/gen-ctype: New file.
57918
57919 2008-05-10  Jim Meyering  <meyering@redhat.com>
57920
57921         Make chdir-safer.c more efficient on a system with no symlinks.
57922         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
57923         also if ELOOP is zero.  Suggested by Bruno Haible.
57924
57925         Make chdir-safer.c slightly safer.
57926         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
57927         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
57928
57929         Avoid compile failure on systems without ELOOP (like mingw).
57930         * lib/chdir-safer.c (ELOOP): Define if not already defined.
57931         Reported by Bruno Haible.
57932
57933 2008-05-10  Bruno Haible  <bruno@clisp.org>
57934
57935         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
57936         (is_utf8_encoding): Use a case-insensitive comparison.
57937         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
57938         streq.
57939
57940 2008-05-10  Bruno Haible  <bruno@clisp.org>
57941
57942         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
57943         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
57944         * lib/unilbrk/ulc-common.h (iconv_string_length,
57945         iconv_string_keeping_offsets): Remove declarations.
57946         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
57947         Don't include <iconv.h>, streq.h, xsize.h.
57948         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
57949         conversion.
57950         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
57951         <iconv.h>, streq.h, xsize.h.
57952         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
57953         conversion.
57954         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
57955         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
57956         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
57957         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
57958
57959 2008-05-10  Bruno Haible  <bruno@clisp.org>
57960
57961         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
57962         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
57963
57964         * modules/unilbrk/u32-width-linebreaks-tests: New file.
57965         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
57966
57967         * modules/unilbrk/u16-width-linebreaks-tests: New file.
57968         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
57969
57970         * modules/unilbrk/u8-width-linebreaks-tests: New file.
57971         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
57972
57973         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
57974         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
57975
57976         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
57977         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
57978
57979         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
57980         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
57981
57982         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
57983         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
57984
57985 2008-05-10  Bruno Haible  <bruno@clisp.org>
57986
57987         Split up 'linebreak' module.
57988         * lib/unilbrk.h: New file, based on lib/linebreak.h.
57989         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
57990         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
57991         modifications.
57992         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
57993         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
57994         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
57995         lib/linebreak.c.
57996         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
57997         lib/linebreak.c.
57998         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
57999         lib/linebreak.c.
58000         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
58001         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
58002         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
58003         lib/linebreak.c.
58004         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
58005         lib/linebreak.c.
58006         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
58007         lib/linebreak.c.
58008         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
58009         lib/linebreak.c.
58010         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
58011         lib/linebreak.c.
58012         * modules/unilbrk/base: New file.
58013         * modules/unilbrk/tables: New file.
58014         * modules/unilbrk/u8-possible-linebreaks: New file.
58015         * modules/unilbrk/u16-possible-linebreaks: New file.
58016         * modules/unilbrk/u32-possible-linebreaks: New file.
58017         * modules/unilbrk/ulc-common: New file.
58018         * modules/unilbrk/ulc-possible-linebreaks: New file.
58019         * modules/unilbrk/u8-width-linebreaks: New file.
58020         * modules/unilbrk/u16-width-linebreaks: New file.
58021         * modules/unilbrk/u32-width-linebreaks: New file.
58022         * modules/unilbrk/ulc-width-linebreaks: New file.
58023         * lib/linebreak.h: Remove file.
58024         * lib/linebreak.c: Remove file.
58025         * m4/linebreak.m4: Remove file.
58026         * modules/linebreak: Remove file.
58027         * NEWS: Mention the changes.
58028
58029 2008-05-09  Eric Blake  <ebb9@byu.net>
58030
58031         Add xmemdup0.
58032         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
58033         implementation.
58034         * lib/xmalloc.c (xmemdup0): New C implementation.
58035
58036 2008-05-08  Bruno Haible  <bruno@clisp.org>
58037
58038         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
58039
58040 2008-05-07  Eric Blake  <ebb9@byu.net>
58041
58042         Support cross-compilation of <wctype.h>.
58043         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
58044         AC_CACHE_CHECK.
58045
58046 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
58047
58048         * build-aux/vc-list-files: Add support for bzr.
58049
58050 2008-05-03  Jim Meyering  <meyering@redhat.com>
58051
58052         avoid failed assertion with tight malloc
58053         * tests/test-getndelim2.c: Correct an off-by-one assertion.
58054
58055 2008-05-03  Simon Josefsson  <simon@josefsson.org>
58056
58057         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
58058         are needed from arpa/inet.h.
58059         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
58060         Reported by Bruno Haible.
58061
58062 2008-05-02  Jim Meyering  <meyering@redhat.com>
58063
58064         avoid compilation error on FreeBSD 6
58065         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
58066
58067 2008-05-01  Jim Meyering  <meyering@redhat.com>
58068
58069         useless-if-before-free: correct --help's exit status description
58070         * build-aux/useless-if-before-free (usage): Like grep, exit 0
58071         for one or more matches, etc.  Reported by Bruno Haible.
58072
58073         vc-list-files: make the stand-alone gnulib test work
58074         * modules/vc-list-files-tests (configure.ac):
58075         Define and AC_SUBST abs_aux_dir.
58076         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
58077         $(abs_top_srcdir) to each script and having each of them
58078         duplicate the work of setting PATH, set PATH here, using
58079         the new variable, abs_aux_dir instead.
58080         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
58081         * tests/test-vc-list-files-git.sh: Likewise.
58082         Reported by Bruno Haible.
58083
58084 2008-05-01  Bruno Haible  <bruno@clisp.org>
58085
58086         * lib/getndelim2.c (getndelim2): Fix newsize computation during
58087         reallocation. Rename 'done' to 'found_delimiter'.
58088
58089 2008-05-01  Jim Meyering  <meyering@redhat.com>
58090
58091         vc-list-files: accommodate /bin/sh like the one from Solaris 10
58092         * build-aux/vc-list-files: Use `...`, not $(...).
58093
58094 2008-04-30  Jim Meyering  <meyering@redhat.com>
58095
58096         add tests for vc-list-files
58097         * modules/vc-list-files-tests: New module.
58098         * tests/test-vc-list-files-cvs.sh: New file.
58099         * tests/test-vc-list-files-git.sh: New file.
58100
58101         avoid a warning from gcc
58102         * lib/getndelim2.c (IF_LINT): Define.
58103         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
58104
58105         vc-list-files: work properly with build-aux/cvsu, too
58106         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
58107         to all cvs-based clauses.
58108
58109         vc-list-files: work properly in the CVS+awk case, too
58110         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
58111
58112         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
58113         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
58114         take more than one file argument, so .  Add quotes, just in case $dir
58115         ever contains a shell meta-character.  Prompted by Soren Hansen in
58116         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
58117
58118 2008-04-29  Eric Blake  <ebb9@byu.net>
58119
58120         Optimize getndelim2 to use block operations when possible.
58121         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
58122         freadseek, and memchr2.
58123         * lib/getndelim2.c (getndelim2): Use them for block reads.
58124
58125 2008-04-29  Bruno Haible  <bruno@clisp.org>
58126
58127         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
58128         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
58129         * modules/inet_ntop (Depends-on): Add extensions.
58130         * modules/inet_pton (Depends-on): Likewise.
58131         Reported by Simon Josefsson.
58132
58133 2008-04-29  Jim Meyering  <meyering@redhat.com>
58134
58135         When the is more than one match in a block, match all of them.
58136         * build-aux/useless-if-before-free: Iterate through each block
58137         until there are no more matches.
58138
58139         Fix broken useless-if-before-free script.
58140         * build-aux/useless-if-before-free: Fix typo: missing "?" after
58141         the expression to match cast of argument to free-like function.
58142
58143 2008-04-29  Eric Blake  <ebb9@byu.net>
58144
58145         Use new header.
58146         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
58147
58148 2008-04-29  Jim Meyering  <meyering@redhat.com>
58149
58150         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
58151         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
58152         by gnulib to exist and to declare e.g., inet_ntop.
58153         Don't include "inet_ntop.h", now removed.
58154
58155         * m4/arpa_inet_h.m4: Remove trailing blanks.
58156
58157 2008-04-29  Eric Blake  <ebb9@byu.net>
58158
58159         Silence valgrind on safe reads beyond potential array bounds.
58160         * lib/rawmemchr.valgrind: New file.
58161         * lib/strchrnul.valgrind: Likewise.
58162         * modules/rawmemchr (Files): Distribute new file.
58163         * modules/strchrnul (Files): Likewise.
58164         Suggested by Bruno Haible.
58165
58166 2008-04-29  Bruno Haible  <bruno@clisp.org>
58167
58168         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
58169         (inet_ntop, inet_pton): Change portability warning's wording.
58170         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
58171         Invoke gl_CHECK_NEXT_HEADERS.
58172         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
58173         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
58174         set ARPA_INET_H.
58175         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
58176         * modules/arpa_inet (Description): No longer only for systems that
58177         lack it.
58178         (Depends-on): Add include_next.
58179         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
58180         HAVE_ARPA_INET_H.
58181
58182 2008-04-29  Jim Meyering  <meyering@redhat.com>
58183
58184         * modules/mkdir (License): Re-license as LGPLv2+.
58185
58186 2008-04-29  Bruno Haible  <bruno@clisp.org>
58187
58188         * modules/rawmemchr (Maintainer): Set to Eric.
58189         * modules/strchrnul (Maintainer): Likewise.
58190
58191 2008-04-29  Simon Josefsson  <simon@josefsson.org>
58192
58193         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
58194         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
58195
58196         * modules/arpa_inet (arpa/inet.h): Use them.
58197
58198 2008-04-28  Eric Blake  <ebb9@byu.net>
58199
58200         Test getndelim2.
58201         * modules/getndelim2-tests: New file.
58202         * tests/test-getndelim2.c: Likewise.
58203         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
58204         stream.
58205         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
58206
58207         * MODULES.html.sh: Document new module.
58208
58209 2008-04-20  Bruno Haible  <bruno@clisp.org>
58210
58211         * lib/c-stack.c (die): Use raise.
58212         * modules/c-stack (Depends-on): Add raise.
58213
58214 2008-04-28  Bruno Haible  <bruno@clisp.org>
58215
58216         Expect rpmatch to be declared.
58217         * lib/yesno.c (rpmatch): Remove declaration.
58218
58219         Declare rpmatch.
58220         * lib/stdlib.in.h (rpmatch): New declaration.
58221         * lib/rpmatch.c: Include <stdlib.h> first.
58222         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
58223         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
58224         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
58225         HAVE_RPMATCH.
58226         * modules/rpmatch (Depends-on): Add stdlib, extensions.
58227         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
58228         (Include): Set to <stdlib.h>.
58229         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
58230         HAVE_RPMATCH.
58231         * NEWS: Document the change.
58232
58233 2008-04-28  Bruno Haible  <bruno@clisp.org>
58234
58235         Change rpmatch to use nl_langinfo when appropriate.
58236         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
58237         (N_): New macro.
58238         (localized_pattern): New function/macro.
58239         (try): Remove match, nomatch arguments. Copy the pattern into safe
58240         memory before caching it.
58241         (rpmatch): Use localized_pattern. Add translator comments.
58242         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
58243         Suggested by Eric Blake.
58244         * modules/rpmatch (Depends-on): Add stdbool.
58245
58246 2008-04-28  Eric Blake  <ebb9@byu.net>
58247
58248         Add rawmemchr module, matching glibc.
58249         * modules/string (Makefile.am): New indicator.
58250         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
58251         * lib/string.in.h (rawmemchr): Declare when appropriate.
58252         * modules/rawmemchr: New file.
58253         * m4/rawmemchr.m4: Likewise.
58254         * lib/rawmemchr.c: Likewise.
58255         * modules/rawmemchr-tests: Likewise.
58256         * tests/test-rawmemchr.c: Likewise.
58257         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
58258         module.
58259         * modules/strchrnul (Depends-on): Add rawmemchr.
58260         * lib/strchrnul.c (strchrnul): Optimize a corner case.
58261
58262         Whitespace cleanup.
58263         * tests/test-strchrnul.c: Reindent.
58264         * lib/strchrnul.c: Likewise.
58265
58266         Optimize and test strchrnul.
58267         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
58268         * modules/strchrnul-tests: New file.
58269         * tests/test-strchrnul.c: Likewise.
58270
58271         Remove intprops dependency.
58272         * modules/memchr (Depends-on): Remove intprops.
58273         * modules/memrchr (Depends-on): Likewise.
58274         * modules/memchr2 (Depends-on): Likewise.
58275         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
58276         * lib/memrchr.c (__memrchr): Likewise.
58277         * lib/memrchr2.c (memchr2): Likewise.
58278         Reported by Simon Josefsson.
58279
58280 2008-04-28  Simon Josefsson  <simon@josefsson.org>
58281
58282         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
58283         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
58284
58285 2008-04-28  Simon Josefsson  <simon@josefsson.org>
58286
58287         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
58288
58289         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
58290
58291         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
58292
58293         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
58294         declarations.
58295         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
58296
58297         * m4/inet_pton.m4: Don't check for header files.
58298
58299         * m4/inet_ntop.m4: Don't check for header files.
58300
58301 2008-04-28  Simon Josefsson  <simon@josefsson.org>
58302
58303         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
58304         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
58305         trigger for cygwin).
58306         Reported by Bruno Haible  <bruno@clisp.org>.
58307
58308 2008-04-28  Bruno Haible  <bruno@clisp.org>
58309
58310         * doc/posix-functions/strdup.texi: Mention mingw problem.
58311
58312 2008-04-27  Bruno Haible  <bruno@clisp.org>
58313
58314         * modules/stat-time-tests (Depends-on): Add sleep.
58315         * tests/test-stat-time.c (force_unlink): New function.
58316         (cleanup): Use it.
58317         (test_mtime): Remove the ctime related tests.
58318         (test_ctime): New function, containing the ctime related tests.
58319         (main): Call test_ctime, except on native Windows platforms.
58320
58321 2008-04-27  Bruno Haible  <bruno@clisp.org>
58322
58323         * lib/rpmatch.c (rpmatch): Add some comments.
58324         Reported by James Youngman <jay@gnu.org>.
58325
58326 2008-04-27  Bruno Haible  <bruno@clisp.org>
58327
58328         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
58329         quiet NaNs.
58330
58331 2008-04-27  Bruno Haible  <bruno@clisp.org>
58332
58333         Make test-yesno.sh work on mingw.
58334         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
58335         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
58336         (main): Set stdin to binary mode.
58337         * modules/yesno-tests (Depends-on): Add binary-io.
58338
58339 2008-04-27  Bruno Haible  <bruno@clisp.org>
58340
58341         Fix 'isfinite' on x86, x86_64, ia64 platforms.
58342         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
58343         argument that lie outside the IEEE 854 domain.
58344         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
58345         (gl_ISFINITE): Use it.
58346         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
58347
58348 2008-04-27  Bruno Haible  <bruno@clisp.org>
58349
58350         Allow local renaming in config.h.
58351         * lib/memrchr.c (memrchr): Don't undefine outside libc.
58352
58353 2008-04-27  Bruno Haible  <bruno@clisp.org>
58354
58355         * lib/memchr.c (__memchr): Change type of 'i'.
58356         * lib/memchr2.c (memchr2): Likewise.
58357
58358 2008-04-26  Eric Blake  <ebb9@byu.net>
58359         and Bruno Haible  <bruno@clisp.org>
58360
58361         Optimize and test memrchr.
58362         * modules/memrchr (Depends-on): Add intprops.
58363         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
58364         * modules/memrchr-tests: New file.
58365         * tests/test-memrchr.c: New file.
58366
58367 2008-04-26  Bruno Haible  <bruno@clisp.org>
58368
58369         Add tentative support for DragonFly BSD.
58370         * lib/stdio-impl.h: Add macros for DragonFly BSD.
58371         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
58372         fp.
58373         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
58374         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
58375         * lib/fpurge.c (fpurge): Likewise.
58376         * lib/freadable.c (freaadable): Likewise.
58377         * lib/freadahead.c (freadahead): Likewise.
58378         * lib/freading.c (freading): Likewise.
58379         * lib/freadptr.c (freadptr): Likewise.
58380         * lib/freadseek.c (freadptrinc): Likewise.
58381         * lib/fseeko.c (fseeko): Likewise.
58382         * lib/fseterr.c (fseterr): Likewise.
58383         * lib/fwritable.c (fwritable): Likewise.
58384         * lib/fwriting.c (fwriting): Likewise.
58385
58386 2008-04-26  Bruno Haible  <bruno@clisp.org>
58387
58388         * lib/stdio-impl.h: New file.
58389         * lib/fbufmode.c: Include stdio-impl.h.
58390         (fbufmode): Use fp_, remove redundant #defines.
58391         * lib/fflush.c: Include stdio-impl.h.
58392         (clear_ungetc_buffer): Remove redundant #defines.
58393         * lib/fpurge.c: Include stdio-impl.h.
58394         (fpurge): Remove redundant #defines.
58395         * lib/freadable.c: Include stdio-impl.h.
58396         (freadable): Remove redundant #defines.
58397         * lib/freadahead.c: Include stdio-impl.h.
58398         (freadahead): Remove redundant #defines.
58399         * lib/freading.c: Include stdio-impl.h.
58400         (freading): Remove redundant #defines.
58401         * lib/freadptr.c: Include stdio-impl.h.
58402         (freadptr): Remove redundant #defines.
58403         * lib/freadseek.c: Include stdio-impl.h.
58404         (freadptrinc): Remove redundant #defines.
58405         * lib/fseeko.c: Include stdio-impl.h.
58406         (rpl_fseeko): Remove redundant #defines.
58407         * lib/fseterr.c: Include stdio-impl.h.
58408         (fseterr): Remove redundant #defines.
58409         * lib/fwritable.c: Include stdio-impl.h.
58410         (fwritable: Remove redundant #defines.
58411         * lib/fwriting.c: Include stdio-impl.h.
58412         (fwriting): Remove redundant #defines.
58413         * modules/fbufmode (Files): Add lib/stdio-impl.h.
58414         * modules/fflush (Files): Likewise.
58415         * modules/fpurge (Files): Likewise.
58416         * modules/freadable (Files): Likewise.
58417         * modules/freadahead (Files): Likewise.
58418         * modules/freading (Files): Likewise.
58419         * modules/freadptr (Files): Likewise.
58420         * modules/freadseek (Files): Likewise.
58421         * modules/fseeko (Files): Likewise.
58422         * modules/fseterr (Files): Likewise.
58423         * modules/fwritable (Files): Likewise.
58424         * modules/fwriting (Files): Likewise.
58425
58426 2008-04-26  Bruno Haible  <bruno@clisp.org>
58427
58428         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
58429         restore_seek_optimization, update_fpos_cache): New functions, extracted
58430         from rpl_fflush.
58431         (rpl_fflush): Use them.
58432         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
58433         (gl_REPLACE_FFLUSH): Use it.
58434
58435 2008-04-26  Bruno Haible  <bruno@clisp.org>
58436
58437         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
58438         on Solaris.
58439         * tests/test-xstrtoimax.sh: Likewise.
58440         * tests/test-xstrtoumax.sh: Likewise.
58441         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
58442
58443 2008-04-26  Bruno Haible  <bruno@clisp.org>
58444
58445         * modules/memchr-tests: New file.
58446         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
58447
58448 2008-04-26  Eric Blake  <ebb9@byu.net>
58449             Bruno Haible  <bruno@clisp.org>
58450
58451         * lib/memchr.c: Include intprops.h.
58452         (__memchr): Optimize parallel detection of matching bytes. Rename local
58453         variables. Add explanatory comments.
58454
58455 2008-04-26  Bruno Haible  <bruno@clisp.org>
58456
58457         Fix module 'memchr', broken since 2000-10-28.
58458         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
58459
58460 2008-04-26  Bruno Haible  <bruno@clisp.org>
58461
58462         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
58463         comments.
58464
58465 2008-04-25  Eric Blake  <ebb9@byu.net>
58466
58467         Use native fstatat on cygwin 1.7.0.
58468         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
58469         first.
58470
58471 2008-04-23  Eric Blake  <ebb9@byu.net>
58472
58473         Improve memchr2 performance.
58474         * lib/memchr2.c (memchr2): Further optimize parallel detection of
58475         NUL bytes.
58476         * modules/memchr2 (Depends-on): Use intprops.h.
58477
58478 2008-04-23  Simon Josefsson  <simon@josefsson.org>
58479
58480         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
58481         an inline function instead of a CPP macro.  Patch by Ben Pfaff
58482         <blp@cs.stanford.edu>.
58483
58484 2008-04-23  Simon Josefsson  <simon@josefsson.org>
58485
58486         * lib/arpa_inet.in.h: New file.
58487
58488         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
58489         (Makefile.am): Sed in substitute header file.
58490
58491         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
58492         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
58493
58494         * modules/inet_ntop (configure.ac): Use
58495         gl_ARPA_INET_MODULE_INDICATOR.
58496
58497         * modules/inet_pton (configure.ac): Use
58498         gl_ARPA_INET_MODULE_INDICATOR.
58499
58500 2008-04-22  Jim Meyering  <meyering@redhat.com>
58501
58502         * modules/verify (License): Re-license as LGPLv2+.
58503
58504 2008-04-22  Simon Josefsson  <simon@josefsson.org>
58505
58506         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
58507         parameter to void* as per POSIX standard (MinGW uses char*).
58508
58509 2008-04-21  Bruno Haible  <bruno@clisp.org>
58510
58511         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
58512         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
58513         Define to replacements if REPLACE_ISWCNTRL is 1.
58514         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
58515         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
58516         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
58517         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
58518         what it fixes.
58519         * doc/posix-functions/iswalpha.texi: Likewise.
58520         * doc/posix-functions/iswblank.texi: Likewise.
58521         * doc/posix-functions/iswcntrl.texi: Likewise.
58522         * doc/posix-functions/iswdigit.texi: Likewise.
58523         * doc/posix-functions/iswgraph.texi: Likewise.
58524         * doc/posix-functions/iswlower.texi: Likewise.
58525         * doc/posix-functions/iswprint.texi: Likewise.
58526         * doc/posix-functions/iswpunct.texi: Likewise.
58527         * doc/posix-functions/iswspace.texi: Likewise.
58528         * doc/posix-functions/iswupper.texi: Likewise.
58529         * doc/posix-functions/iswxdigit.texi: Likewise.
58530         Reported by Alain Guibert.
58531
58532 2008-04-21  Bruno Haible  <bruno@clisp.org>
58533
58534         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
58535         Patch by Alain Guibert.
58536
58537 2008-04-21  Bruno Haible  <bruno@clisp.org>
58538
58539         Fix test failures on mingw.
58540         * tests/test-xstrtol.c (print_no_progname): New function.
58541         (main): Install it in error_print_progname hook.
58542         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
58543         * tests/test-xstrtoimax.sh: Likewise.
58544         * tests/test-xstrtoumax.sh: Likewise.
58545
58546 2008-04-21  Bruno Haible  <bruno@clisp.org>
58547
58548         Fix test failure on mingw.
58549         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
58550
58551 2008-04-21  Bruno Haible  <bruno@clisp.org>
58552
58553         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
58554         Actually assign a value.
58555
58556 2008-04-20  Bruno Haible  <bruno@clisp.org>
58557
58558         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
58559         take 2.
58560         * lib/canonicalize.c (canonicalize_file_name): Elide if the
58561         'canonicalize-lgpl' module is also used.
58562         * lib/canonicalize-lgpl.c: Undo last change.
58563         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
58564
58565 2008-04-20  Bruno Haible  <bruno@clisp.org>
58566
58567         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
58568         config.h. Provide _mkdir based fallback for mingw.
58569         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
58570         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
58571         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
58572         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
58573         rather than defining mkdir in config.h.
58574         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
58575         (gl_SYS_STAT_H_DEFAULTS): New macro.
58576         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
58577         HAVE_IO_H any more.
58578         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
58579         HAVE_DECL_MKDIR and HAVE_IO_H.
58580
58581 2008-04-20  Bruno Haible  <bruno@clisp.org>
58582
58583         * lib/isapipe.c: Port to native Windows platforms.
58584
58585 2008-04-20  Bruno Haible  <bruno@clisp.org>
58586
58587         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
58588
58589 2008-04-21  Eric Blake  <ebb9@byu.net>
58590
58591         Work around preprocessors that don't handle UINTMAX_MAX.
58592         * lib/memchr2.c (memchr2): Avoid embedded #if.
58593         Reported by Alain Guibert, fix suggested by Bruno Haible.
58594
58595 2008-04-21  Simon Josefsson  <simon@josefsson.org>
58596
58597         * doc/posix-functions/strftime.texi (strftime): Explain better
58598         Windows incompatibility.  Suggested by Micah Cowan
58599         <micah@cowan.name>.
58600
58601 2008-04-20  Bruno Haible  <bruno@clisp.org>
58602
58603         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
58604         unistr/u8-mblen.
58605
58606 2008-04-20  Bruno Haible  <bruno@clisp.org>
58607
58608         Fix test failure on platforms with non-GNU iconv.
58609         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
58610         (U_TO_U8): Use it, rather than u16_to_u8.
58611         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
58612         units at the end of the input string.
58613         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
58614
58615 2008-04-20  Bruno Haible  <bruno@clisp.org>
58616
58617         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
58618         when the resulting length is 0.
58619         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
58620
58621 2008-04-20  Bruno Haible  <bruno@clisp.org>
58622
58623         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
58624         works.
58625         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
58626
58627 2008-04-20  Bruno Haible  <bruno@clisp.org>
58628
58629         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
58630         * modules/tsearch-tests (configure.ac): Test for initstate function.
58631
58632 2008-04-20  Bruno Haible  <bruno@clisp.org>
58633
58634         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
58635         for nlink_t if missing.
58636         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
58637
58638 2008-04-19  Bruno Haible  <bruno@clisp.org>
58639
58640         Work around snprintf bug on Linux libc5.
58641         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
58642         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
58643         gl_SNPRINTF_SIZE1.
58644         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
58645         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
58646         that test failed.
58647         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
58648         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
58649         * modules/snprintf (Files): Add m4/printf.m4.
58650         * modules/vsnprintf (Files): Likewise.
58651         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
58652         * doc/posix-functions/vsnprintf.texi: Likewise.
58653
58654 2008-04-19  Bruno Haible  <bruno@clisp.org>
58655
58656         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
58657         from 0.0058 to less than 10^-7.
58658
58659 2008-04-19  Bruno Haible  <bruno@clisp.org>
58660
58661         Fix rounding when a precision is given.
58662         * lib/vasnprintf.c (is_borderline): New function.
58663         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
58664         9...9x.
58665         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
58666         %e, %g.
58667         * tests/test-vasprintf-posix.c (test_function): Likewise.
58668         * tests/test-snprintf-posix.h (test_function): Likewise.
58669         * tests/test-sprintf-posix.h (test_function): Likewise.
58670         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
58671         * tests/test-printf-posix.h (test_function): Likewise.
58672         * tests/test-printf-posix.output: Update.
58673         Reported by John Darrington <john@darrington.wattle.id.au> via
58674         Ben Pfaff <blp@cs.stanford.edu>.
58675
58676 2008-04-18  Simon Josefsson  <simon@josefsson.org>
58677
58678         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
58679         Suggested by Bruno Haible <bruno@clisp.org>.
58680
58681 2008-04-17  Bruno Haible  <bruno@clisp.org>
58682
58683         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
58684         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
58685         implementation.
58686         Patch by Bruce Merry <bmerry@gmail.com>.
58687
58688 2008-04-17  Simon Josefsson  <simon@josefsson.org>
58689
58690         * doc/posix-functions/strftime.texi (strftime): Mention that %e
58691         doesn't work under Windows.
58692
58693 2008-04-16  Bruno Haible  <bruno@clisp.org>
58694
58695         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
58696         New macros.
58697         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
58698         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
58699         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
58700         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
58701         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
58702         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
58703         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
58704         macros.
58705         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
58706         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
58707         Northern Sotho, Uighur.
58708
58709 2008-04-16  Bruno Haible  <bruno@clisp.org>
58710
58711         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
58712         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
58713         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
58714         Reported by Daniel Bergström <daniel@octocode.com>.
58715
58716 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
58717             Bruno Haible  <bruno@clisp.org>
58718
58719         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
58720         function.
58721         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
58722         New functions, mostly extracted from gl_locale_name_default.
58723         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
58724
58725 2008-04-16  Eric Blake  <ebb9@byu.net>
58726
58727         Adjust strtod detection to catch glibc 2.7 bug.
58728         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
58729         Reported by John Gatewood Ham.
58730
58731 2008-04-16  Bruno Haible  <bruno@clisp.org>
58732
58733         Add tentative support for Linux libc5.
58734         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
58735         * lib/fpurge.c (fpurge): Likewise.
58736         * lib/freadable.c (freadable): Likewise.
58737         * lib/freadahead.c (freadahead): Likewise.
58738         * lib/freading.c (freading): Likewise.
58739         * lib/freadptr.c (freadptr): Likewise.
58740         * lib/freadseek.c (freadptrinc): Likewise.
58741         * lib/fseeko.c (rpl_fseeko): Likewise.
58742         * lib/fseterr.c (fseterr): Likewise.
58743         * lib/fwritable.c (fwritable): Likewise.
58744         * lib/fwriting.c (fwriting): Likewise.
58745         Reported by Alain Guibert <alguibert+bts@free.fr>.
58746
58747 2008-04-15  Bruno Haible  <bruno@clisp.org>
58748
58749         * modules/mathl (configure.ac): Define module indicator.
58750
58751 2008-04-15  Bruno Haible  <bruno@clisp.org>
58752
58753         * lib/logl.c (logl): Remove unused variables.
58754
58755 2008-04-15  Bruno Haible  <bruno@clisp.org>
58756
58757         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
58758         fails.
58759
58760 2008-04-15  Bruno Haible  <bruno@clisp.org>
58761
58762         * lib/trim.c (trim2): Fix argument of isspace() macro.
58763
58764 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
58765
58766         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
58767         to 0.
58768         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
58769
58770 2008-04-14  Bruno Haible  <bruno@clisp.org>
58771
58772         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
58773         AC_LANG_PROGRAM argument.
58774         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
58775         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
58776         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
58777         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
58778         * m4/math_h.m4 (gl_MATH_H): Likewise.
58779         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
58780         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
58781         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
58782         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
58783         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
58784         * m4/regex.m4 (gl_REGEX): Likewise.
58785         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
58786         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
58787         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
58788         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
58789         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
58790         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
58791         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
58792         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
58793
58794 2008-04-14  Jim Meyering  <meyering@redhat.com>
58795
58796         test-strtod: fix typos: s/abs/fabs/
58797         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
58798
58799 2008-04-13  Bruno Haible  <bruno@clisp.org>
58800
58801         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
58802         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
58803         module is also used and while not building the reloc-wrapper.
58804
58805 2008-04-13  Bruno Haible  <bruno@clisp.org>
58806
58807         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
58808
58809 2008-04-13  Bruno Haible  <bruno@clisp.org>
58810
58811         Fix AIX compilation failure introduced on 2008-04-02.
58812         * tests/test-frexp.c (exp): Undefine before redefining.
58813         * tests/test-frexpl.c (exp): Likewise.
58814
58815 2008-04-13  Bruno Haible  <bruno@clisp.org>
58816
58817         Work around a HP-UX stdio bug.
58818         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
58819         * tests/test-ftello.c (main): Likewise.
58820         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
58821         * doc/posix-functions/ftello.texi: Likewise.
58822
58823 2008-04-13  Bruno Haible  <bruno@clisp.org>
58824
58825         Make test-signbit pass on HP-UX/hppa.
58826         * tests/test-signbit.c (minus_zerol): New variable.
58827         (test_signbitl): Use it.
58828
58829 2008-04-13  Bruno Haible  <bruno@clisp.org>
58830
58831         Make truncl work on OSF/1 4.0.
58832         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
58833         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
58834         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
58835         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
58836         HAVE_DECL_TRUNCL.
58837         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
58838         HAVE_DECL_TRUNCL.
58839         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
58840
58841 2008-04-13  Bruno Haible  <bruno@clisp.org>
58842
58843         * lib/unictype.h: Remove trailing comma from enumeration definitions.
58844
58845 2008-04-13  Bruno Haible  <bruno@clisp.org>
58846
58847         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
58848         expression, so as to avoid HP-UX 11 cc compiler bug.
58849
58850 2008-04-13  Bruno Haible  <bruno@clisp.org>
58851
58852         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
58853
58854 2008-04-13  Bruno Haible  <bruno@clisp.org>
58855
58856         * lib/git-merge-changelog.c: Remove empty declaration outside of
58857         functions.
58858
58859 2008-04-13  Bruno Haible  <bruno@clisp.org>
58860
58861         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
58862
58863 2008-04-13  Bruno Haible  <bruno@clisp.org>
58864
58865         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
58866         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
58867         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
58868         also if it exists but lacks definitions of the SHUT_* macros.
58869         * modules/sys_socket (Description): Update.
58870         Reported by Elbert Pol <e.pol@chello.nl>.
58871
58872 2008-04-13  Bruno Haible  <bruno@clisp.org>
58873
58874         * lib/localcharset.c (OS2): Don't redefine if already defined.
58875         Reported by Elbert Pol <e.pol@chello.nl>.
58876
58877 2008-04-13  Bruno Haible  <bruno@clisp.org>
58878
58879         * lib/binary-io.h [__EMX__]: Include <io.h>.
58880         Reported by Elbert Pol <e.pol@chello.nl>.
58881
58882 2008-04-12  Bruno Haible  <bruno@clisp.org>
58883
58884         * lib/fpucw.h: Enable the definitions also for x86_64.
58885         Needed for NetBSD/x86_64.
58886         Reported by Thomas Klausner <tk@giga.or.at>.
58887
58888 2008-04-12  Bruno Haible  <bruno@clisp.org>
58889
58890         * tests/test-strtod.c: Include isnand.h.
58891         (main): Use isnand instead of isnan.
58892         Reported by Jim Meyering.
58893
58894 2008-04-12  Bruno Haible  <bruno@clisp.org>
58895
58896         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
58897         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
58898
58899 2008-04-12  Jim Meyering  <meyering@redhat.com>
58900
58901         * m4/math_h.m4 (gl_MATH_H): Fix typos.
58902
58903 2008-04-12  Bruno Haible  <bruno@clisp.org>
58904
58905         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
58906         Reported by Elbert Pol <e.pol@chello.nl>.
58907
58908 2008-04-12  Eric Blake  <ebb9@byu.net>
58909
58910         Work around Solaris 10 math.h bug.
58911         * m4/math_h.m4 (gl_MATH_H): Check for bug.
58912         (gl_MATH_H_DEFAULTS): Set up default.
58913         * modules/math (Makefile.am): Replace new indicators.
58914         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
58915         * tests/test-math.c (main): Test this.
58916         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
58917         * doc/posix-headers/math.texi (math.h): Mention bug.
58918         Reported by Nelson H. F. Beebe and Jim Meyering.
58919
58920 2008-04-11  Bruno Haible  <bruno@clisp.org>
58921
58922         Adapt to future versions of Apple GCC.
58923         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
58924         Reported by Peter O'Gorman <peter@pogma.com>.
58925
58926 2008-04-11  Bruno Haible  <bruno@clisp.org>
58927
58928         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
58929
58930 2008-04-11  Bruno Haible  <bruno@clisp.org>
58931
58932         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
58933
58934         * modules/getaddrinfo-tests (Makefile.am): Define
58935         test_getaddrinfo_LDADD.
58936
58937 2008-04-11  Bruno Haible  <bruno@clisp.org>
58938
58939         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
58940         (init): Fix syntax error.
58941         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
58942         is declared.
58943
58944 2008-04-11  Bruno Haible  <bruno@clisp.org>
58945
58946         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
58947         * modules/glob (Depends-on): Add stdbool.
58948
58949 2008-04-11  Bruno Haible  <bruno@clisp.org>
58950
58951         * lib/trim.c: Include <string.h>.
58952
58953 2008-04-11  Eric Blake  <ebb9@byu.net>
58954
58955         Avoid compile failure on OS/2.
58956         * lib/regex_internal.h (internal_function): Disable optimization
58957         on OS/2 (__EMX__), where it caused compiler error.
58958         Reported by Elbert Pol.
58959
58960 2008-04-11  Bruno Haible  <bruno@clisp.org>
58961
58962         Flush the standard error stream before aborting. Needed on mingw.
58963         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
58964         * tests/test-array_list.c (ASSERT): Likewise.
58965         * tests/test-array_oset.c (ASSERT): Likewise.
58966         * tests/test-avltree_list.c (ASSERT): Likewise.
58967         * tests/test-avltree_oset.c (ASSERT): Likewise.
58968         * tests/test-avltreehash_list.c (ASSERT): Likewise.
58969         * tests/test-binary-io.c (ASSERT): Likewise.
58970         * tests/test-byteswap.c (ASSERT): Likewise.
58971         * tests/test-c-ctype.c (ASSERT): Likewise.
58972         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
58973         * tests/test-c-strcasestr.c (ASSERT): Likewise.
58974         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
58975         * tests/test-c-strstr.c (ASSERT): Likewise.
58976         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
58977         * tests/test-canonicalize.c (ASSERT): Likewise.
58978         * tests/test-carray_list.c (ASSERT): Likewise.
58979         * tests/test-ceilf1.c (ASSERT): Likewise.
58980         * tests/test-ceilf2.c (ASSERT): Likewise.
58981         * tests/test-ceill.c (ASSERT): Likewise.
58982         * tests/test-count-one-bits.c (ASSERT): Likewise.
58983         * tests/test-fbufmode.c (ASSERT): Likewise.
58984         * tests/test-fflush2.c (ASSERT): Likewise.
58985         * tests/test-floorf1.c (ASSERT): Likewise.
58986         * tests/test-floorf2.c (ASSERT): Likewise.
58987         * tests/test-floorl.c (ASSERT): Likewise.
58988         * tests/test-fopen.c (ASSERT): Likewise.
58989         * tests/test-fpending.c (ASSERT): Likewise.
58990         * tests/test-fprintf-posix.c (ASSERT): Likewise.
58991         * tests/test-fpurge.c (ASSERT): Likewise.
58992         * tests/test-freadable.c (ASSERT): Likewise.
58993         * tests/test-freadahead.c (ASSERT): Likewise.
58994         * tests/test-freading.c (ASSERT): Likewise.
58995         * tests/test-freadptr.c (ASSERT): Likewise.
58996         * tests/test-freadptr2.c (ASSERT): Likewise.
58997         * tests/test-freadseek.c (ASSERT): Likewise.
58998         * tests/test-freopen.c (ASSERT): Likewise.
58999         * tests/test-frexp.c (ASSERT): Likewise.
59000         * tests/test-frexpl.c (ASSERT): Likewise.
59001         * tests/test-fseek.c (ASSERT): Likewise.
59002         * tests/test-fseeko.c (ASSERT): Likewise.
59003         * tests/test-fstrcmp.c (ASSERT): Likewise.
59004         * tests/test-ftell.c (ASSERT): Likewise.
59005         * tests/test-ftello.c (ASSERT): Likewise.
59006         * tests/test-func.c (ASSERT): Likewise.
59007         * tests/test-fwritable.c (ASSERT): Likewise.
59008         * tests/test-fwriting.c (ASSERT): Likewise.
59009         * tests/test-getdelim.c (ASSERT): Likewise.
59010         * tests/test-getline.c (ASSERT): Likewise.
59011         * tests/test-i-ring.c (ASSERT): Likewise.
59012         * tests/test-iconv-utf.c (ASSERT): Likewise.
59013         * tests/test-iconv.c (ASSERT): Likewise.
59014         * tests/test-isfinite.c (ASSERT): Likewise.
59015         * tests/test-isnand.c (ASSERT): Likewise.
59016         * tests/test-isnanf.c (ASSERT): Likewise.
59017         * tests/test-isnanl.h (ASSERT): Likewise.
59018         * tests/test-ldexpl.c (ASSERT): Likewise.
59019         * tests/test-linked_list.c (ASSERT): Likewise.
59020         * tests/test-linkedhash_list.c (ASSERT): Likewise.
59021         * tests/test-localename.c (ASSERT): Likewise.
59022         * tests/test-lseek.c (ASSERT): Likewise.
59023         * tests/test-mbscasecmp.c (ASSERT): Likewise.
59024         * tests/test-mbscasestr1.c (ASSERT): Likewise.
59025         * tests/test-mbscasestr2.c (ASSERT): Likewise.
59026         * tests/test-mbscasestr3.c (ASSERT): Likewise.
59027         * tests/test-mbscasestr4.c (ASSERT): Likewise.
59028         * tests/test-mbschr.c (ASSERT): Likewise.
59029         * tests/test-mbscspn.c (ASSERT): Likewise.
59030         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
59031         * tests/test-mbspbrk.c (ASSERT): Likewise.
59032         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
59033         * tests/test-mbsrchr.c (ASSERT): Likewise.
59034         * tests/test-mbsspn.c (ASSERT): Likewise.
59035         * tests/test-mbsstr1.c (ASSERT): Likewise.
59036         * tests/test-mbsstr2.c (ASSERT): Likewise.
59037         * tests/test-mbsstr3.c (ASSERT): Likewise.
59038         * tests/test-memchr2.c (ASSERT): Likewise.
59039         * tests/test-memmem.c (ASSERT): Likewise.
59040         * tests/test-open.c (ASSERT): Likewise.
59041         * tests/test-printf-frexp.c (ASSERT): Likewise.
59042         * tests/test-printf-frexpl.c (ASSERT): Likewise.
59043         * tests/test-printf-posix.c (ASSERT): Likewise.
59044         * tests/test-quotearg.c (ASSERT): Likewise.
59045         * tests/test-rbtree_list.c (ASSERT): Likewise.
59046         * tests/test-rbtree_oset.c (ASSERT): Likewise.
59047         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
59048         * tests/test-round1.c (ASSERT): Likewise.
59049         * tests/test-roundf1.c (ASSERT): Likewise.
59050         * tests/test-roundl.c (ASSERT): Likewise.
59051         * tests/test-signbit.c (ASSERT): Likewise.
59052         * tests/test-sleep.c (ASSERT): Likewise.
59053         * tests/test-snprintf-posix.c (ASSERT): Likewise.
59054         * tests/test-snprintf.c (ASSERT): Likewise.
59055         * tests/test-sprintf-posix.c (ASSERT): Likewise.
59056         * tests/test-stat-time.c (ASSERT): Likewise.
59057         * tests/test-strcasestr.c (ASSERT): Likewise.
59058         * tests/test-strerror.c (ASSERT): Likewise.
59059         * tests/test-striconv.c (ASSERT): Likewise.
59060         * tests/test-striconveh.c (ASSERT): Likewise.
59061         * tests/test-striconveha.c (ASSERT): Likewise.
59062         * tests/test-strsignal.c (ASSERT): Likewise.
59063         * tests/test-strstr.c (ASSERT): Likewise.
59064         * tests/test-strtod.c (ASSERT): Likewise.
59065         * tests/test-trunc1.c (ASSERT): Likewise.
59066         * tests/test-trunc2.c (ASSERT): Likewise.
59067         * tests/test-truncf1.c (ASSERT): Likewise.
59068         * tests/test-truncf2.c (ASSERT): Likewise.
59069         * tests/test-truncl.c (ASSERT): Likewise.
59070         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
59071         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
59072         * tests/test-vasnprintf.c (ASSERT): Likewise.
59073         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
59074         * tests/test-vasprintf.c (ASSERT): Likewise.
59075         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
59076         * tests/test-vprintf-posix.c (ASSERT): Likewise.
59077         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
59078         * tests/test-vsnprintf.c (ASSERT): Likewise.
59079         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
59080         * tests/test-wcwidth.c (ASSERT): Likewise.
59081         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
59082         * tests/test-xprintf-posix.c (ASSERT): Likewise.
59083         * tests/test-xvasprintf.c (ASSERT): Likewise.
59084         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
59085         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
59086         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
59087         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
59088         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
59089         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
59090         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
59091         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
59092         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
59093         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
59094         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
59095         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
59096         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
59097         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
59098         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
59099         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
59100         * tests/unictype/test-block_list.c (ASSERT): Likewise.
59101         * tests/unictype/test-block_of.c (ASSERT): Likewise.
59102         * tests/unictype/test-block_test.c (ASSERT): Likewise.
59103         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
59104         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
59105         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
59106         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
59107         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
59108         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
59109         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
59110         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
59111         * tests/unictype/test-combining.c (ASSERT): Likewise.
59112         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
59113         * tests/unictype/test-digit.c (ASSERT): Likewise.
59114         * tests/unictype/test-mirror.c (ASSERT): Likewise.
59115         * tests/unictype/test-numeric.c (ASSERT): Likewise.
59116         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
59117         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
59118         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
59119         * tests/unictype/test-scripts.c (ASSERT): Likewise.
59120         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
59121         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
59122         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
59123         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
59124         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
59125         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
59126         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
59127         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
59128         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
59129         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
59130         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
59131         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
59132         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
59133         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
59134         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
59135         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
59136         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
59137         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
59138         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
59139         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
59140         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
59141         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
59142         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
59143         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
59144         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
59145         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
59146         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
59147         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
59148         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
59149         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
59150         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
59151         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
59152         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
59153         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
59154         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
59155         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
59156         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
59157         Reported by Eric Blake.
59158
59159 2008-04-11  Bruno Haible  <bruno@clisp.org>
59160
59161         * lib/wchar.in.h: Tweak comment.
59162
59163 2008-04-11  Bruno Haible  <bruno@clisp.org>
59164
59165         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
59166         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
59167         gl_COMMON.
59168         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
59169
59170 2008-04-11  Bruno Haible  <bruno@clisp.org>
59171
59172         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
59173
59174 2008-04-11  Simon Josefsson  <simon@josefsson.org>
59175
59176         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
59177         of attempting to use non-existing /dev/*random.  Based on patch
59178         from Adam Strzelecki <ono@java.pl> in
59179         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
59180
59181 2008-04-08  Bruno Haible  <bruno@clisp.org>
59182
59183         Add tentative support for emx+gcc.
59184         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
59185         * lib/fpurge.c (fpurge): Likewise.
59186         * lib/freadable.c (freadable): Likewise.
59187         * lib/freadahead.c (freadahead): Likewise.
59188         * lib/freading.c (freading): Likewise.
59189         * lib/freadptr.c (freadptr): Likewise.
59190         * lib/freadseek.c (freadptrinc): Likewise.
59191         * lib/fseeko.c (rpl_fseeko): Likewise.
59192         * lib/fseterr.c (fseterr): Likewise.
59193         * lib/fwritable.c (fwritable): Likewise.
59194         * lib/fwriting.c (fwriting): Likewise.
59195         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
59196
59197 2008-04-09  Eric Blake  <ebb9@byu.net>
59198
59199         Avoid some autoconf warnings.
59200         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
59201         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
59202         * m4/afs.m4 (gl_AFS): Likewise.
59203         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
59204         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
59205         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
59206         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
59207         (gl_INTEGER_TYPE_SUFFIX): Likewise.
59208         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
59209         (AC_CHECK_DECLS_ONCE): Likewise.
59210         Rename file...
59211         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
59212         gnulib-tool requires autoconf 2.59 or better.
59213         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
59214
59215 2008-04-08  Eric Blake  <ebb9@byu.net>
59216
59217         Use 'git describe --match' if present (added in git 1.5.5).
59218         * build-aux/git-version-gen: Limit result to tags that match 'v*'
59219         if possible.
59220
59221 2008-04-08  Bruno Haible  <bruno@clisp.org>
59222
59223         Add tentative support for OpenServer.
59224         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
59225         _ptr, _cnt.
59226         * lib/fpurge.c (fpurge): Likewise.
59227         * lib/freadable.c (freadable): Likewise.
59228         * lib/freadahead.c (freadahead): Likewise.
59229         * lib/freading.c (freading): Likewise.
59230         * lib/freadptr.c (freadptr): Likewise.
59231         * lib/freadseek.c (freadptrinc): Likewise.
59232         * lib/fseeko.c (rpl_fseeko): Likewise.
59233         * lib/fseterr.c (fseterr): Likewise.
59234         * lib/fwritable.c (fwritable): Likewise.
59235         * lib/fwriting.c (fwriting): Likewise.
59236         Reported by Roger Cornelius <rac@tenzing.org> and
59237         Brian K. White <brian@aljex.com>.
59238
59239 2008-04-06  Jim Meyering  <meyering@redhat.com>
59240
59241         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
59242
59243 2008-04-06  Bruno Haible  <bruno@clisp.org>
59244
59245         Avoid possible error with non-ASCII bytes in UTF-8 locales.
59246         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
59247         * tests/test-printf-posix.sh: Likewise.
59248         * tests/test-vfprintf-posix.sh: Likewise.
59249         * tests/test-vprintf-posix.sh: Likewise.
59250         * tests/test-xprintf-posix.sh: Likewise.
59251
59252 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59253
59254         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
59255         hide error from 'ls', needed on OS/2.
59256         Report by Elbert Pol <elbert.pol@gmail.com>.
59257
59258 2008-04-04  Eric Blake  <ebb9@byu.net>
59259
59260         Make test-fseeko.c failures meaningful.
59261         * tests/test-fseeko.c: Print line number on failure.
59262         * tests/test-fseek.c: Likewise.
59263         Reported by Nelson H. F. Beebe.
59264
59265         Improve strtod bug detection check.
59266         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
59267         required for Solaris 10.
59268         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
59269
59270 2008-04-04  Bruno Haible  <bruno@clisp.org>
59271
59272         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
59273         by m4/setenv.m4.
59274
59275 2008-04-03  Eric Blake  <ebb9@byu.net>
59276
59277         Ensure sane .version contents.
59278         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
59279         version string.
59280         * build-aux/git-version-gen: Improve documentation.
59281
59282         Make GNU make output nicer.
59283         * top/GNUmakefile [!_have-Makefile]: Add dependency on
59284         MAKECMDGOALS to enforce message for all command line targets.  Set
59285         srcdir for use in maint.mk.
59286
59287         Another maintainer tweak.
59288         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
59289         a target that regenerates version.
59290
59291 2008-04-03  Jim Meyering  <meyering@redhat.com>
59292
59293         vc-list-files: don't cause coreutils "make po-check" failure
59294         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
59295
59296 2008-04-03  Eric Blake  <ebb9@byu.net>
59297
59298         Allow VPATH usage of vc-list-files.
59299         * build-aux/vc-list-files (scriptversion): Add timestamp.
59300         (options): Add --help, --version, -C.
59301         (CVS): Support installed cvsu.
59302
59303 2008-04-02  Bruno Haible  <bruno@clisp.org>
59304
59305         Avoid some "statement with no effect" warnings from gcc.
59306         * tests/test-wctype.c (main): Explicitly ignore unused values.
59307         Reported by Jim Meyering.
59308
59309 2008-04-02  Jim Meyering  <meyering@redhat.com>
59310
59311         Avoid some warnings from "gcc -Wshadow".
59312         * tests/test-frexp.c (exp): Define to a different identifier.
59313         * tests/test-frexpl.c (exp): Likewise.
59314
59315 2008-04-03  Jim Meyering  <meyering@redhat.com>
59316
59317         bootstrap: remove dangling *.[ch] symlinks from lib
59318         * build-aux/bootstrap [dangling symlink removal]: Move find's
59319         -depth option to precede all others, to avoid a warning.
59320         Remove *.[ch] files too, and from "$source_base" (usually lib/).
59321
59322 2008-04-02  Bruno Haible  <bruno@clisp.org>
59323
59324         Avoid some warnings from "gcc -Wshadow".
59325         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
59326         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
59327         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
59328         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
59329         Reported by Jim Meyering.
59330
59331 2008-04-01  Bruno Haible  <bruno@clisp.org>
59332
59333         Fix test to work on IRIX 6.5 with cc.
59334         * tests/test-math.c (numeric_equal): New function.
59335         (main): Use it.
59336
59337 2008-04-01  Bruno Haible  <bruno@clisp.org>
59338
59339         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
59340
59341 2008-04-01  Bruno Haible  <bruno@clisp.org>
59342
59343         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
59344         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
59345         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
59346         (Depends-on): Remove math.
59347
59348         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
59349         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
59350         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
59351         (Depends-on): Remove math.
59352
59353         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
59354         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
59355         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
59356         (Depends-on): Remove math.
59357         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
59358         (Depends-on): Remove math.
59359
59360         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
59361         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
59362         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
59363         (Depends-on): Remove math.
59364         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
59365         (Depends-on): Remove math.
59366
59367         * tests/test-round1.c: Include nan.h.
59368         (main): Use NaNd instead of NAN.
59369         * modules/round-tests (Files): Add tests/nan.h.
59370
59371         * tests/test-trunc1.c: Include nan.h.
59372         (main): Use NaNd instead of NAN.
59373         * modules/trunc-tests (Files): Add tests/nan.h.
59374
59375         * tests/test-roundf1.c: Include nan.h.
59376         (main): Use NaNf instead of NAN.
59377         * modules/roundf-tests (Files): Add tests/nan.h.
59378
59379         * tests/test-truncf1.c: Include nan.h.
59380         (main): Use NaNf instead of NAN.
59381         * modules/truncf-tests (Files): Add tests/nan.h.
59382
59383         * tests/test-ceilf1.c: Include nan.h.
59384         (main): Use NaNf instead of NAN.
59385         * modules/ceilf-tests (Files): Add tests/nan.h.
59386
59387         * tests/test-floorf1.c: Include nan.h.
59388         (main): Use NaNf instead of NAN.
59389         * modules/floorf-tests (Files): Add tests/nan.h.
59390
59391         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
59392         (main): Use NaNf instead of NAN.
59393         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
59394
59395         * tests/test-isnand.c: Include nan.h instead of <math.h>.
59396         (main): Use NaNd instead of NAN.
59397         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
59398
59399         * tests/test-frexp.c: Include nan.h.
59400         (main): Use NaNd instead of NAN.
59401         * modules/frexp-tests (Files): Add tests/nan.h.
59402
59403         * lib/isnan.c: Don't include <math.h>.
59404         (FUNC): Don't use NAN macro.
59405         * modules/isnand-nolibm (Depends-on): Remove math.
59406         * modules/isnanf-nolibm (Depends-on): Remove math.
59407         * modules/isnanl (Depends-on): Remove math.
59408         * modules/isnanl-nolibm (Depends-on): Remove math.
59409
59410         * tests/nan.h: New file.
59411
59412 2008-04-01  Eric Blake  <ebb9@byu.net>
59413
59414         Fix typos.
59415         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
59416         values to be the right type.
59417
59418         For now, cater to gnulib strtod inaccuracies.
59419         * tests/test-strtod.c (main): Allow 1-ulp error on expected
59420         fractional results.  While not as nice from a QoI perspective, it
59421         is a quicker patch than correctly implementing decimal to binary
59422         rounding.
59423
59424 2008-03-31  Eric Blake  <ebb9@byu.net>
59425
59426         Guarantee a definition of NAN.
59427         * lib/math.in.h (NAN): Define if missing.
59428         * tests/test-math.c (main): Test it.
59429         * doc/posix-headers/math.texi (math.h): Document this.
59430         * lib/isnan.c (rpl_isnand): Use it.
59431         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
59432         * tests/test-floorf1.c (NaN): Likewise.
59433         * tests/test-frexp.c (NaN): Likewise.
59434         * tests/test-isnand.c (NaN): Likewise.
59435         * tests/test-isnanf.c (NaN): Likewise.
59436         * tests/test-round1.c (NaN): Likewise.
59437         * tests/test-roundf1.c (NaN): Likewise.
59438         * tests/test-snprintf-posix.h (NaN): Likewise.
59439         * tests/test-sprintf-posix.h (NaN): Likewise.
59440         * tests/test-trunc1.c (NaN): Likewise.
59441         * tests/test-truncf1.c (NaN): Likewise.
59442         * tests/test-vasnprintf-posix.c (NaN): Likewise.
59443         * tests/test-vasprintf-posix.c (NaN): Likewise.
59444         * modules/isnand-nolibm (Depends-on): Add math.
59445         * modules/isnanf-nolibm (Depends-on): Likewise.
59446         * modules/isnanl (Depends-on): Likewise.
59447         * modules/isnanl-nolibm (Depends-on): Likewise.
59448         * modules/snprintf-posix-tests (Depends-on): Likewise.
59449         * modules/sprintf-posix-tests (Depends-on): Likewise.
59450         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
59451         * modules/vsprintf-posix-tests (Depends-on): Likewise.
59452         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
59453         * modules/vasprintf-posix-tests (Depends-on): Likewise.
59454
59455 2008-03-31  Bruno Haible  <bruno@clisp.org>
59456
59457         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
59458         * doc/posix-functions/strtod.texi: Likewise.
59459
59460 2008-03-31  Bruno Haible  <bruno@clisp.org>
59461
59462         * tests/test-strtod.c (main): Don't use C99 syntax.
59463
59464 2008-03-31  Bruno Haible  <bruno@clisp.org>
59465
59466         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
59467         Reported by Eric Blake.
59468
59469 2008-03-31  Jim Meyering  <meyering@redhat.com>
59470
59471         Don't compare actual signbit return values.
59472         * tests/test-strtod.c (main): Rather, compare only their
59473         zero/non-zero nature.
59474
59475 2008-03-31  Eric Blake  <ebb9@byu.net>
59476
59477         More strtod documentation.
59478         * doc/posix-functions/strtod.texi (strtod): Interpret more test
59479         failures as distinct bugs.
59480
59481 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
59482
59483         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
59484         Problem reported by Erik Benada in
59485         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
59486
59487 2008-03-30  Bruno Haible  <bruno@clisp.org>
59488
59489         * tests/test-strtod.c: Add comments about which assertion fails on which
59490         platform.
59491         * doc/posix-functions/strtod.texi: Add info about many more platforms.
59492
59493 2008-03-30  Eric Blake  <ebb9@byu.net>
59494
59495         Test signbit behavior on zeros.
59496         * tests/test-signbit.c (test_signbitf): Add tests for zero.
59497         (test_signbitd, test_signbitl): Likewise.
59498
59499         More strtod touchups.
59500         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
59501         sign of negative underflow, for now.  Use .5, not .1.
59502         * doc/posix-functions/strtod.texi (strtod): Mention these
59503         limitations.
59504         Reported by Jim Meyering.
59505
59506 2008-03-30  Bruno Haible  <bruno@clisp.org>
59507
59508         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
59509         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
59510
59511 2008-03-30  Bruno Haible  <bruno@clisp.org>
59512
59513         Avoid failure when attempting to return empty iconv results on some
59514         platforms.
59515         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
59516         allocation, don't report ENOMEM when the resulting string is empty.
59517
59518 2008-03-30  Bruno Haible  <bruno@clisp.org>
59519
59520         Fix buffer overrun.
59521         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
59522         Don't consider the width for tmp_length. Check count against tmp_length
59523         before doing the padding. Ensure enough allocation during padding.
59524
59525 2008-03-30  Eric Blake  <ebb9@byu.net>
59526
59527         strtod touchups.
59528         * lib/strtod.c (strtod): Avoid compiler warnings.
59529         Reported by Jim Meyering.
59530
59531 2008-03-30  Bruno Haible  <bruno@clisp.org>
59532
59533         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
59534         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
59535         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
59536         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
59537         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
59538         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
59539         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
59540         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
59541
59542         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
59543         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
59544         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
59545         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
59546         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
59547         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
59548         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
59549         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
59550
59551         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
59552         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
59553         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
59554         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
59555         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
59556         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
59557         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
59558         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
59559
59560         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
59561         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
59562
59563         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
59564         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
59565
59566         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
59567         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
59568
59569         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
59570         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
59571         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
59572
59573         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
59574         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
59575         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
59576
59577         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
59578         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
59579         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
59580
59581         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
59582         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
59583         * modules/vasprintf (Depends-on): Add EOVERFLOW.
59584
59585         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
59586         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
59587         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
59588         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
59589         (Depends-on): Add EOVERFLOW.
59590         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
59591         (Depends-on): Add EOVERFLOW.
59592         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
59593         (Depends-on): Add EOVERFLOW.
59594         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
59595         (Depends-on): Add EOVERFLOW.
59596         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
59597         (Depends-on): Add EOVERFLOW.
59598         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
59599         (Depends-on): Add EOVERFLOW.
59600         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
59601         (Depends-on): Add EOVERFLOW.
59602         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
59603         (Depends-on): Add EOVERFLOW.
59604
59605         * lib/sprintf.c (EOVERFLOW): Remove fallback.
59606         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
59607         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
59608
59609         * lib/snprintf.c (EOVERFLOW): Remove fallback.
59610         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
59611         * modules/snprintf (Depends-on): Add EOVERFLOW.
59612
59613         * lib/poll.c (EOVERFLOW): Remove fallback.
59614         * modules/poll (Depends-on): Add EOVERFLOW.
59615
59616         * lib/getugroups.c (EOVERFLOW): Remove fallback.
59617         * modules/getugroups (Depends-on): Add EOVERFLOW.
59618
59619         * lib/getdelim.c (EOVERFLOW): Remove fallback.
59620         * modules/getdelim (Depends-on): Add EOVERFLOW.
59621
59622         * lib/ftell.c (EOVERFLOW): Remove fallback.
59623         * modules/ftell (Depends-on): Add EOVERFLOW.
59624
59625         * lib/fprintf.c (EOVERFLOW): Remove fallback.
59626         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
59627         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
59628
59629         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
59630
59631         * modules/EOVERFLOW-tests: New file.
59632         * tests/test-EOVERFLOW.c: New file.
59633
59634         * modules/EOVERFLOW: New file.
59635         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
59636
59637 2008-03-30  Bruno Haible  <bruno@clisp.org>
59638
59639         Fix bug introduced on 2007-06-10.
59640         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
59641         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
59642
59643 2008-03-30  Bruno Haible  <bruno@clisp.org>
59644
59645         Improve freadseek's efficiency after ungetc.
59646         * lib/freadseek.c: Include freadahead.h.
59647         (freadptrinc): New function, extracted from freadseek.
59648         (freadseek): Use it in a loop. Use freadahead to determine the number
59649         of loop iterations.
59650         * modules/freadseek (Depends-on): Add freadahead.
59651         (configure.ac): Require AC_C_INLINE.
59652
59653 2008-03-30  Bruno Haible  <bruno@clisp.org>
59654
59655         * lib/freadseek.c (freadseek): Don't ignore the return value of
59656         freadptr.
59657
59658 2008-03-29  Eric Blake  <ebb9@byu.net>
59659
59660         Add hex float support.
59661         * modules/strtod (Depends-on): Add c-ctype.
59662         (Link): Mention POW_LIB.
59663         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
59664         whitespace between 'e' and exponent.
59665         * tests/test-strtod.c (main): Enable hex float tests.
59666         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
59667         now provides.
59668
59669         Document various strtod bugs, with some fixes.
59670         * doc/posix-functions/strtod.texi (strtod): Document bugs with
59671         "-0x", "inf", "nan", and hex constants.
59672         * doc/posix-functions/atof.texi (atof): Likewise.
59673         * modules/stdlib (Makefile.am): Support strtod.
59674         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
59675         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
59676         detect additional strtod bugs.
59677         * lib/stdlib.in.h (rpl_strtod): Add declarations.
59678         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
59679         bool where appropriate.  Parse 'inf' and 'nan'.
59680         * tests/test-strtod.c: New file.
59681         * modules/strtod (Depends-on): Add stdbool, stdlib.
59682         (configure.ac): Turn on module indicator.
59683         * modules/strtod-tests: New module.
59684
59685 2008-03-29  Eric Blake  <ebb9@byu.net>
59686
59687         Fix ftell on mingw.
59688         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
59689         * modules/ftell-tests (Depends-on): Add binary-io.
59690         * modules/ftello-tests (Depends-on): Likewise.
59691         * tests/test-ftell.c (main): Enhance test to cover behavior after
59692         ungetc.  Enforce binary mode.
59693         * tests/test-ftello.c (main): Likewise.
59694
59695         Pass test-freadseek on cygwin.
59696         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
59697         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
59698         ungetc buffer.
59699
59700         * tests/test-fflush2.c (main): Fix typo.
59701
59702 2008-03-29  Bruno Haible  <bruno@clisp.org>
59703
59704         * tests/test-fflush2.c (main): Temporarily disable the contents of
59705         this test.
59706         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
59707         Reported by Eric Blake.
59708
59709 2008-03-28  Simon Josefsson  <simon@josefsson.org>
59710
59711         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
59712         (GC_SHA224_DIGEST_SIZE): Add.
59713
59714         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
59715         (gc_hash_digest_length): Likewise.
59716         (gc_hash_buffer): Likewise.
59717
59718 2008-03-25  Bruno Haible  <bruno@clisp.org>
59719
59720         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
59721         detail which gettext release to use.
59722         Reported by Simon Josefsson.
59723
59724 2008-03-26  Jim Meyering  <meyering@redhat.com>
59725
59726         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
59727         * modules/gnumakefile (clean-GNUmakefile): Also, use
59728         test ... && ... || : syntax rather than if-then ... fi.
59729
59730         gnumakefile: Don't double-quote-expand $(VPATH) value.
59731         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
59732
59733 2008-03-24  Eric Blake  <ebb9@byu.net>
59734
59735         Alter GNUmakefile to install into top directory.
59736         * modules/maintainer-makefile: Split, and add dependency...
59737         * modules/gnumakefile: to this new module.
59738         * build-aux/GNUmakefile: Move...
59739         * top/GNUmakefile: ...here.
59740         * build-aux/maint.mk: Move...
59741         * top/maint.mk: ...here.
59742         * MODULES.html.sh (Support for maintaining...): Document new
59743         module.
59744
59745 2008-03-23  Bruno Haible  <bruno@clisp.org>
59746
59747         * gnulib-tool: New options --vc-files, --no-vc-files.
59748         (func_usage): Document them.
59749         (vc_files): New variable.
59750         (func_import): Consider vc_files.
59751         (func_create_testdir): Set vc_files to empty.
59752         Suggested by Jim Meyering and Karl Berry.
59753
59754 2008-03-23  Bruno Haible  <bruno@clisp.org>
59755
59756         Fix regex compilation error on HP-UX 11.
59757         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
59758         * modules/regex (Files): Add m4/mbstate_t.m4.
59759         Reported by Ton Voon <ton.voon@altinity.com>.
59760
59761 2008-03-23  Bruno Haible  <bruno@clisp.org>
59762
59763         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
59764
59765 2008-03-23  Eric Blake  <ebb9@byu.net>
59766             Bruno Haible  <bruno@clisp.org>
59767
59768         Install files from top/ in the destination directory.
59769         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
59770         augmentation also for the files from top/.
59771         (func_import, func_create_testdir): Rewrite file names:
59772         top/filename -> filename.
59773
59774 2008-03-23  Bruno Haible  <bruno@clisp.org>
59775
59776         Tweak "gnulib --version" output.
59777         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
59778
59779 2008-03-23  Bruno Haible  <bruno@clisp.org>
59780
59781         Tweak "gnulib --version" output.
59782         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
59783         rather than contents of ChangeLog, when possible.
59784
59785 2008-03-21  Eric Blake  <ebb9@byu.net>
59786
59787         More --version tweaks.
59788         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
59789         date of last ChangeLog entry.
59790
59791 2008-03-21  Jim Meyering  <meyering@redhat.com>
59792
59793         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
59794
59795 2008-03-20  Eric Blake  <ebb9@byu.net>
59796
59797         VPATH fix.
59798         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
59799
59800 2008-03-20  Simon Josefsson  <simon@josefsson.org>
59801
59802         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
59803         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
59804
59805 2008-03-20  Eric Blake  <ebb9@byu.net>
59806
59807         Sync GNUmakefile with coreutils.
59808         * build-aux/GNUmakefile (have-Makefile): Rename...
59809         (_have-Makefile): ...to this, for namespace consideration.
59810         (GNUmakefile.cfg): Include, if present.
59811         (_autoreconf): Define a default.
59812         (_is-dist-target): New rule for rebuilds to pick up intra-release
59813         version.
59814         (maint-cfg.mk): Rename...
59815         (cfg.mk): ...to this.
59816
59817 2008-03-18  Jim Meyering  <meyering@redhat.com>
59818
59819         New script and module: mktempd
59820         * MODULES.html.sh (maint+release support): Add mktempd.
59821         * build-aux/mktempd: New file.
59822         * modules/mktempd: New file.
59823
59824 2008-03-15  Jim Meyering  <meyering@redhat.com>
59825
59826         Undo last change.
59827         * lib/sha1.c, lib/md5.c: 63 != ~63.
59828         Reported by Andreas Schwab.
59829
59830         sha1.c, md5.c: Hoist a redundant expression.
59831         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
59832         "ctx->buflen" only once, before calling *_process_block.
59833         * lib/md5.c (md5_process_bytes): Likewise.
59834
59835 2008-03-14  Eric Blake  <ebb9@byu.net>
59836
59837         Bump copyright year in files generated by gnulib-tool.
59838         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
59839         gnulib-tool, rather than hard-coding it.
59840
59841         Fix 'gnulib-tool --version' output to work with git.
59842         * gnulib-tool (func_gnulib_dir): New function, extracted from...
59843         (startup): ...here.
59844         (func_version): Use it to invoke git-version-gen, rather than
59845         relying on CVS keyword expansion.  Modernize wording.
59846         (cvsdatestamp, last_checkin_date, version): Kill unused
59847         variables.
59848
59849 2008-03-12  Jim Meyering  <meyering@redhat.com>
59850
59851         Recognize optional cast of the argument to free.
59852         * build-aux/useless-if-before-free: Update regexps.
59853
59854         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
59855
59856 2008-03-11  Bruno Haible  <bruno@clisp.org>
59857
59858         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
59859         by a single package.
59860         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
59861         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
59862         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
59863         Reported by Sam Steingold <sds@gnu.org>.
59864
59865 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
59866
59867         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
59868         repositories.
59869
59870 2008-03-11  Bruno Haible  <bruno@clisp.org>
59871
59872         Avoid conflicts between local macro definitions.
59873         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
59874         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
59875
59876 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
59877             Bruno Haible  <bruno@clisp.org>
59878
59879         Make va_copy work with some version of xlc on AIX 5.1.
59880         * lib/stdarg.in.h: New file.
59881         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
59882         On AIX, use a <stdarg.h> file substitute.
59883         * modules/stdarg (Files): Add lib/stdarg.in.h.
59884         (Depends-on): Add include_next.
59885         (Makefile.am): Build a stdarg.h substitute if requested.
59886         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
59887
59888 2008-03-10  Bruno Haible  <bruno@clisp.org>
59889
59890         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
59891         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
59892         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
59893
59894 2008-03-10  Bruno Haible  <bruno@clisp.org>
59895
59896         * modules/stdlib (Depends-on): Add include_next, remove
59897         absolute-header.
59898
59899 2008-03-09  Bruno Haible  <bruno@clisp.org>
59900
59901         * lib/freadahead.h (freadahead): Document more precisely.
59902         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
59903         the sum of both buffer sizes.
59904         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
59905         * NEWS: Document the change.
59906
59907 2008-03-09  Bruno Haible  <bruno@clisp.org>
59908
59909         Extend freadptr to return also the buffer size.
59910         * lib/freadptr.h (freadptr): Add sizep argument.
59911         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
59912         (freadptr): Add sizep argument. Determine buffer size like freadahead
59913         does.
59914         * tests/test-freadptr.c: Don't include freadahead.h.
59915         (main): Adapt for new calling convention of freadptr.
59916         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
59917         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
59918         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
59919         tests/test-freadptr2.sh.
59920         (Depends): Remove freadahead.
59921         (TESTS): Add test-freadptr2.sh.
59922         (check_PROGRAMS): Add test-freadptr2.
59923
59924 2008-03-09  Bruno Haible  <bruno@clisp.org>
59925
59926         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
59927         Report and solution by Simon Josefsson.
59928
59929 2008-03-06  Bruno Haible  <bruno@clisp.org>
59930
59931         Make fflush after ungetc work on BSD platforms.
59932         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
59933         * tests/test-fflush2.c: New file.
59934         * tests/test-fflush2.sh: New file.
59935         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
59936         tests/test-fflush2.c.
59937         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
59938         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
59939
59940 2008-03-06  Eric Blake  <ebb9@byu.net>
59941
59942         Likewise for ftello.
59943         * modules/ftello (Dependencies): Add extensions.
59944         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
59945
59946 2008-03-06  Bruno Haible  <bruno@clisp.org>
59947
59948         * modules/fseeko (Dependencies): Add extensions.
59949         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
59950         Needed on glibc systems.
59951
59952 2008-03-06  Bruno Haible  <bruno@clisp.org>
59953
59954         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
59955         email address.
59956         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
59957
59958 2008-03-06  Bruno Haible  <bruno@clisp.org>
59959
59960         * users.txt: Add libgnupdf.
59961
59962 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
59963
59964         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
59965         (Header File Substitutes, Function Substitutes,
59966         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
59967         (Build robot for gnulib): Fix typo.
59968
59969 2008-03-06  Bruno Haible  <bruno@clisp.org>
59970
59971         * doc/gnulib-tool.texi (VCS Issues): Small updates.
59972         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
59973
59974 2008-03-06  Bruno Haible  <bruno@clisp.org>
59975
59976         * doc/func.texi: New file, extracted from doc/gnulib.texi.
59977         * doc/gnulib.texi: Include it.
59978
59979 2008-03-06  Simon Josefsson  <simon@josefsson.org>
59980
59981         * modules/func (License): Change license to unlimited; there was
59982         no LGPL parts in the module anyway.
59983
59984 2008-03-06  Simon Josefsson  <simon@josefsson.org>
59985
59986         * modules/__func__: Renamed to modules/func.
59987         * modules/__func__-tests: Renamed to modules/func-tests.
59988         * tests/test-__func__.c: Renamed to tests/test-func.c.
59989         * m4/__func__.m4: Renamed to m4/func.m4.
59990         * doc/gnulib.texi (__func__): Section renamed to func.
59991         Suggested by Eric Blake <ebb9@byu.net>.
59992
59993 2008-03-06  Simon Josefsson  <simon@josefsson.org>
59994
59995         * doc/gnulib.texi (__func__): Use C99 terminology when talking
59996         about __func__.  Make example self-contained.  Suggested by Eric
59997         Blake <ebb9@byu.net>.
59998
59999         * tests/test-__func__.c (main): Avoid extraneous () around __func.
60000         Suggested by Eric Blake <ebb9@byu.net>.
60001
60002 2008-03-06  Simon Josefsson  <simon@josefsson.org>
60003
60004         * modules/__func__: New file.
60005         * modules/__func__-tests: New file.
60006         * tests/test-__func__.c: New file.
60007         * m4/__func__.m4: New file.
60008         * doc/gnulib.texi (__func__): Document __func__ module.
60009
60010 2008-03-05  Simon Josefsson  <simon@josefsson.org>
60011
60012         * modules/byteswap (License): Re-license as LGPLv2+.
60013
60014 2008-03-05  Simon Josefsson  <simon@josefsson.org>
60015
60016         * doc/Makefile: Add pdf target.
60017
60018 2008-03-05  Simon Josefsson  <simon@josefsson.org>
60019
60020         * modules/inline (License): Use 'unlimited', since there are only
60021         *.m4 files in this module.
60022
60023 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
60024             Bruno Haible  <bruno@clisp.org>
60025
60026         Add support for HP C 7.1 on OpenVMS 8.3.
60027         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
60028
60029 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
60030
60031         Update VMS specifics.
60032         * lib/getopt.c [VMS]: Remove include of unixlib.h.
60033
60034 2008-03-02  Jim Meyering  <meyering@redhat.com>
60035
60036         Remove the last dependency on the "free" module.
60037         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
60038         Reported by Bob Proulx.
60039
60040         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
60041
60042         Remove useless "if" tests before free.  Deprecate "free" module.
60043         * doc/posix-functions/free.texi: Mention that this
60044         module is no longer useful.
60045         * modules/free (Notice): Say this module is obsolete.
60046         * modules/readutmp (Depends-on): Remove free.
60047         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
60048         * lib/putenv.c (putenv): Likewise.
60049         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
60050         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
60051         * tests/test-c-strcasestr.c (main): Likewise.
60052         * tests/test-c-strstr.c (main): Likewise.
60053         * tests/test-mbscasestr1.c (main): Likewise.
60054         * tests/test-mbscasestr2.c (main): Likewise.
60055         * tests/test-mbsstr1.c (main): Likewise.
60056         * tests/test-mbsstr2.c (main): Likewise.
60057         * tests/test-memmem.c (main): Likewise.
60058         * tests/test-strcasestr.c (main): Likewise.
60059         * tests/test-striconv.c (main): Likewise.
60060         * tests/test-striconveh.c (main): Likewise.
60061         * tests/test-striconveha.c (main): Likewise.
60062         * tests/test-strstr.c (main): Likewise.
60063
60064         * build-aux/git-version-gen: Adjust a comment and the Usage string.
60065
60066         bootstrap: sync from coreutils again
60067         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
60068
60069 2008-03-01  Jim Meyering  <meyering@redhat.com>
60070
60071         bootstrap: sync from coreutils
60072         * build-aux/bootstrap (update_po_files): Copy a .po file into place
60073         also when the target doesn't exist.
60074
60075 2008-03-01  Eric Blake  <ebb9@byu.net>
60076
60077         Fix bugs in last patch.
60078         * lib/memchr2.c (memchr2): Fix typo.
60079         * tests/test-memchr2.c: Test previous bug, and don't use GNU
60080         extension.
60081         Reported by Bruce Korb.
60082
60083         New module 'memchr2'.
60084         * modules/memchr2: New file.
60085         * modules/memchr2-tests: Likewise.
60086         * lib/memchr2.h: Likewise.
60087         * lib/memchr2.c: Likewise, based on memchr.c.
60088         * tests/test-memchr2.c: New test.
60089         * MODULES.html.sh (String handling): Add memchr2.
60090
60091 2008-02-29  Bruno Haible  <bruno@clisp.org>
60092
60093         * modules/freadseek-tests: New file.
60094         * tests/test-freadseek.sh: New file.
60095         * tests/test-freadseek.c: New file.
60096
60097         New module 'freadseek'.
60098         * modules/freadseek: New file.
60099         * lib/freadseek.h: New file.
60100         * lib/freadseek.c: New file.
60101         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
60102
60103 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
60104
60105         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
60106         wydawca.
60107
60108         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
60109         program_invocation_name and program_invocation_short_name are
60110         present.
60111
60112 2008-02-28  Bruno Haible  <bruno@clisp.org>
60113
60114         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
60115         * tests/test-freadptr.sh: Also test non-seekable stdin.
60116
60117 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
60118
60119         * build-aux/bootstrap (source_base, m4_base)
60120         (doc_base, tests_base): New variables.
60121         (gnulib_tool_options): Do not hardcode base directories, use
60122         the above variables instead.
60123
60124 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
60125
60126         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
60127
60128 2008-02-28  Bruno Haible  <bruno@clisp.org>
60129
60130         * modules/freadptr-tests: New file.
60131         * tests/test-freadptr.sh: New file.
60132         * tests/test-freadptr.c: New file.
60133
60134         New module 'freadptr'.
60135         * modules/freadptr: New file.
60136         * lib/freadptr.h: New file.
60137         * lib/freadptr.c: New file.
60138         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
60139
60140 2008-02-26  Karl Berry  <karl@freefriends.org>
60141
60142         Sync from Libtool:
60143         * libltdl/argz.c (argz_add, argz_count): New functions.
60144         * libltdl/argz.in.h: Declare them.
60145         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
60146
60147 2008-02-22  Bruno Haible  <bruno@clisp.org>
60148
60149         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
60150         is a pointer type.  Needed for HP-UX 10.
60151         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
60152         * doc/posix-functions/gmtime_r.texi: Likewise.
60153         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
60154
60155 2008-02-24  Bruno Haible  <bruno@clisp.org>
60156
60157         * modules/environ-tests: New file.
60158         * tests/test-environ.c: New file.
60159
60160         New module 'environ'.
60161         * modules/environ: New file.
60162         * lib/unistd.in.h (environ): New declaration.
60163         * m4/environ.m4: New file.
60164         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
60165         after use.
60166         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
60167         HAVE_DECL_ENVIRON.
60168         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
60169         HAVE_DECL_ENVIRON.
60170         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
60171         wrong claim that 'environ' is missing on some systems.
60172         * modules/execute (Depends-on): Add environ.
60173         * lib/execute.c (environ): Remove fallback declaration.
60174         * modules/pipe (Depends-on): Add environ.
60175         * lib/pipe.c (environ): Remove fallback declaration.
60176         * modules/setenv (Depends-on): Add environ.
60177         * lib/setenv.c (environ): Remove fallback declaration.
60178         * modules/unsetenv (Depends-on): Add environ.
60179         * lib/unsetenv.c (environ): Remove fallback declaration.
60180         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
60181         m4/environ.m4.
60182         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
60183         (gl_PREREQ_UNSETENV): Likewise.
60184
60185 2008-02-24  Bruno Haible  <bruno@clisp.org>
60186
60187         * doc/posix-functions/environ.texi: Document the MacOS X problem.
60188
60189 2008-02-20  Bob Proulx  <bob@proulx.com>
60190
60191         Enable use of older two part flavor 'git describe'.
60192         * build-aux/git-version-gen: If using the older two part flavor of
60193         git version then recreate the third part now present in the
60194         newer three part flavor of git describe.
60195
60196 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
60197
60198         * lib/fts.c (fts_build): Typo correction to comment.
60199
60200 2008-02-17  Bruno Haible  <bruno@clisp.org>
60201
60202         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
60203         generating no-op conflicts.
60204
60205 2008-02-17  Bruno Haible  <bruno@clisp.org>
60206
60207         Speed up by 10%.
60208         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
60209         result_entries, rather than an index-based loop.
60210
60211 2008-02-17  Bruno Haible  <bruno@clisp.org>
60212
60213         Speed up by 25%.
60214         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
60215         'hashcode_cached'.
60216         (entry_create): New function.
60217         (entry_hashcode): Use the cached hashcode if possible.
60218         (read_changelog_file, try_split_merged_entry): Use entry_create.
60219
60220 2008-02-17  Bruno Haible  <bruno@clisp.org>
60221
60222         Speed up from O(n^2) to O(n) for long ChangeLog files.
60223         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
60224         (read_changelog_file): Change implementation of entries_reversed list
60225         to rbtreehash.
60226         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
60227
60228 2008-02-17  Bruno Haible  <bruno@clisp.org>
60229
60230         New option --split-merged-entry.
60231         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
60232         (find_paragraph_end, try_split_merged_entry): New functions.
60233         (long_options): Add option --split-merged-entry.
60234         (usage): Document option --split-merged-entry.
60235         (main): Implement option --split-merged-entry.
60236         Reported by Eric Blake.
60237
60238 2008-02-17  Bruno Haible  <bruno@clisp.org>
60239
60240         * lib/git-merge-changelog.c: Include c-strstr.h.
60241         (main): Support the "git pull --rebase" situation.
60242         * modules/git-merge-changelog (Depends-on): Add c-strstr.
60243         Reported by Eric Blake.
60244
60245 2008-02-16  Eric Blake  <ebb9@byu.net>
60246
60247         Avoid doubling \ in common case of "c-maybe" quoting style.
60248         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
60249         eliding outer quotes.
60250         * lib/quotearg.h: Document this.
60251         * tests/test-quotearg.c (result_strings, inputs, results_g)
60252         (flag_results, locale_results): Test it by adding a new string to
60253         each test group.
60254         (compare_strings): Test new string.
60255
60256 2008-02-13  Eric Blake  <ebb9@byu.net>
60257
60258         Avoid trigraph quoting in default output.
60259         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
60260         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
60261         unless explicitly requested.
60262         * tests/test-quotearg.c (flag_results, main): Add additional tests.
60263
60264 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
60265
60266         Don't rely on signed integer overflowing to negative value.
60267         * lib/getugroups.c (getugroups): Include <limits.h>.
60268         Instead, compare against INT_MAX, and increment only if the test passes.
60269
60270 2008-02-13  Jim Meyering  <meyering@redhat.com>
60271         and Eric Blake  <ebb9@byu.net>
60272
60273         Avoid shadowing warning and compile errors on Linux.
60274         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
60275         forwarding macros on Linux.
60276         (dcgettext): Define a stub, for Linux.
60277         (results_g, main): Avoid warnings.
60278
60279 2008-02-12  Eric Blake  <ebb9@byu.net>
60280
60281         Silence warning in last patch.
60282         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
60283
60284         Quotearg part 4: add tests, fix c-maybe colon quoting.
60285         * lib/quotearg.h: Improve documentation.
60286         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
60287         escapes when adding outer quotes.  When quoting trigraphs, use
60288         valid C notation.  When quoting NUL, omit extra characters if next
60289         character is not digit.  Alter prototype.
60290         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
60291         callers.
60292         * modules/quotearg-tests: New module.
60293         * tests/test-quotearg.c: New test.
60294
60295 2008-02-07  Eric Blake  <ebb9@byu.net>
60296
60297         Quotearg part 3: add flag to control outer quote elision.
60298         * lib/quotearg.h (c_maybe_quoting_style): New style.
60299         (enum quoting_flags): Better documentation of flags.
60300         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
60301         c-maybe style.
60302         (quotearg_buffer_restyled): Handle new flag to elide outer
60303         quotes.
60304
60305         Quotearg part 2: add flag that can control NUL elision.
60306         * lib/quotearg.h (set_quoting_flags): New prototype.
60307         * lib/quotearg.c (struct quoting_options): Add flag field.
60308         (set_quoting_flags): New function.
60309         (quotearg_buffer_restyled): Add flags parameter.
60310         (quotearg_alloc_mem): Set the flag if length cannot be returned.
60311         (quotearg_n_options): Set the flag, since length cannot be
60312         returned.
60313         (quoting_options_from_style): Default flags correctly.
60314
60315         Quotearg part 1: more wrappers, restore quotearg_char state.
60316         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
60317         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
60318         (quotearg_colon_mem): New wrappers.
60319         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
60320         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
60321         functions.
60322         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
60323         (quotearg_colon_mem): New functions.
60324
60325 2008-02-11  Bruno Haible  <bruno@clisp.org>
60326
60327         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
60328         library in the current directory: it does not work with parallel make.
60329         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60330
60331 2008-02-11  Bruno Haible  <bruno@clisp.org>
60332
60333         * .gitattributes: New file.
60334
60335 2008-02-11  Jim Meyering  <meyering@redhat.com>
60336
60337         useless-if-before-free: Fix reversed exit values.
60338         * build-aux/useless-if-before-free: Use correct values
60339         for EXIT_MATCH and EXIT_NO_MATCH.
60340
60341         * build-aux/useless-if-before-free: Close stdout carefully.
60342
60343 2008-02-10  Bruno Haible  <bruno@clisp.org>
60344
60345         New module 'git-merge-changelog'.
60346         * modules/git-merge-changelog: New file.
60347         * lib/git-merge-changelog.c: New file.
60348
60349 2008-02-10  Jim Meyering  <meyering@redhat.com>
60350
60351         useless-if-before-free: New option: --list (-l).
60352
60353         useless-if-before-free: Don't exit immediately upon open failure.
60354         * build-aux/useless-if-before-free: Exit 2 for errors.
60355         Upon failure to open a file, don't exit immediately.
60356         Rather, just warn and continue with any remaining files.
60357
60358 2008-02-10  Bruno Haible  <bruno@clisp.org>
60359
60360         New abstract list operation 'node_set_value'.
60361         * lib/gl_list.h (gl_list_node_set_value): New function.
60362         (struct gl_list_implementation): New field node_set_value.
60363         * lib/gl_list.c (gl_list_node_set_value): New function.
60364         * lib/gl_array_list.c (gl_array_node_set_value): New function.
60365         (gl_array_list_implementation): Update.
60366         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
60367         (gl_carray_list_implementation): Update.
60368         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
60369         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
60370         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
60371         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
60372         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
60373         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
60374         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
60375         Update.
60376         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
60377         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
60378         (gl_sublist_list_implementation): Update.
60379
60380 2008-02-10  Bruno Haible  <bruno@clisp.org>
60381
60382         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
60383         Needed when ELEMENT is #defined to 'some_type *'.
60384
60385 2008-02-10  Jim Meyering  <meyering@redhat.com>
60386
60387         New script and module: useless-if-before-free
60388         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
60389         * build-aux/useless-if-before-free: New file.
60390         * modules/useless-if-before-free: New file.
60391
60392         * build-aux/gitlog-to-changelog: Use committer date, not author date.
60393
60394         xstrtol_error: Fix typo.
60395         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
60396         s/exit_failure/exit_status/.
60397
60398 2008-02-09  Jim Meyering  <meyering@redhat.com>
60399
60400         New script and module: gitlog-to-changelog
60401         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
60402         * modules/gitlog-to-changelog: New file.
60403         * build-aux/gitlog-to-changelog: New file.
60404
60405 2008-02-08  Jim Meyering  <meyering@redhat.com>
60406
60407         Avoid two "parameter unused" warnings.
60408         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
60409         Mark "st" as used.
60410
60411         Use "git COMMAND", not "git-COMMAND".
60412         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
60413         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
60414         * build-aux/git-version-gen: Use "git status", not "git-status".
60415
60416 2008-02-07  Bruno Haible  <bruno@clisp.org>
60417
60418         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
60419         Avoids a crash on Windows Vista.
60420         Reported by Adam Strzelecki <ono@java.pl> via
60421         Simon Josefsson <simon@josefsson.org>.
60422
60423 2008-02-06  Bruno Haible  <bruno@clisp.org>
60424
60425         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
60426         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
60427         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
60428         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
60429         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
60430         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60431         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
60432         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
60433         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
60434         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60435         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60436         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60437         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60438         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60439         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60440         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
60441         left-adjust flag.
60442         * tests/test-snprintf-posix.h (test_function): Likewise.
60443         * tests/test-sprintf-posix.h (test_function): Likewise.
60444         * tests/test-vasprintf-posix.c (test_function): Likewise.
60445         * doc/posix-functions/fprintf.texi: Update.
60446         * doc/posix-functions/printf.texi: Update.
60447         * doc/posix-functions/snprintf.texi: Update.
60448         * doc/posix-functions/sprintf.texi: Update.
60449         * doc/posix-functions/vfprintf.texi: Update.
60450         * doc/posix-functions/vprintf.texi: Update.
60451         * doc/posix-functions/vsnprintf.texi: Update.
60452         * doc/posix-functions/vsprintf.texi: Update.
60453         Reported by Peter Fales <psfales@alcatel-lucent.com>.
60454
60455 2008-02-06  Bruno Haible  <bruno@clisp.org>
60456
60457         Fix bug introduced on 2008-01-26.
60458         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
60459
60460 2008-02-06  Bruno Haible  <bruno@clisp.org>
60461
60462         Fix bug introduced on 2007-06-10.
60463         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
60464         !NEED_PRINTF_FLAG_ZERO.
60465
60466 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
60467
60468         getloadavg: use libperfstat on AIX5
60469         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
60470
60471 2008-02-03  Bruno Haible  <bruno@clisp.org>
60472
60473         * lib/diffseq.h: Add comments about required #includes.
60474         Reported by Michael Biggs <gnulib@doubleplum.net>.
60475
60476 2008-02-01  Bruno Haible  <bruno@clisp.org>
60477
60478         * users.txt: Add gnuit.
60479
60480 2008-01-31  Bruno Haible  <bruno@clisp.org>
60481
60482         * lib/md4.c (set_uint32): Mark as inline.
60483         * lib/md5.c (set_uint32): Likewise.
60484         * lib/sha1.c (set_uint32): Likewise.
60485         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
60486         * m4/md5.m4 (gl_MD5): Likewise.
60487         * m4/sha1.m4 (gl_SHA1): Likewise.
60488
60489 2008-01-31  Jim Meyering  <meyering@redhat.com>
60490
60491         Use "sizeof VAR", rather than a literal "4".
60492         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
60493         * lib/md4.c (md4_read_ctx): Likewise.
60494         * lib/sha1.c (sha1_read_ctx): Likewise.
60495
60496 2008-01-31  Simon Josefsson  <simon@josefsson.org>
60497
60498         * tests/test-sha1.c: New file, based on test-md5.c.
60499
60500         * modules/crypto/sha1-tests: New file.
60501
60502 2008-01-31  Simon Josefsson  <simon@josefsson.org>
60503
60504         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
60505
60506 2008-01-31  Jim Meyering  <meyering@redhat.com>
60507
60508         Prefer "sizeof v" over the equivalent "4".
60509         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
60510         * lib/md5.c (set_uint32): Likewise.
60511         * lib/sha1.c (set_uint32): Likewise.
60512
60513 2008-01-31  Simon Josefsson  <simon@josefsson.org>
60514
60515         * lib/sha1.c (set_uint32): Mark function as static.
60516
60517 2008-01-31  Simon Josefsson  <simon@josefsson.org>
60518
60519         md2: clarify comments to say that alignment is not required.
60520         * lib/md2.h: Remove warning about alignment in comment.
60521         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
60522         never been required.
60523
60524 2008-01-31  Simon Josefsson  <simon@josefsson.org>
60525
60526         md4: adapt alignment constraint fix from sha1.
60527         * lib/md4.c (set_uint32): New function, from sha1.c
60528         (md4_read_ctx): Use it.
60529         (md4_finish_ctx): Doc fix.
60530         * lib/md4.h: Doc fix.
60531
60532 2008-01-31  Simon Josefsson  <simon@josefsson.org>
60533
60534         md5: adapt alignment constraint fix from sha1.
60535         * lib/md5.c (set_uint32): New function, from sha1.c
60536         (md5_read_ctx): Use it.
60537         (md5_finish_ctx): Doc fix.
60538         * lib/md5.h: Doc fix.
60539
60540 2008-01-30  Peter Palfrader  <weasel@debian.org>
60541
60542         sha1: remove the result buffer alignment constraint
60543         * lib/sha1.c (set_uint32): New function.
60544         (sha1_read_ctx): Rewrite to remove the result buffer alignment
60545         constraint.
60546         (sha1_finish_ctx): Remove comment warning about alignment constraint.
60547         * lib/sha1.h: Likewise.
60548
60549 2008-01-30  Andreas Schwab  <schwab@suse.de>
60550             Bruno Haible  <bruno@clisp.org>
60551
60552         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
60553         correct definition of LDBL_MIN_EXP.
60554
60555 2008-01-30  Karl Berry  <karl@gnu.org>
60556
60557         * config/srclist-update: try to preserve x bit on updates.
60558         * config/srclistvars.sh: update for karl.
60559
60560 2008-01-29  Jim Meyering  <meyering@redhat.com>
60561
60562         vasnprintf.c: Avoid warning about unused label
60563         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
60564         "overflow" label definition and associated code with the
60565         same cpp condition that guards the sole use of that label.
60566
60567 2008-01-26  Bruno Haible  <bruno@clisp.org>
60568
60569         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
60570         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
60571         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
60572         * lib/isnanl-nolibm.h (isnanl): Likewise.
60573         Reported by Paul Eggert <eggert@cs.ucla.edu>.
60574
60575 2008-01-26  Bruno Haible  <bruno@clisp.org>
60576
60577         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
60578         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
60579
60580 2008-01-26  Bruno Haible  <bruno@clisp.org>
60581
60582         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
60583         GCC >= 4.0 built-in.
60584         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
60585
60586 2008-01-26  Bruno Haible  <bruno@clisp.org>
60587
60588         Rename isnan, applicable to 'double' only, to isnand.
60589         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
60590         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
60591         (configure.ac): Update.
60592         (Include): Replace "isnan.h" with "isnand.h".
60593         * m4/isnand.m4: Renamed from m4/isnan.m4.
60594         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
60595         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
60596         instead of isnan.c.
60597         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
60598         instead of HAVE_ISNAN_IN_LIBC.
60599         (isnand): Renamed from isnan.
60600         * lib/isnand.c: New file.
60601         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
60602         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
60603         (Makefile.am): Update.
60604         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
60605         Include isnand.h instead of isnan.h.
60606         (main): Test isnand instead of isnan.
60607         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
60608         isnan-nolibm.
60609         * modules/frexp (Depends-on): Likewise.
60610         * modules/frexp-tests (Depends-on): Likewise.
60611         * modules/frexp-nolibm (Depends-on): Likewise.
60612         * modules/frexp-nolibm-tests (Depends-on): Likewise.
60613         * modules/isfinite (Depends-on): Likewise.
60614         * modules/round-tests (Depends-on): Likewise.
60615         * modules/signbit (Depends-on): Likewise.
60616         * modules/signbit-tests (Depends-on): Likewise.
60617         * modules/snprintf-posix (Depends-on): Likewise.
60618         * modules/sprintf-posix (Depends-on): Likewise.
60619         * modules/trunc-tests (Depends-on): Likewise.
60620         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
60621         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
60622         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
60623         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
60624         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
60625         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
60626         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
60627         * modules/vasnprintf-posix (Depends-on): Likewise.
60628         * modules/vasprintf-posix (Depends-on): Likewise.
60629         * modules/vfprintf-posix (Depends-on): Likewise.
60630         * modules/vsnprintf-posix (Depends-on): Likewise.
60631         * modules/vsprintf-posix (Depends-on): Likewise.
60632         * lib/frexp.c: Include isnand.h instead of isnan.h.
60633         (ISNAN): Set to isnand instead of isnan.
60634         * lib/isfinite.c: Include isnand.h instead of isnan.h.
60635         (gl_isfinited): Use isnand instead of isnan.
60636         * lib/signbitd.c: Include isnand.h instead of isnan.h.
60637         (gl_signbitd): Use isnand instead of isnan.
60638         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
60639         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
60640         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
60641         (main): Use isnand instead of isnan.
60642         * tests/test-round1.c: Include isnand.h.
60643         (main): Use isnand instead of isnan.
60644         * tests/test-round2.c: Include isnand.h instead of isnan.h.
60645         (ISNAN): Set to isnand instead of isnan.
60646         * tests/test-trunc1.c: Include isnand.h.
60647         (main): Use isnand instead of isnan.
60648         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
60649         (equal): Use isnand instead of isnan.
60650         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
60651         isnand-nolibm.
60652         * NEWS: Mention the change.
60653
60654 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
60655             Bruno Haible  <bruno@clisp.org>
60656
60657         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
60658         the GCC builtins for signbits are present and set
60659         REPLACE_SIGNBIT_USING_GCC if so.
60660         * lib/math.in.h (signbit): Define using GCC builtins if
60661         REPLACE_SIGNBIT_USING_GCC is set.
60662         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
60663         REPLACE_SIGNBIT_USING_GCC.
60664         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
60665
60666 2008-01-25  Jim Meyering  <meyering@redhat.com>
60667
60668         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
60669         * lib/poll.c: Include <config.h>, not "config.h".
60670         * tests/test-getaddrinfo.c: Likewise.
60671
60672 2008-01-25  Simon Josefsson  <simon@josefsson.org>
60673
60674         * modules/sockets-tests: New file.
60675
60676 2008-01-24  Simon Josefsson  <simon@josefsson.org>
60677
60678         * modules/sockets: New module, can be used to call WSA_Startup and
60679         WSA_Cleanup when needed.
60680
60681         * lib/sockets.h, lib/sockets.c: New files.
60682
60683         * m4/sockets.m4: New file.
60684
60685         * tests/test-sockets.c: New file.
60686
60687 2008-01-19  Bruno Haible  <bruno@clisp.org>
60688
60689         * doc/posix-headers: Renamed from doc/headers.
60690         * doc/posix-functions: Renamed from doc/functions.
60691         * doc/gnulib.texi: Update.
60692
60693 2008-01-19  Bruno Haible  <bruno@clisp.org>
60694
60695         * doc/glibc-functions/strcasestr.texi: Include contents of
60696         doc/functions/strcasestr.texi, fixing the list of platforms.
60697         * doc/functions/strcasestr.texi: Remove file.
60698
60699 2008-01-19  Bruno Haible  <bruno@clisp.org>
60700
60701         * doc/glibc-functions/memmem.texi: Include contents of
60702         doc/functions/memmem.texi.
60703         * doc/functions/memmem.texi: Remove file.
60704
60705 2008-01-18  Bruno Haible  <bruno@clisp.org>
60706
60707         * doc/glibc-functions/*.texi: New files.
60708         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
60709         to use the new files.
60710
60711 2008-01-17  Bruno Haible  <bruno@clisp.org>
60712
60713         * tests/test-gethostname.c (main): Fix printf statement.
60714
60715 2008-01-17  Simon Josefsson  <simon@josefsson.org>
60716
60717         * modules/gethostname-tests: New file.
60718
60719         * tests/test-gethostname.c: New file.
60720
60721 2008-01-17  Simon Josefsson  <simon@josefsson.org>
60722
60723         * lib/gethostname.c: Include string.h unconditionally, strncpy is
60724         used by the UNAME case.  Reported by Bruno Haible
60725         <bruno@clisp.org>.
60726
60727 2008-01-17  Eric Blake  <ebb9@byu.net>
60728
60729         Convert c-strcasestr to be more efficient.
60730         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
60731         (Depends-on): Add c-strcase, remove malloca, strnlen.
60732         * tests/test-c-strcasestr.c (main): Enhance test.
60733         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
60734
60735 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
60736
60737         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
60738         Use it in creating po/Makevars.
60739
60740 2008-01-15  Simon Josefsson  <simon@josefsson.org>
60741
60742         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
60743         Applications that requires it should initialize libgcrypt
60744         manually.
60745
60746 2008-01-16  Simon Josefsson  <simon@josefsson.org>
60747
60748         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
60749
60750 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
60751
60752         Fix problem with getdate on mingw32 reported by Simon Josefsson
60753         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
60754         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
60755         tzname", when deciding whether to declare tzname.
60756         * lib/strftime.c (tzname): Likewise.
60757
60758 2008-01-15  Bruno Haible  <bruno@clisp.org>
60759
60760         Work around a MacOS X 10.5 bug in frexpl().
60761         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
60762         * doc/functions/frexpl.texi: Document the bug.
60763         Reported by Elias Pipping <pipping@gentoo.org>.
60764
60765 2008-01-14  Eric Blake  <ebb9@byu.net>
60766
60767         Touch up previous patch.
60768         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
60769         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
60770
60771         Convert strcasestr module to use Two-Way algorithm.
60772         * modules/strcasestr-simple: New module, based on the old
60773         strcasestr, but with Two-Way rather than KMP.
60774         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
60775         * lib/string.in.h (rpl_strcasestr): Declare.
60776         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
60777         performance.
60778         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
60779         * modules/string (Makefile.am): Support strcasestr.
60780         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
60781         * modules/strcasestr-tests (Depends-on): Check for alarm.
60782         * tests/test-strcasestr.c: Augment test.
60783         * lib/str-two-way.h: Clean up stray macro.
60784         * NEWS: Document new module.
60785         * MODULES.html.sh (string handling): Likewise.
60786         * doc/functions/strcasestr.texi: New file.
60787         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
60788         here, since it is not a POSIX function.
60789
60790 2008-01-14  Colin Watson  <cjwatson@debian.org>
60791             Bruno Haible  <bruno@clisp.org>
60792
60793         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
60794         works fine; if not, set REPLACE_STRSIGNAL.
60795         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
60796         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
60797         REPLACE_STRSIGNAL.
60798         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
60799         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
60800         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
60801
60802 2008-01-14  Bruno Haible  <bruno@clisp.org>
60803
60804         * modules/strsignal (Include): Change to <string.h>.
60805
60806 2008-01-14  Colin Watson  <cjwatson@debian.org>
60807
60808         * modules/argp (Notice): Add a notice recommending to change
60809         XGETTEXT_OPTIONS.
60810         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
60811
60812 2008-01-13  Colin Watson  <cjwatson@debian.org>
60813
60814         * modules/strsignal-tests: New file.
60815         * tests/test-strsignal.c: New file.
60816
60817         * lib/strsignal.c: New file, from glibc with modifications.
60818         * lib/siglist.h: New file, from glibc with modifications.
60819         * lib/string.in.h (strsignal): New declaration.
60820         * m4/strsignal.m4: New file.
60821         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
60822         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
60823         * modules/strsignal: New file.
60824         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
60825         HAVE_DECL_STRSIGNAL.
60826
60827 2008-01-13  Bruno Haible  <bruno@clisp.org>
60828
60829         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
60830         locale encoding is not ASCII. Needed for OpenBSD 4.0.
60831         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
60832         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
60833
60834 2008-01-13  Bruno Haible  <bruno@clisp.org>
60835
60836         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
60837         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
60838         * lib/argp.h (__attribute__): Likewise.
60839         * lib/c-stack.c (__attribute__): Likewise.
60840         * lib/error.h (__attribute__): Likewise.
60841         * lib/fts.c (__attribute__): Likewise.
60842         * lib/openat.h (__attribute__): Likewise.
60843         * lib/stdio.in.h (__attribute__): Likewise.
60844         * lib/string.in.h (__attribute__): Likewise.
60845         * lib/utimens.c (__attribute__): Likewise.
60846         * lib/vasnprintf.h (__attribute__): Likewise.
60847         * lib/xalloc.h (__attribute__): Likewise.
60848         * lib/xprintf.h (__attribute__): Likewise.
60849         * lib/xstrtol.h (__attribute__): Likewise.
60850         * lib/xvasprintf.h (__attribute__): Likewise.
60851
60852 2008-01-12  Bruno Haible  <bruno@clisp.org>
60853
60854         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
60855         * doc/glibc-headers/a.out.texi: New file.
60856         * doc/glibc-headers/aliases.texi: New file.
60857         * doc/glibc-headers/alloca.texi: New file.
60858         * doc/glibc-headers/ar.texi: New file.
60859         * doc/glibc-headers/argp.texi: New file.
60860         * doc/glibc-headers/argz.texi: New file.
60861         * doc/glibc-headers/byteswap.texi: New file.
60862         * doc/glibc-headers/crypt.texi: New file.
60863         * doc/glibc-headers/endian.texi: New file.
60864         * doc/glibc-headers/envz.texi: New file.
60865         * doc/glibc-headers/err.texi: New file.
60866         * doc/glibc-headers/error.texi: New file.
60867         * doc/glibc-headers/execinfo.texi: New file.
60868         * doc/glibc-headers/fpu_control.texi: New file.
60869         * doc/glibc-headers/fstab.texi: New file.
60870         * doc/glibc-headers/fts.texi: New file.
60871         * doc/glibc-headers/getopt.texi: New file.
60872         * doc/glibc-headers/ieee754.texi: New file.
60873         * doc/glibc-headers/ifaddrs.texi: New file.
60874         * doc/glibc-headers/libintl.texi: New file.
60875         * doc/glibc-headers/mcheck.texi: New file.
60876         * doc/glibc-headers/mntent.texi: New file.
60877         * doc/glibc-headers/obstack.texi: New file.
60878         * doc/glibc-headers/paths.texi: New file.
60879         * doc/glibc-headers/printf.texi: New file.
60880         * doc/glibc-headers/pty.texi: New file.
60881         * doc/glibc-headers/resolv.texi: New file.
60882         * doc/glibc-headers/shadow.texi: New file.
60883         * doc/glibc-headers/sysexits.texi: New file.
60884         * doc/glibc-headers/ttyent.texi: New file.
60885
60886 2008-01-12  Jim Meyering  <meyering@redhat.com>
60887
60888         announce-gen: emit Gnulib's git-based version string.
60889         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
60890         New option --gnulib-version=V, where V is expected to be
60891         the output of running git describe in the gnulib directory.
60892         (get_tool_versions): Request feedback on xdelta.  I suspect it's
60893         not useful, and plan to stop publishing an xdelta file with each
60894         coreutils release.
60895
60896         * build-aux/announce-gen: Also check for lzma-compressed files.
60897
60898 2008-01-11  Bruno Haible  <bruno@clisp.org>
60899
60900         * tests/test-memmem.c (main): Increase maximum allowed time.
60901         * tests/test-strstr.c (main): Likewise.
60902
60903 2008-01-11  Bruno Haible  <bruno@clisp.org>
60904
60905         * doc/functions/memmem.texi: Add more precisions about platforms.
60906         * doc/functions/strstr.texi: Likewise.
60907
60908 2008-01-10  Eric Blake  <ebb9@byu.net>
60909
60910         * m4/strstr.m4: Delete cruft from copy-n-paste.
60911         Reported by Bruno Haible.
60912
60913 2008-01-10  Bruno Haible  <bruno@clisp.org>
60914
60915         Make c-strstr rely on strstr.
60916         * lib/c-strstr.c: Don't include str-kmp.h.
60917         (c_strstr): Define in terms of strstr.
60918         * modules/c-strstr (Files): Remove lib/str-kmp.h.
60919         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
60920
60921 2008-01-10  Bruno Haible  <bruno@clisp.org>
60922
60923         * doc/gnulib.texi (String Functions in C Locale): New section.
60924         * doc/c-ctype.texi: New file.
60925         * doc/c-strcase.texi: New file.
60926         * doc/c-strcaseeq.texi: New file.
60927         * doc/c-strcasestr.texi: New file.
60928         * doc/c-strstr.texi: New file.
60929         * doc/c-strtod.texi: New file.
60930         * doc/c-strtold.texi: New file.
60931
60932 2008-01-10  Eric Blake  <ebb9@byu.net>
60933
60934         * lib/relocatable.h: Fix a comment.
60935
60936 2008-01-10  Eric Blake  <ebb9@byu.net>
60937
60938         Share two-way algorithm.
60939         * lib/str-two-way.h: New file, merged from...
60940         * lib/memmem.c: ...here...
60941         * lib/strstr.c: ...and here.
60942         * modules/memmem (Files): Use it.
60943         * modules/strstr (Files): Likewise.
60944
60945         Avoid quadratic strstr implementations.
60946         * lib/strstr.c: New file.
60947         * m4/strstr.m4: Likewise.
60948         * modules/strstr: Likewise.
60949         * modules/strstr-tests: Likewise.
60950         * tests/test-strstr.c: Likewise.
60951         * lib/string.in.h (rpl_strstr): Declare.
60952         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
60953         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
60954         * modules/string (Makefile.am): Likewise.
60955         * MODULES.html.sh (string handling): Mention new module.
60956         * doc/functions/strstr.texi (strstr): Document the bug.
60957
60958 2008-01-10  Bruno Haible  <bruno@clisp.org>
60959
60960         * lib/relocatable.h (relocate): State whether result is freshly
60961         allocated or not.
60962         * lib/relocatable.c (relocate): Return a freshly allocated string
60963         instead of a pointer to a privately held string.
60964         Reported by Sylvain Beucler <beuc@gnu.org>.
60965
60966 2008-01-10  Colin Watson  <cjwatson@debian.org>
60967
60968         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
60969         s/S_ISNLK/S_ISLNK/.
60970
60971 2008-01-09  Bruno Haible  <bruno@clisp.org>
60972
60973         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
60974         and other files.
60975         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
60976         if it's only a guess.
60977         * modules/memmem: Simplify by depending on memmem-simple.
60978
60979 2008-01-09  Bruno Haible  <bruno@clisp.org>
60980
60981         Work around OpenBSD 4.0 tdelete() bug.
60982         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
60983         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
60984         macros and don't redefine the enum values.
60985         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
60986         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
60987         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
60988
60989 2008-01-09  Bruno Haible  <bruno@clisp.org>
60990
60991         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
60992         (main): Don't perform the tests if setlocale did not install a UTF-8
60993         locale. Needed on OpenBSD 4.0.
60994         * modules/wcwidth-tests (Depends-on): Add localcharset.
60995
60996 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
60997
60998         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
60999         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
61000         * NEWS: announce this.
61001         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
61002
61003 2008-01-09  Simon Josefsson  <simon@josefsson.org>
61004         and Eric Blake  <ebb9@byu.net>
61005
61006         Add memmem-simple module.
61007         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
61008         (gl_FUNC_MEMMEM): Separate performance from presence checks.
61009         * modules/memmem-simple: New file.
61010         * modules/memmem (Description): Tweak.
61011         * MODULES.html.sh (string handling): Mention new module.
61012         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
61013         addressed by memmem-simple.
61014         * NEWS: Document the difference.
61015
61016 2008-01-09  Eric Blake  <ebb9@byu.net>
61017
61018         Give gcc some memmem optimization hints.
61019         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
61020         (strcasestr): Declare as pure.
61021         * modules/memmem (Maintainer): Claim my implementation.
61022
61023 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61024
61025         Support AIX 6.1 and higher.
61026         * build-aux/config.libpath: Likewise.
61027         * build-aux/config.rpath: Likewise.
61028
61029 2008-01-08  Jim Meyering  <meyering@redhat.com>
61030             Bruno Haible  <bruno@clisp.org>
61031
61032         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
61033         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
61034         Reported by Peter Fales in
61035         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
61036
61037 2008-01-08  Bruno Haible  <bruno@clisp.org>
61038
61039         * modules/unictype/category-of (Depends-on): Add
61040         unictype/category-none.
61041         * modules/unictype/category-and-tests (Depends-on): Add
61042         unictype/category-{L,N,Lu,Nd}.
61043         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
61044         * modules/unictype/category-or-tests (Depends-on): Add
61045         unictype/category-{L,N}.
61046         * modules/unictype/category-name-tests (Depends-on): Add
61047         unictype/category-{Z,Nl}.
61048         Reported by Simon Josefsson.
61049
61050 2008-01-08  Bruno Haible  <bruno@clisp.org>
61051
61052         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
61053         convention better.
61054         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
61055         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
61056         Reported by Peter Miller <millerp@canb.auug.org.au>.
61057
61058 2008-01-08  Eric Blake  <ebb9@byu.net>
61059
61060         Rewrite memmem to guarantee linear complexity without malloc.
61061         * lib/memmem.c (memmem): Use Two-Way rather than
61062         Knuth-Morris-Pratt, to allow O(1) space usage.
61063         (critical_factorization, two_way_short_needle)
61064         (two_way_long_needle): New functions.
61065         (knuth_morris_pratt): Delete.
61066         * modules/memmem (Depends-on): No longer need malloca or stdbool.
61067         Add stdint.
61068         * tests/test-memmem.c (main): Add tests for periodic needle and
61069         sublinear performance.
61070         * doc/functions/memmem.texi (memmem): Document other deficiencies
61071         in cygwin and older glibc.
61072
61073 2008-01-08  Bruno Haible  <bruno@clisp.org>
61074
61075         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
61076         augmentation.
61077
61078 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
61079
61080         Add a configure time option: --disable-acl.
61081         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
61082         AC_ARG_ENABLE(acl).
61083
61084 2008-01-06  Simon Josefsson  <simon@josefsson.org>
61085
61086         * tests/test-localename.c: Don't include obsolete "setenv.h".
61087
61088         * modules/localename-tests (Depends-on): Need unsetenv.
61089
61090 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61091
61092         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
61093
61094 2008-01-06  Colin Watson  <cjwatson@debian.org>
61095
61096         * users.txt: Add man-db.
61097
61098 2008-01-07  Bruno Haible  <bruno@clisp.org>
61099
61100         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
61101         previous section name.
61102
61103 2008-01-07  Bruno Haible  <bruno@clisp.org>
61104
61105         * lib/progname.c (set_program_name): Don't strip off a leading
61106         "lt-" prefix outside a .libs directory.
61107         Suggested by Paul Eggert.
61108
61109 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
61110             Bruno Haible  <bruno@clisp.org>
61111
61112         Improve memory cleanup in 'relocatable' module.
61113         * lib/relocatable.h (compute_curr_prefix): Change return type to
61114         'char *'.
61115         * lib/relocatable.c (compute_curr_prefix): Change return type to
61116         'char *'. Free curr_installdir after use.
61117         (relocate): Free curr_prefix_better after use.
61118         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
61119
61120 2008-01-01  Bruno Haible  <bruno@clisp.org>
61121
61122         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
61123         failure on older glibc systems.
61124         Reported by Peter Fales <psfales@alcatel-lucent.com>.
61125
61126 2008-01-05  Eric Blake  <ebb9@byu.net>
61127
61128         Avoid quadratic system memmem.
61129         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
61130         Reported by Ralf Wildenhues.
61131
61132         Fix memmem test for mingw.
61133         * modules/memmem-tests (configure.ac): Check for alarm.
61134         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
61135         it.
61136         * doc/functions/memmem.texi: New file.
61137         * doc/gnulib.texi (Function Substitutes): Add memmem.
61138         Reported by Bruno Haible.
61139
61140 2008-01-04  Bruno Haible  <bruno@clisp.org>
61141
61142         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
61143         Require gl_HEADER_STRINGS_H_DEFAULTS, not
61144         gl_HEADER_STRING_H_DEFAULTS.
61145
61146 2008-01-04  Eric Blake  <ebb9@byu.net>
61147
61148         Shorten duration of memmem test.
61149         * tests/test-memmem.c (main): Use alarm to declare failure if test
61150         is taking too long.
61151         Reported by Ralf Wildenhues.
61152
61153 2007-12-21  Simon Josefsson  <simon@josefsson.org>
61154
61155         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
61156         string, needed by strerror.
61157
61158 2008-01-03  Colin Watson  <cjwatson@debian.org>
61159             Bruno Haible  <bruno@clisp.org>
61160
61161         * doc/gnulib-tool.texi (Localization): New section.
61162
61163 2008-01-02  Bruno Haible  <bruno@clisp.org>
61164
61165         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
61166         variables to 'unsigned char *' type.
61167         Reported by Paul Eggert.
61168
61169 2008-01-02  Jim Meyering  <jim@meyering.net>
61170
61171         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
61172
61173 2007-12-31  Jim Meyering  <jim@meyering.net>
61174
61175         Avoid use of private FTS type name.
61176         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
61177
61178 2007-12-30  Karl Berry  <karl@gnu.org>
61179
61180         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
61181         work around defect in Texinfo and/or the standalone Info browser.
61182
61183 2007-12-30  Bruno Haible  <bruno@clisp.org>
61184
61185         Unify 5 copies of the KMP code.
61186         * lib/str-kmp.h: New file.
61187         * lib/c-strcasestr.c: Include str-kmp.h.
61188         (knuth_morris_pratt): Remove function.
61189         (c_strcasestr): Update.
61190         * lib/c-strstr.c: Include str-kmp.h.
61191         (knuth_morris_pratt): Remove function.
61192         (c_strcasestr): Update.
61193         * lib/mbscasestr.c: Include str-kmp.h.
61194         (knuth_morris_pratt_unibyte): Remove function.
61195         * lib/mbsstr.c: Include str-kmp.h.
61196         (knuth_morris_pratt_unibyte): Remove function.
61197         * lib/strcasestr.c: Include str-kmp.h.
61198         (knuth_morris_pratt): Remove function.
61199         (strcasestr): Update.
61200         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
61201         * modules/c-strstr (Files): Likewise.
61202         * modules/mbscasestr (Files): Likewise.
61203         * modules/mbsstr (Files): Likewise.
61204         * modules/strcasestr (Files): Likewise.
61205         Suggested by Paul Eggert.
61206
61207 2007-12-30  Bruno Haible  <bruno@clisp.org>
61208
61209         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
61210         defined.
61211
61212 2007-12-30  Bruno Haible  <bruno@clisp.org>
61213
61214         * lib/xmalloca.h: Include xalloc.h.
61215         (xnmalloca): New macro.
61216
61217 2007-12-30  Bruno Haible  <bruno@clisp.org>
61218
61219         * lib/malloca.h (nmalloca): New macro.
61220         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
61221         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
61222         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
61223         knuth_morris_pratt_multibyte): Likewise.
61224         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
61225         knuth_morris_pratt_multibyte): Likewise.
61226         * lib/memmem.c (knuth_morris_pratt): Likewise.
61227         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
61228
61229 2007-12-25  Bruno Haible  <bruno@clisp.org>
61230
61231         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
61232         * lib/glob.c: Don't include openat.h.
61233         (link_exists2_p): Add back the code that deals with the
61234         !GLOB_ALTDIRFUNC case.
61235         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
61236         let it do the filename concatenation.
61237         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
61238         * modules/glob (Depends-on): Remove openat.
61239
61240 2007-12-31  Bruno Haible  <bruno@clisp.org>
61241
61242         * modules/dirfd (License): Change to LGPLv2+.
61243         Approved by Jim Meyering.
61244
61245 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
61246
61247         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
61248         when multiplying M by sizeof (size_t).
61249
61250 2007-12-10  Martin Lambers  <marlam@marlam.de>
61251
61252         Override getpagesize on mingw.
61253         * lib/getpagesize.c: New file.
61254         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
61255         * modules/getpagesize (Files): Add lib/getpagesize.c.
61256         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
61257         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
61258         REPLACE_GETPAGESIZE.
61259         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
61260
61261 2007-12-25  Bruno Haible  <bruno@clisp.org>
61262
61263         * modules/localcharset (Notice): New field.
61264         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
61265         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
61266
61267 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
61268             Bruno Haible  <bruno@clisp.org>
61269
61270         Avoid using the syntax symbol() in formatted documentation.
61271         * MODULES.html.sh (func_module): When replacing symbol() with a
61272         hyperlink, remove the parentheses. Show an error if some remain.
61273         Recognize and render the '...' syntax.
61274         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
61275         Rework. Add paragraph about GCC's inlining.
61276         * doc/alloca.texi: Likewise.
61277         * doc/error.texi: Remove parentheses from symbol reference.
61278         * doc/gnulib-intro.texi: Likewise.
61279         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
61280         * modules/fnmatch (Description): Reword to say "the ... function".
61281         * modules/full-read (Description): Likewise.
61282         * modules/full-write (Description): Likewise.
61283         * modules/safe-read (Description): Likewise.
61284         * modules/safe-write (Description): Likewise.
61285         * modules/strchrnul (Description): Likewise.
61286         * modules/trim (Description): Likewise.
61287         * modules/error (Description): Remove parentheses from symbol
61288         references.
61289         * modules/verror (Description): Likewise.
61290         Reported by Karl Berry.
61291
61292 2007-12-25  Bruno Haible  <bruno@clisp.org>
61293
61294         Fixup after 2007-10-16 commit.
61295         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
61296
61297 2007-12-24  Bruno Haible  <bruno@clisp.org>
61298
61299         Make --enable-relocatable work with DESTDIR.
61300         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
61301         to compute installdir from destprog.
61302         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
61303         also set the RELOC_DESTDIR variable.
61304         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
61305
61306 2007-12-24  Bruno Haible  <bruno@clisp.org>
61307
61308         Fix link error due to xalloc_die().
61309         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
61310         of xreadlink.
61311         * lib/relocwrapper.c: Update comments.
61312         * build-aux/install-reloc: Remove xreadlink.c from file list.
61313         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
61314         xreadlink.c.
61315         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
61316
61317 2007-12-24  Bruno Haible  <bruno@clisp.org>
61318
61319         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
61320         * lib/setenv.h: Remove file.
61321         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
61322         lib/setenv.h.
61323         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
61324         (Depends-on): Add stdlib.
61325         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
61326         gl_FUNC_UNSETENV.
61327         (Include): Replace setenv.h with <stdlib.h>.
61328         * modules/unsetenv: New file.
61329         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
61330         * lib/unsetenv.c: Include <stdlib.h> first.
61331         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
61332         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
61333         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
61334         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
61335         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
61336         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
61337         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
61338         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
61339         * doc/functions/unsetenv.texi: Update.
61340         * modules/xsetenv (Depends-on): Add unsetenv.
61341         * modules/getdate (Depends-on): Likewise.
61342         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
61343         * lib/xsetenv.c: Don't include setenv.h.
61344         * lib/getdate.y: Likewise.
61345         * lib/relocwrapper.c: Likewise.
61346         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
61347         (Depends-on): Add stdlib.
61348         * NEWS: Mention the changes.
61349         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
61350
61351 2007-12-23  Bruno Haible  <bruno@clisp.org>
61352
61353         * lib/memmem.c (memmem): Use lowercase variable names. Tab
61354         indentation.
61355
61356 2007-12-23  Bruno Haible  <bruno@clisp.org>
61357
61358         * lib/c-strcasestr.c: Add more comments.
61359         * lib/c-strstr.c: Likewise.
61360         * lib/mbscasestr.c: Likewise.
61361         * lib/mbsstr.c: Likewise.
61362         * lib/strcasestr.c: Likewise.
61363         * lib/memmem.c: Likewise.
61364
61365 2007-12-23  Bruno Haible  <bruno@clisp.org>
61366
61367         * tests/test-memmem.c: Include <string.h> first.
61368
61369 2007-12-22  Bruno Haible  <bruno@clisp.org>
61370
61371         * gnulib-tool (func_create_testdir): Change $auxdir while generating
61372         the contents of $testsbase.
61373         Reported by Ralf Wildenhues.
61374
61375 2007-12-22  Bruno Haible  <bruno@clisp.org>
61376
61377         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
61378         two variables local_ldadd_before, local_ldadd_last.
61379
61380 2007-12-20  Eric Blake  <ebb9@byu.net>
61381
61382         Work around circular library issue when cross-compiling.
61383         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
61384         that progname.o does not need to pull in rpl_memcmp.
61385
61386 2007-12-19  Eric Blake  <ebb9@byu.net>
61387
61388         Fix memmem to avoid O(n^2) worst-case complexity.
61389         * lib/memmem.c (knuth_morris_pratt): New function.
61390         (memmem): Use it if first few naive iterations fail.
61391         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
61392         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
61393         * modules/memchr (License): Likewise.
61394         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
61395         malloca.
61396         * tests/test-memmem.c: Rewrite, borrowing ideas from
61397         test-mbsstr1.c; the old version wouldn't even compile!
61398         * modules/memmem-tests: New file.
61399         * lib/string.in.h (rpl_memmem): Add declaration.
61400         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
61401         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
61402         REPLACE_MEMMEM.
61403
61404 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
61405
61406         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
61407         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
61408         before any system include files, and undef after them all.  This
61409         should fix a problem on VMS reported by John E. Malmberg in
61410         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
61411
61412 2007-12-17  Eric Blake  <ebb9@byu.net>
61413
61414         Revert addition of verify, for BSD/OS.
61415         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
61416         can't handle large files, for the sake of obsolete platforms.
61417         * modules/fseeko (Depends-on): Remove verify.
61418         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
61419         * doc/functions/ftello.texi (ftello): Likewise.
61420         * doc/functions/fgetpos.texi (fgetpos): Likewise.
61421         Reported by Larry Jones.
61422
61423 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
61424
61425         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
61426         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
61427
61428 2007-12-17  Jim Meyering  <meyering@redhat.com>
61429
61430         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
61431         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
61432         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
61433         * modules/getcwd (Depends-on): Add openat.
61434         Reported by Petr Salinger.
61435
61436 2007-12-17  Bruno Haible  <bruno@clisp.org>
61437
61438         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
61439         avoid a segmentation fault of the configure test on x86_64 systems.
61440
61441 2007-12-15  Jim Meyering  <meyering@redhat.com>
61442
61443         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
61444
61445 2007-12-13  Eric Blake  <ebb9@byu.net>
61446
61447         Another fseek test.
61448         * tests/test-fseek.c (main): Also test ungetc handling.
61449         * tests/test-fseeko.c (main): Likewise.
61450         * modules/fseeko (Depends-on): Add verify.
61451         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
61452         large.
61453         Reported by Larry Jones.
61454
61455         Fix fseeko on mingw.
61456         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
61457         seek.
61458
61459         Beef up fseek tests.
61460         * tests/test-fseek.c (main): Also test eof handling.
61461         * tests/test-fseeko.c (main): Likewise.
61462         Reported by Larry Jones.
61463
61464 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
61465
61466         Fix fseeko on BSD-based platforms.
61467         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
61468         successful seek.
61469
61470 2007-12-12  Eric Blake  <ebb9@byu.net>
61471
61472         Allow circular dependency of separate libtests.a
61473         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
61474         when use_libtests.
61475
61476 2007-12-11  Eric Blake  <ebb9@byu.net>
61477
61478         Fix bug with -0.0L in previous patch.
61479         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
61480         * tests/test-isnan.c (main): Also test on zeroes.
61481         * tests/test-isnanf.c (main): Likewise.
61482         * tests/test-isnanl.h (main): Likewise.
61483
61484         Detect pseudo-denormals on x86 even when cross-compiling.
61485         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
61486         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
61487         invalid bit patterns that happen to satisfy ==.
61488
61489         Avoid link failures with separate libtests.a.
61490         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
61491         last, to satisfy circular dependencies.
61492
61493 2007-12-11  Eric Blake  <ebb9@byu.net>
61494         and Bruno Haible  <bruno@clisp.org>
61495
61496         Fix OpenBSD 4.0 <float.h> handling of long double.
61497         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
61498         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
61499         * doc/headers/float.texi (float.h): Document OpenBSD bug.
61500
61501 2007-12-11  Jim Meyering  <meyering@redhat.com>
61502
61503         * users.txt: Add libvirt.
61504
61505         Support versions of autoconf prior to 2.59c.
61506         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
61507         if it is not already defined.
61508
61509 2007-12-09  Bruno Haible  <bruno@clisp.org>
61510
61511         Let 'gnulib-tool --import' collect sources needed for the tests in
61512         tests/ rather than in lib/.
61513         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
61514         argument. If true, add rules to generate libtests.a, and put libtests.a
61515         into $(LDADD). Consider source files in subdirectories and set
61516         uses_subdirs.
61517         (func_emit_initmacro_start, func_emit_initmacro_end,
61518         func_emit_initmacro_done): Pass all arguments explicitly.
61519         (func_import): Determine two module lists main_modules,
61520         testsrelated_modules. Determine use_libtests. Determine two variables
61521         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
61522         instead of just sed_transform_lib_file. Determine two variables
61523         main_files and testsrelated_files. Compute 'files' as the union of
61524         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
61525         func_add_or_update. In the generated gnulib-comp.m4, collect the
61526         object files for tests/ in different variables than those for lib/.
61527         Substitute LIBTESTS_LIBDEPS.
61528         (func_create_testdir): Combine the uses_subdirs results from
61529         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
61530
61531 2007-12-09  Bruno Haible  <bruno@clisp.org>
61532
61533         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
61534         the build-aux directory.
61535
61536 2007-12-09  Bruno Haible  <bruno@clisp.org>
61537
61538         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
61539         introduced on 2006-09-09.
61540
61541 2007-12-07  Jim Meyering  <meyering@redhat.com>
61542
61543         Let these macros work also with autoconf-2.59.
61544         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
61545         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
61546         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
61547
61548 2007-12-06  Jim Meyering  <meyering@redhat.com>
61549
61550         Avoid a configure-time syntax error in gl_FUNC_ACL.
61551         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
61552         function in each branch, before testing the cache variable.
61553
61554 2007-12-04  Eric Blake  <ebb9@byu.net>
61555
61556         Make scripts executable.
61557         * build-aux/config.guess: Add execute permissions.
61558         * build-aux/config.sub: Likewise.
61559         * build-aux/gendocs.sh: Likewise.
61560
61561         Fix frexp on mingw.
61562         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
61563         cross-compiling.
61564         * doc/functions/frexp.texi (frexp): Document the bug.
61565
61566         Make cygwin fseeko check more reliable.
61567         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
61568         version numbers, rather than unrelated feature check.
61569         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
61570         * doc/functions/ftello.texi (ftello): Likewise.
61571         Reported by Bruno Haible.
61572
61573         * m4/strerror.m4: Bump version number.
61574
61575 2007-12-03  Bruno Haible  <bruno@clisp.org>
61576
61577         * doc/functions/mprotect.texi: Mention the mingw problem.
61578
61579 2007-12-03  Eric Blake  <ebb9@byu.net>
61580
61581         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
61582         REPLACE_STRERROR is initialized before this macro.
61583
61584 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
61585
61586         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
61587         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
61588         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
61589         put -lsec in even for programs other than 'ls'.  This fixes a problem
61590         for gettext reported by Bruno Haible in
61591         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
61592         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
61593         Add support for Solaris 10.  This isn't efficient, but should get the
61594         job done for now.
61595
61596 2007-12-03  James Youngman  <jay@gnu.org>
61597
61598         * doc/regexprops-generic.texi: change "an close-group" to "a
61599         close-group" and "illegal" to "not allowed".
61600
61601 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61602
61603         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
61604         pr_byname.h. Needed for the rare case when the maintainer has done
61605         "make maintainer-clean" in the source directory and then attempts a
61606         build outside the source directory.
61607         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
61608         scripts_byname.h.
61609
61610 2007-12-02  Martin Lambers <marlam@marlam.de>
61611             Bruno Haible  <bruno@clisp.org>
61612
61613         * lib/getpagesize.h: Remove file.
61614         * lib/unistd.in.h: Include declaration of getpagesize here.
61615         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
61616         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
61617         HAVE_SYS_PARAM_H.
61618         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
61619         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
61620         * modules/getpagesize (Files): Remove lib/getpagesize.h.
61621         (Depends-on): Add unistd.
61622         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
61623         (Include): Use <unistd.h> instead of getpagesize.h.
61624         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
61625         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
61626         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
61627         gl_GETPAGESIZE invocation, already handled by module dependency.
61628         * lib/pagealign_alloc.c: Don't include getpagesize.h.
61629
61630 2007-12-02  Bruno Haible  <bruno@clisp.org>
61631
61632         * modules/strings-tests: New file.
61633         * tests/test-strings.c: New file.
61634
61635         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
61636         * lib/strings.in.h: New file.
61637         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
61638         * m4/strings_h.m4: New file.
61639         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
61640         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
61641         * modules/strings: New file.
61642         * modules/string (Makefile.am): Update.
61643         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
61644         Reported by Karl Berry.
61645
61646 2007-12-01  Eric Blake  <ebb9@byu.net>
61647
61648         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
61649         accommodate fix in cygwin 1.5.25.
61650
61651 2007-12-01  Jim Meyering  <meyering@redhat.com>
61652
61653         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
61654         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
61655         that would inhibit utf8-optimization of a regexp containing line-
61656         or buffer-anchors, e.g., `^', `$'.
61657
61658 2007-11-30  Bruno Haible  <bruno@clisp.org>
61659
61660         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
61661         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
61662         glthread_recursive_lock_init.
61663         * lib/lock.c (glthread_recursive_lock_init)
61664         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
61665         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
61666
61667 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
61668
61669         New function qset_acl, like set_acl but with syscall semantics.
61670         * lib/acl.h (qset_acl): New decl.
61671         * lib/acl.c (qset_acl): New function.
61672         (set_acl): Use new function.  Use more-consistent diagnostics.
61673
61674 2007-11-28  Jim Meyering  <meyering@redhat.com>
61675
61676         * modules/physmem (License): Change from GPL to LGPLv2+.
61677
61678 2007-11-26  Bruno Haible  <bruno@clisp.org>
61679
61680         * lib/vasnprintf.c (decode_long_double): Don't abort if the
61681         'long double' type has excess precision.
61682         Reported by Jim Meyering in
61683         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
61684
61685 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61686
61687         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
61688         Sync from <http://gnu.org/licenses>.
61689         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
61690         with license text from same location.
61691         * doc/maintain.texi, doc/standards.texi:  Sync from
61692         <http://savannah.gnu.org/projects/gnustandards>.
61693
61694 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
61695         and Jim Meyering  <meyering@redhat.com>
61696
61697         Adjust getdate' grammar to accept a slightly more regular language.
61698         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
61699         Before, the former was rejected.
61700         * lib/getdate.y (digits_to_date_time): New function, factored
61701         out of ...
61702         (number): ...here.  Just call digits_to_date_time.
61703         (hybrid): New non-terminal to handle an <unsigned number,
61704         signed relative offset> sequence consistently.
61705
61706 2007-11-18  Jim Meyering  <meyering@redhat.com>
61707
61708         Pull my changes from coreutils:
61709         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
61710         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
61711         use of $gnulib_tool_option_extras, so that it's separated from the
61712         preceding argument.
61713
61714         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
61715         * build-aux/bootstrap (cp_mark_as_generated): Create any required
61716         parent destination directories before copying a file into place.
61717
61718 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
61719
61720         bootstrap: work also with 4-argument variant of AC_INIT
61721         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
61722
61723 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
61724
61725         Port test-getaddrinfo to Solaris.
61726         Problem reported by Bruno Haible in
61727         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
61728         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
61729         explanation of setting 'hints'.
61730         Don't reject an implementation merely because it returns EAI_SERVICE.
61731         (EAI_SERVICE): Define to 0 if not defined.
61732
61733 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
61734
61735         The license of gnu-make and posix-shell is now "GPLed build tool".
61736         * modules/gnu-make (License): Likewise.
61737         * modules/posix-shell (License): Likewise.
61738
61739         New module posix-shell, for determining a POSIX shell
61740         or perhaps something that is close enough to a POSIX shell.
61741         * m4/posix-shell.m4: New file.
61742         * modules/posix-shell: New file.
61743
61744         * MODULES.html.sh: Mention new module.
61745
61746         New module gnu-make, for determining whether we're using GNU Make.
61747         * m4/gnu-make.m4: New file.
61748         * modules/gnu-make: New file.
61749         * MODULES.html.sh: Mention new module.
61750
61751 2007-11-14  Jim Meyering  <meyering@redhat.com>
61752
61753         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
61754         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
61755         use this macro to create a function _definition_.
61756         Remove useless "#undef ARGMATCH_DIE".
61757
61758 2007-11-14  Bruno Haible  <bruno@clisp.org>
61759
61760         * lib/config.charset: Update for OpenBSD 4.1.
61761         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
61762
61763 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
61764
61765         Document 64-bit #if problems in stdint.texi.
61766         * doc/headers/stdint.texi (stdint.h): Mention problems with
61767         64-bit-#if, and how to work around them.
61768
61769         Don't insist on 'long long int' support in the preprocessor.  It
61770         breaks too many things.  For example, PRIdMAX still uses a 'long
61771         long int' format with the latest Sun compiler, even though
61772         HAVE_LONG_LONG_INT isn't defined due to that compiler's
61773         preprocessor problem.  This causes the latest coreutils to dump
61774         core on Solaris 10 sparc with the Sun C compiler.
61775         Instead, fix the 2007-10-16 problem in a different way, by evaluating
61776         the troublesome expressions at configure-time, not at #if-time.
61777         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
61778         preprocessor.
61779         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
61780         compile-time C checks, done at 'configure'-time.
61781         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
61782         * modules/inttypes (Makefile): Substitute the new symbols that
61783         gl_INTTYPES_H now generates.
61784         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
61785
61786 2007-11-12  Bruno Haible  <bruno@clisp.org>
61787
61788         Tests for Unicode character classification functions.
61789
61790         * modules/unictype/bidicategory-byname-tests: New file.
61791         * modules/unictype/bidicategory-name-tests: New file.
61792         * modules/unictype/bidicategory-of-tests: New file.
61793         * modules/unictype/bidicategory-test-tests: New file.
61794         * modules/unictype/block-list-tests: New file.
61795         * modules/unictype/block-of-tests: New file.
61796         * modules/unictype/block-test-tests: New file.
61797         * modules/unictype/category-C-tests: New file.
61798         * modules/unictype/category-Cc-tests: New file.
61799         * modules/unictype/category-Cf-tests: New file.
61800         * modules/unictype/category-Cn-tests: New file.
61801         * modules/unictype/category-Co-tests: New file.
61802         * modules/unictype/category-Cs-tests: New file.
61803         * modules/unictype/category-L-tests: New file.
61804         * modules/unictype/category-Ll-tests: New file.
61805         * modules/unictype/category-Lm-tests: New file.
61806         * modules/unictype/category-Lo-tests: New file.
61807         * modules/unictype/category-Lt-tests: New file.
61808         * modules/unictype/category-Lu-tests: New file.
61809         * modules/unictype/category-M-tests: New file.
61810         * modules/unictype/category-Mc-tests: New file.
61811         * modules/unictype/category-Me-tests: New file.
61812         * modules/unictype/category-Mn-tests: New file.
61813         * modules/unictype/category-N-tests: New file.
61814         * modules/unictype/category-Nd-tests: New file.
61815         * modules/unictype/category-Nl-tests: New file.
61816         * modules/unictype/category-No-tests: New file.
61817         * modules/unictype/category-P-tests: New file.
61818         * modules/unictype/category-Pc-tests: New file.
61819         * modules/unictype/category-Pd-tests: New file.
61820         * modules/unictype/category-Pe-tests: New file.
61821         * modules/unictype/category-Pf-tests: New file.
61822         * modules/unictype/category-Pi-tests: New file.
61823         * modules/unictype/category-Po-tests: New file.
61824         * modules/unictype/category-Ps-tests: New file.
61825         * modules/unictype/category-S-tests: New file.
61826         * modules/unictype/category-Sc-tests: New file.
61827         * modules/unictype/category-Sk-tests: New file.
61828         * modules/unictype/category-Sm-tests: New file.
61829         * modules/unictype/category-So-tests: New file.
61830         * modules/unictype/category-Z-tests: New file.
61831         * modules/unictype/category-Zl-tests: New file.
61832         * modules/unictype/category-Zp-tests: New file.
61833         * modules/unictype/category-Zs-tests: New file.
61834         * modules/unictype/category-and-not-tests: New file.
61835         * modules/unictype/category-and-tests: New file.
61836         * modules/unictype/category-byname-tests: New file.
61837         * modules/unictype/category-name-tests: New file.
61838         * modules/unictype/category-none-tests: New file.
61839         * modules/unictype/category-of-tests: New file.
61840         * modules/unictype/category-or-tests: New file.
61841         * modules/unictype/category-test-withtable-tests: New file.
61842         * modules/unictype/combining-class-tests: New file.
61843         * modules/unictype/ctype-alnum-tests: New file.
61844         * modules/unictype/ctype-alpha-tests: New file.
61845         * modules/unictype/ctype-blank-tests: New file.
61846         * modules/unictype/ctype-cntrl-tests: New file.
61847         * modules/unictype/ctype-digit-tests: New file.
61848         * modules/unictype/ctype-graph-tests: New file.
61849         * modules/unictype/ctype-lower-tests: New file.
61850         * modules/unictype/ctype-print-tests: New file.
61851         * modules/unictype/ctype-punct-tests: New file.
61852         * modules/unictype/ctype-space-tests: New file.
61853         * modules/unictype/ctype-upper-tests: New file.
61854         * modules/unictype/ctype-xdigit-tests: New file.
61855         * modules/unictype/decimal-digit-tests: New file.
61856         * modules/unictype/digit-tests: New file.
61857         * modules/unictype/mirror-tests: New file.
61858         * modules/unictype/numeric-tests: New file.
61859         * modules/unictype/property-alphabetic-tests: New file.
61860         * modules/unictype/property-ascii-hex-digit-tests: New file.
61861         * modules/unictype/property-bidi-arabic-digit-tests: New file.
61862         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
61863         * modules/unictype/property-bidi-block-separator-tests: New file.
61864         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
61865         * modules/unictype/property-bidi-common-separator-tests: New file.
61866         * modules/unictype/property-bidi-control-tests: New file.
61867         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
61868         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
61869         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
61870         * modules/unictype/property-bidi-european-digit-tests: New file.
61871         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
61872         * modules/unictype/property-bidi-left-to-right-tests: New file.
61873         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
61874         * modules/unictype/property-bidi-other-neutral-tests: New file.
61875         * modules/unictype/property-bidi-pdf-tests: New file.
61876         * modules/unictype/property-bidi-segment-separator-tests: New file.
61877         * modules/unictype/property-bidi-whitespace-tests: New file.
61878         * modules/unictype/property-byname-tests: New file.
61879         * modules/unictype/property-combining-tests: New file.
61880         * modules/unictype/property-composite-tests: New file.
61881         * modules/unictype/property-currency-symbol-tests: New file.
61882         * modules/unictype/property-dash-tests: New file.
61883         * modules/unictype/property-decimal-digit-tests: New file.
61884         * modules/unictype/property-default-ignorable-code-point-tests: New file.
61885         * modules/unictype/property-deprecated-tests: New file.
61886         * modules/unictype/property-diacritic-tests: New file.
61887         * modules/unictype/property-extender-tests: New file.
61888         * modules/unictype/property-format-control-tests: New file.
61889         * modules/unictype/property-grapheme-base-tests: New file.
61890         * modules/unictype/property-grapheme-extend-tests: New file.
61891         * modules/unictype/property-grapheme-link-tests: New file.
61892         * modules/unictype/property-hex-digit-tests: New file.
61893         * modules/unictype/property-hyphen-tests: New file.
61894         * modules/unictype/property-id-continue-tests: New file.
61895         * modules/unictype/property-id-start-tests: New file.
61896         * modules/unictype/property-ideographic-tests: New file.
61897         * modules/unictype/property-ids-binary-operator-tests: New file.
61898         * modules/unictype/property-ids-trinary-operator-tests: New file.
61899         * modules/unictype/property-ignorable-control-tests: New file.
61900         * modules/unictype/property-iso-control-tests: New file.
61901         * modules/unictype/property-join-control-tests: New file.
61902         * modules/unictype/property-left-of-pair-tests: New file.
61903         * modules/unictype/property-line-separator-tests: New file.
61904         * modules/unictype/property-logical-order-exception-tests: New file.
61905         * modules/unictype/property-lowercase-tests: New file.
61906         * modules/unictype/property-math-tests: New file.
61907         * modules/unictype/property-non-break-tests: New file.
61908         * modules/unictype/property-not-a-character-tests: New file.
61909         * modules/unictype/property-numeric-tests: New file.
61910         * modules/unictype/property-other-alphabetic-tests: New file.
61911         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
61912         * modules/unictype/property-other-grapheme-extend-tests: New file.
61913         * modules/unictype/property-other-id-continue-tests: New file.
61914         * modules/unictype/property-other-id-start-tests: New file.
61915         * modules/unictype/property-other-lowercase-tests: New file.
61916         * modules/unictype/property-other-math-tests: New file.
61917         * modules/unictype/property-other-uppercase-tests: New file.
61918         * modules/unictype/property-paired-punctuation-tests: New file.
61919         * modules/unictype/property-paragraph-separator-tests: New file.
61920         * modules/unictype/property-pattern-syntax-tests: New file.
61921         * modules/unictype/property-pattern-white-space-tests: New file.
61922         * modules/unictype/property-private-use-tests: New file.
61923         * modules/unictype/property-punctuation-tests: New file.
61924         * modules/unictype/property-quotation-mark-tests: New file.
61925         * modules/unictype/property-radical-tests: New file.
61926         * modules/unictype/property-sentence-terminal-tests: New file.
61927         * modules/unictype/property-soft-dotted-tests: New file.
61928         * modules/unictype/property-space-tests: New file.
61929         * modules/unictype/property-terminal-punctuation-tests: New file.
61930         * modules/unictype/property-test-tests: New file.
61931         * modules/unictype/property-titlecase-tests: New file.
61932         * modules/unictype/property-unassigned-code-value-tests: New file.
61933         * modules/unictype/property-unified-ideograph-tests: New file.
61934         * modules/unictype/property-uppercase-tests: New file.
61935         * modules/unictype/property-variation-selector-tests: New file.
61936         * modules/unictype/property-white-space-tests: New file.
61937         * modules/unictype/property-xid-continue-tests: New file.
61938         * modules/unictype/property-xid-start-tests: New file.
61939         * modules/unictype/property-zero-width-tests: New file.
61940         * modules/unictype/scripts-tests: New file.
61941         * modules/unictype/syntax-c-ident-tests: New file.
61942         * modules/unictype/syntax-c-whitespace-tests: New file.
61943         * modules/unictype/syntax-java-ident-tests: New file.
61944         * modules/unictype/syntax-java-whitespace-tests: New file.
61945         * tests/unictype/test-bidi_byname.c: New file.
61946         * tests/unictype/test-bidi_name.c: New file.
61947         * tests/unictype/test-bidi_of.c: New file.
61948         * tests/unictype/test-bidi_test.c: New file.
61949         * tests/unictype/test-block_list.c: New file.
61950         * tests/unictype/test-block_of.c: New file.
61951         * tests/unictype/test-block_test.c: New file.
61952         * tests/unictype/test-categ_and.c: New file.
61953         * tests/unictype/test-categ_and_not.c: New file.
61954         * tests/unictype/test-categ_byname.c: New file.
61955         * tests/unictype/test-categ_name.c: New file.
61956         * tests/unictype/test-categ_none.c: New file.
61957         * tests/unictype/test-categ_of.c: New file.
61958         * tests/unictype/test-categ_or.c: New file.
61959         * tests/unictype/test-categ_test_withtable.c: New file.
61960         * tests/unictype/test-combining.c: New file.
61961         * tests/unictype/test-decdigit.c: New file.
61962         * tests/unictype/test-digit.c: New file.
61963         * tests/unictype/test-mirror.c: New file.
61964         * tests/unictype/test-numeric.c: New file.
61965         * tests/unictype/test-pr_byname.c: New file.
61966         * tests/unictype/test-pr_test.c: New file.
61967         * tests/unictype/test-predicate-part1.h: New file.
61968         * tests/unictype/test-predicate-part2.h: New file.
61969         * tests/unictype/test-scripts.c: New file.
61970         * tests/unictype/test-sy_c_ident.c: New file.
61971         * tests/unictype/test-sy_java_ident.c: New file.
61972
61973         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
61974         for Unicode 5.0.0.
61975         * tests/unictype/test-categ_Cc.c: Likewise.
61976         * tests/unictype/test-categ_Cf.c: Likewise.
61977         * tests/unictype/test-categ_Cn.c: Likewise.
61978         * tests/unictype/test-categ_Co.c: Likewise.
61979         * tests/unictype/test-categ_Cs.c: Likewise.
61980         * tests/unictype/test-categ_L.c: Likewise.
61981         * tests/unictype/test-categ_Ll.c: Likewise.
61982         * tests/unictype/test-categ_Lm.c: Likewise.
61983         * tests/unictype/test-categ_Lo.c: Likewise.
61984         * tests/unictype/test-categ_Lt.c: Likewise.
61985         * tests/unictype/test-categ_Lu.c: Likewise.
61986         * tests/unictype/test-categ_M.c: Likewise.
61987         * tests/unictype/test-categ_Mc.c: Likewise.
61988         * tests/unictype/test-categ_Me.c: Likewise.
61989         * tests/unictype/test-categ_Mn.c: Likewise.
61990         * tests/unictype/test-categ_N.c: Likewise.
61991         * tests/unictype/test-categ_Nd.c: Likewise.
61992         * tests/unictype/test-categ_Nl.c: Likewise.
61993         * tests/unictype/test-categ_No.c: Likewise.
61994         * tests/unictype/test-categ_P.c: Likewise.
61995         * tests/unictype/test-categ_Pc.c: Likewise.
61996         * tests/unictype/test-categ_Pd.c: Likewise.
61997         * tests/unictype/test-categ_Pe.c: Likewise.
61998         * tests/unictype/test-categ_Pf.c: Likewise.
61999         * tests/unictype/test-categ_Pi.c: Likewise.
62000         * tests/unictype/test-categ_Po.c: Likewise.
62001         * tests/unictype/test-categ_Ps.c: Likewise.
62002         * tests/unictype/test-categ_S.c: Likewise.
62003         * tests/unictype/test-categ_Sc.c: Likewise.
62004         * tests/unictype/test-categ_Sk.c: Likewise.
62005         * tests/unictype/test-categ_Sm.c: Likewise.
62006         * tests/unictype/test-categ_So.c: Likewise.
62007         * tests/unictype/test-categ_Z.c: Likewise.
62008         * tests/unictype/test-categ_Zl.c: Likewise.
62009         * tests/unictype/test-categ_Zp.c: Likewise.
62010         * tests/unictype/test-categ_Zs.c: Likewise.
62011         * tests/unictype/test-ctype_alnum.c: Likewise.
62012         * tests/unictype/test-ctype_alpha.c: Likewise.
62013         * tests/unictype/test-ctype_blank.c: Likewise.
62014         * tests/unictype/test-ctype_cntrl.c: Likewise.
62015         * tests/unictype/test-ctype_digit.c: Likewise.
62016         * tests/unictype/test-ctype_graph.c: Likewise.
62017         * tests/unictype/test-ctype_lower.c: Likewise.
62018         * tests/unictype/test-ctype_print.c: Likewise.
62019         * tests/unictype/test-ctype_punct.c: Likewise.
62020         * tests/unictype/test-ctype_space.c: Likewise.
62021         * tests/unictype/test-ctype_upper.c: Likewise.
62022         * tests/unictype/test-ctype_xdigit.c: Likewise.
62023         * tests/unictype/test-decdigit.h: Likewise.
62024         * tests/unictype/test-digit.h: Likewise.
62025         * tests/unictype/test-numeric.h: Likewise.
62026         * tests/unictype/test-pr_alphabetic.c: Likewise.
62027         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
62028         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
62029         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
62030         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
62031         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
62032         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
62033         * tests/unictype/test-pr_bidi_control.c: Likewise.
62034         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
62035         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
62036         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
62037         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
62038         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
62039         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
62040         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
62041         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
62042         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
62043         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
62044         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
62045         * tests/unictype/test-pr_combining.c: Likewise.
62046         * tests/unictype/test-pr_composite.c: Likewise.
62047         * tests/unictype/test-pr_currency_symbol.c: Likewise.
62048         * tests/unictype/test-pr_dash.c: Likewise.
62049         * tests/unictype/test-pr_decimal_digit.c: Likewise.
62050         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
62051         * tests/unictype/test-pr_deprecated.c: Likewise.
62052         * tests/unictype/test-pr_diacritic.c: Likewise.
62053         * tests/unictype/test-pr_extender.c: Likewise.
62054         * tests/unictype/test-pr_format_control.c: Likewise.
62055         * tests/unictype/test-pr_grapheme_base.c: Likewise.
62056         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
62057         * tests/unictype/test-pr_grapheme_link.c: Likewise.
62058         * tests/unictype/test-pr_hex_digit.c: Likewise.
62059         * tests/unictype/test-pr_hyphen.c: Likewise.
62060         * tests/unictype/test-pr_id_continue.c: Likewise.
62061         * tests/unictype/test-pr_id_start.c: Likewise.
62062         * tests/unictype/test-pr_ideographic.c: Likewise.
62063         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
62064         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
62065         * tests/unictype/test-pr_ignorable_control.c: Likewise.
62066         * tests/unictype/test-pr_iso_control.c: Likewise.
62067         * tests/unictype/test-pr_join_control.c: Likewise.
62068         * tests/unictype/test-pr_left_of_pair.c: Likewise.
62069         * tests/unictype/test-pr_line_separator.c: Likewise.
62070         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
62071         * tests/unictype/test-pr_lowercase.c: Likewise.
62072         * tests/unictype/test-pr_math.c: Likewise.
62073         * tests/unictype/test-pr_non_break.c: Likewise.
62074         * tests/unictype/test-pr_not_a_character.c: Likewise.
62075         * tests/unictype/test-pr_numeric.c: Likewise.
62076         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
62077         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
62078         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
62079         * tests/unictype/test-pr_other_id_continue.c: Likewise.
62080         * tests/unictype/test-pr_other_id_start.c: Likewise.
62081         * tests/unictype/test-pr_other_lowercase.c: Likewise.
62082         * tests/unictype/test-pr_other_math.c: Likewise.
62083         * tests/unictype/test-pr_other_uppercase.c: Likewise.
62084         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
62085         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
62086         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
62087         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
62088         * tests/unictype/test-pr_private_use.c: Likewise.
62089         * tests/unictype/test-pr_punctuation.c: Likewise.
62090         * tests/unictype/test-pr_quotation_mark.c: Likewise.
62091         * tests/unictype/test-pr_radical.c: Likewise.
62092         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
62093         * tests/unictype/test-pr_soft_dotted.c: Likewise.
62094         * tests/unictype/test-pr_space.c: Likewise.
62095         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
62096         * tests/unictype/test-pr_titlecase.c: Likewise.
62097         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
62098         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
62099         * tests/unictype/test-pr_uppercase.c: Likewise.
62100         * tests/unictype/test-pr_variation_selector.c: Likewise.
62101         * tests/unictype/test-pr_white_space.c: Likewise.
62102         * tests/unictype/test-pr_xid_continue.c: Likewise.
62103         * tests/unictype/test-pr_xid_start.c: Likewise.
62104         * tests/unictype/test-pr_zero_width.c: Likewise.
62105         * tests/unictype/test-sy_c_whitespace.c: Likewise.
62106         * tests/unictype/test-sy_java_whitespace.c: Likewise.
62107
62108 2007-11-12  Bruno Haible  <bruno@clisp.org>
62109
62110         Unicode character classification functions.
62111         * lib/unictype.h: New file.
62112         * modules/unictype/base: New file.
62113         * modules/unictype/category-L: New file.
62114         * modules/unictype/category-Lu: New file.
62115         * modules/unictype/category-Ll: New file.
62116         * modules/unictype/category-Lt: New file.
62117         * modules/unictype/category-Lm: New file.
62118         * modules/unictype/category-Lo: New file.
62119         * modules/unictype/category-M: New file.
62120         * modules/unictype/category-Mn: New file.
62121         * modules/unictype/category-Mc: New file.
62122         * modules/unictype/category-Me: New file.
62123         * modules/unictype/category-N: New file.
62124         * modules/unictype/category-Nd: New file.
62125         * modules/unictype/category-Nl: New file.
62126         * modules/unictype/category-No: New file.
62127         * modules/unictype/category-P: New file.
62128         * modules/unictype/category-Pc: New file.
62129         * modules/unictype/category-Pd: New file.
62130         * modules/unictype/category-Ps: New file.
62131         * modules/unictype/category-Pe: New file.
62132         * modules/unictype/category-Pi: New file.
62133         * modules/unictype/category-Pf: New file.
62134         * modules/unictype/category-Po: New file.
62135         * modules/unictype/category-S: New file.
62136         * modules/unictype/category-Sm: New file.
62137         * modules/unictype/category-Sc: New file.
62138         * modules/unictype/category-Sk: New file.
62139         * modules/unictype/category-So: New file.
62140         * modules/unictype/category-Z: New file.
62141         * modules/unictype/category-Zs: New file.
62142         * modules/unictype/category-Zl: New file.
62143         * modules/unictype/category-Zp: New file.
62144         * modules/unictype/category-C: New file.
62145         * modules/unictype/category-Cc: New file.
62146         * modules/unictype/category-Cf: New file.
62147         * modules/unictype/category-Cs: New file.
62148         * modules/unictype/category-Co: New file.
62149         * modules/unictype/category-Cn: New file.
62150         * modules/unictype/category-or: New file.
62151         * modules/unictype/category-of: New file.
62152         * modules/unictype/category-test: New file.
62153         * modules/unictype/category-test-withtable: New file.
62154         * modules/unictype/category-byname: New file.
62155         * modules/unictype/category-none: New file.
62156         * modules/unictype/category-and: New file.
62157         * modules/unictype/category-and-not: New file.
62158         * modules/unictype/category-name: New file.
62159         * modules/unictype/combining-class: New file.
62160         * modules/unictype/category-all: New file.
62161         * modules/unictype/bidicategory-all: New file.
62162         * modules/unictype/bidicategory-byname: New file.
62163         * modules/unictype/bidicategory-name: New file.
62164         * modules/unictype/bidicategory-of: New file.
62165         * modules/unictype/bidicategory-test: New file.
62166         * modules/unictype/decimal-digit: New file.
62167         * modules/unictype/digit: New file.
62168         * modules/unictype/numeric: New file.
62169         * modules/unictype/mirror: New file.
62170         * modules/unictype/property-white-space: New file.
62171         * modules/unictype/property-alphabetic: New file.
62172         * modules/unictype/property-other-alphabetic: New file.
62173         * modules/unictype/property-not-a-character: New file.
62174         * modules/unictype/property-default-ignorable-code-point: New file.
62175         * modules/unictype/property-other-default-ignorable-code-point: New
62176         file.
62177         * modules/unictype/property-deprecated: New file.
62178         * modules/unictype/property-logical-order-exception: New file.
62179         * modules/unictype/property-variation-selector: New file.
62180         * modules/unictype/property-private-use: New file.
62181         * modules/unictype/property-unassigned-code-value: New file.
62182         * modules/unictype/property-uppercase: New file.
62183         * modules/unictype/property-other-uppercase: New file.
62184         * modules/unictype/property-lowercase: New file.
62185         * modules/unictype/property-other-lowercase: New file.
62186         * modules/unictype/property-titlecase: New file.
62187         * modules/unictype/property-soft-dotted: New file.
62188         * modules/unictype/property-id-start: New file.
62189         * modules/unictype/property-other-id-start: New file.
62190         * modules/unictype/property-id-continue: New file.
62191         * modules/unictype/property-other-id-continue: New file.
62192         * modules/unictype/property-xid-start: New file.
62193         * modules/unictype/property-xid-continue: New file.
62194         * modules/unictype/property-pattern-white-space: New file.
62195         * modules/unictype/property-pattern-syntax: New file.
62196         * modules/unictype/property-join-control: New file.
62197         * modules/unictype/property-grapheme-base: New file.
62198         * modules/unictype/property-grapheme-extend: New file.
62199         * modules/unictype/property-other-grapheme-extend: New file.
62200         * modules/unictype/property-grapheme-link: New file.
62201         * modules/unictype/property-bidi-control: New file.
62202         * modules/unictype/property-bidi-left-to-right: New file.
62203         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
62204         * modules/unictype/property-bidi-arabic-right-to-left: New file.
62205         * modules/unictype/property-bidi-european-digit: New file.
62206         * modules/unictype/property-bidi-eur-num-separator: New file.
62207         * modules/unictype/property-bidi-eur-num-terminator: New file.
62208         * modules/unictype/property-bidi-arabic-digit: New file.
62209         * modules/unictype/property-bidi-common-separator: New file.
62210         * modules/unictype/property-bidi-block-separator: New file.
62211         * modules/unictype/property-bidi-segment-separator: New file.
62212         * modules/unictype/property-bidi-whitespace: New file.
62213         * modules/unictype/property-bidi-non-spacing-mark: New file.
62214         * modules/unictype/property-bidi-boundary-neutral: New file.
62215         * modules/unictype/property-bidi-pdf: New file.
62216         * modules/unictype/property-bidi-embedding-or-override: New file.
62217         * modules/unictype/property-bidi-other-neutral: New file.
62218         * modules/unictype/property-hex-digit: New file.
62219         * modules/unictype/property-ascii-hex-digit: New file.
62220         * modules/unictype/property-ideographic: New file.
62221         * modules/unictype/property-unified-ideograph: New file.
62222         * modules/unictype/property-radical: New file.
62223         * modules/unictype/property-ids-binary-operator: New file.
62224         * modules/unictype/property-ids-trinary-operator: New file.
62225         * modules/unictype/property-zero-width: New file.
62226         * modules/unictype/property-space: New file.
62227         * modules/unictype/property-non-break: New file.
62228         * modules/unictype/property-iso-control: New file.
62229         * modules/unictype/property-format-control: New file.
62230         * modules/unictype/property-dash: New file.
62231         * modules/unictype/property-hyphen: New file.
62232         * modules/unictype/property-punctuation: New file.
62233         * modules/unictype/property-line-separator: New file.
62234         * modules/unictype/property-paragraph-separator: New file.
62235         * modules/unictype/property-quotation-mark: New file.
62236         * modules/unictype/property-sentence-terminal: New file.
62237         * modules/unictype/property-terminal-punctuation: New file.
62238         * modules/unictype/property-currency-symbol: New file.
62239         * modules/unictype/property-math: New file.
62240         * modules/unictype/property-other-math: New file.
62241         * modules/unictype/property-paired-punctuation: New file.
62242         * modules/unictype/property-left-of-pair: New file.
62243         * modules/unictype/property-combining: New file.
62244         * modules/unictype/property-composite: New file.
62245         * modules/unictype/property-decimal-digit: New file.
62246         * modules/unictype/property-numeric: New file.
62247         * modules/unictype/property-diacritic: New file.
62248         * modules/unictype/property-extender: New file.
62249         * modules/unictype/property-ignorable-control: New file.
62250         * modules/unictype/property-test: New file.
62251         * modules/unictype/property-byname: New file.
62252         * modules/unictype/property-all: New file.
62253         * modules/unictype/scripts: New file.
62254         * modules/unictype/scripts-all: New file.
62255         * modules/unictype/block-of: New file.
62256         * modules/unictype/block-test: New file.
62257         * modules/unictype/block-list: New file.
62258         * modules/unictype/block-all: New file.
62259         * modules/unictype/syntax-c-whitespace: New file.
62260         * modules/unictype/syntax-java-whitespace: New file.
62261         * modules/unictype/syntax-c-ident: New file.
62262         * modules/unictype/syntax-java-ident: New file.
62263         * modules/unictype/ctype-alnum: New file.
62264         * modules/unictype/ctype-alpha: New file.
62265         * modules/unictype/ctype-cntrl: New file.
62266         * modules/unictype/ctype-digit: New file.
62267         * modules/unictype/ctype-graph: New file.
62268         * modules/unictype/ctype-lower: New file.
62269         * modules/unictype/ctype-print: New file.
62270         * modules/unictype/ctype-punct: New file.
62271         * modules/unictype/ctype-space: New file.
62272         * modules/unictype/ctype-upper: New file.
62273         * modules/unictype/ctype-xdigit: New file.
62274         * modules/unictype/ctype-blank: New file.
62275         * lib/unictype/bidi_byname.c: New file.
62276         * lib/unictype/bidi_name.c: New file.
62277         * lib/unictype/bidi_of.c: New file.
62278         * lib/unictype/bidi_test.c: New file.
62279         * lib/unictype/bitmap.h: New file.
62280         * lib/unictype/block_test.c: New file.
62281         * lib/unictype/blocks.c: New file.
62282         * lib/unictype/categ_C.c: New file.
62283         * lib/unictype/categ_Cc.c: New file.
62284         * lib/unictype/categ_Cf.c: New file.
62285         * lib/unictype/categ_Cn.c: New file.
62286         * lib/unictype/categ_Co.c: New file.
62287         * lib/unictype/categ_Cs.c: New file.
62288         * lib/unictype/categ_L.c: New file.
62289         * lib/unictype/categ_Ll.c: New file.
62290         * lib/unictype/categ_Lm.c: New file.
62291         * lib/unictype/categ_Lo.c: New file.
62292         * lib/unictype/categ_Lt.c: New file.
62293         * lib/unictype/categ_Lu.c: New file.
62294         * lib/unictype/categ_M.c: New file.
62295         * lib/unictype/categ_Mc.c: New file.
62296         * lib/unictype/categ_Me.c: New file.
62297         * lib/unictype/categ_Mn.c: New file.
62298         * lib/unictype/categ_N.c: New file.
62299         * lib/unictype/categ_Nd.c: New file.
62300         * lib/unictype/categ_Nl.c: New file.
62301         * lib/unictype/categ_No.c: New file.
62302         * lib/unictype/categ_P.c: New file.
62303         * lib/unictype/categ_Pc.c: New file.
62304         * lib/unictype/categ_Pd.c: New file.
62305         * lib/unictype/categ_Pe.c: New file.
62306         * lib/unictype/categ_Pf.c: New file.
62307         * lib/unictype/categ_Pi.c: New file.
62308         * lib/unictype/categ_Po.c: New file.
62309         * lib/unictype/categ_Ps.c: New file.
62310         * lib/unictype/categ_S.c: New file.
62311         * lib/unictype/categ_Sc.c: New file.
62312         * lib/unictype/categ_Sk.c: New file.
62313         * lib/unictype/categ_Sm.c: New file.
62314         * lib/unictype/categ_So.c: New file.
62315         * lib/unictype/categ_Z.c: New file.
62316         * lib/unictype/categ_Zl.c: New file.
62317         * lib/unictype/categ_Zp.c: New file.
62318         * lib/unictype/categ_Zs.c: New file.
62319         * lib/unictype/categ_and.c: New file.
62320         * lib/unictype/categ_and_not.c: New file.
62321         * lib/unictype/categ_byname.c: New file.
62322         * lib/unictype/categ_name.c: New file.
62323         * lib/unictype/categ_none.c: New file.
62324         * lib/unictype/categ_of.c: New file.
62325         * lib/unictype/categ_or.c: New file.
62326         * lib/unictype/categ_test.c: New file.
62327         * lib/unictype/combining.c: New file.
62328         * lib/unictype/ctype_alnum.c: New file.
62329         * lib/unictype/ctype_alpha.c: New file.
62330         * lib/unictype/ctype_blank.c: New file.
62331         * lib/unictype/ctype_cntrl.c: New file.
62332         * lib/unictype/ctype_digit.c: New file.
62333         * lib/unictype/ctype_graph.c: New file.
62334         * lib/unictype/ctype_lower.c: New file.
62335         * lib/unictype/ctype_print.c: New file.
62336         * lib/unictype/ctype_punct.c: New file.
62337         * lib/unictype/ctype_space.c: New file.
62338         * lib/unictype/ctype_upper.c: New file.
62339         * lib/unictype/ctype_xdigit.c: New file.
62340         * lib/unictype/decdigit.c: New file.
62341         * lib/unictype/digit.c: New file.
62342         * lib/unictype/identsyntaxmap.h: New file.
62343         * lib/unictype/mirror.c: New file.
62344         * lib/unictype/numeric.c: New file.
62345         * lib/unictype/pr_alphabetic.c: New file.
62346         * lib/unictype/pr_ascii_hex_digit.c: New file.
62347         * lib/unictype/pr_bidi_arabic_digit.c: New file.
62348         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
62349         * lib/unictype/pr_bidi_block_separator.c: New file.
62350         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
62351         * lib/unictype/pr_bidi_common_separator.c: New file.
62352         * lib/unictype/pr_bidi_control.c: New file.
62353         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
62354         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
62355         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
62356         * lib/unictype/pr_bidi_european_digit.c: New file.
62357         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
62358         * lib/unictype/pr_bidi_left_to_right.c: New file.
62359         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
62360         * lib/unictype/pr_bidi_other_neutral.c: New file.
62361         * lib/unictype/pr_bidi_pdf.c: New file.
62362         * lib/unictype/pr_bidi_segment_separator.c: New file.
62363         * lib/unictype/pr_bidi_whitespace.c: New file.
62364         * lib/unictype/pr_byname.c: New file.
62365         * lib/unictype/pr_byname.gperf: New file.
62366         * lib/unictype/pr_combining.c: New file.
62367         * lib/unictype/pr_composite.c: New file.
62368         * lib/unictype/pr_currency_symbol.c: New file.
62369         * lib/unictype/pr_dash.c: New file.
62370         * lib/unictype/pr_decimal_digit.c: New file.
62371         * lib/unictype/pr_default_ignorable_code_point.c: New file.
62372         * lib/unictype/pr_deprecated.c: New file.
62373         * lib/unictype/pr_diacritic.c: New file.
62374         * lib/unictype/pr_extender.c: New file.
62375         * lib/unictype/pr_format_control.c: New file.
62376         * lib/unictype/pr_grapheme_base.c: New file.
62377         * lib/unictype/pr_grapheme_extend.c: New file.
62378         * lib/unictype/pr_grapheme_link.c: New file.
62379         * lib/unictype/pr_hex_digit.c: New file.
62380         * lib/unictype/pr_hyphen.c: New file.
62381         * lib/unictype/pr_id_continue.c: New file.
62382         * lib/unictype/pr_id_start.c: New file.
62383         * lib/unictype/pr_ideographic.c: New file.
62384         * lib/unictype/pr_ids_binary_operator.c: New file.
62385         * lib/unictype/pr_ids_trinary_operator.c: New file.
62386         * lib/unictype/pr_ignorable_control.c: New file.
62387         * lib/unictype/pr_iso_control.c: New file.
62388         * lib/unictype/pr_join_control.c: New file.
62389         * lib/unictype/pr_left_of_pair.c: New file.
62390         * lib/unictype/pr_line_separator.c: New file.
62391         * lib/unictype/pr_logical_order_exception.c: New file.
62392         * lib/unictype/pr_lowercase.c: New file.
62393         * lib/unictype/pr_math.c: New file.
62394         * lib/unictype/pr_non_break.c: New file.
62395         * lib/unictype/pr_not_a_character.c: New file.
62396         * lib/unictype/pr_numeric.c: New file.
62397         * lib/unictype/pr_other_alphabetic.c: New file.
62398         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
62399         * lib/unictype/pr_other_grapheme_extend.c: New file.
62400         * lib/unictype/pr_other_id_continue.c: New file.
62401         * lib/unictype/pr_other_id_start.c: New file.
62402         * lib/unictype/pr_other_lowercase.c: New file.
62403         * lib/unictype/pr_other_math.c: New file.
62404         * lib/unictype/pr_other_uppercase.c: New file.
62405         * lib/unictype/pr_paired_punctuation.c: New file.
62406         * lib/unictype/pr_paragraph_separator.c: New file.
62407         * lib/unictype/pr_pattern_syntax.c: New file.
62408         * lib/unictype/pr_pattern_white_space.c: New file.
62409         * lib/unictype/pr_private_use.c: New file.
62410         * lib/unictype/pr_punctuation.c: New file.
62411         * lib/unictype/pr_quotation_mark.c: New file.
62412         * lib/unictype/pr_radical.c: New file.
62413         * lib/unictype/pr_sentence_terminal.c: New file.
62414         * lib/unictype/pr_soft_dotted.c: New file.
62415         * lib/unictype/pr_space.c: New file.
62416         * lib/unictype/pr_terminal_punctuation.c: New file.
62417         * lib/unictype/pr_test.c: New file.
62418         * lib/unictype/pr_titlecase.c: New file.
62419         * lib/unictype/pr_unassigned_code_value.c: New file.
62420         * lib/unictype/pr_unified_ideograph.c: New file.
62421         * lib/unictype/pr_uppercase.c: New file.
62422         * lib/unictype/pr_variation_selector.c: New file.
62423         * lib/unictype/pr_white_space.c: New file.
62424         * lib/unictype/pr_xid_continue.c: New file.
62425         * lib/unictype/pr_xid_start.c: New file.
62426         * lib/unictype/pr_zero_width.c: New file.
62427         * lib/unictype/scripts.c: New file.
62428         * lib/unictype/sy_c_ident.c: New file.
62429         * lib/unictype/sy_c_whitespace.c: New file.
62430         * lib/unictype/sy_java_ident.c: New file.
62431         * lib/unictype/sy_java_whitespace.c: New file.
62432
62433         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
62434         Unicode 5.0.0.
62435         * lib/unictype/blocks.h: Likewise.
62436         * lib/unictype/categ_C.h: Likewise.
62437         * lib/unictype/categ_Cc.h: Likewise.
62438         * lib/unictype/categ_Cf.h: Likewise.
62439         * lib/unictype/categ_Cn.h: Likewise.
62440         * lib/unictype/categ_Co.h: Likewise.
62441         * lib/unictype/categ_Cs.h: Likewise.
62442         * lib/unictype/categ_L.h: Likewise.
62443         * lib/unictype/categ_Ll.h: Likewise.
62444         * lib/unictype/categ_Lm.h: Likewise.
62445         * lib/unictype/categ_Lo.h: Likewise.
62446         * lib/unictype/categ_Lt.h: Likewise.
62447         * lib/unictype/categ_Lu.h: Likewise.
62448         * lib/unictype/categ_M.h: Likewise.
62449         * lib/unictype/categ_Mc.h: Likewise.
62450         * lib/unictype/categ_Me.h: Likewise.
62451         * lib/unictype/categ_Mn.h: Likewise.
62452         * lib/unictype/categ_N.h: Likewise.
62453         * lib/unictype/categ_Nd.h: Likewise.
62454         * lib/unictype/categ_Nl.h: Likewise.
62455         * lib/unictype/categ_No.h: Likewise.
62456         * lib/unictype/categ_P.h: Likewise.
62457         * lib/unictype/categ_Pc.h: Likewise.
62458         * lib/unictype/categ_Pd.h: Likewise.
62459         * lib/unictype/categ_Pe.h: Likewise.
62460         * lib/unictype/categ_Pf.h: Likewise.
62461         * lib/unictype/categ_Pi.h: Likewise.
62462         * lib/unictype/categ_Po.h: Likewise.
62463         * lib/unictype/categ_Ps.h: Likewise.
62464         * lib/unictype/categ_S.h: Likewise.
62465         * lib/unictype/categ_Sc.h: Likewise.
62466         * lib/unictype/categ_Sk.h: Likewise.
62467         * lib/unictype/categ_Sm.h: Likewise.
62468         * lib/unictype/categ_So.h: Likewise.
62469         * lib/unictype/categ_Z.h: Likewise.
62470         * lib/unictype/categ_Zl.h: Likewise.
62471         * lib/unictype/categ_Zp.h: Likewise.
62472         * lib/unictype/categ_Zs.h: Likewise.
62473         * lib/unictype/categ_of.h: Likewise.
62474         * lib/unictype/combining.h: Likewise.
62475         * lib/unictype/ctype_alnum.h: Likewise.
62476         * lib/unictype/ctype_alpha.h: Likewise.
62477         * lib/unictype/ctype_blank.h: Likewise.
62478         * lib/unictype/ctype_cntrl.h: Likewise.
62479         * lib/unictype/ctype_digit.h: Likewise.
62480         * lib/unictype/ctype_graph.h: Likewise.
62481         * lib/unictype/ctype_lower.h: Likewise.
62482         * lib/unictype/ctype_print.h: Likewise.
62483         * lib/unictype/ctype_punct.h: Likewise.
62484         * lib/unictype/ctype_space.h: Likewise.
62485         * lib/unictype/ctype_upper.h: Likewise.
62486         * lib/unictype/ctype_xdigit.h: Likewise.
62487         * lib/unictype/decdigit.h: Likewise.
62488         * lib/unictype/digit.h: Likewise.
62489         * lib/unictype/mirror.h: Likewise.
62490         * lib/unictype/numeric.h: Likewise.
62491         * lib/unictype/pr_alphabetic.h: Likewise.
62492         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
62493         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
62494         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
62495         * lib/unictype/pr_bidi_block_separator.h: Likewise.
62496         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
62497         * lib/unictype/pr_bidi_common_separator.h: Likewise.
62498         * lib/unictype/pr_bidi_control.h: Likewise.
62499         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
62500         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
62501         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
62502         * lib/unictype/pr_bidi_european_digit.h: Likewise.
62503         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
62504         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
62505         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
62506         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
62507         * lib/unictype/pr_bidi_pdf.h: Likewise.
62508         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
62509         * lib/unictype/pr_bidi_whitespace.h: Likewise.
62510         * lib/unictype/pr_combining.h: Likewise.
62511         * lib/unictype/pr_composite.h: Likewise.
62512         * lib/unictype/pr_currency_symbol.h: Likewise.
62513         * lib/unictype/pr_dash.h: Likewise.
62514         * lib/unictype/pr_decimal_digit.h: Likewise.
62515         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
62516         * lib/unictype/pr_deprecated.h: Likewise.
62517         * lib/unictype/pr_diacritic.h: Likewise.
62518         * lib/unictype/pr_extender.h: Likewise.
62519         * lib/unictype/pr_format_control.h: Likewise.
62520         * lib/unictype/pr_grapheme_base.h: Likewise.
62521         * lib/unictype/pr_grapheme_extend.h: Likewise.
62522         * lib/unictype/pr_grapheme_link.h: Likewise.
62523         * lib/unictype/pr_hex_digit.h: Likewise.
62524         * lib/unictype/pr_hyphen.h: Likewise.
62525         * lib/unictype/pr_id_continue.h: Likewise.
62526         * lib/unictype/pr_id_start.h: Likewise.
62527         * lib/unictype/pr_ideographic.h: Likewise.
62528         * lib/unictype/pr_ids_binary_operator.h: Likewise.
62529         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
62530         * lib/unictype/pr_ignorable_control.h: Likewise.
62531         * lib/unictype/pr_iso_control.h: Likewise.
62532         * lib/unictype/pr_join_control.h: Likewise.
62533         * lib/unictype/pr_left_of_pair.h: Likewise.
62534         * lib/unictype/pr_line_separator.h: Likewise.
62535         * lib/unictype/pr_logical_order_exception.h: Likewise.
62536         * lib/unictype/pr_lowercase.h: Likewise.
62537         * lib/unictype/pr_math.h: Likewise.
62538         * lib/unictype/pr_non_break.h: Likewise.
62539         * lib/unictype/pr_not_a_character.h: Likewise.
62540         * lib/unictype/pr_numeric.h: Likewise.
62541         * lib/unictype/pr_other_alphabetic.h: Likewise.
62542         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
62543         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
62544         * lib/unictype/pr_other_id_continue.h: Likewise.
62545         * lib/unictype/pr_other_id_start.h: Likewise.
62546         * lib/unictype/pr_other_lowercase.h: Likewise.
62547         * lib/unictype/pr_other_math.h: Likewise.
62548         * lib/unictype/pr_other_uppercase.h: Likewise.
62549         * lib/unictype/pr_paired_punctuation.h: Likewise.
62550         * lib/unictype/pr_paragraph_separator.h: Likewise.
62551         * lib/unictype/pr_pattern_syntax.h: Likewise.
62552         * lib/unictype/pr_pattern_white_space.h: Likewise.
62553         * lib/unictype/pr_private_use.h: Likewise.
62554         * lib/unictype/pr_punctuation.h: Likewise.
62555         * lib/unictype/pr_quotation_mark.h: Likewise.
62556         * lib/unictype/pr_radical.h: Likewise.
62557         * lib/unictype/pr_sentence_terminal.h: Likewise.
62558         * lib/unictype/pr_soft_dotted.h: Likewise.
62559         * lib/unictype/pr_space.h: Likewise.
62560         * lib/unictype/pr_terminal_punctuation.h: Likewise.
62561         * lib/unictype/pr_titlecase.h: Likewise.
62562         * lib/unictype/pr_unassigned_code_value.h: Likewise.
62563         * lib/unictype/pr_unified_ideograph.h: Likewise.
62564         * lib/unictype/pr_uppercase.h: Likewise.
62565         * lib/unictype/pr_variation_selector.h: Likewise.
62566         * lib/unictype/pr_white_space.h: Likewise.
62567         * lib/unictype/pr_xid_continue.h: Likewise.
62568         * lib/unictype/pr_xid_start.h: Likewise.
62569         * lib/unictype/pr_zero_width.h: Likewise.
62570         * lib/unictype/scripts.h: Likewise.
62571         * lib/unictype/scripts_byname.gperf: Likewise.
62572         * lib/unictype/sy_c_ident.h: Likewise.
62573         * lib/unictype/sy_c_whitespace.h: Likewise.
62574         * lib/unictype/sy_java_ident.h: Likewise.
62575         * lib/unictype/sy_java_whitespace.h: Likewise.
62576
62577         * lib/unictype/Makefile: New file.
62578         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
62579         glibc.
62580         * lib/unictype/3level.h: New file, copied from glibc.
62581         * lib/unictype/3levelbit.h: New file.
62582
62583 2007-11-11  Bruno Haible  <bruno@clisp.org>
62584
62585         * modules/gperf: New file.
62586         * modules/iconv_open (Depends-on): Add it.
62587         (Makefile.am): Remove the GPERF definition.
62588
62589 2007-11-11  Bruno Haible  <bruno@clisp.org>
62590
62591         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
62592         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
62593
62594 2007-11-11  Bruno Haible  <bruno@clisp.org>
62595
62596         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
62597         (usage): Remove function.
62598
62599 2007-11-11  Bruno Haible  <bruno@clisp.org>
62600
62601         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
62602         gl_FUNC_CEILF_LIBS.
62603         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
62604         gl_FUNC_CEIL_LIBS.
62605         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
62606         gl_FUNC_CEILL_LIBS.
62607         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
62608         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
62609         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
62610
62611 2007-11-11  Bruno Haible  <bruno@clisp.org>
62612
62613         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
62614         roundf were declared but do not exist on functions.
62615         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
62616         roundl were declared but do not exist on functions.
62617         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
62618         HAVE_FLOORL_AND_CEILL, respectively.
62619         Needed for Sun C on Solaris 10.
62620
62621 2007-11-11  Bruno Haible  <bruno@clisp.org>
62622
62623         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
62624         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
62625         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
62626         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
62627         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
62628         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
62629         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
62630         HAVE_DECL_ROUNDF.
62631         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
62632         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
62633         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
62634         of HAVE_DECL_ROUND*.
62635         * modules/math (Makefile.am): Update.
62636
62637 2007-11-10  Bruno Haible  <bruno@clisp.org>
62638
62639         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
62640         ptrdiff_t as m4/intl.m4.
62641
62642 2007-11-10  Jim Meyering  <meyering@redhat.com>
62643
62644         Avoid link failure for the argmatch test.
62645         * tests/test-argmatch.c (usage): Define function to avoid a link
62646         failure: argmatch_die requires a usage function.
62647
62648 2007-11-09  Bruno Haible  <bruno@clisp.org>
62649
62650         * doc/functions/snprintf.texi: Mention BeOS deficiency.
62651         * doc/functions/vsnprintf.texi: Likewise.
62652         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
62653         with a size argument < 2.
62654
62655 2007-11-09  Bruno Haible  <bruno@clisp.org>
62656
62657         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
62658         buffer. Fixes an inefficiency introduced on 2007-11-03.
62659
62660 2007-11-09  Bruno Haible  <bruno@clisp.org>
62661
62662         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
62663         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
62664
62665 2007-11-08  Jim Meyering  <meyering@redhat.com>
62666
62667         Change cache variable name prefix "jm_" to "gl_" everywhere.
62668         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
62669         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
62670         * m4/uptime.m4: s/gl_/jm_/
62671
62672 2007-11-07  Bruno Haible  <bruno@clisp.org>
62673
62674         Update to GNU gettext 0.17.
62675         * m4/intl.m4: Update to GNU gettext 0.17.
62676         * m4/po.m4: Likewise.
62677         * modules/gettext (Files): Remove m4/ulonglong.m4.
62678         (configure.ac): Require gettext infrastructure from version 0.17.
62679
62680 2007-11-06  Bruno Haible  <bruno@clisp.org>
62681
62682         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
62683         symbolic values are not defined in a public header.
62684         * lib/freadable.c (freadable) [QNX]: Likewise.
62685         * lib/freadahead.c (freadahead) [QNX]: Likewise.
62686         * lib/freading.c (freading) [QNX]: Likewise.
62687         * lib/fseterr.c (fseterr) [QNX]: Likewise.
62688         * lib/fwritable.c (fwritable) [QNX]: Likewise.
62689         * lib/fwriting.c (fwriting) [QNX]: Likewise.
62690         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
62691         Reported by Alain Magloire.
62692
62693         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
62694
62695 2007-11-05  Bruno Haible  <bruno@clisp.org>
62696
62697         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
62698         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
62699         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
62700         Reported by Eric Blake.
62701
62702 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62703             Bruno Haible  <bruno@clisp.org>
62704
62705         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
62706         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
62707         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
62708         (malloc): Undefine also before including <stdlib.h>.
62709         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
62710         Needed on OSF/1 4.0.
62711
62712 2007-11-05  Jim Meyering  <meyering@redhat.com>
62713
62714         git-version-gen: sync from coreutils.
62715         * build-aux/git-version-gen: Add comments.
62716         Change the first '-' to '.' in the snapshot version string,
62717         e.g., 6.9-377-08144 -> 6.9.377-08144
62718         Remove first parameter.
62719         Don't declare a version "-dirty" merely because a time
62720         stamp has changed.
62721
62722 2007-11-04  Bruno Haible  <bruno@clisp.org>
62723
62724         * lib/lock.h: Protect all macro definitions containing an 'if'
62725         statement through a "do { ... } while (0)".
62726         * lib/tls.h: Likewise.
62727
62728 2007-11-04  Bruno Haible  <bruno@clisp.org>
62729
62730         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
62731
62732 2007-11-04  Bruno Haible  <bruno@clisp.org>
62733
62734         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
62735         * modules/fprintf-posix (Depends-on): Add nocrash.
62736         * modules/snprintf-posix (Depends-on): Likewise.
62737         * modules/sprintf-posix (Depends-on): Likewise.
62738         * modules/vasnprintf-posix (Depends-on): Likewise.
62739         * modules/vasprintf-posix (Depends-on): Likewise.
62740         * modules/vfprintf-posix (Depends-on): Likewise.
62741         * modules/vsnprintf-posix (Depends-on): Likewise.
62742         * modules/vsprintf-posix (Depends-on): Likewise.
62743         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
62744         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
62745         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
62746         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
62747         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
62748         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
62749         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
62750
62751 2007-11-04  Bruno Haible  <bruno@clisp.org>
62752
62753         * modules/nocrash: New file.
62754         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
62755         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
62756
62757 2007-11-04  Bruno Haible  <bruno@clisp.org>
62758
62759         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
62760         precision handling.
62761         * tests/test-vasprintf-posix.c (test_function): Likewise.
62762         * tests/test-snprintf-posix.h (test_function): Likewise.
62763         * tests/test-sprintf-posix.h (test_function): Likewise.
62764
62765         Fix *printf behaviour for large precisions on mingw and BeOS.
62766         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
62767         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
62768         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
62769         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
62770         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
62771         gl_PRINTF_PRECISION and test its result. Invoke
62772         gl_PREREQ_VASNPRINTF_PRECISION.
62773         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
62774         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
62775         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
62776         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
62777         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
62778         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
62779         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
62780         * doc/functions/fprintf.texi: Update.
62781         * doc/functions/printf.texi: Update.
62782         * doc/functions/snprintf.texi: Update.
62783         * doc/functions/sprintf.texi: Update.
62784         * doc/functions/vfprintf.texi: Update.
62785         * doc/functions/vprintf.texi: Update.
62786         * doc/functions/vsnprintf.texi: Update.
62787         * doc/functions/vsprintf.texi: Update.
62788
62789 2007-11-04  Bruno Haible  <bruno@clisp.org>
62790
62791         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
62792
62793 2007-11-04  Bruno Haible  <bruno@clisp.org>
62794
62795         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
62796         Reported by Sylvain Beucler <beuc@gnu.org>.
62797
62798 2007-11-03  Bruno Haible  <bruno@clisp.org>
62799
62800         * tests/test-fprintf-posix2.sh: New file.
62801         * tests/test-fprintf-posix2.c: New file.
62802         * modules/fprintf-posix-tests (Files): Add them.
62803         (TESTS): Add test-fprintf-posix2.sh.
62804         (configure.ac): Check for getrlimit and setrlimit.
62805         (check_PROGRAMS): Add test-fprintf-posix2.
62806
62807         * tests/test-printf-posix2.sh: New file.
62808         * tests/test-printf-posix2.c: New file.
62809         * modules/printf-posix-tests (Files): Add them.
62810         (TESTS): Add test-printf-posix2.sh.
62811         (configure.ac): Check for getrlimit and setrlimit.
62812         (check_PROGRAMS): Add test-printf-posix2.
62813
62814         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
62815         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
62816         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
62817         (decode_double): New function, copied from decode_long_double.
62818         (scale10_round_decimal_decoded): New function, extracted from
62819         scale10_round_decimal_long_double.
62820         (scale10_round_decimal_long_double): Use it.
62821         (scale10_round_decimal_double): New function.
62822         (floorlog10): New function.
62823         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
62824         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
62825         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
62826         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
62827         gl_PRINTF_ENOMEM and test its result. Invoke
62828         gl_PREREQ_VASNPRINTF_ENOMEM.
62829         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
62830         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
62831         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
62832         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
62833         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
62834         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
62835         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
62836         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
62837         * modules/snprintf-posix (Depends-on): Likewise.
62838         * modules/sprintf-posix (Depends-on): Likewise.
62839         * modules/vasnprintf-posix (Depends-on): Likewise.
62840         * modules/vasprintf-posix (Depends-on): Likewise.
62841         * modules/vfprintf-posix (Depends-on): Likewise.
62842         * modules/vsnprintf-posix (Depends-on): Likewise.
62843         * modules/vsprintf-posix (Depends-on): Likewise.
62844         * doc/functions/fprintf.texi: Update.
62845         * doc/functions/printf.texi: Update.
62846         * doc/functions/snprintf.texi: Update.
62847         * doc/functions/sprintf.texi: Update.
62848         * doc/functions/vfprintf.texi: Update.
62849         * doc/functions/vprintf.texi: Update.
62850         * doc/functions/vsnprintf.texi: Update.
62851         * doc/functions/vsprintf.texi: Update.
62852
62853 2007-11-03  Bruno Haible  <bruno@clisp.org>
62854
62855         * modules/frexp-nolibm-tests: New file.
62856
62857         * modules/frexp-nolibm: New file.
62858         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
62859
62860 2007-11-03  Bruno Haible  <bruno@clisp.org>
62861
62862         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
62863         value is C99 compliant.
62864         Needed for OSF/1 5.1.
62865
62866 2007-11-03  Bruno Haible  <bruno@clisp.org>
62867
62868         Fix out-of-memory handling of vasnprintf.
62869         * lib/printf-parse.c: Include <errno.h>.
62870         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
62871         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
62872         is already set.
62873
62874 2007-11-02  Eric Blake  <ebb9@byu.net>
62875
62876         Fix tests on cygwin.
62877         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
62878
62879 2007-11-01  Bruno Haible  <bruno@clisp.org>
62880
62881         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
62882         warning.
62883         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
62884         needed for POSIX compatibility.
62885
62886 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
62887
62888         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
62889         for compatibility with GNU.
62890
62891 2007-11-01  Bruno Haible  <bruno@clisp.org>
62892
62893         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
62894         (putenv): Renamed from rpl_putenv. Change argument type from
62895         'const char *' to 'char *'.
62896         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
62897         of defining putenv in config.h, just set REPLACE_PUTENV.
62898         * modules/putenv (Depends-on): Add stdlib.
62899         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
62900         (Include): Use <stdlib.h>.
62901         * lib/stdlib.in.h (putenv): New declaration.
62902         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
62903         REPLACE_PUTENV.
62904         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
62905         REPLACE_PUTENV.
62906         Needed for MacOS X 10.5.0.
62907         Reported by Peter O'Gorman <peter@pogma.com>.
62908
62909 2007-11-01  Jim Meyering  <meyering@redhat.com>
62910
62911         Treat an empty date string exactly like "0".
62912         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
62913         if the remaining date string (to be parsed) is empty, use "0".
62914         Reported by Mischa Molhoek and discussed in this thread:
62915         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
62916
62917 2007-10-31  Bruno Haible  <bruno@clisp.org>
62918
62919         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
62920         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
62921         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
62922         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
62923         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
62924         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
62925
62926 2007-10-31  Bruno Haible  <bruno@clisp.org>
62927
62928         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
62929         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
62930         (AC_TYPE_LONG_LONG_INT): Use it.
62931         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
62932         it as well.
62933         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
62934         to m4/longlong.m4.
62935         * modules/stdint (Files): Remove m4/ulonglong.m4.
62936         * modules/strtoull (Files): Use m4/longlong.m4 instead of
62937         m4/ulonglong.m4.
62938         * modules/strtoumax (Files): Likewise.
62939
62940 2007-10-30  Bruno Haible  <bruno@clisp.org>
62941
62942         * modules/xvasprintf-posix: New file.
62943         Suggested by Eric Blake.
62944
62945 2007-10-30  Bruno Haible  <bruno@clisp.org>
62946
62947         * modules/xprintf-posix-tests: New file.
62948         * tests/test-xprintf-posix.sh: New file.
62949         * tests/test-xprintf-posix.c: New file.
62950         * tests/test-xfprintf-posix.c: New file.
62951
62952         * modules/xprintf-posix: New file.
62953
62954 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62955
62956         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
62957         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
62958         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
62959
62960 2007-10-29  Bruno Haible  <bruno@clisp.org>
62961
62962         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
62963         contain the special marker '_cv_'.
62964         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
62965         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
62966         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
62967         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
62968         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
62969         Reported by Ralf Wildenhues.
62970
62971 2007-10-29  Bruno Haible  <bruno@clisp.org>
62972
62973         * gnulib-tool (func_import): When --lgpl is not specified, set
62974         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
62975         GPLv3.
62976         Reported by Simon Josefsson.
62977
62978 2007-10-28  Bruno Haible  <bruno@clisp.org>
62979
62980         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
62981         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
62982         HAVE_DECL_ISFINITE.
62983         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
62984         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
62985         HAVE_DECL_ISFINITE.
62986
62987 2007-10-28  Bruno Haible  <bruno@clisp.org>
62988
62989         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
62990         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
62991
62992 2007-10-28  Bruno Haible  <bruno@clisp.org>
62993
62994         Fix link errors with Sun C 5.0 on Solaris 10.
62995         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
62996         function is declared but not present in the compiler's libm.
62997         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
62998         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
62999         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
63000         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
63001         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
63002         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
63003         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
63004         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
63005         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
63006         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
63007         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
63008         HAVE_DECL_FLOORL.
63009
63010 2007-10-28  Bruno Haible  <bruno@clisp.org>
63011
63012         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
63013         gl_FUNC_FLOORL. Cache the result.
63014         (gl_FUNC_FLOORL): Use it.
63015         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
63016         gl_FUNC_CEILL. Cache the result.
63017         (gl_FUNC_CEILL): Use it.
63018
63019         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
63020         gl_FUNC_FLOOR. Cache the result.
63021         (gl_FUNC_FLOOR): Use it.
63022         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
63023         gl_FUNC_CEIL. Cache the result.
63024         (gl_FUNC_CEIL): Use it.
63025
63026         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
63027         gl_FUNC_FLOORF. Cache the result.
63028         (gl_FUNC_FLOORF): Use it.
63029         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
63030         gl_FUNC_CEILF. Cache the result.
63031         (gl_FUNC_CEILF): Use it.
63032
63033 2007-10-28  Bruno Haible  <bruno@clisp.org>
63034
63035         * gnulib-tool: Allow specifying the LGPL version number through
63036         --lgpl=2 or --lgpl=3.
63037         (func_usage): Document --lgpl with argument.
63038         Handle --lgpl=... arguments.
63039         (func_import): Recognize also gl_LGPL calls with an argument. When
63040         --lgpl=2 is used and the module's license is just LGPL, report an
63041         error. Set sed_transform_lib_file according to the lgpl variable. In
63042         the generated files, use --lgpl or gl_LGPL invocations with argument,
63043         if necessary.
63044         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
63045         an LGPv2+ license.
63046         * doc/gnulib-tool.texi (Modified imports): Update explanation of
63047         gl_LGPL macro.
63048
63049 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63050             Bruno Haible  <bruno@clisp.org>
63051
63052         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
63053         (u16_uctomb_aux): Likewise.
63054         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
63055         !HAVE_INLINE.
63056         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
63057
63058 2007-10-28  Bruno Haible  <bruno@clisp.org>
63059
63060         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
63061         Invoke AM_GETTEXT_OPTION if it exists.
63062         * modules/vasprintf: Likewise.
63063         * modules/verror: Likewise.
63064         * modules/xprintf: Likewise.
63065         * modules/xvasprintf: Likewise.
63066
63067 2007-10-27  Ben Pfaff  <blp@gnu.org>
63068
63069         * lib/math.in.h: Define isfinite macro and prototypes for
63070         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
63071         implementations.
63072         * m4/math_h.m4: New substitutions for isfinite module.
63073         * lib/isfinite.c: New file.
63074         * m4/isfinite.m4: New file.
63075         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
63076         * modules/isfinite: New file.
63077         * modules/isfinite-tests: New file.
63078         * tests/tests-isfinite.c: New file.
63079         * doc/functions/isfinite.texi: Mention isfinite module.
63080         * MODULES.html.sh: Mention new module.
63081
63082 2007-10-27  Ben Pfaff  <blp@gnu.org>
63083
63084         Ralf Wildenhues reported that Tru64 4.0D declares the round
63085         functions but does not have definitions.
63086         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
63087         cannot be found in any library, set the output variable to
63088         "missing" instead of "".
63089         * m4/round.m4: Also use our substitute if we cannot find round in
63090         any library, even if it is declared.
63091         * m4/roundf.m4: Likewise for roundf.
63092         * m4/roundl.m4: Likewise for roundl.
63093         * lib/math.in.h: Undefine roundf, round, roundl before defining
63094         their replacements, to allow for hypothetical systems where these
63095         may be defined as macros but not available in libraries.
63096
63097 2007-10-27  Bruno Haible  <bruno@clisp.org>
63098
63099         * doc/gnulib.texi: Invoke @firstparagraphindent.
63100         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
63101         changes in gnulib.
63102         (Source changes): New section.
63103
63104 2007-10-26  Bruno Haible  <bruno@clisp.org>
63105
63106         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
63107         borrowed from autoconf.
63108
63109 2007-10-26  Bruno Haible  <bruno@clisp.org>
63110
63111         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
63112         strerror returned the empty string. Needed on HP-UX 11.00.
63113
63114 2007-10-24  Micah Cowan  <micah@cowan.name>
63115
63116         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
63117         * build-aux/bootstrap: Remove support for now-unnecessary option,
63118         --cvs-user, and envvars CVS_USER, CVS_RSH.
63119
63120 2007-10-24  Jim Meyering  <meyering@redhat.com>
63121
63122         Avoid diagnostics from sha1sum when there is no cached checksum.
63123         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
63124         if the po.s1 file hasn't been created yet.
63125
63126         * build-aux/bootstrap: Sync from coreutils:
63127         2007-10-24  Jim Meyering  <meyering@redhat.com>
63128         Get gnulib from the git repository, not from an obsolete cvs one.
63129         * build-aux/bootstrap: Suggestion from Micah Cowan.
63130         2007-10-04  Jim Meyering  <jim@meyering.net>
63131         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
63132         (update_po_files): Work also when there are no .po files in po/.
63133
63134 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
63135
63136         * README: Append ".git" to git and cg examples.
63137         Problem reported by Benoit Sigoure.
63138
63139 2007-10-23  Micah Cowan  <micah@cowan.name>
63140
63141         * users.txt: Add wget.
63142
63143 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63144
63145         Fix linking of some unistdio tests on FreeBSD.
63146         * modules/unistdio/u16-vsnprintf-tests
63147         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
63148         * modules/unistdio/u16-vsprintf-tests
63149         (test_u16_vsnprintf1_LDADD): Likewise.
63150         * modules/unistdio/u32-vsnprintf-tests
63151         (test_u32_vsnprintf1_LDADD): Likewise.
63152         * modules/unistdio/u32-vsprintf-tests
63153         (test_u32_vsprintf1_LDADD): Likewise.
63154         * modules/unistdio/u8-vsnprintf-tests
63155         (test_u8_vsnprintf1_LDADD): Likewise.
63156         * modules/unistdio/u8-vsprintf-tests
63157         (test_u8_vsprintf1_LDADD): Likewise.
63158         * modules/unistdio/ulc-vsnprintf-tests
63159         (test_ulc_vsnprintf1_LDADD): Likewise.
63160         * modules/unistdio/ulc-vsprintf-tests
63161         (test_ulc_vsprintf1_LDADD): Likewise.
63162
63163         Fix linking of some uniconv tests on FreeBSD.
63164         * modules/uniconv/u16-conv-from-enc-tests
63165         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
63166         * modules/uniconv/u16-conv-to-enc-tests
63167         (test_u16_conv_to_enc_LDADD): Likewise.
63168         * modules/uniconv/u16-strconv-from-enc-tests
63169         (test_u16_strconv_from_enc_LDADD): Likewise.
63170         * modules/uniconv/u16-strconv-to-enc-tests
63171         (test_u16_strconv_to_enc_LDADD): Likewise.
63172         * modules/uniconv/u32-conv-from-enc-tests
63173         (test_u32_conv_from_enc_LDADD): Likewise.
63174         * modules/uniconv/u32-conv-to-enc-tests
63175         (test_u32_conv_to_enc_LDADD): Likewise.
63176         * modules/uniconv/u32-strconv-from-enc-tests
63177         (test_u32_strconv_from_enc_LDADD): Likewise.
63178         * modules/uniconv/u32-strconv-to-enc-tests
63179         (test_u32_strconv_to_enc_LDADD): Likewise.
63180         * modules/uniconv/u8-conv-from-enc-tests
63181         (test_u8_conv_from_enc_LDADD): Likewise.
63182         * modules/uniconv/u8-conv-to-enc-tests
63183         (test_u8_conv_to_enc_LDADD): Likewise.
63184         * modules/uniconv/u8-strconv-from-enc-tests
63185         (test_u8_strconv_from_enc_LDADD): Likewise.
63186         * modules/uniconv/u8-strconv-to-enc-tests
63187         (test_u8_strconv_to_enc_LDADD): Likewise.
63188
63189 2007-10-22  Bruno Haible  <bruno@clisp.org>
63190
63191         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
63192         size.
63193
63194 2007-10-22  Eric Blake  <ebb9@byu.net>
63195
63196         Tweak x*printf documentation.
63197         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
63198         variable name and comments.
63199         Suggested by Bruno Haible.
63200
63201 2007-10-22  Bruno Haible  <bruno@clisp.org>
63202
63203         * lib/acl.c (copy_acl): Fix file name in comment.
63204
63205 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
63206
63207         Fix Tru64 problem with stdbool.h.
63208         * lib/stdbool.in.h (false, true):
63209         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
63210         Don't declare as an enum in this situation; it runs afoul of Tru64.
63211         Problem reported by Steven M. Schweda in
63212         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
63213
63214 2007-10-22  Eric Blake  <ebb9@byu.net>
63215
63216         Also wrap vf?printf.
63217         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
63218         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
63219         (xvprintf, xvfprintf): New functions.
63220
63221 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63222
63223         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
63224         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
63225
63226         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
63227         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
63228
63229 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
63230
63231         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
63232         by Bruno Haible.
63233
63234 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63235
63236         * lib/getloadavg.c
63237         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
63238         Undef `sys' after including sys/table.h, for Tru64 4.0D.
63239
63240         * tests/test-i-ring.c: Work for C89.
63241
63242 2007-10-22  Bruno Haible  <bruno@clisp.org>
63243
63244         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
63245         -1u, in preprocessor expression, so that we don't test for the bug
63246         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
63247         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
63248
63249 2007-10-22  Eric Blake  <ebb9@byu.net>
63250
63251         * tests/test-yesno.sh: Silence stderr during test.
63252
63253 2007-10-22  Simon Josefsson  <simon@josefsson.org>
63254
63255         * modules/crypto/gc-camellia: New file.
63256
63257         * m4/gc-camellia.m4: New file.
63258
63259         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
63260
63261         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
63262
63263 2007-10-22  Simon Josefsson  <simon@josefsson.org>
63264
63265         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
63266         --help to stdout.  Reported by sms@antinode.org (Steven
63267         M. Schweda).
63268
63269 2007-10-22  Simon Josefsson  <simon@josefsson.org>
63270
63271         * users.txt: Fix link to libksba.
63272
63273 2007-10-21  Ben Pfaff  <blp@gnu.org>
63274
63275         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
63276         round.c roundf implementation that depends on floorf and ceilf to
63277         be tested unconditionally.
63278
63279 2007-10-21  Ben Pfaff  <blp@gnu.org>
63280
63281         * m4/check-libm-func.m4: Removed.
63282         * m4/check-math-lib.m4: New file.
63283         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
63284         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
63285         definition and lack of AC_LIBOBJ([roundf]).
63286         * m4/roundl.m4: Ditto, and similarly for roundl.
63287         * modules/round: Reference new m4 file.
63288         * modules/roundf: Ditto.
63289         * modules/roundl: Ditto.
63290         * tests/test-round2.c (main): Use ROUND instead of round.
63291         Bug report from Bruno Haible.
63292
63293 2007-10-21  Bruno Haible  <bruno@clisp.org>
63294
63295         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
63296         context.
63297
63298 2007-10-21  Bruno Haible  <bruno@clisp.org>
63299
63300         * tests/test-wcwidth.c (main): Allow negative result for some control
63301         characters.
63302
63303         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
63304         Needed on OSF/1 5.1.
63305
63306 2007-10-21  Bruno Haible  <bruno@clisp.org>
63307
63308         * tests/test-floorf1.c: Include isnanf.h.
63309         (main): Use isnanf() instead of isnan().
63310         * tests/test-ceilf1.c: Include isnanf.h.
63311         (main): Use isnanf() instead of isnan().
63312         * tests/test-truncf1.c: Include isnanf.h.
63313         (main): Use isnanf() instead of isnan().
63314         * tests/test-roundf1.c: Include isnanf.h.
63315         (main): Use isnanf() instead of isnan().
63316
63317 2007-10-21  Eric Blake  <ebb9@byu.net>
63318
63319         * users.txt: Update URL for m4.
63320
63321 2007-10-21  Bruno Haible  <bruno@clisp.org>
63322
63323         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
63324
63325 2007-10-21  Bruno Haible  <bruno@clisp.org>
63326
63327         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
63328         Git's management files if the CVS files are not present.
63329
63330 2007-10-20  Bruno Haible  <bruno@clisp.org>
63331
63332         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
63333         gcc-3.4.x.
63334
63335 2007-10-20  Ben Pfaff  <blp@gnu.org>
63336
63337         * lib/math.in.h: Declare round, roundf, roundl if we are providing
63338         implementations.
63339         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
63340         * lib/round.c: New file.
63341         * lib/roundf.c: New file.
63342         * lib/roundl.c: New file.
63343         * m4/round.m4: New file.
63344         * m4/roundf.m4: New file.
63345         * m4/roundl.m4: New file.
63346         * m4/check-libm-func-m4: New file.
63347         * modules/math: Replace round, roundf, roundl related @VARS@ in
63348         math.in.h.
63349         * modules/round: New file.
63350         * modules/round-tests: New file.
63351         * modules/roundf: New file.
63352         * modules/roundf-tests: New file.
63353         * modules/roundl: New file.
63354         * modules/roundl-tests: New file.
63355         * tests/test-round1.c: New file.
63356         * tests/test-round2.c: New file.
63357         * tests/test-roundf1.c: New file.
63358         * tests/test-roundf2.c: New file.
63359         * tests/test-roundl.c: New file.
63360         * doc/functions/round.texi: Mention round module.
63361         * doc/functions/roundf.texi: Mention roundf module.
63362         * doc/functions/roundl.texi: Mention roundl module.
63363         * MODULES.html.sh: Mention new modules.
63364         Thanks to Bruno Haible for suggestions.
63365
63366 2007-10-20  Jim Meyering  <meyering@redhat.com>
63367
63368         * lib/xprintf.c: Include <config.h> unconditionally.
63369
63370         Change xprintf's license to GPL.
63371         * modules/xprintf (License): s/LGPL/GPL/, since this module
63372         depends on modules (exit and exitfail) which are GPL.
63373         Suggestion from Bruno Haible.
63374
63375         xprintf fixes.
63376         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
63377         Use a clearer diagnostic.
63378         Patch from Bruno Haible.
63379
63380 2007-10-20  Bruno Haible  <bruno@clisp.org>
63381
63382         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
63383         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
63384         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63385
63386 2007-10-20  Bruno Haible  <bruno@clisp.org>
63387
63388         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
63389         precision in the comparison result > x - 1 or similar.
63390         * tests/test-ceilf2.c (correct_result_p): Likewise.
63391         * tests/test-truncf2.c (correct_result_p): Likewise.
63392         * tests/test-trunc2.c (correct_result_p): Likewise.
63393         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63394
63395 2007-10-20  Bruno Haible  <bruno@clisp.org>
63396
63397         * modules/ceil: New file.
63398         * m4/ceil.m4: New file.
63399         * doc/functions/ceil.texi: Mention the 'ceil' module.
63400
63401 2007-10-20  Bruno Haible  <bruno@clisp.org>
63402
63403         * modules/floor: New file.
63404         * m4/floor.m4: New file.
63405         * doc/functions/floor.texi: Mention the 'floor' module.
63406
63407 2007-10-20  Bruno Haible  <bruno@clisp.org>
63408
63409         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
63410         of %a.
63411         * modules/floorf-tests (Depends-on): Likewise.
63412         * modules/truncf-tests (Depends-on): Likewise.
63413         * modules/trunc-tests (Depends-on): Likewise.
63414         Reported by Ben Pfaff.
63415
63416 2007-10-19  Jim Meyering  <meyering@redhat.com>
63417
63418         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
63419         Don't bother testing specific errno values.  Just test ferror.
63420
63421         New module: xprintf
63422         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
63423
63424 2007-10-19  Bruno Haible  <bruno@clisp.org>
63425
63426         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
63427         syntax.
63428         * modules/javaexec (Makefile.am): Likewise.
63429         * modules/relocatable-prog (Makefile.am): Likewise.
63430         Suggested by Jim Meyering.
63431
63432 2007-10-18  Bruno Haible  <bruno@clisp.org>
63433
63434         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
63435         Reported by Jim Meyering.
63436
63437 2007-10-18  Eric Blake  <ebb9@byu.net>
63438
63439         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
63440
63441 2007-10-18  Bruno Haible  <bruno@clisp.org>
63442
63443         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
63444         the format string into writable memory. Needed in Fortify conditions.
63445
63446 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
63447             Bruno Haible  <bruno@clisp.org>
63448
63449         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
63450         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
63451         * modules/trim (Depends-on): Add mbchar.
63452         (configure.ac): Add gl_FUNC_MBRTOWC.
63453         (Makefile.am): Augment lib_SOURCES.
63454
63455 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
63456
63457         Modify glob.c to use fstatat and dirfd, to simplify it.
63458         Suggested by Eric Blake.
63459         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
63460         Don't include <stdbool.h>; not used.
63461         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
63462         (link_exists_p): Simplify implementation, since we can now assume
63463         dirfd and fstatat.
63464         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
63465
63466 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63467
63468         * gnulib-tool (func_get_dependencies): Fix sed script to
63469         match only tests.
63470
63471 2007-10-17  Bruno Haible  <bruno@clisp.org>
63472
63473         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
63474         allow locale names without encoding suffix.
63475         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
63476         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
63477
63478 2007-10-16  Bruno Haible  <bruno@clisp.org>
63479
63480         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
63481         * lib/getgroups.c (getgroups): Likewise.
63482         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
63483
63484 2007-10-16  Bruno Haible  <bruno@clisp.org>
63485
63486         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
63487         * modules/malloc-posix (License): Likewise.
63488         * modules/realloc-posix (License): Likewise.
63489         * modules/calloc-posix (License): Likewise.
63490         * modules/intprops (License): Change from GPL to LGPL, with
63491         Paul Eggert's approval.
63492
63493 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
63494
63495         Merge glibc changes into lib/glob.c.
63496
63497         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
63498         2007-10-15 04:59:03 UTC.  Here are the changes:
63499
63500         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
63501
63502         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
63503
63504         * lib/glob.c: Add some branch prediction throughout.
63505
63506         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
63507
63508         [BZ #5103]
63509         * lib/glob.c (glob): Recognize patterns starting \/.
63510
63511         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
63512
63513         [BZ #3996]
63514         * lib/glob.c (attribute_hidden): Define if not defined.
63515         (glob): Unescape dirname, filename or username when needed and not
63516         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
63517         is NULL.  Handle unescaped [ in pattern without closing ].
63518         Don't pass GLOB_CHECK down to recursive glob for directories.
63519         (__glob_pattern_type): New function.
63520         (__glob_pattern_p): Implement using __glob_pattern_type.
63521         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
63522         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
63523         Remove unreachable code.
63524
63525         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
63526
63527         * lib/glob.c (glob_in_dir): Add some comments and asserts to
63528         explain why there are no leaks.
63529
63530         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
63531
63532         [BZ #3253]
63533         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
63534         time, rather allocate increasingly bigger arrays of pointers, if
63535         possible with alloca, if too large with malloc.
63536
63537 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
63538
63539         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
63540         Problem reported by H.Merijn Brand in
63541         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
63542         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
63543         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
63544
63545 2007-10-15  Bruno Haible  <bruno@clisp.org>
63546
63547         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
63548         with explicit rpl_ prefix.
63549         * lib/fopen.c (fopen): Likewise.
63550         * lib/freopen.c (freopen): Likewise.
63551         * lib/iconv.c (iconv): Likewise.
63552         * lib/iconv_close.c (iconv_close): Likewise.
63553
63554 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63555
63556         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
63557
63558 2007-10-15  Bruno Haible  <bruno@clisp.org>
63559
63560         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
63561         <stddef.h> instead of <stdlib.h> since we only need NULL.
63562         Reported by Ben Pfaff <blp@cs.stanford.edu>.
63563
63564 2007-10-15  Bruno Haible  <bruno@clisp.org>
63565
63566         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
63567         Replace paragraph talking about LIBOBJS.
63568         Reported by Colin Watson <cjwatson@debian.org>.
63569
63570 2007-10-15  Bruno Haible  <bruno@clisp.org>
63571
63572         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
63573         <stdlib.h> before using NULL.
63574
63575 2007-10-15  Simon Josefsson  <simon@josefsson.org>
63576
63577         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
63578         Reported by Albert Chin <china@thewrittenword.com>.
63579
63580 2007-10-14  Bruno Haible  <bruno@clisp.org>
63581
63582         * modules/iconv_open-utf-tests: New file.
63583         * tests/test-iconv-utf.c: New file.
63584
63585         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
63586         * modules/iconv_open-utf: New file.
63587         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
63588         (iconv, iconv_close): New declarations.
63589         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
63590         be defined.
63591         (iconv_open): Add special handling of conversion between UTF-8 and
63592         UTF-{16,32}{BE,LE}.
63593         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
63594         * lib/iconv_close.c: New file.
63595         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
63596         gl_FUNC_ICONV_OPEN.
63597         (gl_FUNC_ICONV_OPEN): Use it.
63598         (gl_FUNC_ICONV_OPEN_UTF): New macro.
63599         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
63600         and REPLACE_ICONV_UTF.
63601         * modules/iconv_open (Depends-on): Add c-strcase.
63602         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
63603         ICONV_CONST.
63604         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
63605
63606 2007-10-13  Albert Chin  <china@thewrittenword.com>
63607             Bruno Haible  <bruno@clisp.org>
63608
63609         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
63610         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
63611
63612 2007-10-13  Bruno Haible  <bruno@clisp.org>
63613
63614         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
63615         defined, use the ISO C99 inline semantics.
63616         * lib/argp.h (ARGP_EI): Likewise.
63617
63618 2007-10-13  Bruno Haible  <bruno@clisp.org>
63619
63620         Handle 'inline' change in gcc 4.3.0.
63621         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
63622         argp_fmtstream_write, argp_fmtstream_set_lmargin,
63623         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
63624         argp_fmtstream_point): Disable 'extern' declaration if the function
63625         definition is going to be provided inline.
63626         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
63627         semantics, not the ISO C99 inline semantics.
63628         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
63629         'extern' declaration if the function definition is going to be provided
63630         inline.
63631         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
63632         the GNU C inline semantics, not the ISO C99 inline semantics. With
63633         GCC 4.2, avoid a warning.
63634
63635 2007-10-13  Bruno Haible  <bruno@clisp.org>
63636
63637         * lib/freading.h (freading): Enable the use of __freading for
63638         glibc >= 2.7.
63639         * lib/freading.c (freading): Likewise.
63640
63641 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
63642
63643         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
63644         "warning: C99 inline functions are not supported; using GNU89".
63645
63646 2007-10-12  Bruno Haible  <bruno@clisp.org>
63647
63648         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
63649         of 2.
63650         * tests/test-ceilf2.c: New file.
63651         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
63652
63653         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
63654         * modules/ceilf-tests: Update.
63655
63656 2007-10-12  Bruno Haible  <bruno@clisp.org>
63657
63658         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
63659         of 2.
63660         * tests/test-floorf2.c: New file.
63661         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
63662
63663         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
63664         * modules/floorf-tests: Update.
63665
63666 2007-10-12  Bruno Haible  <bruno@clisp.org>
63667
63668         * tests/test-trunc2.c: New file.
63669         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
63670
63671         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
63672         * modules/trunc-tests: Update.
63673
63674 2007-10-12  Bruno Haible  <bruno@clisp.org>
63675
63676         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
63677         of 2.
63678         * tests/test-truncf2.c: New file.
63679         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
63680
63681         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
63682         * modules/truncf-tests: Update.
63683
63684 2007-10-11  Eric Blake  <ebb9@byu.net>
63685
63686         Don't claim strerror is broken on Interix.
63687         * doc/functions/strerror.texi (strerror): Known broken systems are
63688         now Solaris 8, and not Interix.
63689         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
63690         Interix on cross-compile.
63691         Reported by Martin Koeppe in
63692         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
63693
63694 2007-10-11  Bruno Haible  <bruno@clisp.org>
63695
63696         * modules/i-ring-tests: New file.
63697         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
63698         instead of assert.
63699
63700 2007-10-11  Bruno Haible  <bruno@clisp.org>
63701
63702         * modules/filenamecat-tests: New file.
63703         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
63704         * lib/filenamecat.c: Remove test code.
63705
63706 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
63707
63708         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
63709
63710         * lib/strerror.c: Include <string.h> always, to test interface,
63711         and to remove the need for the dummy.
63712         Include intprops.h to compute width instead of doing it ourselves
63713         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
63714         (strerror): Define it to return NULL if there's no system strerror.
63715         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
63716         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
63717         ancient pre-strerror Unix systems well any more.  Saying "unknown
63718         system error" is enough.
63719         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
63720         simpler strerror.c implementation.
63721         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
63722         Simplify the tests to reflect the simpler strerror implementation.
63723         * modules/strerror (Depends-on): Add intprops.
63724
63725 2007-10-09  Eric Blake  <ebb9@byu.net>
63726
63727         Silence test-fpending.
63728         * modules/fpending-tests (Files): Add wrapper script.
63729         * tests/test-fpending.sh: New file.
63730
63731 2007-10-09  Bruno Haible  <bruno@clisp.org>
63732
63733         * MODULES.html.sh (func_module): Don't create a hyperlink for
63734         function names like 'printf_frexp'.
63735         (Misc): Add crc, memxor.
63736         (Characteristics of floating types): New section.
63737         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
63738         isnanf-nolibm, signbit, trunc, truncf, truncl.
63739         (Enhancements for ISO C 99 functions): New subsection Input/output.
63740         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
63741         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
63742         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
63743         (Compatibility checks for POSIX:2001 functions): Add clock-time.
63744         (Enhancements for POSIX:2001 functions): Add chdir-long.
63745         (File system functions): Add areadlink, chdir-safer, read-file.
63746         Remove cycle-check.
63747         (File system as inode set): New section.
63748         (Date and time): Add gethrxtime.
63749         (Multithreading): Add openmp.
63750         (Internationalization functions): Add localename.
63751         (Unicode string functions): Add unistr/u*-mbsnlen.
63752         (Support for maintaining and releasing projects): Add git-version-gen.
63753         (Lone files): Remove directories.
63754
63755 2007-10-08  Ben Pfaff  <blp@gnu.org>
63756
63757         * lib/xmalloca.h: Fix typo in comment.
63758
63759 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
63760
63761         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
63762         when avoiding problems with integer overflow.  Use a portable test
63763         instead.
63764
63765 2007-10-08  Simon Josefsson  <simon@josefsson.org>
63766
63767         * modules/dummy (License): Change to LGPLv2+.
63768         * modules/float (License): Likewise
63769         * modules/realloc (License): Likewise
63770         * modules/stdlib (License): Likewise
63771
63772 2007-10-07  Bruno Haible  <bruno@clisp.org>
63773
63774         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
63775         * floor.c (TWO_MANT_DIG): Likewise.
63776         * ceil.c (TWO_MANT_DIG): Likewise.
63777         Reported by Ben Pfaff.
63778
63779 2007-10-07  Bruno Haible  <bruno@clisp.org>
63780
63781         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
63782         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
63783         * lib/frexp.c (FUNC): Likewise.
63784         * lib/printf-frexp.h (printf_frexp): Likewise.
63785         * lib/printf-frexpl.h (printf_frexpl): Likewise.
63786         * lib/printf-frexp.c (FUNC): Likewise.
63787         Suggested by Jim Meyering.
63788
63789 2007-10-07  Jim Meyering  <meyering@redhat.com>
63790
63791         Make xnanosleep's integer overflow test more robust.
63792         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
63793         so that gcc-4.3.0 doesn't optimize away this test for overflow.
63794
63795 2007-10-07  Bruno Haible  <bruno@clisp.org>
63796
63797         * NEWS: Mention the license change.
63798
63799         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
63800         abbreviations in the modules files.
63801
63802         Change copyright notice from GPLv2+ to GPLv3+.
63803         * README: Change copyright notice.
63804         * MODULES.html.sh: Likewise.
63805         * build-aux/bootstrap.conf: Likewise.
63806         * build-aux/config.libpath: Likewise.
63807         * build-aux/csharpcomp.sh.in: Likewise.
63808         * build-aux/csharpexec.sh.in: Likewise.
63809         * build-aux/install-reloc: Likewise.
63810         * build-aux/javacomp.sh.in: Likewise.
63811         * build-aux/javaexec.sh.in: Likewise.
63812         * build-aux/ldd.sh.in: Likewise.
63813         * build-aux/reloc-ldflags: Likewise.
63814         * build-aux/relocatable.sh.in: Likewise.
63815         * build-aux/x-to-1.in: Likewise.
63816         * check-module: Likewise.
63817         * config/srclistvars.sh: Likewise.
63818         * gnulib-tool: Likewise.
63819         * lib/acl-internal.h: Likewise.
63820         * lib/acl.c: Likewise.
63821         * lib/acl.h: Likewise.
63822         * lib/acl_entries.c: Likewise.
63823         * lib/areadlink-with-size.c: Likewise.
63824         * lib/areadlink.c: Likewise.
63825         * lib/areadlink.h: Likewise.
63826         * lib/argmatch.c: Likewise.
63827         * lib/argmatch.h: Likewise.
63828         * lib/argp-ba.c: Likewise.
63829         * lib/argp-eexst.c: Likewise.
63830         * lib/argp-fmtstream.c: Likewise.
63831         * lib/argp-fmtstream.h: Likewise.
63832         * lib/argp-fs-xinl.c: Likewise.
63833         * lib/argp-help.c: Likewise.
63834         * lib/argp-namefrob.h: Likewise.
63835         * lib/argp-parse.c: Likewise.
63836         * lib/argp-pin.c: Likewise.
63837         * lib/argp-pv.c: Likewise.
63838         * lib/argp-pvh.c: Likewise.
63839         * lib/argp-xinl.c: Likewise.
63840         * lib/argp.h: Likewise.
63841         * lib/at-func.c: Likewise.
63842         * lib/atanl.c: Likewise.
63843         * lib/backupfile.c: Likewise.
63844         * lib/backupfile.h: Likewise.
63845         * lib/basename.c: Likewise.
63846         * lib/binary-io.h: Likewise.
63847         * lib/byteswap.in.h: Likewise.
63848         * lib/c-stack.c: Likewise.
63849         * lib/c-stack.h: Likewise.
63850         * lib/c-strcasestr.c: Likewise.
63851         * lib/c-strcasestr.h: Likewise.
63852         * lib/c-strstr.c: Likewise.
63853         * lib/c-strstr.h: Likewise.
63854         * lib/c-strtod.c: Likewise.
63855         * lib/calloc.c: Likewise.
63856         * lib/canon-host.c: Likewise.
63857         * lib/canon-host.h: Likewise.
63858         * lib/canonicalize-lgpl.c: Likewise.
63859         * lib/canonicalize.c: Likewise.
63860         * lib/canonicalize.h: Likewise.
63861         * lib/ceil.c: Likewise.
63862         * lib/ceilf.c: Likewise.
63863         * lib/ceill.c: Likewise.
63864         * lib/chdir-long.c: Likewise.
63865         * lib/chdir-long.h: Likewise.
63866         * lib/chdir-safer.c: Likewise.
63867         * lib/chdir-safer.h: Likewise.
63868         * lib/chown.c: Likewise.
63869         * lib/classpath.c: Likewise.
63870         * lib/classpath.h: Likewise.
63871         * lib/clean-temp.c: Likewise.
63872         * lib/clean-temp.h: Likewise.
63873         * lib/cloexec.c: Likewise.
63874         * lib/close-stream.c: Likewise.
63875         * lib/closein.c: Likewise.
63876         * lib/closein.h: Likewise.
63877         * lib/closeout.c: Likewise.
63878         * lib/closeout.h: Likewise.
63879         * lib/concat-filename.c: Likewise.
63880         * lib/copy-file.c: Likewise.
63881         * lib/copy-file.h: Likewise.
63882         * lib/count-one-bits.h: Likewise.
63883         * lib/crc.c: Likewise.
63884         * lib/crc.h: Likewise.
63885         * lib/creat-safer.c: Likewise.
63886         * lib/csharpcomp.c: Likewise.
63887         * lib/csharpcomp.h: Likewise.
63888         * lib/csharpexec.c: Likewise.
63889         * lib/csharpexec.h: Likewise.
63890         * lib/cycle-check.c: Likewise.
63891         * lib/cycle-check.h: Likewise.
63892         * lib/diacrit.c: Likewise.
63893         * lib/diacrit.h: Likewise.
63894         * lib/diffseq.h: Likewise.
63895         * lib/dirchownmod.c: Likewise.
63896         * lib/dirent.in.h: Likewise.
63897         * lib/dirfd.c: Likewise.
63898         * lib/dirfd.h: Likewise.
63899         * lib/dirname.c: Likewise.
63900         * lib/dirname.h: Likewise.
63901         * lib/dummy.c: Likewise.
63902         * lib/dup-safer.c: Likewise.
63903         * lib/dup2.c: Likewise.
63904         * lib/eealloc.h: Likewise.
63905         * lib/error.c: Likewise.
63906         * lib/error.h: Likewise.
63907         * lib/euidaccess.c: Likewise.
63908         * lib/exclude.c: Likewise.
63909         * lib/exclude.h: Likewise.
63910         * lib/execute.c: Likewise.
63911         * lib/execute.h: Likewise.
63912         * lib/exitfail.c: Likewise.
63913         * lib/exitfail.h: Likewise.
63914         * lib/expl.c: Likewise.
63915         * lib/fatal-signal.c: Likewise.
63916         * lib/fatal-signal.h: Likewise.
63917         * lib/fbufmode.c: Likewise.
63918         * lib/fbufmode.h: Likewise.
63919         * lib/fchdir.c: Likewise.
63920         * lib/fchmodat.c: Likewise.
63921         * lib/fchownat.c: Likewise.
63922         * lib/fcntl--.h: Likewise.
63923         * lib/fcntl-safer.h: Likewise.
63924         * lib/fcntl.in.h: Likewise.
63925         * lib/fd-safer.c: Likewise.
63926         * lib/fflush.c: Likewise.
63927         * lib/file-has-acl.c: Likewise.
63928         * lib/file-set.c: Likewise.
63929         * lib/file-type.c: Likewise.
63930         * lib/file-type.h: Likewise.
63931         * lib/fileblocks.c: Likewise.
63932         * lib/filemode.c: Likewise.
63933         * lib/filemode.h: Likewise.
63934         * lib/filename.h: Likewise.
63935         * lib/filenamecat.c: Likewise.
63936         * lib/filenamecat.h: Likewise.
63937         * lib/findprog.c: Likewise.
63938         * lib/findprog.h: Likewise.
63939         * lib/float.in.h: Likewise.
63940         * lib/floor.c: Likewise.
63941         * lib/floorf.c: Likewise.
63942         * lib/floorl.c: Likewise.
63943         * lib/fopen-safer.c: Likewise.
63944         * lib/fopen.c: Likewise.
63945         * lib/fpending.c: Likewise.
63946         * lib/fpending.h: Likewise.
63947         * lib/fprintf.c: Likewise.
63948         * lib/fprintftime.h: Likewise.
63949         * lib/fpucw.h: Likewise.
63950         * lib/fpurge.c: Likewise.
63951         * lib/fpurge.h: Likewise.
63952         * lib/freadable.c: Likewise.
63953         * lib/freadable.h: Likewise.
63954         * lib/freadahead.c: Likewise.
63955         * lib/freadahead.h: Likewise.
63956         * lib/freading.c: Likewise.
63957         * lib/freading.h: Likewise.
63958         * lib/free.c: Likewise.
63959         * lib/freopen.c: Likewise.
63960         * lib/frexp.c: Likewise.
63961         * lib/frexpl.c: Likewise.
63962         * lib/fseek.c: Likewise.
63963         * lib/fseterr.c: Likewise.
63964         * lib/fseterr.h: Likewise.
63965         * lib/fstatat.c: Likewise.
63966         * lib/fstrcmp.c: Likewise.
63967         * lib/fstrcmp.h: Likewise.
63968         * lib/fsusage.c: Likewise.
63969         * lib/fsusage.h: Likewise.
63970         * lib/ftell.c: Likewise.
63971         * lib/ftello.c: Likewise.
63972         * lib/fts-cycle.c: Likewise.
63973         * lib/fts.c: Likewise.
63974         * lib/fts_.h: Likewise.
63975         * lib/full-read.c: Likewise.
63976         * lib/full-read.h: Likewise.
63977         * lib/full-write.c: Likewise.
63978         * lib/full-write.h: Likewise.
63979         * lib/fwritable.c: Likewise.
63980         * lib/fwritable.h: Likewise.
63981         * lib/fwriteerror.c: Likewise.
63982         * lib/fwriteerror.h: Likewise.
63983         * lib/fwriting.c: Likewise.
63984         * lib/fwriting.h: Likewise.
63985         * lib/gcd.c: Likewise.
63986         * lib/gcd.h: Likewise.
63987         * lib/getcwd.c: Likewise.
63988         * lib/getdate.h: Likewise.
63989         * lib/getdate.y: Likewise.
63990         * lib/getdomainname.c: Likewise.
63991         * lib/getdomainname.h: Likewise.
63992         * lib/getgroups.c: Likewise.
63993         * lib/gethostname.c: Likewise.
63994         * lib/gethrxtime.c: Likewise.
63995         * lib/gethrxtime.h: Likewise.
63996         * lib/getloadavg.c: Likewise.
63997         * lib/getndelim2.c: Likewise.
63998         * lib/getndelim2.h: Likewise.
63999         * lib/getnline.c: Likewise.
64000         * lib/getnline.h: Likewise.
64001         * lib/getopt.c: Likewise.
64002         * lib/getopt.in.h: Likewise.
64003         * lib/getopt1.c: Likewise.
64004         * lib/getopt_int.h: Likewise.
64005         * lib/getpagesize.h: Likewise.
64006         * lib/getsubopt.c: Likewise.
64007         * lib/gettime.c: Likewise.
64008         * lib/getugroups.c: Likewise.
64009         * lib/getugroups.h: Likewise.
64010         * lib/getusershell.c: Likewise.
64011         * lib/gl_anyavltree_list1.h: Likewise.
64012         * lib/gl_anyavltree_list2.h: Likewise.
64013         * lib/gl_anyhash_list1.h: Likewise.
64014         * lib/gl_anyhash_list2.h: Likewise.
64015         * lib/gl_anylinked_list1.h: Likewise.
64016         * lib/gl_anylinked_list2.h: Likewise.
64017         * lib/gl_anyrbtree_list1.h: Likewise.
64018         * lib/gl_anyrbtree_list2.h: Likewise.
64019         * lib/gl_anytree_list1.h: Likewise.
64020         * lib/gl_anytree_list2.h: Likewise.
64021         * lib/gl_anytree_oset.h: Likewise.
64022         * lib/gl_anytreehash_list1.h: Likewise.
64023         * lib/gl_anytreehash_list2.h: Likewise.
64024         * lib/gl_array_list.c: Likewise.
64025         * lib/gl_array_list.h: Likewise.
64026         * lib/gl_array_oset.c: Likewise.
64027         * lib/gl_array_oset.h: Likewise.
64028         * lib/gl_avltree_list.c: Likewise.
64029         * lib/gl_avltree_list.h: Likewise.
64030         * lib/gl_avltree_oset.c: Likewise.
64031         * lib/gl_avltree_oset.h: Likewise.
64032         * lib/gl_avltreehash_list.c: Likewise.
64033         * lib/gl_avltreehash_list.h: Likewise.
64034         * lib/gl_carray_list.c: Likewise.
64035         * lib/gl_carray_list.h: Likewise.
64036         * lib/gl_linked_list.c: Likewise.
64037         * lib/gl_linked_list.h: Likewise.
64038         * lib/gl_linkedhash_list.c: Likewise.
64039         * lib/gl_linkedhash_list.h: Likewise.
64040         * lib/gl_list.c: Likewise.
64041         * lib/gl_list.h: Likewise.
64042         * lib/gl_oset.c: Likewise.
64043         * lib/gl_oset.h: Likewise.
64044         * lib/gl_rbtree_list.c: Likewise.
64045         * lib/gl_rbtree_list.h: Likewise.
64046         * lib/gl_rbtree_oset.c: Likewise.
64047         * lib/gl_rbtree_oset.h: Likewise.
64048         * lib/gl_rbtreehash_list.c: Likewise.
64049         * lib/gl_rbtreehash_list.h: Likewise.
64050         * lib/gl_sublist.c: Likewise.
64051         * lib/gl_sublist.h: Likewise.
64052         * lib/group-member.c: Likewise.
64053         * lib/group-member.h: Likewise.
64054         * lib/hard-locale.c: Likewise.
64055         * lib/hard-locale.h: Likewise.
64056         * lib/hash-pjw.c: Likewise.
64057         * lib/hash-pjw.h: Likewise.
64058         * lib/hash-triple.c: Likewise.
64059         * lib/hash.c: Likewise.
64060         * lib/hash.h: Likewise.
64061         * lib/human.c: Likewise.
64062         * lib/human.h: Likewise.
64063         * lib/i-ring.c: Likewise.
64064         * lib/i-ring.h: Likewise.
64065         * lib/idcache.c: Likewise.
64066         * lib/imaxabs.c: Likewise.
64067         * lib/imaxdiv.c: Likewise.
64068         * lib/inet_pton.c: Likewise.
64069         * lib/inet_pton.h: Likewise.
64070         * lib/intprops.h: Likewise.
64071         * lib/inttostr.c: Likewise.
64072         * lib/inttostr.h: Likewise.
64073         * lib/inttypes.in.h: Likewise.
64074         * lib/isapipe.c: Likewise.
64075         * lib/isdir.c: Likewise.
64076         * lib/isnan.c: Likewise.
64077         * lib/isnan.h: Likewise.
64078         * lib/isnanf.c: Likewise.
64079         * lib/isnanf.h: Likewise.
64080         * lib/isnanl-nolibm.h: Likewise.
64081         * lib/isnanl.c: Likewise.
64082         * lib/isnanl.h: Likewise.
64083         * lib/javacomp.c: Likewise.
64084         * lib/javacomp.h: Likewise.
64085         * lib/javaexec.c: Likewise.
64086         * lib/javaexec.h: Likewise.
64087         * lib/javaversion.c: Likewise.
64088         * lib/javaversion.h: Likewise.
64089         * lib/javaversion.java: Likewise.
64090         * lib/lbrkprop.h: Likewise.
64091         * lib/lchmod.h: Likewise.
64092         * lib/lchown.c: Likewise.
64093         * lib/ldexpl.c: Likewise.
64094         * lib/linebreak.c: Likewise.
64095         * lib/linebreak.h: Likewise.
64096         * lib/linebuffer.c: Likewise.
64097         * lib/linebuffer.h: Likewise.
64098         * lib/locale.in.h: Likewise.
64099         * lib/logl.c: Likewise.
64100         * lib/long-options.c: Likewise.
64101         * lib/long-options.h: Likewise.
64102         * lib/lstat.c: Likewise.
64103         * lib/lstat.h: Likewise.
64104         * lib/math.in.h: Likewise.
64105         * lib/mbchar.c: Likewise.
64106         * lib/mbchar.h: Likewise.
64107         * lib/mbfile.h: Likewise.
64108         * lib/mbiter.h: Likewise.
64109         * lib/mbscasecmp.c: Likewise.
64110         * lib/mbscasestr.c: Likewise.
64111         * lib/mbschr.c: Likewise.
64112         * lib/mbscspn.c: Likewise.
64113         * lib/mbslen.c: Likewise.
64114         * lib/mbsncasecmp.c: Likewise.
64115         * lib/mbsnlen.c: Likewise.
64116         * lib/mbspbrk.c: Likewise.
64117         * lib/mbspcasecmp.c: Likewise.
64118         * lib/mbsrchr.c: Likewise.
64119         * lib/mbssep.c: Likewise.
64120         * lib/mbsspn.c: Likewise.
64121         * lib/mbsstr.c: Likewise.
64122         * lib/mbstok_r.c: Likewise.
64123         * lib/mbswidth.c: Likewise.
64124         * lib/mbswidth.h: Likewise.
64125         * lib/mbuiter.h: Likewise.
64126         * lib/memcasecmp.c: Likewise.
64127         * lib/memcasecmp.h: Likewise.
64128         * lib/memchr.c: Likewise.
64129         * lib/memcmp.c: Likewise.
64130         * lib/memcoll.c: Likewise.
64131         * lib/memcoll.h: Likewise.
64132         * lib/memcpy.c: Likewise.
64133         * lib/memrchr.c: Likewise.
64134         * lib/mkancesdirs.c: Likewise.
64135         * lib/mkdir-p.c: Likewise.
64136         * lib/mkdir-p.h: Likewise.
64137         * lib/mkdir.c: Likewise.
64138         * lib/mkdirat.c: Likewise.
64139         * lib/mkdtemp.c: Likewise.
64140         * lib/mkstemp-safer.c: Likewise.
64141         * lib/mkstemp.c: Likewise.
64142         * lib/modechange.c: Likewise.
64143         * lib/modechange.h: Likewise.
64144         * lib/mountlist.c: Likewise.
64145         * lib/mountlist.h: Likewise.
64146         * lib/mpsort.c: Likewise.
64147         * lib/nanosleep.c: Likewise.
64148         * lib/obstack.c: Likewise.
64149         * lib/obstack.h: Likewise.
64150         * lib/open-safer.c: Likewise.
64151         * lib/open.c: Likewise.
64152         * lib/openat-die.c: Likewise.
64153         * lib/openat-priv.h: Likewise.
64154         * lib/openat-proc.c: Likewise.
64155         * lib/openat.c: Likewise.
64156         * lib/openat.h: Likewise.
64157         * lib/pagealign_alloc.c: Likewise.
64158         * lib/pagealign_alloc.h: Likewise.
64159         * lib/physmem.c: Likewise.
64160         * lib/physmem.h: Likewise.
64161         * lib/pipe-safer.c: Likewise.
64162         * lib/pipe.c: Likewise.
64163         * lib/pipe.h: Likewise.
64164         * lib/posixtm.c: Likewise.
64165         * lib/posixtm.h: Likewise.
64166         * lib/posixver.c: Likewise.
64167         * lib/printf-frexp.c: Likewise.
64168         * lib/printf-frexp.h: Likewise.
64169         * lib/printf-frexpl.c: Likewise.
64170         * lib/printf-frexpl.h: Likewise.
64171         * lib/printf.c: Likewise.
64172         * lib/progname.c: Likewise.
64173         * lib/progname.h: Likewise.
64174         * lib/progreloc.c: Likewise.
64175         * lib/putenv.c: Likewise.
64176         * lib/quote.c: Likewise.
64177         * lib/quote.h: Likewise.
64178         * lib/quotearg.c: Likewise.
64179         * lib/quotearg.h: Likewise.
64180         * lib/raise.c: Likewise.
64181         * lib/readline.c: Likewise.
64182         * lib/readline.h: Likewise.
64183         * lib/readlink.c: Likewise.
64184         * lib/readtokens.c: Likewise.
64185         * lib/readtokens.h: Likewise.
64186         * lib/readtokens0.c: Likewise.
64187         * lib/readtokens0.h: Likewise.
64188         * lib/readutmp.c: Likewise.
64189         * lib/readutmp.h: Likewise.
64190         * lib/realloc.c: Likewise.
64191         * lib/relocwrapper.c: Likewise.
64192         * lib/rename-dest-slash.c: Likewise.
64193         * lib/rename.c: Likewise.
64194         * lib/rmdir.c: Likewise.
64195         * lib/rpmatch.c: Likewise.
64196         * lib/safe-read.c: Likewise.
64197         * lib/safe-read.h: Likewise.
64198         * lib/safe-write.c: Likewise.
64199         * lib/safe-write.h: Likewise.
64200         * lib/same-inode.h: Likewise.
64201         * lib/same.c: Likewise.
64202         * lib/same.h: Likewise.
64203         * lib/save-cwd.c: Likewise.
64204         * lib/save-cwd.h: Likewise.
64205         * lib/savedir.c: Likewise.
64206         * lib/savedir.h: Likewise.
64207         * lib/savewd.c: Likewise.
64208         * lib/savewd.h: Likewise.
64209         * lib/search.in.h: Likewise.
64210         * lib/setenv.c: Likewise.
64211         * lib/setenv.h: Likewise.
64212         * lib/settime.c: Likewise.
64213         * lib/sh-quote.c: Likewise.
64214         * lib/sh-quote.h: Likewise.
64215         * lib/sig2str.c: Likewise.
64216         * lib/sig2str.h: Likewise.
64217         * lib/signal.in.h: Likewise.
64218         * lib/signbitd.c: Likewise.
64219         * lib/signbitf.c: Likewise.
64220         * lib/signbitl.c: Likewise.
64221         * lib/sigprocmask.c: Likewise.
64222         * lib/sincosl.c: Likewise.
64223         * lib/sleep.c: Likewise.
64224         * lib/sprintf.c: Likewise.
64225         * lib/sqrtl.c: Likewise.
64226         * lib/stat-time.h: Likewise.
64227         * lib/stdio--.h: Likewise.
64228         * lib/stdio-safer.h: Likewise.
64229         * lib/stdlib--.h: Likewise.
64230         * lib/stdlib-safer.h: Likewise.
64231         * lib/stdlib.in.h: Likewise.
64232         * lib/stpcpy.c: Likewise.
64233         * lib/stpncpy.c: Likewise.
64234         * lib/strchrnul.c: Likewise.
64235         * lib/strcspn.c: Likewise.
64236         * lib/strerror.c: Likewise.
64237         * lib/strftime.c: Likewise.
64238         * lib/strftime.h: Likewise.
64239         * lib/striconveh.c: Likewise.
64240         * lib/striconveh.h: Likewise.
64241         * lib/striconveha.c: Likewise.
64242         * lib/striconveha.h: Likewise.
64243         * lib/stripslash.c: Likewise.
64244         * lib/strnlen1.c: Likewise.
64245         * lib/strnlen1.h: Likewise.
64246         * lib/strtod.c: Likewise.
64247         * lib/strtoimax.c: Likewise.
64248         * lib/strtok_r.c: Likewise.
64249         * lib/strtol.c: Likewise.
64250         * lib/strtoll.c: Likewise.
64251         * lib/strtoul.c: Likewise.
64252         * lib/strtoull.c: Likewise.
64253         * lib/sysexits.in.h: Likewise.
64254         * lib/tempname.c: Likewise.
64255         * lib/tempname.h: Likewise.
64256         * lib/timespec.h: Likewise.
64257         * lib/tls.c: Likewise.
64258         * lib/tls.h: Likewise.
64259         * lib/tmpdir.c: Likewise.
64260         * lib/tmpdir.h: Likewise.
64261         * lib/tmpfile-safer.c: Likewise.
64262         * lib/tmpfile.c: Likewise.
64263         * lib/trigl.c: Likewise.
64264         * lib/trigl.h: Likewise.
64265         * lib/trim.c: Likewise.
64266         * lib/trim.h: Likewise.
64267         * lib/trunc.c: Likewise.
64268         * lib/truncf.c: Likewise.
64269         * lib/truncl.c: Likewise.
64270         * lib/tsearch.c: Likewise.
64271         * lib/unicodeio.c: Likewise.
64272         * lib/unicodeio.h: Likewise.
64273         * lib/unistd--.h: Likewise.
64274         * lib/unistd-safer.h: Likewise.
64275         * lib/unistdio/ulc-fprintf.c: Likewise.
64276         * lib/unistdio/ulc-vfprintf.c: Likewise.
64277         * lib/unlinkdir.c: Likewise.
64278         * lib/unlinkdir.h: Likewise.
64279         * lib/unlocked-io.h: Likewise.
64280         * lib/unsetenv.c: Likewise.
64281         * lib/userspec.c: Likewise.
64282         * lib/utime.c: Likewise.
64283         * lib/utimecmp.c: Likewise.
64284         * lib/utimecmp.h: Likewise.
64285         * lib/utimens.c: Likewise.
64286         * lib/verify.h: Likewise.
64287         * lib/verror.c: Likewise.
64288         * lib/verror.h: Likewise.
64289         * lib/version-etc-fsf.c: Likewise.
64290         * lib/version-etc.c: Likewise.
64291         * lib/version-etc.h: Likewise.
64292         * lib/vfprintf.c: Likewise.
64293         * lib/vprintf.c: Likewise.
64294         * lib/vsprintf.c: Likewise.
64295         * lib/w32spawn.h: Likewise.
64296         * lib/wait-process.c: Likewise.
64297         * lib/wait-process.h: Likewise.
64298         * lib/wcwidth.c: Likewise.
64299         * lib/write-any-file.c: Likewise.
64300         * lib/xalloc-die.c: Likewise.
64301         * lib/xalloc.h: Likewise.
64302         * lib/xasprintf.c: Likewise.
64303         * lib/xgetcwd.c: Likewise.
64304         * lib/xgetcwd.h: Likewise.
64305         * lib/xgetdomainname.c: Likewise.
64306         * lib/xgetdomainname.h: Likewise.
64307         * lib/xgethostname.c: Likewise.
64308         * lib/xmalloc.c: Likewise.
64309         * lib/xmalloca.c: Likewise.
64310         * lib/xmalloca.h: Likewise.
64311         * lib/xmemcoll.c: Likewise.
64312         * lib/xnanosleep.c: Likewise.
64313         * lib/xreadlink.c: Likewise.
64314         * lib/xreadlink.h: Likewise.
64315         * lib/xsetenv.c: Likewise.
64316         * lib/xsetenv.h: Likewise.
64317         * lib/xstriconv.c: Likewise.
64318         * lib/xstriconv.h: Likewise.
64319         * lib/xstrndup.c: Likewise.
64320         * lib/xstrndup.h: Likewise.
64321         * lib/xstrtod.c: Likewise.
64322         * lib/xstrtod.h: Likewise.
64323         * lib/xstrtol-error.c: Likewise.
64324         * lib/xstrtol.c: Likewise.
64325         * lib/xstrtol.h: Likewise.
64326         * lib/xtime.h: Likewise.
64327         * lib/xvasprintf.c: Likewise.
64328         * lib/xvasprintf.h: Likewise.
64329         * lib/yesno.c: Likewise.
64330         * lib/yesno.h: Likewise.
64331         * posix-modules: Likewise.
64332         * tests/test-alloca-opt.c: Likewise.
64333         * tests/test-arcfour.c: Likewise.
64334         * tests/test-arctwo.c: Likewise.
64335         * tests/test-argmatch.c: Likewise.
64336         * tests/test-argp-2.sh: Likewise.
64337         * tests/test-argp.c: Likewise.
64338         * tests/test-arpa_inet.c: Likewise.
64339         * tests/test-array_list.c: Likewise.
64340         * tests/test-array_oset.c: Likewise.
64341         * tests/test-atexit.c: Likewise.
64342         * tests/test-avltree_list.c: Likewise.
64343         * tests/test-avltree_oset.c: Likewise.
64344         * tests/test-avltreehash_list.c: Likewise.
64345         * tests/test-base64.c: Likewise.
64346         * tests/test-binary-io.c: Likewise.
64347         * tests/test-byteswap.c: Likewise.
64348         * tests/test-c-ctype.c: Likewise.
64349         * tests/test-c-strcasecmp.c: Likewise.
64350         * tests/test-c-strcasestr.c: Likewise.
64351         * tests/test-c-strncasecmp.c: Likewise.
64352         * tests/test-c-strstr.c: Likewise.
64353         * tests/test-canonicalize-lgpl.c: Likewise.
64354         * tests/test-canonicalize.c: Likewise.
64355         * tests/test-carray_list.c: Likewise.
64356         * tests/test-ceilf.c: Likewise.
64357         * tests/test-ceill.c: Likewise.
64358         * tests/test-count-one-bits.c: Likewise.
64359         * tests/test-crc.c: Likewise.
64360         * tests/test-dirname.c: Likewise.
64361         * tests/test-fbufmode.c: Likewise.
64362         * tests/test-fcntl.c: Likewise.
64363         * tests/test-fflush.c: Likewise.
64364         * tests/test-floorf.c: Likewise.
64365         * tests/test-floorl.c: Likewise.
64366         * tests/test-fopen.c: Likewise.
64367         * tests/test-fprintf-posix.c: Likewise.
64368         * tests/test-fprintf-posix.h: Likewise.
64369         * tests/test-fpurge.c: Likewise.
64370         * tests/test-freadable.c: Likewise.
64371         * tests/test-freadahead.c: Likewise.
64372         * tests/test-freading.c: Likewise.
64373         * tests/test-freopen.c: Likewise.
64374         * tests/test-frexp.c: Likewise.
64375         * tests/test-frexpl.c: Likewise.
64376         * tests/test-fseek.c: Likewise.
64377         * tests/test-fseeko.c: Likewise.
64378         * tests/test-fseterr.c: Likewise.
64379         * tests/test-fstrcmp.c: Likewise.
64380         * tests/test-ftell.c: Likewise.
64381         * tests/test-ftello.c: Likewise.
64382         * tests/test-fwritable.c: Likewise.
64383         * tests/test-fwriting.c: Likewise.
64384         * tests/test-getaddrinfo.c: Likewise.
64385         * tests/test-getpass.c: Likewise.
64386         * tests/test-gettimeofday.c: Likewise.
64387         * tests/test-hmac-md5.c: Likewise.
64388         * tests/test-hmac-sha1.c: Likewise.
64389         * tests/test-iconv.c: Likewise.
64390         * tests/test-iconvme.c: Likewise.
64391         * tests/test-inttypes.c: Likewise.
64392         * tests/test-isnan.c: Likewise.
64393         * tests/test-isnanf.c: Likewise.
64394         * tests/test-isnanl-nolibm.c: Likewise.
64395         * tests/test-isnanl.c: Likewise.
64396         * tests/test-isnanl.h: Likewise.
64397         * tests/test-ldexpl.c: Likewise.
64398         * tests/test-linked_list.c: Likewise.
64399         * tests/test-linkedhash_list.c: Likewise.
64400         * tests/test-locale.c: Likewise.
64401         * tests/test-localename.c: Likewise.
64402         * tests/test-lock.c: Likewise.
64403         * tests/test-lseek.c: Likewise.
64404         * tests/test-malloca.c: Likewise.
64405         * tests/test-math.c: Likewise.
64406         * tests/test-mbscasecmp.c: Likewise.
64407         * tests/test-mbscasestr1.c: Likewise.
64408         * tests/test-mbscasestr2.c: Likewise.
64409         * tests/test-mbscasestr3.c: Likewise.
64410         * tests/test-mbscasestr4.c: Likewise.
64411         * tests/test-mbschr.c: Likewise.
64412         * tests/test-mbscspn.c: Likewise.
64413         * tests/test-mbsncasecmp.c: Likewise.
64414         * tests/test-mbspbrk.c: Likewise.
64415         * tests/test-mbspcasecmp.c: Likewise.
64416         * tests/test-mbsrchr.c: Likewise.
64417         * tests/test-mbsspn.c: Likewise.
64418         * tests/test-mbsstr1.c: Likewise.
64419         * tests/test-mbsstr2.c: Likewise.
64420         * tests/test-mbsstr3.c: Likewise.
64421         * tests/test-md5.c: Likewise.
64422         * tests/test-memmem.c: Likewise.
64423         * tests/test-netinet_in.c: Likewise.
64424         * tests/test-open.c: Likewise.
64425         * tests/test-printf-frexp.c: Likewise.
64426         * tests/test-printf-frexpl.c: Likewise.
64427         * tests/test-printf-posix.c: Likewise.
64428         * tests/test-printf-posix.h: Likewise.
64429         * tests/test-rbtree_list.c: Likewise.
64430         * tests/test-rbtree_oset.c: Likewise.
64431         * tests/test-rbtreehash_list.c: Likewise.
64432         * tests/test-read-file.c: Likewise.
64433         * tests/test-rijndael.c: Likewise.
64434         * tests/test-search.c: Likewise.
64435         * tests/test-signbit.c: Likewise.
64436         * tests/test-sleep.c: Likewise.
64437         * tests/test-snprintf-posix.c: Likewise.
64438         * tests/test-snprintf-posix.h: Likewise.
64439         * tests/test-snprintf.c: Likewise.
64440         * tests/test-sprintf-posix.c: Likewise.
64441         * tests/test-sprintf-posix.h: Likewise.
64442         * tests/test-stat-time.c: Likewise.
64443         * tests/test-stdbool.c: Likewise.
64444         * tests/test-stdint.c: Likewise.
64445         * tests/test-stdio.c: Likewise.
64446         * tests/test-stdlib.c: Likewise.
64447         * tests/test-stpncpy.c: Likewise.
64448         * tests/test-strcasestr.c: Likewise.
64449         * tests/test-striconv.c: Likewise.
64450         * tests/test-striconveh.c: Likewise.
64451         * tests/test-striconveha.c: Likewise.
64452         * tests/test-string.c: Likewise.
64453         * tests/test-sys_select.c: Likewise.
64454         * tests/test-sys_socket.c: Likewise.
64455         * tests/test-sys_stat.c: Likewise.
64456         * tests/test-sys_time.c: Likewise.
64457         * tests/test-sysexits.c: Likewise.
64458         * tests/test-time.c: Likewise.
64459         * tests/test-tls.c: Likewise.
64460         * tests/test-trunc.c: Likewise.
64461         * tests/test-truncf.c: Likewise.
64462         * tests/test-truncl.c: Likewise.
64463         * tests/test-unistd.c: Likewise.
64464         * tests/test-vasnprintf-posix.c: Likewise.
64465         * tests/test-vasnprintf-posix2.c: Likewise.
64466         * tests/test-vasnprintf.c: Likewise.
64467         * tests/test-vasprintf-posix.c: Likewise.
64468         * tests/test-vasprintf.c: Likewise.
64469         * tests/test-verify.c: Likewise.
64470         * tests/test-vfprintf-posix.c: Likewise.
64471         * tests/test-vprintf-posix.c: Likewise.
64472         * tests/test-vsnprintf-posix.c: Likewise.
64473         * tests/test-vsnprintf.c: Likewise.
64474         * tests/test-vsprintf-posix.c: Likewise.
64475         * tests/test-wchar.c: Likewise.
64476         * tests/test-wctype.c: Likewise.
64477         * tests/test-wcwidth.c: Likewise.
64478         * tests/test-xstrtol.c: Likewise.
64479         * tests/test-xvasprintf.c: Likewise.
64480         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
64481         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
64482         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
64483         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
64484         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
64485         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
64486         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
64487         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
64488         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
64489         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
64490         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
64491         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
64492         * tests/uniname/test-uninames.c: Likewise.
64493         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
64494         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
64495         * tests/unistdio/test-u16-printf1.h: Likewise.
64496         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
64497         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
64498         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
64499         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
64500         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
64501         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
64502         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
64503         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
64504         * tests/unistdio/test-u32-printf1.h: Likewise.
64505         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
64506         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
64507         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
64508         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
64509         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
64510         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
64511         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
64512         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
64513         * tests/unistdio/test-u8-printf1.h: Likewise.
64514         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
64515         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
64516         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
64517         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
64518         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
64519         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
64520         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
64521         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
64522         * tests/unistdio/test-ulc-printf1.h: Likewise.
64523         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
64524         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
64525         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
64526         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
64527         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
64528         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
64529         * tests/uniwidth/test-u16-strwidth.c: Likewise.
64530         * tests/uniwidth/test-u16-width.c: Likewise.
64531         * tests/uniwidth/test-u32-strwidth.c: Likewise.
64532         * tests/uniwidth/test-u32-width.c: Likewise.
64533         * tests/uniwidth/test-u8-strwidth.c: Likewise.
64534         * tests/uniwidth/test-u8-width.c: Likewise.
64535         * tests/uniwidth/test-uc_width.c: Likewise.
64536         * config/srclist-update: Likewise.
64537         (fixlicense): Update to GPLv3+.
64538
64539         Change copyright notice from LGPLv2.1+ to LGPLv3+.
64540         * tests/test-tsearch.c: Change copyright notice.
64541
64542         Change copyright notice from LGPLv2.0+ to LGPLv3+.
64543         * lib/c-strcaseeq.h: Change copyright notice.
64544         * lib/streq.h: Likewise.
64545         * lib/uniconv.h: Likewise.
64546         * lib/uniconv/u-conv-from-enc.h: Likewise.
64547         * lib/uniconv/u-conv-to-enc.h: Likewise.
64548         * lib/uniconv/u-strconv-from-enc.h: Likewise.
64549         * lib/uniconv/u-strconv-to-enc.h: Likewise.
64550         * lib/uniconv/u16-conv-from-enc.c: Likewise.
64551         * lib/uniconv/u16-conv-to-enc.c: Likewise.
64552         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
64553         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
64554         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
64555         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
64556         * lib/uniconv/u32-conv-from-enc.c: Likewise.
64557         * lib/uniconv/u32-conv-to-enc.c: Likewise.
64558         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
64559         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
64560         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
64561         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
64562         * lib/uniconv/u8-conv-from-enc.c: Likewise.
64563         * lib/uniconv/u8-conv-to-enc.c: Likewise.
64564         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
64565         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
64566         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
64567         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
64568         * lib/uniname.h: Likewise.
64569         * lib/uniname/uniname.c: Likewise.
64570         * lib/unistdio.h: Likewise.
64571         * lib/unistdio/u-asnprintf.h: Likewise.
64572         * lib/unistdio/u-asprintf.h: Likewise.
64573         * lib/unistdio/u-printf-args.c: Likewise.
64574         * lib/unistdio/u-printf-args.h: Likewise.
64575         * lib/unistdio/u-printf-parse.h: Likewise.
64576         * lib/unistdio/u-snprintf.h: Likewise.
64577         * lib/unistdio/u-sprintf.h: Likewise.
64578         * lib/unistdio/u-vasprintf.h: Likewise.
64579         * lib/unistdio/u-vsnprintf.h: Likewise.
64580         * lib/unistdio/u-vsprintf.h: Likewise.
64581         * lib/unistdio/u16-asnprintf.c: Likewise.
64582         * lib/unistdio/u16-asprintf.c: Likewise.
64583         * lib/unistdio/u16-printf-parse.c: Likewise.
64584         * lib/unistdio/u16-snprintf.c: Likewise.
64585         * lib/unistdio/u16-sprintf.c: Likewise.
64586         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
64587         * lib/unistdio/u16-u16-asprintf.c: Likewise.
64588         * lib/unistdio/u16-u16-snprintf.c: Likewise.
64589         * lib/unistdio/u16-u16-sprintf.c: Likewise.
64590         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
64591         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
64592         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
64593         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
64594         * lib/unistdio/u16-vasnprintf.c: Likewise.
64595         * lib/unistdio/u16-vasprintf.c: Likewise.
64596         * lib/unistdio/u16-vsnprintf.c: Likewise.
64597         * lib/unistdio/u16-vsprintf.c: Likewise.
64598         * lib/unistdio/u32-asnprintf.c: Likewise.
64599         * lib/unistdio/u32-asprintf.c: Likewise.
64600         * lib/unistdio/u32-printf-parse.c: Likewise.
64601         * lib/unistdio/u32-snprintf.c: Likewise.
64602         * lib/unistdio/u32-sprintf.c: Likewise.
64603         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
64604         * lib/unistdio/u32-u32-asprintf.c: Likewise.
64605         * lib/unistdio/u32-u32-snprintf.c: Likewise.
64606         * lib/unistdio/u32-u32-sprintf.c: Likewise.
64607         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
64608         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
64609         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
64610         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
64611         * lib/unistdio/u32-vasnprintf.c: Likewise.
64612         * lib/unistdio/u32-vasprintf.c: Likewise.
64613         * lib/unistdio/u32-vsnprintf.c: Likewise.
64614         * lib/unistdio/u32-vsprintf.c: Likewise.
64615         * lib/unistdio/u8-asnprintf.c: Likewise.
64616         * lib/unistdio/u8-asprintf.c: Likewise.
64617         * lib/unistdio/u8-printf-parse.c: Likewise.
64618         * lib/unistdio/u8-snprintf.c: Likewise.
64619         * lib/unistdio/u8-sprintf.c: Likewise.
64620         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
64621         * lib/unistdio/u8-u8-asprintf.c: Likewise.
64622         * lib/unistdio/u8-u8-snprintf.c: Likewise.
64623         * lib/unistdio/u8-u8-sprintf.c: Likewise.
64624         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
64625         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
64626         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
64627         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
64628         * lib/unistdio/u8-vasnprintf.c: Likewise.
64629         * lib/unistdio/u8-vasprintf.c: Likewise.
64630         * lib/unistdio/u8-vsnprintf.c: Likewise.
64631         * lib/unistdio/u8-vsprintf.c: Likewise.
64632         * lib/unistdio/ulc-asnprintf.c: Likewise.
64633         * lib/unistdio/ulc-asprintf.c: Likewise.
64634         * lib/unistdio/ulc-printf-parse.c: Likewise.
64635         * lib/unistdio/ulc-snprintf.c: Likewise.
64636         * lib/unistdio/ulc-sprintf.c: Likewise.
64637         * lib/unistdio/ulc-vasnprintf.c: Likewise.
64638         * lib/unistdio/ulc-vasprintf.c: Likewise.
64639         * lib/unistdio/ulc-vsnprintf.c: Likewise.
64640         * lib/unistdio/ulc-vsprintf.c: Likewise.
64641         * lib/unistr.h: Likewise.
64642         * lib/unistr/u-cpy-alloc.h: Likewise.
64643         * lib/unistr/u-cpy.h: Likewise.
64644         * lib/unistr/u-endswith.h: Likewise.
64645         * lib/unistr/u-move.h: Likewise.
64646         * lib/unistr/u-set.h: Likewise.
64647         * lib/unistr/u-startswith.h: Likewise.
64648         * lib/unistr/u-stpcpy.h: Likewise.
64649         * lib/unistr/u-stpncpy.h: Likewise.
64650         * lib/unistr/u-strcat.h: Likewise.
64651         * lib/unistr/u-strcpy.h: Likewise.
64652         * lib/unistr/u-strcspn.h: Likewise.
64653         * lib/unistr/u-strdup.h: Likewise.
64654         * lib/unistr/u-strlen.h: Likewise.
64655         * lib/unistr/u-strncat.h: Likewise.
64656         * lib/unistr/u-strncpy.h: Likewise.
64657         * lib/unistr/u-strnlen.h: Likewise.
64658         * lib/unistr/u-strpbrk.h: Likewise.
64659         * lib/unistr/u-strspn.h: Likewise.
64660         * lib/unistr/u-strstr.h: Likewise.
64661         * lib/unistr/u-strtok.h: Likewise.
64662         * lib/unistr/u16-check.c: Likewise.
64663         * lib/unistr/u16-chr.c: Likewise.
64664         * lib/unistr/u16-cmp.c: Likewise.
64665         * lib/unistr/u16-cpy-alloc.c: Likewise.
64666         * lib/unistr/u16-cpy.c: Likewise.
64667         * lib/unistr/u16-endswith.c: Likewise.
64668         * lib/unistr/u16-mblen.c: Likewise.
64669         * lib/unistr/u16-mbsnlen.c: Likewise.
64670         * lib/unistr/u16-mbtouc-aux.c: Likewise.
64671         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
64672         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
64673         * lib/unistr/u16-mbtouc.c: Likewise.
64674         * lib/unistr/u16-mbtoucr.c: Likewise.
64675         * lib/unistr/u16-move.c: Likewise.
64676         * lib/unistr/u16-next.c: Likewise.
64677         * lib/unistr/u16-prev.c: Likewise.
64678         * lib/unistr/u16-set.c: Likewise.
64679         * lib/unistr/u16-startswith.c: Likewise.
64680         * lib/unistr/u16-stpcpy.c: Likewise.
64681         * lib/unistr/u16-stpncpy.c: Likewise.
64682         * lib/unistr/u16-strcat.c: Likewise.
64683         * lib/unistr/u16-strchr.c: Likewise.
64684         * lib/unistr/u16-strcmp.c: Likewise.
64685         * lib/unistr/u16-strcpy.c: Likewise.
64686         * lib/unistr/u16-strcspn.c: Likewise.
64687         * lib/unistr/u16-strdup.c: Likewise.
64688         * lib/unistr/u16-strlen.c: Likewise.
64689         * lib/unistr/u16-strmblen.c: Likewise.
64690         * lib/unistr/u16-strmbtouc.c: Likewise.
64691         * lib/unistr/u16-strncat.c: Likewise.
64692         * lib/unistr/u16-strncmp.c: Likewise.
64693         * lib/unistr/u16-strncpy.c: Likewise.
64694         * lib/unistr/u16-strnlen.c: Likewise.
64695         * lib/unistr/u16-strpbrk.c: Likewise.
64696         * lib/unistr/u16-strrchr.c: Likewise.
64697         * lib/unistr/u16-strspn.c: Likewise.
64698         * lib/unistr/u16-strstr.c: Likewise.
64699         * lib/unistr/u16-strtok.c: Likewise.
64700         * lib/unistr/u16-to-u32.c: Likewise.
64701         * lib/unistr/u16-to-u8.c: Likewise.
64702         * lib/unistr/u16-uctomb-aux.c: Likewise.
64703         * lib/unistr/u16-uctomb.c: Likewise.
64704         * lib/unistr/u32-check.c: Likewise.
64705         * lib/unistr/u32-chr.c: Likewise.
64706         * lib/unistr/u32-cmp.c: Likewise.
64707         * lib/unistr/u32-cpy-alloc.c: Likewise.
64708         * lib/unistr/u32-cpy.c: Likewise.
64709         * lib/unistr/u32-endswith.c: Likewise.
64710         * lib/unistr/u32-mblen.c: Likewise.
64711         * lib/unistr/u32-mbsnlen.c: Likewise.
64712         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
64713         * lib/unistr/u32-mbtouc.c: Likewise.
64714         * lib/unistr/u32-mbtoucr.c: Likewise.
64715         * lib/unistr/u32-move.c: Likewise.
64716         * lib/unistr/u32-next.c: Likewise.
64717         * lib/unistr/u32-prev.c: Likewise.
64718         * lib/unistr/u32-set.c: Likewise.
64719         * lib/unistr/u32-startswith.c: Likewise.
64720         * lib/unistr/u32-stpcpy.c: Likewise.
64721         * lib/unistr/u32-stpncpy.c: Likewise.
64722         * lib/unistr/u32-strcat.c: Likewise.
64723         * lib/unistr/u32-strchr.c: Likewise.
64724         * lib/unistr/u32-strcmp.c: Likewise.
64725         * lib/unistr/u32-strcpy.c: Likewise.
64726         * lib/unistr/u32-strcspn.c: Likewise.
64727         * lib/unistr/u32-strdup.c: Likewise.
64728         * lib/unistr/u32-strlen.c: Likewise.
64729         * lib/unistr/u32-strmblen.c: Likewise.
64730         * lib/unistr/u32-strmbtouc.c: Likewise.
64731         * lib/unistr/u32-strncat.c: Likewise.
64732         * lib/unistr/u32-strncmp.c: Likewise.
64733         * lib/unistr/u32-strncpy.c: Likewise.
64734         * lib/unistr/u32-strnlen.c: Likewise.
64735         * lib/unistr/u32-strpbrk.c: Likewise.
64736         * lib/unistr/u32-strrchr.c: Likewise.
64737         * lib/unistr/u32-strspn.c: Likewise.
64738         * lib/unistr/u32-strstr.c: Likewise.
64739         * lib/unistr/u32-strtok.c: Likewise.
64740         * lib/unistr/u32-to-u16.c: Likewise.
64741         * lib/unistr/u32-to-u8.c: Likewise.
64742         * lib/unistr/u32-uctomb.c: Likewise.
64743         * lib/unistr/u8-check.c: Likewise.
64744         * lib/unistr/u8-chr.c: Likewise.
64745         * lib/unistr/u8-cmp.c: Likewise.
64746         * lib/unistr/u8-cpy-alloc.c: Likewise.
64747         * lib/unistr/u8-cpy.c: Likewise.
64748         * lib/unistr/u8-endswith.c: Likewise.
64749         * lib/unistr/u8-mblen.c: Likewise.
64750         * lib/unistr/u8-mbsnlen.c: Likewise.
64751         * lib/unistr/u8-mbtouc-aux.c: Likewise.
64752         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
64753         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
64754         * lib/unistr/u8-mbtouc.c: Likewise.
64755         * lib/unistr/u8-mbtoucr.c: Likewise.
64756         * lib/unistr/u8-move.c: Likewise.
64757         * lib/unistr/u8-next.c: Likewise.
64758         * lib/unistr/u8-prev.c: Likewise.
64759         * lib/unistr/u8-set.c: Likewise.
64760         * lib/unistr/u8-startswith.c: Likewise.
64761         * lib/unistr/u8-stpcpy.c: Likewise.
64762         * lib/unistr/u8-stpncpy.c: Likewise.
64763         * lib/unistr/u8-strcat.c: Likewise.
64764         * lib/unistr/u8-strchr.c: Likewise.
64765         * lib/unistr/u8-strcmp.c: Likewise.
64766         * lib/unistr/u8-strcpy.c: Likewise.
64767         * lib/unistr/u8-strcspn.c: Likewise.
64768         * lib/unistr/u8-strdup.c: Likewise.
64769         * lib/unistr/u8-strlen.c: Likewise.
64770         * lib/unistr/u8-strmblen.c: Likewise.
64771         * lib/unistr/u8-strmbtouc.c: Likewise.
64772         * lib/unistr/u8-strncat.c: Likewise.
64773         * lib/unistr/u8-strncmp.c: Likewise.
64774         * lib/unistr/u8-strncpy.c: Likewise.
64775         * lib/unistr/u8-strnlen.c: Likewise.
64776         * lib/unistr/u8-strpbrk.c: Likewise.
64777         * lib/unistr/u8-strrchr.c: Likewise.
64778         * lib/unistr/u8-strspn.c: Likewise.
64779         * lib/unistr/u8-strstr.c: Likewise.
64780         * lib/unistr/u8-strtok.c: Likewise.
64781         * lib/unistr/u8-to-u16.c: Likewise.
64782         * lib/unistr/u8-to-u32.c: Likewise.
64783         * lib/unistr/u8-uctomb-aux.c: Likewise.
64784         * lib/unistr/u8-uctomb.c: Likewise.
64785         * lib/unitypes.h: Likewise.
64786         * lib/uniwidth.h: Likewise.
64787         * lib/uniwidth/cjk.h: Likewise.
64788         * lib/uniwidth/u16-strwidth.c: Likewise.
64789         * lib/uniwidth/u16-width.c: Likewise.
64790         * lib/uniwidth/u32-strwidth.c: Likewise.
64791         * lib/uniwidth/u32-width.c: Likewise.
64792         * lib/uniwidth/u8-strwidth.c: Likewise.
64793         * lib/uniwidth/u8-width.c: Likewise.
64794         * lib/uniwidth/width.c: Likewise.
64795
64796 2007-10-07  Bruno Haible  <bruno@clisp.org>
64797
64798         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
64799         The file is still under LGPL (see modules/inttypes).
64800
64801 2007-10-06  Bruno Haible  <bruno@clisp.org>
64802
64803         * modules/trunc (Dependencies): Add 'extensions'.
64804         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
64805         Reported by Ben Pfaff <blp@gnu.org>.
64806
64807 2007-10-06  Bruno Haible  <bruno@clisp.org>
64808
64809         * modules/freopen-tests: New file.
64810         * tests/test-freopen.c: New file.
64811
64812         * modules/fopen-tests: New file.
64813         * tests/test-fopen.c: New file.
64814
64815         * modules/fopen: New file.
64816         * lib/fopen.c: New file.
64817         * m4/fopen.m4: New file.
64818         * modules/freopen: New file.
64819         * lib/freopen.c: New file.
64820         * m4/freopen.m4: New file.
64821         * lib/stdio.in.h (fopen, freopen): New declarations.
64822         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
64823         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
64824         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
64825         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
64826         * doc/functions/fopen.texi: Mention the 'fopen' module.
64827         * doc/functions/freopen.texi: Mention the 'freopen' module.
64828
64829 2007-10-06  Bruno Haible  <bruno@clisp.org>
64830
64831         * modules/open-tests: New file.
64832         * tests/test-open.c: New file.
64833
64834         * modules/open: New file.
64835         * lib/open.c: New file.
64836         * m4/open.m4: New file.
64837         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
64838         lib/open.c does.
64839         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
64840         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
64841         macros.
64842         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
64843         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
64844         REPLACE_OPEN.
64845         * doc/functions/open.texi: Mention the 'open' module.
64846
64847 2007-10-04  Bruno Haible  <bruno@clisp.org>
64848
64849         * modules/ceill-tests: New file.
64850         * tests/test-ceill.c: New file.
64851
64852         * modules/ceill: New file.
64853         * lib/ceill.c: Replace entire file.
64854         * m4/ceill.m4: New file.
64855         * lib/math.in.h (ceill): Replace declaration.
64856         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
64857         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
64858         * doc/functions/ceill.texi: Mention the 'ceill' module.
64859         * modules/mathl (Files): Remove lib/ceill.c.
64860         (Depends-on): Add ceill.
64861
64862 2007-10-04  Bruno Haible  <bruno@clisp.org>
64863
64864         * modules/ceilf-tests: New file.
64865         * tests/test-ceilf.c: New file.
64866
64867         * modules/ceilf: New file.
64868         * lib/ceil.c: New file.
64869         * lib/ceilf.c: New file.
64870         * m4/ceilf.m4: New file.
64871         * lib/math.in.h (ceilf): New declaration.
64872         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
64873         HAVE_DECL_CEILF.
64874         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
64875         HAVE_DECL_CEILF.
64876         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
64877
64878 2007-10-04  Bruno Haible  <bruno@clisp.org>
64879
64880         * modules/floorl-tests: New file.
64881         * tests/test-floorl.c: New file.
64882
64883         * modules/floorl: New file.
64884         * lib/floorl.c: Replace entire file.
64885         * m4/floorl.m4: New file.
64886         * lib/math.in.h (floorl): Replace declaration.
64887         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
64888         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
64889         * doc/functions/floorl.texi: Mention the 'floorl' module.
64890         * modules/mathl (Files): Remove lib/floorl.c.
64891         (Depends-on): Add floorl.
64892
64893 2007-10-04  Bruno Haible  <bruno@clisp.org>
64894
64895         * modules/floorf-tests: New file.
64896         * tests/test-floorf.c: New file.
64897
64898         * modules/floorf: New file.
64899         * lib/floor.c: New file.
64900         * lib/floorf.c: New file.
64901         * m4/floorf.m4: New file.
64902         * lib/math.in.h (floorf): New declaration.
64903         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
64904         HAVE_DECL_FLOORF.
64905         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
64906         HAVE_DECL_FLOORF.
64907         * doc/functions/floorf.texi: Mention the 'floorf' module.
64908
64909 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
64910             Bruno Haible  <bruno@clisp.org>
64911
64912         Advertise for the Git server instead of the CVS server.
64913         * doc/gnulib-intro.texi (Steady Development): Mention the Git
64914         repository instead of the CVS one.
64915         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
64916         about all VCS systems generically.
64917         * doc/gnulib.texi (Introduction): Capitalize `Git'.
64918
64919 2007-10-04  Bruno Haible  <bruno@clisp.org>
64920
64921         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
64922         means.
64923         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
64924
64925 2007-10-04  Bruno Haible  <bruno@clisp.org>
64926
64927         * modules/truncl-tests: New file.
64928         * tests/test-truncl.c: New file.
64929
64930         * modules/truncl: New file.
64931         * lib/truncl.c: New file.
64932         * m4/truncl.m4: New file.
64933         * lib/math.in.h (truncl): New declaration.
64934         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
64935         HAVE_DECL_TRUNCL.
64936         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
64937         HAVE_DECL_TRUNCL.
64938         * doc/functions/truncl.texi: Mention the 'truncl' module.
64939
64940 2007-10-04  Bruno Haible  <bruno@clisp.org>
64941
64942         * modules/truncf-tests: New file.
64943         * tests/test-truncf.c: New file.
64944
64945         * modules/truncf: New file.
64946         * lib/trunc.c: Make paramerizable through USE_* macros.
64947         * lib/truncf.c: New file.
64948         * m4/truncf.m4: New file.
64949         * lib/math.in.h (truncf): New declaration.
64950         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
64951         HAVE_DECL_TRUNCF.
64952         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
64953         HAVE_DECL_TRUNCF.
64954         * doc/functions/truncf.texi: Mention the 'truncf' module.
64955
64956 2007-10-03  Bruno Haible  <bruno@clisp.org>
64957
64958         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
64959         augmentation also for tests modules.
64960         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
64961         * modules/atexit-tests (Makefile.am): Likewise.
64962         * modules/binary-io-tests (Makefile.am): Likewise.
64963         * modules/c-strcase-tests (Makefile.am): Likewise.
64964         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
64965         * modules/canonicalize-tests (Makefile.am): Likewise.
64966         * modules/closein-tests (Makefile.am): Likewise.
64967         * modules/fprintf-posix-tests (Makefile.am): Likewise.
64968         * modules/freadahead-tests (Makefile.am): Likewise.
64969         * modules/fseek-tests (Makefile.am): Likewise.
64970         * modules/fseeko-tests (Makefile.am): Likewise.
64971         * modules/ftell-tests (Makefile.am): Likewise.
64972         * modules/ftello-tests (Makefile.am): Likewise.
64973         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
64974         * modules/isnanl-tests (Makefile.am): Likewise.
64975         * modules/lseek-tests (Makefile.am): Likewise.
64976         * modules/mbscasecmp-tests (Makefile.am): Likewise.
64977         * modules/mbscasestr-tests (Makefile.am): Likewise.
64978         * modules/mbschr-tests (Makefile.am): Likewise.
64979         * modules/mbscspn-tests (Makefile.am): Likewise.
64980         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
64981         * modules/mbspbrk-tests (Makefile.am): Likewise.
64982         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
64983         * modules/mbsrchr-tests (Makefile.am): Likewise.
64984         * modules/mbsspn-tests (Makefile.am): Likewise.
64985         * modules/mbsstr-tests (Makefile.am): Likewise.
64986         * modules/printf-posix-tests (Makefile.am): Likewise.
64987         * modules/snprintf-posix-tests (Makefile.am): Likewise.
64988         * modules/sprintf-posix-tests (Makefile.am): Likewise.
64989         * modules/tsearch-tests (Makefile.am): Likewise.
64990         * modules/uniname/uniname-tests (Makefile.am): Likewise.
64991         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
64992         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
64993         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
64994         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
64995         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
64996         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
64997         * modules/vprintf-posix-tests (Makefile.am): Likewise.
64998         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
64999         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
65000         * modules/xstrtoimax-tests (Makefile.am): Likewise.
65001         * modules/xstrtol-tests (Makefile.am): Likewise.
65002         * modules/xstrtoumax-tests (Makefile.am): Likewise.
65003         * modules/yesno-tests (Makefile.am): Likewise.
65004
65005 2007-10-03  Bruno Haible  <bruno@clisp.org>
65006
65007         * modules/trunc-tests: New file.
65008         * tests/test-trunc.c: New file.
65009
65010         * modules/trunc: New file.
65011         * lib/trunc.c: New file.
65012         * m4/trunc.m4: New file.
65013         * lib/math.in.h (trunc): New declaration.
65014         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
65015         HAVE_DECL_TRUNC.
65016         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
65017         HAVE_DECL_TRUNC.
65018         * doc/functions/trunc.texi: Mention the 'trunc' module.
65019
65020 2007-10-03  Bruno Haible  <bruno@clisp.org>
65021
65022         * tests/test-fpending.c: New file, mostly copied
65023         from coreutils/lib/t-fpending.c.
65024         * modules/fpending-tests: New file.
65025
65026 2007-10-03  Bruno Haible  <bruno@clisp.org>
65027
65028         Port the stdio extensions to QNX (untested).
65029         * lib/fseterr.c (fseterr): Add support for QNX.
65030         * lib/fbufmode.c (fbufmode): Likewise.
65031         * lib/freadable.c (freadable): Likewise.
65032         * lib/fwritable.c (fwritable): Likewise.
65033         * lib/freading.c (freading): Likewise.
65034         * lib/fwriting.c (fwriting): Likewise.
65035         * lib/freadahead.c (freadahed): Likewise.
65036         * lib/fpurge.c (fpurge): Likewise.
65037         * lib/fseeko.c (rpl_fseeko): Likewise.
65038
65039 2007-10-03  Bruno Haible  <bruno@clisp.org>
65040             Jim Meyering  <jim@meyering.net>
65041             Eric Blake  <ebb9@byu.net>
65042
65043         * doc/relocatable.texi: Use @command instead of @program.
65044
65045 2007-10-02  Jim Meyering  <jim@meyering.net>
65046
65047         Perform one more "_.h" -> ".in.h" substitution.
65048         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
65049         instead of unistd_.h here, too.
65050
65051 2007-10-01  Bruno Haible  <bruno@clisp.org>
65052
65053         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
65054         Needed for the alloca-opt module.
65055
65056 2007-09-30  Bruno Haible  <bruno@clisp.org>
65057
65058         * lib/alloca.in.h: Renamed from lib/alloca_.h.
65059         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
65060         alloca_.h.
65061         * lib/argz.in.h: Renamed from lib/argz_.h.
65062         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
65063         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
65064         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
65065         byteswap_.h.
65066         * lib/dirent.in.h: Renamed from lib/dirent_.h.
65067         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
65068         dirent_.h.
65069         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
65070         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
65071         fcntl_.h.
65072         * lib/float.in.h: Renamed from lib/float_.h.
65073         * modules/float (Files, Makefile.am): Use float.in.h instead of
65074         float_.h.
65075         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
65076         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
65077         fnmatch_.h.
65078         * lib/getopt.in.h: Renamed from lib/getopt_.h.
65079         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
65080         getopt_.h.
65081         * lib/glob.in.h: Renamed from lib/glob_.h.
65082         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
65083         * lib/iconv.in.h: Renamed from lib/iconv_.h.
65084         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
65085         iconv_.h.
65086         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
65087         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
65088         inttypes_.h.
65089         * lib/locale.in.h: Renamed from lib/locale_.h.
65090         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
65091         locale_.h.
65092         * lib/math.in.h: Renamed from lib/math_.h.
65093         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
65094         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
65095         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
65096         of netinet_in_.h. Add dependency.
65097         * lib/poll.in.h: Renamed from lib/poll_.h.
65098         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
65099         * lib/search.in.h: Renamed from lib/search_.h.
65100         * modules/search (Files, Makefile.am): Use search.in.h instead of
65101         search_.h.
65102         * lib/signal.in.h: Renamed from lib/signal_.h.
65103         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
65104         _signal.h.
65105         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
65106         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
65107         stdbool_.h.
65108         * lib/stdint.in.h: Renamed from lib/stdint_.h.
65109         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
65110         stdint_.h.
65111         * lib/stdio.in.h: Renamed from lib/stdio_.h.
65112         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
65113         stdio_.h.
65114         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
65115         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
65116         stdlib_.h.
65117         * lib/string.in.h: Renamed from lib/string_.h.
65118         * modules/string (Files, Makefile.am): Use string.in.h instead of
65119         string_.h.
65120         * doc/gnulib-tool.texi (Initial import): Update.
65121         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
65122         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
65123         of sys_select_.h. Add dependency.
65124         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
65125         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
65126         of sys_socket_.h.
65127         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
65128         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
65129         sys_stat_.h.
65130         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
65131         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
65132         sys_time_.h.
65133         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
65134         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
65135         sysexits_.h.
65136         * lib/time.in.h: Renamed from lib/time_.h.
65137         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
65138         * lib/unistd.in.h: Renamed from lib/unistd_.h.
65139         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
65140         unistd_.h.
65141         * lib/wchar.in.h: Renamed from lib/wchar_.h.
65142         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
65143         wchar_.h.
65144         * lib/wctype.in.h: Renamed from lib/wctype_.h.
65145         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
65146         wctype_.h.
65147         * build-aux/bootstrap (slurp): Update.
65148         * lib/.cppi-disable: Update.
65149
65150 2007-09-30  Bruno Haible  <bruno@clisp.org>
65151
65152         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
65153         Needed on BeOS.
65154
65155 2007-09-30  Bruno Haible  <bruno@clisp.org>
65156
65157         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
65158
65159 2007-09-29  Bruno Haible  <bruno@clisp.org>
65160
65161         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
65162
65163 2007-09-29  Bruno Haible  <bruno@clisp.org>
65164
65165         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
65166         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
65167         * build-aux/install-reloc: Compile also areadlink.c.
65168         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
65169
65170 2007-09-29  Bruno Haible  <bruno@clisp.org>
65171
65172         * gnulib-tool (func_emit_initmacro_done): Indentation.
65173
65174 2007-09-29  Bruno Haible  <bruno@clisp.org>
65175
65176         * README: Add CVS checkout update instructions.
65177         Info from Bob Proulx <bob@proulx.com>.
65178
65179 2007-09-28  Eric Blake  <ebb9@byu.net>
65180
65181         Provide move-if-change.
65182         * build-aux/move-if-change: New file, based on best practice
65183         rather than any canonical upstream location.
65184
65185 2007-09-28  Jim Meyering  <jim@meyering.net>
65186
65187         Fix canonicalize loop-detection corner case.
65188         Do not attempt to stat the symlink values stored via seen_triple.
65189         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
65190         on linux-2.6.18, (but not 2.6.22).
65191         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
65192         triple_compare.  The former compares dev,ino,filename, while the latter
65193         would actually stat dirname(filename) when dev and ino were equal.
65194         * lib/hash-triple.c: Install <string.h>.
65195         (STREQ): Define.
65196         (triple_compare_ino_str): New function.
65197         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
65198
65199 2007-09-28  Eric Blake  <ebb9@byu.net>
65200
65201         Enforce that AC_REPLACE_FUNCS files exist.
65202         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
65203         override check for typos.
65204
65205         Fix test-closein on Solaris 10.
65206         * tests/test-closein.c (main): Don't assume stdin can be inherited
65207         closed on all systems.
65208         * tests/test-closein.sh: Likewise.
65209         Reported by Piotr Tarnowski.
65210
65211 2007-09-28  Jim Meyering  <jim@meyering.net>
65212
65213         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
65214
65215 2007-09-27  Jim Meyering  <jim@meyering.net>
65216
65217         canonicalize: Avoid a false-positive cycle failure.
65218         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
65219         Sort.  Remove cycle-check.
65220         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
65221         not cycle-check.h.
65222         (seen_triple): New function.
65223         (canonicalize_filename_mode): Use it instead of cycle-check.
65224         * tests/test-canonicalize.c: Add a test for this bug.
65225         * tests/test-canonicalize.sh: Set up and run the test.
65226
65227         New module, file-set, from coreutils.
65228         * modules/file-set: Define it.
65229         * lib/file-set.c, lib/file-set.h: Implement.
65230
65231         New module, hash-triple, from coreutils.
65232         * modules/hash-triple: Define it.
65233         * lib/hash-triple.c, lib/hash-triple.h: Implement.
65234
65235 2007-09-25  Eric Blake  <ebb9@byu.net>
65236
65237         Fix strerror on Interix.
65238         * lib/string_.h (strerror): Declare replacement.
65239         * doc/functions/strerror.texi (strerror): Document the Interix
65240         shortcoming.
65241         * modules/string (Makefile.am): Support new hooks.
65242         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
65243         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
65244         gl_FUNC_STRERROR_SEPARATE.
65245         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
65246         * lib/strerror.c (rpl_strerror): Provide replacement.
65247         * modules/strerror (Depends-on): Add string.
65248         (configure.ac): Detect use of module.
65249         * tests/test-strerror.c: New file.
65250         * modules/strerror-tests: New test module.
65251         * modules/argp (Depends-on): Add strerror.
65252         * modules/error (Depends-on): Likewise.
65253         Reported by Martin Koeppe.
65254
65255 2007-09-24  Bruno Haible  <bruno@clisp.org>
65256
65257         * README: Update git instructions.
65258
65259 2007-09-24  Eric Blake  <ebb9@byu.net>
65260
65261         Revert fpending breakage from 2007-09-08.
65262         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
65263         __fpending.c.
65264
65265 2007-09-24  Jim Meyering  <jim@meyering.net>
65266
65267         filenamecat.c: Add a test.
65268         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
65269         showing how the function works when DIR is the empty string.
65270
65271 2007-09-21  Simon Josefsson  <simon@josefsson.org>
65272
65273         * tests/test-canonicalize.sh: Turn on executable bit.
65274
65275 2007-09-19  Eric Blake  <ebb9@byu.net>
65276
65277         * README: Update CVS instructions.
65278
65279 2007-09-18  Bruno Haible  <bruno@clisp.org>
65280
65281         * modules/areadlink: New file.
65282         * lib/areadlink.h (areadlink): New declaration.
65283         * lib/areadlink.c: New file, based on lib/xreadlink.c.
65284
65285 2007-09-17  Jim Meyering  <jim@meyering.net>
65286
65287         * lib/savewd.c (ESTALE) [!defined]: Define.
65288         Reported to be required on Interix by Martin Koeppe.
65289
65290 2007-09-17  Bruno Haible  <bruno@clisp.org>
65291
65292         * gnulib-tool (func_version): Use $version.
65293
65294 2007-09-16  Bruno Haible  <bruno@clisp.org>
65295
65296         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
65297         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
65298         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
65299         Reported by Greg Schafer <gschafer@zip.com.au>.
65300
65301 2007-09-15  Bruno Haible  <bruno@clisp.org>
65302
65303         * gnulib-tool (sed): Try a little harder to make bash understand the
65304         alias.
65305         Reported by Bruce Korb <bruce.korb@gmail.com>.
65306
65307 2007-09-13  Eric Blake  <ebb9@byu.net>
65308
65309         * ChangeLog: Remove conflict markers.
65310
65311 2007-09-13  Simon Josefsson  <simon@josefsson.org>
65312
65313         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
65314         Reported by Bruno Haible <bruno@clisp.org>.
65315
65316 2007-09-12  Bruno Haible  <bruno@clisp.org>
65317
65318         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
65319         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
65320         is not defined.
65321
65322 2007-09-12  Eric Blake  <ebb9@byu.net>
65323
65324         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
65325         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
65326         Autoconf definition.
65327         * modules/euidaccess (Depends-on): Add extensions, for
65328         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
65329         * modules/fnmatch (Depends-on): Likewise.
65330         * modules/getaddrinfo (Depends-on): Likewise.
65331         * modules/getdelim (Depends-on): Likewise.
65332         * modules/getline (Depends-on): Likewise.
65333         * modules/getsubopt (Depends-on): Likewise.
65334         * modules/gettext (Depends-on): Likewise.
65335         * modules/group-member (Depends-on): Likewise.
65336         * modules/mbchar (Depends-on): Likewise.
65337         * modules/memmem (Depends-on): Likewise.
65338         * modules/mempcpy (Depends-on): Likewise.
65339         * modules/memrchr (Depends-on): Likewise.
65340         * modules/pagealign_alloc (Depends-on): Likewise.
65341         * modules/readutmp (Depends-on): Likewise.
65342         * modules/stpcpy (Depends-on): Likewise.
65343         * modules/stpncpy (Depends-on): Likewise.
65344         * modules/strchrnul (Depends-on): Likewise.
65345         * modules/strndup (Depends-on): Likewise.
65346         * modules/strsep (Depends-on): Likewise.
65347         * modules/strverscmp (Depends-on): Likewise.
65348         * modules/vasprintf (Depends-on): Likewise.
65349         * modules/wcwidth (Depends-on): Likewise.
65350         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
65351         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
65352         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
65353         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
65354         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
65355         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
65356         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
65357         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
65358         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
65359         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
65360         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
65361         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
65362         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
65363         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
65364         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
65365         * m4/readutmp.m4 (gl_READUTMP): Likewise.
65366         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
65367         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
65368         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
65369         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
65370         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
65371         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
65372         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
65373         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
65374         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
65375         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
65376         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
65377         so that lock.m4 can be used in gettext without extensions module.
65378
65379 2007-09-11  Bruno Haible  <bruno@clisp.org>
65380
65381         * m4/isc-posix.m4: Remove file.
65382         Suggested by Eric Blake.
65383
65384 2007-09-11  Eric Blake  <ebb9@byu.net>
65385
65386         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
65387
65388 2007-09-10  Bruno Haible  <bruno@clisp.org>
65389
65390         * posix-modules: Fix typo in error message.
65391         Reported by Matt <mkraai@beckman.com>.
65392
65393 2007-09-09  Bruno Haible  <bruno@clisp.org>
65394
65395         * doc/functions/getdelim.texi: Update list of platforms lacking the
65396         function.
65397         * doc/functions/getline.texi: Likewise.
65398
65399 2007-09-09  Jim Meyering  <jim@meyering.net>
65400
65401         * lib/hash.c (hash_initialize): Detect calloc failure.
65402         Reported by Bruno Haible.
65403
65404 2007-09-09  Bruno Haible  <bruno@clisp.org>
65405
65406         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
65407         malloc or realloc fails.
65408
65409 2007-09-09  Bruno Haible  <bruno@clisp.org>
65410
65411         * modules/getcwd (Depends-on): Add malloc-posix.
65412         * modules/glob (Depends-on): Likewise.
65413         * modules/putenv (Depends-on): Likewise.
65414         * modules/strdup (Depends-on): Likewise.
65415         * modules/getdelim (Depends-on): Add realloc-posix.
65416         * modules/read-file (Depends-on): Likewise.
65417
65418 2007-09-09  Bruno Haible  <bruno@clisp.org>
65419
65420         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
65421         (gl_FUNC_MALLOC_POSIX): Require it.
65422         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
65423         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
65424         * modules/realloc (Files): Add m4/malloc.m4.
65425         * modules/calloc (Files): Likewise.
65426
65427 2007-09-09  Bruno Haible  <bruno@clisp.org>
65428
65429         * modules/malloc-posix: New file.
65430         * modules/malloc (Depends-on): Add malloc-posix.
65431         * lib/malloc.c: Include errno.h.
65432         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
65433         and a POSIX-compatible malloc into a single function. Set ENOMEM
65434         when returning NULL.
65435         * m4/malloc.m4: New file.
65436         * doc/functions/malloc.texi: Mention the malloc-posix module.
65437         * lib/stdlib_.h (malloc): New declaration.
65438         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
65439         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
65440         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
65441         and HAVE_MALLOC_POSIX.
65442
65443 2007-09-09  Bruno Haible  <bruno@clisp.org>
65444
65445         * modules/realloc-posix: New file.
65446         * modules/realloc (Depends-on): Add realloc-posix.
65447         * lib/realloc.c: Include errno.h.
65448         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
65449         and a POSIX-compatible realloc into a single function. Set ENOMEM
65450         when returning NULL.
65451         * m4/realloc.m4: New file.
65452         * doc/functions/realloc.texi: Mention the realloc-posix module.
65453         * lib/stdlib_.h (realloc): New declaration.
65454         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
65455         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
65456         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
65457         and HAVE_REALLOC_POSIX.
65458
65459 2007-09-09  Bruno Haible  <bruno@clisp.org>
65460
65461         * modules/calloc-posix: New file.
65462         * modules/calloc (Depends-on): Add calloc-posix.
65463         * lib/calloc.c: Include errno.h.
65464         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
65465         and a POSIX-compatible calloc into a single function. Set ENOMEM
65466         when returning NULL.
65467         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
65468         * doc/functions/calloc.texi: Mention the calloc-posix module.
65469         * lib/stdlib_.h (calloc): New declaration.
65470         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
65471         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
65472         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
65473         and HAVE_CALLOC_POSIX.
65474
65475 2007-09-09  Bruno Haible  <bruno@clisp.org>
65476
65477         Allow for modules to show an arbitrary notice.
65478         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
65479         * gnulib-tool: New option --extract-notice.
65480         (func_usage): Document it.
65481         (sed_extract_prog): Update.
65482         (func_get_notice): New function.
65483         (func_modules_notice): New function.
65484         (func_import, func_create_testdir): Invoke it.
65485         Suggested by Jim Meyering.
65486
65487 2007-09-09  Bruno Haible  <bruno@clisp.org>
65488
65489         * gnulib-tool: New options --verbose, --quiet.
65490         (func_usage): Document them.
65491         (verbose): New variable.
65492         (func_execute_command): New function.
65493         (func_import): Don't show the module list and the file list if
65494         $verbose < 0.
65495         (func_create_testdir): Likewise. Use func_execute_command.
65496         (func_create_megatestdir): Use func_execute_command.
65497
65498 2007-09-08  Bruno Haible  <bruno@clisp.org>
65499
65500         * gnulib-tool (func_import): Prefer rsync over wget when available,
65501         for fetching the PO files.
65502
65503 2007-09-08  Bruno Haible  <bruno@clisp.org>
65504
65505         * posix-modules: New file. Portions copied from gnulib-tool.
65506         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
65507
65508 2007-09-08  Jim Meyering  <jim@meyering.net>
65509
65510         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
65511         * lib/fpending.h: Rename from __fpending.h.
65512         * lib/fpending.c: Rename from __fpending.c.
65513         Include "fpending.h", not "__fpending.h".
65514         * lib/__fpending.h, lib/__fpending.c: Remove files.
65515         * modules/fpending (Files): Reflect new file names.
65516         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
65517
65518 2007-09-08  Bruno Haible  <bruno@clisp.org>
65519
65520         * m4/inttypes-h.m4: Remove stub file.
65521
65522 2007-09-07  Simon Josefsson  <simon@josefsson.org>
65523
65524         * doc/headers/stdint.texi: Discuss #include_next issue.
65525
65526 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
65527
65528         * build-aux/bootstrap: Remove obsolete comment about wget --help.
65529
65530 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65531
65532         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
65533         in variable name.
65534
65535 2007-09-03  Jim Meyering  <jim@meyering.net>
65536
65537         New module: git-version-gen.
65538         * modules/git-version-gen: New file.
65539
65540         Import changes from coreutils for bootstrap script.
65541
65542         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
65543
65544         bootstrap: uses rsync to download the .po files
65545         * build-aux/bootstrap (po_download_command_format): New global.
65546         (download_po_files): Use rsync.
65547         (update_po_files): Don't remove .po files after download,
65548         so future rsync runs can take advantage of the copies.
65549
65550         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
65551
65552         Solve the unnecessary-.po-file-regeneration problem once and for all.
65553         * build-aux/bootstrap (download_po_files): New function, renamed from
65554         get_translations.  Now, downloads, but doesn't update LINGUAS.
65555         (update_po_files): New function.
65556
65557         bootstrap: Ignore more.
65558         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
65559         uniwidth to e.g., lib/.gitignore.
65560         (slurp): Handle the sys_stat_.h -> sys mapping, too.
65561
65562         * build-aux/bootstrap: New setting: vc_ignore.
65563         (insert_sorted_if_absent): Create $file if absent.
65564         Adapt to new, possibly empty, list: $vc_ignore.
65565
65566         bootstrap: generate more ignorable names
65567         * build-aux/bootstrap (slurp): When generating ignorable names,
65568         also map .sin to .sed, .gperf to .c, and .y to .c.
65569
65570 2007-09-03  Jim Meyering  <jim@meyering.net>
65571
65572         * build-aux/git-version-gen: New file, from coreutils.  For details, see
65573         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
65574
65575 2007-09-02  Bruno Haible  <bruno@clisp.org>
65576
65577         Fix mis-recognition of 'mcs' on QNX 6.
65578         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
65579         output contains the string "Mono".
65580         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
65581         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
65582
65583 2007-09-01  Bruno Haible  <bruno@clisp.org>
65584
65585         Fix collision between uniwidth/* and linebreak modules.
65586         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
65587         u32_width): Remove declarations.
65588         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
65589         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
65590         streq3, streq2, streq1, streq0): Remove functions.
65591         (STREQ): Remove macro.
65592         (is_cjk_encoding): Remove function.
65593         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
65594         (uc_width, u8_width, u16_width, u32_width): Remove functions.
65595         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
65596         * NEWS: Document the change.
65597
65598 2007-09-01  Bruno Haible  <bruno@clisp.org>
65599
65600         * lib/streq.h: Add double-inclusion guard.
65601
65602 2007-09-01  Karl Berry  <karl@gnu.org>
65603
65604         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
65605
65606 2007-08-28  Jim Meyering  <jim@meyering.net>
65607
65608         Rename mreadlink_with_size to areadlink_with_size.
65609         * NEWS: Document the change.
65610         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
65611         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
65612         * lib/mreadlink.h: Rename this to...
65613         * lib/areadlink.h: ...this.
65614         * modules/mreadlink-with-size: Rename this to...
65615         * modules/areadlink-with-size: ...this.
65616         * lib/canonicalize.c: Reflect the renaming.
65617         * modules/canonicalize: Likewise.
65618
65619 2007-08-26  Bruno Haible  <bruno@clisp.org>
65620
65621         * gnulib-tool (func_import): When deciding which files to remove,
65622         consider also dangling symbolic links.
65623         Reported by Eric Blake.
65624
65625 2007-08-26  Bruno Haible  <bruno@clisp.org>
65626
65627         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
65628
65629 2007-08-23  Simon Josefsson  <simon@josefsson.org>
65630
65631         * lib/readline.c: Don't include getline.h, the prototype is now
65632         found in stdio.h.
65633
65634 2007-08-23  Jim Meyering  <jim@meyering.net>
65635
65636         Getdelim touchup.
65637         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
65638         around the funlockfile call, since funlockfile never sets errno.
65639         Don't set errno upon failed realloc.
65640
65641 2007-08-22  Eric Blake  <ebb9@byu.net>
65642
65643         Getline touchups.
65644         * lib/getdelim.c (getdelim): Revert regression that required *n to
65645         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
65646         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
65647         getdelim, rather than whether implementation is missing.
65648         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
65649         * lib/stdio_.h (getline): Also declare if replacement is
65650         required.
65651         * doc/functions/getdelim.texi: New file.
65652         * doc/functions/getline.texi: Likewise.
65653         * doc/gnulib.texi (Function Substitutes): Add new files.
65654         Reported by Bruno Haible.
65655
65656 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
65657
65658         * users.txt: Add Guile.
65659
65660 2007-08-22  Eric Blake  <ebb9@byu.net>
65661
65662         * tests/test-getdelim.c (main): Use remove, not unlink.
65663         * tests/test-getline.c (main): Likewise.
65664
65665         Move getline and getdelim into stdio.h, per POSIX 200x.
65666         * modules/getline (Files): Remove getline.h.
65667         (Depends-on): Add stdio.
65668         (configure.ac): Add module indicator.
65669         * modules/getdelim (Files): Remove getdelim.h.
65670         (Depends-on): Add stdio.
65671         (configure.ac): Add module indicator.
65672         * modules/stdio (Makefile.am): Work with new indicators.
65673         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
65674         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
65675         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
65676         * lib/getdelim.h: Delete.
65677         * lib/getline.h: Delete.
65678         * lib/stdio_.h (getdelim, getline): Declare.
65679         * modules/getdelim-tests: New module.
65680         * modules/getline-tests: Likewise.
65681         * tests/test-getdelim.c: New file.
65682         * tests/test-getline.c: Likewise.
65683         * NEWS: Document the change.
65684         * lib/getline.c: Update choice of header.
65685         * lib/csharpcomp.c: Likewise.
65686         * lib/getpass.c: Likewise.
65687         * lib/javacomp.c: Likewise.
65688         * lib/javaversion.c: Likewise.
65689         * lib/yesno.c: Likewise.
65690         * lib/getdelim.c: Likewise.
65691         (getdelim): Set errno on failure, and avoid memory leak.
65692
65693 2007-08-19  Bruno Haible  <bruno@clisp.org>
65694
65695         * modules/closein (Depends-on): Add freadahead.
65696         * lib/closein.c: Include freadahead.h.
65697         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
65698         is zero.
65699
65700 2007-08-19  Bruno Haible  <bruno@clisp.org>
65701
65702         * modules/freadahead-tests: New file.
65703         * tests/test-freadahead.sh: New file.
65704         * tests/test-freadahead.c: New file.
65705
65706         * modules/freadahead: New file.
65707         * lib/freadahead.h: New file.
65708         * lib/freadahead.c: New file.
65709         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
65710         fbufmode, fpurge, freadable, fwritable.
65711
65712 2007-08-19  Eric Blake  <ebb9@byu.net>
65713
65714         Test yesno in combination with closein.
65715         * lib/yesno.c (yesno): Document use of stdin.
65716         * modules/yesno-tests (Files): New module.
65717         * tests/test-yesno.c (main): New file.
65718         * tests/test-yesno.sh: Likewise.
65719
65720 2007-08-19  Bruno Haible  <bruno@clisp.org>
65721
65722         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
65723         * lib/fseeko.c (rpl_fseeko): Likewise.
65724         * lib/fseterr.c (fseterr): Likewise.
65725
65726 2007-08-19  Bruno Haible  <bruno@clisp.org>
65727
65728         * tests/test-lseek.c (main): Disable a test for BeOS.
65729         * doc/functions/lseek.texi: Document the BeOS bug.
65730
65731 2007-08-19  Bruno Haible  <bruno@clisp.org>
65732             Eric Blake  <ebb9@byu.net>
65733
65734         * lib/lseek.c: Include <sys/stat.h>.
65735         (rpl_lseek): Add workaround code also for Unix platforms.
65736         Needed for BeOS.
65737         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
65738         * doc/functions/lseek.texi: Document BeOS definiency.
65739
65740 2007-08-18  Bruno Haible  <bruno@clisp.org>
65741
65742         * modules/fstrcmp-tests: New file.
65743         * tests/test-fstrcmp.c: New file.
65744
65745 2007-08-18  Bruno Haible  <bruno@clisp.org>
65746
65747         * modules/fstrcmp: New file, from GNU gettext with modifications.
65748         * lib/fstrcmp.h: New file, from GNU gettext.
65749         * lib/fstrcmp.c: New file, from GNU gettext.
65750         * MODULES.html.sh (String handling): Add fstrcmp.
65751
65752 2007-08-18  Bruno Haible  <bruno@clisp.org>
65753
65754         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
65755         'bool'.
65756         (diag, compareseq): Remove const from the ctxt argument.
65757         (USE_HEURISTIC): Undefine at the end.
65758
65759 2007-08-18  Jim Meyering  <jim@meyering.net>
65760
65761         New file: lib/idcache.h
65762         * NEWS: Mention the addition.
65763         * modules/idcache (Files): Add lib/idcache.h
65764         * lib/idcache.c: Include "idcache.h".
65765         Don't include <sys/types.h>.
65766         Add a FIXME comment.
65767         Move file-scoped "static" declarations to the top.
65768         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
65769
65770 2007-08-17  Bruno Haible  <bruno@clisp.org>
65771         and Paul Eggert  <eggert@cs.ucla.edu>
65772
65773         * MODULES.html.sh: Add diffseq.
65774         * modules/diffseq: New file.
65775         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
65776         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
65777
65778 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
65779
65780         Import changes from coreutils for bootstrap script.
65781
65782         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
65783
65784         * build-aux/bootstrap (slurp): Work even in environments where
65785         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
65786         current code does not slurp files whose names start with ".", and
65787         this looks like it might be a troublesome area.
65788
65789         2007-07-11  Jim Meyering  <jim@meyering.net>
65790
65791         If there's a GPL vN copyright comment, require that N == 3.
65792
65793         2007-07-08  Jim Meyering  <jim@meyering.net>
65794
65795         Run the coreutils-specific code only if tests/Makefile.am.in exists.
65796         * build-aux/bootstrap (mam_template): Move definition out of loop.
65797
65798         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
65799
65800         * build-aux/bootstrap (symlink_to_dir): Rename function from
65801         symlink_to_gnulib.  Add a directory parameter.  Update all
65802         callers.
65803         (cp_mark_as_generated): Also check for -- and link to -- files in
65804         gl/.
65805
65806         2007-07-08  Jim Meyering  <jim@meyering.net>
65807
65808         Adapt to deeper hierarchy in gnulib.
65809         * build-aux/bootstrap (symlink_to_dir): If the destination
65810         directory doesn't exist, create it. This is required at least for
65811         "lib/uniwidth/cjk.h".
65812
65813         2007-05-15  Jim Meyering  <jim@meyering.net>
65814
65815         * build-aux/bootstrap: Now that generated Makefile.am files
65816         are no longer under version control, they must be created at
65817         bootstrap time.
65818
65819 2007-08-14  Ben Pfaff  <blp@gnu.org>
65820
65821         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
65822
65823 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
65824
65825         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
65826         given the changes below.
65827         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
65828         even on hosts that have padding bits beyond the supported 64.
65829
65830 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
65831
65832         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
65833         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
65834         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
65835         depends on it.
65836         (xstrtol_error): Remove.
65837         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
65838         but with a different signature.
65839         (ATTRIBUTE_NORETURN, __attribute__): New macros.
65840         * lib/xstrtol-error.c: Include exitfail.h.
65841         (xstrtol_fatal): New function, with a different signature from the
65842         old xstrtol_error, so that the caller need not worry about passing
65843         in an exit status, or about storage management of the option argument.
65844         (xstrtol_error): Now a static function.  Redo signature to
65845         implement xstrtol_fatal.  Output the correct number of hyphens in
65846         front of the option so that the caller need not worry about
65847         storage management.
65848         (N_): New macro.
65849         (_): Remove; not used now.
65850         * modules/xstrtol: Depend on getopt.
65851         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
65852         of old STRTOL_FATAL_ERROR macro.
65853         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
65854         of test program.
65855         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
65856         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
65857
65858 2007-08-08  Eric Blake  <ebb9@byu.net>
65859
65860         * lib/xstrtol-error.c: Add missing include.
65861
65862         Move xstrtol messages into gnulib domain, when --pobase is used.
65863         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
65864         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
65865         * modules/xstrtol (Files): Distribute new file.
65866         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
65867         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
65868         * tests/test-xstrtol.c: ...into new file.
65869         * tests/test-xstrtoul.c: Also test xstrtoul.
65870         * tests/test-xstrtoimax.c: Also test xstrtoimax.
65871         * tests/test-xstrtoumax.c: Also test xstrtoumax.
65872         * tests/test-xstrtol.sh: Drive the tests.
65873         * tests/test-xstrtoimax.sh: Likewise.
65874         * tests/test-xstrtoumax.sh: Likewise.
65875         * modules/xstrtol-tests: New module.
65876         * modules/xstrtoimax-tests: Likewise.
65877         * modules/xstrtoumax-tests: Likewise.
65878
65879 2007-08-08  Jim Meyering  <jim@meyering.net>
65880
65881         New function: mfile_name_concat.
65882         * lib/filenamecat.c (mfile_name_concat): New function, just like
65883         file_name_concat, but return NULL upon failure rather than exiting
65884         with a diagnostic.
65885         * lib/filenamecat.h: Declare it.
65886
65887 2007-08-07  Bruno Haible  <bruno@clisp.org>
65888
65889         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
65890         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
65891         warning from gcc.
65892         Reported by Eric Blake.
65893
65894 2007-08-07  Simon Josefsson  <simon@josefsson.org>
65895
65896         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
65897         * modules/crypto/arcfour (License): Likewise.
65898         * modules/crypto/des-tests (License): Likewise.
65899         * modules/crypto/gc-arctwo-tests (License): Likewise.
65900         * modules/crypto/gc-des-tests (License): Likewise.
65901         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
65902         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
65903         * modules/crypto/gc-md2-tests (License): Likewise.
65904         * modules/crypto/gc-md4-tests (License): Likewise.
65905         * modules/crypto/gc-md5-tests (License): Likewise.
65906         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
65907         * modules/crypto/gc-rijndael-tests (License): Likewise.
65908         * modules/crypto/gc-sha1-tests (License): Likewise.
65909         * modules/crypto/gc-tests (License): Likewise.
65910         * modules/crypto/hmac-md5 (License): Likewise.
65911         * modules/crypto/hmac-sha1 (License): Likewise.
65912         * modules/crypto/md2-tests (License): Likewise.
65913         * modules/crypto/md4-tests (License): Likewise.
65914         * modules/crypto/md5 (License): Likewise.
65915         * modules/crypto/rijndael (License): Likewise.
65916         * modules/crypto/sha1 (License): Likewise.
65917         * modules/memxor (License): Likewise.
65918
65919 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
65920         and Bruno Haible  <bruno@clisp.org>
65921
65922         * NEWS: Describe interface changes to human, xstrtol.
65923         * lib/human.h: Include <xstrtol.h>.
65924         (human_options): Return enum strtol_error, not int.  Remove
65925         bool arg; take int * instead.
65926         * lib/human.c: Don't include "gettext.h".
65927         (_): Remove; no longer used.
65928         Don't include <xstrtol.h>, since human.h does it.
65929         (human_options): Adjust to abovementioned interface changes.
65930         Do not report error to stderr; that's now the caller's
65931         responsibility.
65932         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
65933         interface change.
65934         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
65935         Str, Argument_type_string.  All uses changed.  Put " argument"
65936         in diagnostics to make them clearer.  Change wording of suffix
65937         message for clarity.
65938         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
65939         Argument_type_string.
65940         (STRTOL_FATAL_WARN): Remove; no longer used.
65941         * modules/human (Depends-on): Remove gettext-h.
65942
65943 2007-08-06  Simon Josefsson  <simon@josefsson.org>
65944
65945         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
65946
65947 2007-07-31  Bruno Haible  <bruno@clisp.org>
65948
65949         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
65950         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
65951         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
65952
65953 2007-07-31  Bruno Haible  <bruno@clisp.org>
65954
65955         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
65956         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
65957
65958 2007-07-30  Bruno Haible  <bruno@clisp.org>
65959
65960         * modules/base64 (License): Use the synonymous term "LGPLv2+".
65961         * modules/c-ctype (License): Likewise.
65962         * modules/c-strcase (License): Likewise.
65963         * modules/check-version (License): Likewise.
65964         * modules/iconv (License): Likewise.
65965         * modules/iconv_open (License): Likewise.
65966         * modules/read-file (License): Likewise.
65967         * modules/striconv (License): Likewise.
65968         * modules/strverscmp (License): Likewise.
65969         * modules/vasprintf (License): Likewise.
65970         * modules/crypto/des (License): Likewise.
65971         * modules/crypto/gc (License): Likewise.
65972         * modules/crypto/gc-arcfour (License): Likewise.
65973         * modules/crypto/gc-arctwo (License): Likewise.
65974         * modules/crypto/gc-des (License): Likewise.
65975         * modules/crypto/gc-hmac-md5 (License): Likewise.
65976         * modules/crypto/gc-hmac-sha1 (License): Likewise.
65977         * modules/crypto/gc-md2 (License): Likewise.
65978         * modules/crypto/gc-md4 (License): Likewise.
65979         * modules/crypto/gc-md5 (License): Likewise.
65980         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
65981         * modules/crypto/gc-random (License): Likewise.
65982         * modules/crypto/gc-rijndael (License): Likewise.
65983         * modules/crypto/gc-sha1 (License): Likewise.
65984         * modules/crypto/md2 (License): Likewise.
65985         * modules/crypto/md4 (License): Likewise.
65986
65987 2007-07-30  Jim Meyering  <jim@meyering.net>
65988
65989         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
65990         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
65991         it has valid stat data.  This bug would cause du not to count the
65992         sizes of inaccessible directories.
65993         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
65994         in <http://bugzilla.redhat.com/250077>.
65995
65996 2007-07-25  Peter O'Gorman  <peter@pogma.com>
65997             Bruno Haible  <bruno@clisp.org>
65998
65999         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
66000         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
66001         #include_next, gives a diagnostic about it, but reports no error in
66002         the exit code.
66003         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
66004
66005 2007-07-24  Ben Pfaff  <blp@gnu.org>
66006
66007         Improve name: "count-one-bits" is better than "popcount".
66008         * MODULES.html.sh: Update name.
66009         * lib/popcount.h: Renamed lib/count-one-bits.h.
66010         (popcount): Renamed count_one_bits.
66011         (popcountl): Renamed count_one_bits_l.
66012         (popcountll): Renamed count_one_bits_ll.
66013         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
66014         * modules/popcount: Renamed module/count-one-bits.
66015         * modules/popcount-tests: Renamed module/count-one-bits-tests.
66016         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
66017
66018 2007-07-23  Ben Pfaff  <blp@gnu.org>
66019
66020         * lib/popcount.h (popcount32): Reduce size of constants, to allow
66021         better code generation, and add U to large constants to avoid
66022         warnings, in non-GCC case.
66023         Suggested by Bruno Haible.
66024
66025 2007-07-23  Ben Pfaff  <blp@gnu.org>
66026
66027         * lib/popcount.h: Use verify_true instead of if...abort.
66028         * modules/popcount: Depend on verify module.
66029         Suggested by Jim Meyering.
66030
66031 2007-07-23  Bruno Haible  <bruno@clisp.org>
66032
66033         * gnulib-tool (func_import): Create a .cvsignore file also when the
66034         directory is not yet in CVS but the toplevel directory is. When
66035         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
66036         Reported by Karl Berry.
66037
66038 2007-07-22  Ben Pfaff  <blp@gnu.org>
66039
66040         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
66041         case.
66042         Suggested by Eric Blake.
66043
66044 2007-07-22  Ben Pfaff  <blp@gnu.org>
66045
66046         New module: popcount.
66047         * MODULES.html.sh: Add popcount.
66048         * modules/popcount: New file.
66049         * modules/popcount-tests: New file.
66050         * tests/test-popcount.c: New file.
66051         * lib/popcount.h: New file.
66052         * m4/popcount.m4: New file.
66053
66054 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
66055
66056         * build-aux/announce-gen: Update to GPLv3.
66057
66058         * build-aux/config.guess: Update from config.
66059
66060 2007-07-21  Bruno Haible  <bruno@clisp.org>
66061
66062         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
66063         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
66064
66065 2007-07-20  Jim Meyering  <jim@meyering.net>
66066
66067         * check-module: Diagnose a self-dependency.
66068
66069 2007-07-19  Bruno Haible  <bruno@clisp.org>
66070
66071         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
66072         empty.
66073         Reported by Eric Blake.
66074
66075 2007-07-18  Bruno Haible  <bruno@clisp.org>
66076
66077         * gnulib-tool: New options --po-base, --po-domain.
66078         (func_usage): Document them.
66079         (pobase, po_domain): New variables.
66080         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
66081         DEFAULT_TEXT_DOMAIN.
66082         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
66083         (func_import): Consider pobase and po_domain. Create a po/ directory.
66084         (func_create_testdir): Set pobase and po_domain to empty.
66085         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
66086         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
66087
66088 2007-07-18  Bruno Haible  <bruno@clisp.org>
66089
66090         * gnulib-tool (func_get_automake_snippet): Synthesize also an
66091         EXTRA_DIST augmentation for files in build-aux/.
66092
66093 2007-07-16  Bruno Haible  <bruno@clisp.org>
66094
66095         * modules/lseek (License): Use the synonymous term "LGPLv2+".
66096         * modules/getdelim (License): Likewise.
66097
66098 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66099
66100         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
66101         * modules/d-type (License): Likewise.
66102         * modules/extensions (License): Likewise.
66103         * modules/fnmatch (License): Likewise.
66104         * modules/fseeko (License): Likewise.
66105         * modules/getaddrinfo (License): Likewise.
66106         * modules/getline (License): Likewise.
66107         * modules/getlogin_r (License): Likewise.
66108         * modules/getpass (License): Likewise.
66109         * modules/gettimeofday (License): Likewise.
66110         * modules/glob (License): Likewise.
66111         * modules/inet_ntop (License): Likewise.
66112         * modules/malloc (License): Likewise.
66113         * modules/malloca (License): Likewise.
66114         * modules/memmem (License): Likewise.
66115         * modules/mempcpy (License): Likewise.
66116         * modules/memset (License): Likewise.
66117         * modules/minmax (License): Likewise.
66118         * modules/mktime (License): Likewise.
66119         * modules/netinet_in (License): Likewise.
66120         * modules/pathmax (License): Likewise.
66121         * modules/poll (License): Likewise.
66122         * modules/regex (License): Likewise.
66123         * modules/snprintf (License): Likewise.
66124         * modules/stdbool (License): Likewise.
66125         * modules/stdint (License): Likewise.
66126         * modules/stdio (License): Likewise.
66127         * modules/strcase (License): Likewise.
66128         * modules/strcasestr (License): Likewise.
66129         * modules/strdup (License): Likewise.
66130         * modules/string (License): Likewise.
66131         * modules/strndup (License): Likewise.
66132         * modules/strnlen (License): Likewise.
66133         * modules/strpbrk (License): Likewise.
66134         * modules/strptime (License): Likewise.
66135         * modules/strsep (License): Likewise.
66136         * modules/sys_select (License): Likewise.
66137         * modules/sys_socket (License): Likewise.
66138         * modules/sys_stat (License): Likewise.
66139         * modules/sys_time (License): Likewise.
66140         * modules/time (License): Likewise.
66141         * modules/time_r (License): Likewise.
66142         * modules/timegm (License): Likewise.
66143         * modules/unistd (License): Likewise.
66144         * modules/vsnprintf (License): Likewise.
66145         * modules/wctype (License): Likewise.
66146
66147 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66148
66149         * modules/argz (License): LGPLv2+.
66150
66151 2007-07-15  Karl Berry  <karl@gnu.org>
66152
66153         * doc/gnulib.texi: revise node structure per new fdl.texi.
66154
66155 2007-07-14  Bruno Haible  <bruno@clisp.org>
66156
66157         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
66158         the output file.
66159         * lib/uniname/uninames.h: Regenerated.
66160
66161 2007-07-14  Karl Berry  <karl@gnu.org>
66162
66163         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
66164         omitting sectioning and index commands.
66165
66166 2007-07-13  Bruno Haible  <bruno@clisp.org>
66167
66168         New gnulib-tool option --more-symlinks.
66169         * gnulib-tool (func_usage): Document --more-symlinks.
66170         (do_copyrights): New variable.
66171         Recognize option --more-symlinks.
66172         (func_import): Don't add a copyright notice transform to
66173         sed_transform_lib_file if do_copyrights is empty.
66174
66175 2007-07-13  Bruno Haible  <bruno@clisp.org>
66176
66177         * lib/vasnprintf.c (decimal_point_char): Define also if
66178         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
66179         && !NEED_PRINTF_DIRECTIVE_A.
66180         Reported by Clemens Koller <clemens.koller@anagramm.de> via
66181         Gary V. Vaughan <gary@gnu.org>.
66182
66183 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
66184
66185         * lib/inttypes_.h: Undo previous change, since it was fixed
66186         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
66187
66188 2007-07-13  Bruno Haible  <bruno@clisp.org>
66189
66190         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
66191         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
66192
66193 2007-07-13  Jim Meyering  <jim@meyering.net>
66194
66195         df: Don't fail for Tru64's "file-on-file mount".
66196         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
66197         so we fall through and use statfs instead.  Details here:
66198         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
66199         Reported by Albert Chin.
66200
66201 2007-07-13  Bruno Haible  <bruno@clisp.org>
66202
66203         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
66204         * modules/configmake (License): Likewise.
66205         * modules/gettext (License): Likewise.
66206         * modules/gettext-h (License): Likewise.
66207         * modules/include_next (License): Likewise.
66208         * modules/link-warning (License): Likewise.
66209         * modules/localcharset (License): Likewise.
66210         * modules/localename (License): Likewise.
66211         * modules/lock (License): Likewise.
66212         * modules/relocatable-lib-lgpl (License): Likewise.
66213         * modules/size_max (License): Likewise.
66214         * modules/vasnprintf (License): Likewise.
66215         * modules/wchar (License): Likewise.
66216         * modules/xsize (License): Likewise.
66217
66218 2007-07-13  Bruno Haible  <bruno@clisp.org>
66219
66220         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
66221         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
66222
66223 2007-07-12  Bruno Haible  <bruno@clisp.org>
66224
66225         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
66226         in the modules files.
66227
66228 2007-07-11  Karl Berry  <karl@gnu.org>
66229
66230         * MODULES.html.sh (func_module): use
66231          sed -e '\|^'"${includefile}"'$|d'
66232          instead of /.../d, to avoid errors on $includefile's containing /.
66233
66234 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
66235
66236         * gnulib-tool (func_import): Avoid duplication of --avoid
66237         statements
66238         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
66239         names to `_' in variable names.
66240
66241 2007-07-10  Eric Blake  <ebb9@byu.net>
66242
66243         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
66244         * NEWS: Document this change.
66245
66246 2007-07-08  Bruno Haible  <bruno@clisp.org>
66247
66248         Update to Unicode 5.0.
66249         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
66250         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
66251         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
66252         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
66253         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
66254         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
66255         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
66256         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
66257         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
66258         U+10A3F, U+1D242..U+1D244.
66259         (nonspacing_table_ind): Update.
66260         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
66261         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
66262
66263 2007-07-08  Bruno Haible  <bruno@clisp.org>
66264
66265         Update to Unicode 5.0.
66266         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
66267         code transform. Extend the name index field of unicode_name_to_code and
66268         unicode_code_to_name from 16 to 24 bits.
66269         * lib/uniname/uniname.c (unicode_character_name,
66270         unicode_name_character): Add the range 0x12xxx to the code transform.
66271         * lib/uniname/uninames.h: Regenerated.
66272         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
66273
66274 2007-07-07  Bruno Haible  <bruno@clisp.org>
66275
66276         * modules/wcwidth-tests: New file.
66277         * tests/test-wcwidth.c: New file.
66278
66279         Work around MacOS X wcwidth() bug.
66280         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
66281         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
66282         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
66283         original wcwidth in non-UTF-8 locales.
66284         * modules/wcwidth (Depends-on): Add localcharset, streq,
66285         uniwidth/width.
66286         * doc/functions/wcwidth.texi: Update.
66287
66288 2007-07-07  Bruno Haible  <bruno@clisp.org>
66289
66290         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
66291         (wcwidth): New declaration.
66292         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
66293         macros.
66294         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
66295         here. Prepare for creating <wchar.h> unconditionally.
66296         * modules/wchar (Depends-on): Add link-warning.
66297         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
66298         REPLACE_WCWIDTH, and GL_LINK_WARNING.
66299         * lib/wcwidth.h: Remove file.
66300         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
66301         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
66302         * modules/wcwidth (Files): Remove lib/wcwidth.h.
66303         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
66304         (Include): Replace wcwidth.h with <wchar.h>.
66305         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
66306         * lib/mbchar.h: Don't include wcwidth.h.
66307         * lib/mbswidth.c: Likewise.
66308         * NEWS: Mention the change.
66309
66310 2007-07-07  Bruno Haible  <bruno@clisp.org>
66311
66312         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
66313         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
66314         definition with an external declaration.
66315         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
66316         defined as a function. Remove AC_C_INLINE requirement.
66317         * modules/wcwidth (Files): Add lib/wcwidth.c.
66318         (Makefile.am): Remove redundant statement.
66319
66320 2007-07-07  Bruno Haible  <bruno@clisp.org>
66321
66322         * MODULES.html.sh (Unicode string functions): Add the new modules.
66323
66324         * tests/uniwidth/test-u32-strwidth.c: New file.
66325         * modules/uniwidth/u32-strwidth-tests: New file.
66326
66327         * lib/uniwidth/u32-strwidth.c: New file.
66328         * modules/uniwidth/u32-strwidth: New file.
66329
66330         * tests/uniwidth/test-u16-strwidth.c: New file.
66331         * modules/uniwidth/u16-strwidth-tests: New file.
66332
66333         * lib/uniwidth/u16-strwidth.c: New file.
66334         * modules/uniwidth/u16-strwidth: New file.
66335
66336         * tests/uniwidth/test-u8-strwidth.c: New file.
66337         * modules/uniwidth/u8-strwidth-tests: New file.
66338
66339         * lib/uniwidth/u8-strwidth.c: New file.
66340         * modules/uniwidth/u8-strwidth: New file.
66341
66342         * tests/uniwidth/test-u32-width.c: New file.
66343         * modules/uniwidth/u32-width-tests: New file.
66344
66345         * lib/uniwidth/u32-width.c: New file.
66346         * modules/uniwidth/u32-width: New file.
66347
66348         * tests/uniwidth/test-u16-width.c: New file.
66349         * modules/uniwidth/u16-width-tests: New file.
66350
66351         * lib/uniwidth/u16-width.c: New file.
66352         * modules/uniwidth/u16-width: New file.
66353
66354         * tests/uniwidth/test-u8-width.c: New file.
66355         * modules/uniwidth/u8-width-tests: New file.
66356
66357         * lib/uniwidth/u8-width.c: New file.
66358         * modules/uniwidth/u8-width: New file.
66359
66360         * tests/uniwidth/test-uc_width.c: New file.
66361         * modules/uniwidth/width-tests: New file.
66362
66363         * lib/uniwidth/width.c: New file, from GNU libiconv.
66364         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
66365         * modules/uniwidth/width: New file.
66366
66367         * lib/uniwidth.h: New file, from GNU libiconv.
66368         * modules/uniwidth/base: New file.
66369
66370 2007-07-07  Bruno Haible  <bruno@clisp.org>
66371
66372         * lib/uniname.h: New file, from GNU gettext.
66373         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
66374         * lib/uniname/uninames.h: New file, from GNU gettext.
66375         * lib/uniname/uniname.c: New file, from GNU gettext.
66376         * tests/uniname/test-uninames.sh: New file.
66377         * tests/uniname/test-uninames.c: New file, from GNU gettext.
66378         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
66379         * modules/uniname/base: New file.
66380         * modules/uniname/uniname: New file.
66381         * modules/uniname/uniname-tests: New file.
66382         * MODULES.html.sh (Unicode string functions): Add the new modules.
66383
66384 2007-07-06  Bruno Haible  <bruno@clisp.org>
66385
66386         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
66387
66388 2007-07-06  Bruno Haible  <bruno@clisp.org>
66389
66390         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
66391         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
66392         includes <cygwin/sys_time.h> which includes <sys/select.h> which
66393         include <sys/time.h>.
66394         Reported by Eric Blake.
66395
66396 2007-07-06  Eric Blake  <ebb9@byu.net>
66397
66398         Fix testing canonicalize on cygwin.
66399         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
66400         Revert patch from 2007-06-19.
66401         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
66402         canonicalize module is also in use.
66403         * tests/test-canonicalize.c: New file.
66404         * tests/test-canonicalize.sh: Likewise.
66405         * modules/canonicalize-tests: Likewise.
66406
66407 2007-07-06  Jim Meyering  <jim@meyering.net>
66408
66409         * lib/getugroups.c (getugroups): Detect getgrent failure.
66410         Adjust comment to reflect reality: this function may return -1.
66411
66412 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
66413
66414         * build-aux/bootstrap (TP_URL,get_translations): Update to use
66415         the new TP address.
66416         (usage): Fix typo
66417         (gnulib_mk): New variable.
66418
66419 2007-07-05  Jim Meyering  <jim@meyering.net>
66420
66421         Don't let endgrent clobber errno, no matter how improbable.
66422         * lib/getugroups.c (getugroups): Save and restore errno around
66423         endgrent call.
66424
66425         Close the group DB even when failing with 2^31 or more members.
66426         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
66427
66428 2007-07-04  Jim Meyering  <jim@meyering.net>
66429
66430         * lib/getugroups.h: New file.
66431         * lib/getugroups.c: Include "getugroups.h".
66432         Remove uses of "register" keyword.
66433         Move local variable, "cp", down into scope where used.
66434         Give "username" parameter the "const" attribute.
66435         * modules/getugroups (Files): Add lib/getugroups.h
66436
66437 2007-07-04  Karl Berry  <karl@gnu.org>
66438
66439         * MODULES.html.sh (func_all_modules): Complete rename of
66440         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
66441
66442 2007-07-02  Bruno Haible  <bruno@clisp.org>
66443
66444         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
66445         mode, when inttypes.h comes from gnulib.
66446         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
66447
66448 2007-07-02  Simon Josefsson  <simon@josefsson.org>
66449
66450         * NEWS: Mention lgpl module name change.
66451
66452         * modules/lgpl-2.1: Renamed from lgpl.
66453
66454         * NEWS: Mention gpl module name change.
66455
66456         * modules/gpl-3.0: New file, based on gpl-2.0.
66457
66458         * modules/gpl-2.0: Renamed from gpl.
66459
66460         * modules/gpl: Fix filename, doc/gpl.texi is now found at
66461         doc/gpl-2.0.texi.
66462
66463 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
66464
66465         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
66466         #define __STDC_LIMIT_MACROS temporarily while including
66467         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
66468         Problem reported by Joel E. Denny in
66469         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
66470
66471 2007-07-01  Bruno Haible  <bruno@clisp.org>
66472
66473         * lib/unistdio.h: New file.
66474         * lib/unistdio/u-asnprintf.h: New file.
66475         * lib/unistdio/u-asprintf.h: New file.
66476         * lib/unistdio/u-printf-args.c: New file.
66477         * lib/unistdio/u-printf-args.h: New file.
66478         * lib/unistdio/u-printf-parse.h: New file.
66479         * lib/unistdio/u-snprintf.h: New file.
66480         * lib/unistdio/u-sprintf.h: New file.
66481         * lib/unistdio/u-vasprintf.h: New file.
66482         * lib/unistdio/u-vsnprintf.h: New file.
66483         * lib/unistdio/u-vsprintf.h: New file.
66484         * lib/unistdio/ulc-asnprintf.c: New file.
66485         * lib/unistdio/ulc-asprintf.c: New file.
66486         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
66487         * lib/unistdio/ulc-printf-parse.c: New file.
66488         * lib/unistdio/ulc-snprintf.c: New file.
66489         * lib/unistdio/ulc-sprintf.c: New file.
66490         * lib/unistdio/ulc-vasnprintf.c: New file.
66491         * lib/unistdio/ulc-vasprintf.c: New file.
66492         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
66493         * lib/unistdio/ulc-vsnprintf.c: New file.
66494         * lib/unistdio/ulc-vsprintf.c: New file.
66495         * lib/unistdio/u8-asnprintf.c: New file.
66496         * lib/unistdio/u8-asprintf.c: New file.
66497         * lib/unistdio/u8-printf-parse.c: New file.
66498         * lib/unistdio/u8-snprintf.c: New file.
66499         * lib/unistdio/u8-sprintf.c: New file.
66500         * lib/unistdio/u8-vasnprintf.c: New file.
66501         * lib/unistdio/u8-vasprintf.c: New file.
66502         * lib/unistdio/u8-vsnprintf.c: New file.
66503         * lib/unistdio/u8-vsprintf.c: New file.
66504         * lib/unistdio/u8-u8-asnprintf.c: New file.
66505         * lib/unistdio/u8-u8-asprintf.c: New file.
66506         * lib/unistdio/u8-u8-snprintf.c: New file.
66507         * lib/unistdio/u8-u8-sprintf.c: New file.
66508         * lib/unistdio/u8-u8-vasnprintf.c: New file.
66509         * lib/unistdio/u8-u8-vasprintf.c: New file.
66510         * lib/unistdio/u8-u8-vsnprintf.c: New file.
66511         * lib/unistdio/u8-u8-vsprintf.c: New file.
66512         * lib/unistdio/u16-asnprintf.c: New file.
66513         * lib/unistdio/u16-asprintf.c: New file.
66514         * lib/unistdio/u16-printf-parse.c: New file.
66515         * lib/unistdio/u16-snprintf.c: New file.
66516         * lib/unistdio/u16-sprintf.c: New file.
66517         * lib/unistdio/u16-vasnprintf.c: New file.
66518         * lib/unistdio/u16-vasprintf.c: New file.
66519         * lib/unistdio/u16-vsnprintf.c: New file.
66520         * lib/unistdio/u16-vsprintf.c: New file.
66521         * lib/unistdio/u16-u16-asnprintf.c: New file.
66522         * lib/unistdio/u16-u16-asprintf.c: New file.
66523         * lib/unistdio/u16-u16-snprintf.c: New file.
66524         * lib/unistdio/u16-u16-sprintf.c: New file.
66525         * lib/unistdio/u16-u16-vasnprintf.c: New file.
66526         * lib/unistdio/u16-u16-vasprintf.c: New file.
66527         * lib/unistdio/u16-u16-vsnprintf.c: New file.
66528         * lib/unistdio/u16-u16-vsprintf.c: New file.
66529         * lib/unistdio/u32-asnprintf.c: New file.
66530         * lib/unistdio/u32-asprintf.c: New file.
66531         * lib/unistdio/u32-printf-parse.c: New file.
66532         * lib/unistdio/u32-snprintf.c: New file.
66533         * lib/unistdio/u32-sprintf.c: New file.
66534         * lib/unistdio/u32-vasnprintf.c: New file.
66535         * lib/unistdio/u32-vasprintf.c: New file.
66536         * lib/unistdio/u32-vsnprintf.c: New file.
66537         * lib/unistdio/u32-vsprintf.c: New file.
66538         * lib/unistdio/u32-u32-asnprintf.c: New file.
66539         * lib/unistdio/u32-u32-asprintf.c: New file.
66540         * lib/unistdio/u32-u32-snprintf.c: New file.
66541         * lib/unistdio/u32-u32-sprintf.c: New file.
66542         * lib/unistdio/u32-u32-vasnprintf.c: New file.
66543         * lib/unistdio/u32-u32-vasprintf.c: New file.
66544         * lib/unistdio/u32-u32-vsnprintf.c: New file.
66545         * lib/unistdio/u32-u32-vsprintf.c: New file.
66546         * tests/unistdio/test-ulc-asnprintf1.c: New file.
66547         * tests/unistdio/test-ulc-asnprintf1.h: New file.
66548         * tests/unistdio/test-ulc-printf1.h: New file.
66549         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
66550         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
66551         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
66552         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
66553         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
66554         * tests/unistdio/test-ulc-vasprintf1.c: New file.
66555         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
66556         * tests/unistdio/test-ulc-vsprintf1.c: New file.
66557         * tests/unistdio/test-u8-asnprintf1.c: New file.
66558         * tests/unistdio/test-u8-asnprintf1.h: New file.
66559         * tests/unistdio/test-u8-printf1.h: New file.
66560         * tests/unistdio/test-u8-vasnprintf1.c: New file.
66561         * tests/unistdio/test-u8-vasnprintf2.c: New file.
66562         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
66563         * tests/unistdio/test-u8-vasnprintf3.c: New file.
66564         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
66565         * tests/unistdio/test-u8-vasprintf1.c: New file.
66566         * tests/unistdio/test-u8-vsnprintf1.c: New file.
66567         * tests/unistdio/test-u8-vsprintf1.c: New file.
66568         * tests/unistdio/test-u16-asnprintf1.c: New file.
66569         * tests/unistdio/test-u16-asnprintf1.h: New file.
66570         * tests/unistdio/test-u16-printf1.h: New file.
66571         * tests/unistdio/test-u16-vasnprintf1.c: New file.
66572         * tests/unistdio/test-u16-vasnprintf2.c: New file.
66573         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
66574         * tests/unistdio/test-u16-vasnprintf3.c: New file.
66575         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
66576         * tests/unistdio/test-u16-vasprintf1.c: New file.
66577         * tests/unistdio/test-u16-vsnprintf1.c: New file.
66578         * tests/unistdio/test-u16-vsprintf1.c: New file.
66579         * tests/unistdio/test-u32-asnprintf1.c: New file.
66580         * tests/unistdio/test-u32-asnprintf1.h: New file.
66581         * tests/unistdio/test-u32-printf1.h: New file.
66582         * tests/unistdio/test-u32-vasnprintf1.c: New file.
66583         * tests/unistdio/test-u32-vasnprintf2.c: New file.
66584         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
66585         * tests/unistdio/test-u32-vasnprintf3.c: New file.
66586         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
66587         * tests/unistdio/test-u32-vasprintf1.c: New file.
66588         * tests/unistdio/test-u32-vsnprintf1.c: New file.
66589         * tests/unistdio/test-u32-vsprintf1.c: New file.
66590         * modules/unistdio/base: New file.
66591         * modules/unistdio/u-printf-args: New file.
66592         * modules/unistdio/ulc-asnprintf: New file.
66593         * modules/unistdio/ulc-asprintf: New file.
66594         * modules/unistdio/ulc-fprintf: New file.
66595         * modules/unistdio/ulc-printf-parse: New file.
66596         * modules/unistdio/ulc-snprintf: New file.
66597         * modules/unistdio/ulc-sprintf: New file.
66598         * modules/unistdio/ulc-vasnprintf: New file.
66599         * modules/unistdio/ulc-vasprintf: New file.
66600         * modules/unistdio/ulc-vfprintf: New file.
66601         * modules/unistdio/ulc-vsnprintf: New file.
66602         * modules/unistdio/ulc-vsprintf: New file.
66603         * modules/unistdio/u8-asnprintf: New file.
66604         * modules/unistdio/u8-asprintf: New file.
66605         * modules/unistdio/u8-printf-parse: New file.
66606         * modules/unistdio/u8-snprintf: New file.
66607         * modules/unistdio/u8-sprintf: New file.
66608         * modules/unistdio/u8-vasnprintf: New file.
66609         * modules/unistdio/u8-vasprintf: New file.
66610         * modules/unistdio/u8-vsnprintf: New file.
66611         * modules/unistdio/u8-vsprintf: New file.
66612         * modules/unistdio/u8-u8-asnprintf: New file.
66613         * modules/unistdio/u8-u8-asprintf: New file.
66614         * modules/unistdio/u8-u8-snprintf: New file.
66615         * modules/unistdio/u8-u8-sprintf: New file.
66616         * modules/unistdio/u8-u8-vasnprintf: New file.
66617         * modules/unistdio/u8-u8-vasprintf: New file.
66618         * modules/unistdio/u8-u8-vsnprintf: New file.
66619         * modules/unistdio/u8-u8-vsprintf: New file.
66620         * modules/unistdio/u16-asnprintf: New file.
66621         * modules/unistdio/u16-asprintf: New file.
66622         * modules/unistdio/u16-printf-parse: New file.
66623         * modules/unistdio/u16-snprintf: New file.
66624         * modules/unistdio/u16-sprintf: New file.
66625         * modules/unistdio/u16-vasnprintf: New file.
66626         * modules/unistdio/u16-vasprintf: New file.
66627         * modules/unistdio/u16-vsnprintf: New file.
66628         * modules/unistdio/u16-vsprintf: New file.
66629         * modules/unistdio/u16-u16-asnprintf: New file.
66630         * modules/unistdio/u16-u16-asprintf: New file.
66631         * modules/unistdio/u16-u16-snprintf: New file.
66632         * modules/unistdio/u16-u16-sprintf: New file.
66633         * modules/unistdio/u16-u16-vasnprintf: New file.
66634         * modules/unistdio/u16-u16-vasprintf: New file.
66635         * modules/unistdio/u16-u16-vsnprintf: New file.
66636         * modules/unistdio/u16-u16-vsprintf: New file.
66637         * modules/unistdio/u32-asnprintf: New file.
66638         * modules/unistdio/u32-asprintf: New file.
66639         * modules/unistdio/u32-printf-parse: New file.
66640         * modules/unistdio/u32-snprintf: New file.
66641         * modules/unistdio/u32-sprintf: New file.
66642         * modules/unistdio/u32-vasnprintf: New file.
66643         * modules/unistdio/u32-vasprintf: New file.
66644         * modules/unistdio/u32-vsnprintf: New file.
66645         * modules/unistdio/u32-vsprintf: New file.
66646         * modules/unistdio/u32-u32-asnprintf: New file.
66647         * modules/unistdio/u32-u32-asprintf: New file.
66648         * modules/unistdio/u32-u32-snprintf: New file.
66649         * modules/unistdio/u32-u32-sprintf: New file.
66650         * modules/unistdio/u32-u32-vasnprintf: New file.
66651         * modules/unistdio/u32-u32-vasprintf: New file.
66652         * modules/unistdio/u32-u32-vsnprintf: New file.
66653         * modules/unistdio/u32-u32-vsprintf: New file.
66654         * modules/unistdio/ulc-asnprintf-tests: New file.
66655         * modules/unistdio/ulc-vasnprintf-tests: New file.
66656         * modules/unistdio/ulc-vasprintf-tests: New file.
66657         * modules/unistdio/ulc-vsnprintf-tests: New file.
66658         * modules/unistdio/ulc-vsprintf-tests: New file.
66659         * modules/unistdio/u8-asnprintf-tests: New file.
66660         * modules/unistdio/u8-vasnprintf-tests: New file.
66661         * modules/unistdio/u8-vasprintf-tests: New file.
66662         * modules/unistdio/u8-vsnprintf-tests: New file.
66663         * modules/unistdio/u8-vsprintf-tests: New file.
66664         * modules/unistdio/u16-asnprintf-tests: New file.
66665         * modules/unistdio/u16-vasnprintf-tests: New file.
66666         * modules/unistdio/u16-vasprintf-tests: New file.
66667         * modules/unistdio/u16-vsnprintf-tests: New file.
66668         * modules/unistdio/u16-vsprintf-tests: New file.
66669         * modules/unistdio/u32-asnprintf-tests: New file.
66670         * modules/unistdio/u32-vasnprintf-tests: New file.
66671         * modules/unistdio/u32-vasprintf-tests: New file.
66672         * modules/unistdio/u32-vsnprintf-tests: New file.
66673         * modules/unistdio/u32-vsprintf-tests: New file.
66674         * MODULES.html.sh (Unicode string functions): Add the new modules.
66675
66676 2007-07-01  Bruno Haible  <bruno@clisp.org>
66677
66678         * lib/sprintf.c (sprintf): Limit the available length estimation,
66679         to avoid address wraparound.
66680         * lib/vsprintf.c (vsprintf): Likewise.
66681         * modules/sprintf-posix (Dependencies): Add stdint.
66682         * modules/vsprintf-posix (Dependencies): Likewise.
66683
66684 2007-07-01  Bruno Haible  <bruno@clisp.org>
66685
66686         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
66687         Windows PATH as well. Conservative double-quoting. Comments.
66688
66689 2007-07-01  Bruno Haible  <bruno@clisp.org>
66690             Eric Blake  <ebb9@byu.net>
66691             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66692
66693         * gnulib-tool (self_abspathname): Fix algorithm to cope with
66694         empty components in $PATH, denoting '.'.
66695
66696 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66697
66698         * gnulib-tool: Fix indentation.
66699         (func_create_megatestdir): Likewise.
66700         Report by Bruno Haible.
66701
66702 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66703
66704         Sync from Automake.
66705         * build-aux/gnupload: Fix shell portability issues with for loops.
66706         Report by Karl Berry.
66707
66708 2007-06-29  Simon Josefsson  <simon@josefsson.org>
66709
66710         * build-aux/maint.mk (POURL): Use translationproject.org.
66711
66712 2007-06-27  Simon Josefsson  <simon@josefsson.org>
66713             Bruno Haible  <bruno@clisp.org>
66714
66715         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
66716         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
66717         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
66718         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
66719         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
66720
66721 2007-06-27  Bruno Haible  <bruno@clisp.org>
66722
66723         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
66724         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
66725
66726 2007-06-26  Karl Berry  <karl@gnu.org>
66727
66728         * MODULES.html.sh: remove xreadlink-with-size.
66729
66730 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
66731
66732         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
66733         method that I hope also handles the double-include problem noted
66734         by Bruno Haible in
66735         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
66736
66737 2007-06-23  Bruno Haible  <bruno@clisp.org>
66738
66739         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
66740         Don't let the 'mostlyclean' target fail if the last subdirectory could
66741         not be removed.
66742         Reported by Karl Berry.
66743
66744 2007-06-23  Bruno Haible  <bruno@clisp.org>
66745
66746         * gnulib-tool (echo): Add a speedier workaround for ksh.
66747         * tests/test-echo.sh: Likewise.
66748
66749 2007-06-23  Bruno Haible  <bruno@clisp.org>
66750
66751         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
66752         * tests/test-echo.sh: Likewise.
66753
66754 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66755
66756         * gnulib-tool (IFS): Initialize early, so we don't set it to
66757         empty later.
66758         (self_abspathname): Rewrite algorithm to set it, reindent.
66759         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
66760         (func_create_megatestdir): Merge some sed scripts.
66761
66762 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
66763
66764         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
66765         exposed by Sun Studio 11 cc on Solaris 8.
66766
66767 2007-06-22  Bruno Haible  <bruno@clisp.org>
66768
66769         * gnulib-tool (echo): Ensure the echo primitive does not interpret
66770         backslashes.
66771         * tests/test-echo.sh: New file.
66772
66773 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66774
66775         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
66776         simplify `sed_replace_build_aux' scripts, they are portable but
66777         echoing them with `echo' is not.
66778         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
66779
66780 2007-06-21  Karl Berry  <karl@gnu.org>
66781
66782         * config/srclist.txt: guess we can't handle the licenses via
66783         srclist at the moment.
66784
66785 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
66786
66787         * MODULES.html.sh: Add include_next.
66788         * modules/include_next: New file.
66789
66790 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
66791
66792         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
66793         INCLUDE_NEXT.
66794         (gl_CHECK_NEXT_HEADERS): New macro.
66795         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
66796         the obsolescent gl_ABSOLUTE_HEADER.
66797         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
66798         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
66799         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
66800         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
66801         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
66802         * m4/math_h.m4 (gl_MATH_H): Likewise.
66803         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
66804         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
66805         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
66806         * m4/stdint.m4 (gl_STDINT_H): Likewise.
66807         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
66808         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
66809         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
66810         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
66811         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
66812         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
66813         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
66814         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
66815         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
66816         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
66817         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
66818         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
66819         * m4/inttypes.m4 (gl_INTTYPES_H): Define
66820         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
66821         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
66822         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
66823         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
66824         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
66825         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
66826         * lib/float_.h: Likewise.
66827         * lib/inttypes_.h: Likewise.
66828         * lib/math_.h: Likewise.
66829         * lib/search_.h: Likewise.
66830         * lib/signal_.h: Likewise.
66831         * lib/stdint_.h: Likewise.
66832         * lib/stdio_.h: Likewise.
66833         * lib/stdlib_.h: Likewise.
66834         * lib/string_.h: Likewise.
66835         * lib/sys_stat_.h: Likewise.
66836         * lib/sys_time_.h: Likewise.
66837         * lib/time_.h: Likewise.
66838         * lib/unistd_.h: Likewise.
66839         * lib/wchar_.h: Likewise.
66840         * lib/wctype_.h: Likewise.
66841         * lib/dirent_.h: Likewise.
66842         * lib/iconv_.h: Likewise.
66843         * lib/locale_.h: Likewise.
66844         * lib/netinet_in_.h: Likewise.
66845         * lib/sys_select_.h: Likewise.
66846         * lib/sys_socket_.h: Likewise.
66847         * lib/sysexits_.h: Likewise.
66848         * modules/fcntl (Depends-on): Depend on include_next, not
66849         absolute_header.
66850         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
66851         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
66852         * modules/fchdir: Likewise.
66853         * modules/float: Likewise.
66854         * modules/iconv_open: Likewise.
66855         * modules/inttypes: Likewise.
66856         * modules/locale: Likewise.
66857         * modules/math: Likewise.
66858         * modules/netinet_in: Likewise.
66859         * modules/search: Likewise.
66860         * modules/signal: Likewise.
66861         * modules/stdint: Likewise.
66862         * modules/stdio: Likewise.
66863         * modules/stdlib: Likewise.
66864         * modules/string: Likewise.
66865         * modules/sys_select: Likewise.
66866         * modules/sys_socket: Likewise.
66867         * modules/sys_stat: Likewise.
66868         * modules/sys_time: Likewise.
66869         * modules/sysexits: Likewise.
66870         * modules/time: Likewise.
66871         * modules/unistd: Likewise.
66872         * modules/wchar: Likewise.
66873         * modules/wctype: Likewise.
66874         * modules/sys_stat: Change maintainer to "all".
66875         * modules/unistd: Likewise.
66876
66877 2007-06-20  Karl Berry  <karl@gnu.org>
66878
66879         * config/srclist.txt: track www changes in license files.
66880
66881 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
66882
66883         * build-aux/bootstrap: Remove stray dot.
66884         Make sure build_aux settings are honored when linking
66885         gnulib_extra_files.
66886
66887 2007-06-19  Eric Blake  <ebb9@byu.net>
66888
66889         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
66890         Allow compilation on cygwin.
66891
66892 2007-06-19  Jim Meyering  <jim@meyering.net>
66893
66894         xreadlink-with-size: Remove module.  No longer used.
66895         Ex-callers now use xreadlink or mreadlink-with-size.
66896         * modules/xreadlink-with-size: Remove module.
66897         * lib/xreadlink-with-size.c: Remove file.
66898         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
66899         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
66900         just before the function definition *is* accurate.
66901
66902         Eliminate one way canonicalize_filename_mode could exit.
66903         * lib/canonicalize.c (canonicalize_filename_mode):
66904         Use mreadlink_with_size, not xreadlink_with_size.
66905
66906 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
66907
66908         Detect porting problems to FreeBSD/arm, which has time_t wider than
66909         long int.  Original problem reported for GNU diff by Xin Li in
66910         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
66911         * modules/getdate (Depends-on): Add intprops, verify.
66912         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
66913         is an integer type no wider than long int.
66914
66915 2007-06-18  Jim Meyering  <jim@meyering.net>
66916
66917         New module: mreadlink-with-size.
66918         * MODULES.html.sh: Add mreadlink-with-size.
66919         * modules/mreadlink-with-size: New module
66920         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
66921         not xreadlink-with-size.
66922         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
66923
66924 2007-06-16  Bruno Haible  <bruno@clisp.org>
66925
66926         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
66927         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
66928         Reported by Gary V. Vaughan <gary@gnu.org>.
66929
66930 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
66931
66932         Revamp lchown so that it lives in unistd.h where it belongs.
66933         * lib/lchown.h: Remove.
66934         * lib/dirchownmod.c: Don't include lib/lchown.h.
66935         * lib/fchownat.c: Likewise.
66936         * lib/openat.c: Likewise.
66937         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
66938         does not follow symlinks.
66939         (EOPNOTSUPP): Define if not defined.
66940         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
66941         is defined to 0.
66942         (lchown): New decl.
66943         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
66944         Do not check for lchown decl.
66945         Set REPLACE_LCHOWN.
66946         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
66947         REPLACE_LCHOWN.
66948         * modules/chown: Make it clear it follows symlinks.
66949         * modules/lchown: Make it clear it doesn't follow symlinks.
66950         (Files): Remove lib/lchown.h
66951         (Depends-on): Add unistd.
66952         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
66953         (Include): Include <unistd.h>, not "lchown.h".
66954         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
66955         REPLACE_LCHOWN.
66956
66957 2007-06-15  Jim Meyering  <jim@meyering.net>
66958
66959         Change license (GPL to LGPL) of fsusage and dependents.
66960         * modules/fsusage (License): Change to LGPL.
66961         * modules/full-read (License): Likewise.
66962         * modules/full-write (License): Likewise.
66963         * modules/safe-read (License): Likewise.
66964         * modules/safe-write (License): Likewise.
66965
66966 2007-06-14  Ben Pfaff  <blp@gnu.org>
66967
66968         Missing part of allocsa -> malloca transition.
66969         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
66970         gl_MALLOCA.
66971
66972 2007-06-12  Bruno Haible  <bruno@clisp.org>
66973
66974         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
66975         to ia64, x86_64, i386.
66976         Reported by Eric Blake.
66977
66978 2007-06-12  Bruno Haible  <bruno@clisp.org>
66979
66980         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
66981         cross-compiling to x86_64.
66982
66983 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
66984
66985         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
66986         glitch reported by Ralf Wildenhues in
66987         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
66988
66989         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
66990         Vin Shelton.
66991
66992 2007-06-11  Bruno Haible  <bruno@clisp.org>
66993
66994         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
66995         replacement string.
66996         Reported by Eric Blake.
66997
66998 2007-06-10  Bruno Haible  <bruno@clisp.org>
66999
67000         Prepare vasnprintf code for use with Unicode strings.
67001         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
67002         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
67003         TYPE_U32_STRING.
67004         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
67005         a_u32_string variants.
67006         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
67007         * lib/printf-args.c: Don't include config.h and the specification
67008         header if PRINTF_FETCHARGS is already defined.
67009         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
67010         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
67011         TYPE_U16_STRING, TYPE_U32_STRING.
67012         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
67013         u16_directive, u16_directives, u32_directive, u32_directives): New
67014         types.
67015         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
67016         New declarations.
67017         * lib/printf-parse.c: Don't include config.h and the specification
67018         header if PRINTF_PARSE is already defined. Eliminate the set of
67019         parameters for WIDE_CHAR_VERSION; the user of this file must provide
67020         them now. Include c-ctype.h.
67021         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
67022         directive and CHAR_T_ONLY_ASCII.
67023         * lib/vasnprintf.c: Don't include config.h and the specification header
67024         if VASNPRINTF is already defined.
67025         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
67026         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
67027         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
67028         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
67029         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
67030         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
67031         code accordingly.
67032         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
67033         pad_ourselves also in this case, with the 'c' and 's' directives, and
67034         with a different notion of "width".
67035         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
67036
67037 2007-06-10  Bruno Haible  <bruno@clisp.org>
67038
67039         * modules/unistr/u32-mbsnlen: New file.
67040         * lib/unistr/u32-mbsnlen.c: New file.
67041
67042         * modules/unistr/u16-mbsnlen: New file.
67043         * lib/unistr/u16-mbsnlen.c: New file.
67044
67045         * modules/unistr/u8-mbsnlen: New file.
67046         * lib/unistr/u8-mbsnlen.c: New file.
67047
67048         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
67049         declarations.
67050
67051 2007-06-10  Bruno Haible  <bruno@clisp.org>
67052
67053         * lib/string_.h (mbsnlen): New declaration.
67054         * lib/mbsnlen.c: New file.
67055         * m4/mbsnlen.m4: New file.
67056         * modules/mbsnlen: New file.
67057         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
67058         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
67059         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
67060
67061 2007-06-10  Bruno Haible  <bruno@clisp.org>
67062
67063         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
67064
67065 2007-06-10  Bruno Haible  <bruno@clisp.org>
67066
67067         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
67068         * lib/mbuiter.h: Likewise.
67069
67070 2007-06-10  Bruno Haible  <bruno@clisp.org>
67071
67072         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
67073         declaration.
67074
67075 2007-06-10  Karl Berry  <karl@gnu.org>
67076
67077         * config/srclist.txt: remove gettext entries, Bruno prefers
67078         to update individually.
67079
67080 2007-06-10  Bruno Haible  <bruno@clisp.org>
67081
67082         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
67083         'maxlen'. Ensure only length + width bytes are allocated, not
67084         length + 1 + width.
67085
67086 2007-06-09  Bruno Haible  <bruno@clisp.org>
67087
67088         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
67089         (CHAR_T): Remove macro.
67090         (VASNPRINTF): Update.
67091
67092 2007-06-09  Bruno Haible  <bruno@clisp.org>
67093
67094         * MODULES.html.sh (Unicode string functions): Add the new modules.
67095
67096         * modules/uniconv/u32-conv-to-enc: New file.
67097         * lib/uniconv/u32-conv-to-enc.c: New file.
67098         * modules/uniconv/u32-conv-to-enc-tests: New file.
67099         * tests/uniconv/test-u32-conv-to-enc.c: New file.
67100
67101         * modules/uniconv/u16-conv-to-enc: New file.
67102         * lib/uniconv/u16-conv-to-enc.c: New file.
67103         * lib/uniconv/u-conv-to-enc.h: New file.
67104         * modules/uniconv/u16-conv-to-enc-tests: New file.
67105         * tests/uniconv/test-u16-conv-to-enc.c: New file.
67106
67107         * modules/uniconv/u8-conv-to-enc: New file.
67108         * lib/uniconv/u8-conv-to-enc.c: New file.
67109         * modules/uniconv/u8-conv-to-enc-tests: New file.
67110         * tests/uniconv/test-u8-conv-to-enc.c: New file.
67111
67112         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
67113         u32_conv_to_encoding): New declarations.
67114
67115 2007-06-09  Bruno Haible  <bruno@clisp.org>
67116
67117         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
67118
67119 2007-06-09  Bruno Haible  <bruno@clisp.org>
67120
67121         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
67122         * modules/malloca: Renamed from modules/allocsa, updated.
67123         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
67124         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
67125         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
67126         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
67127         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
67128         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
67129         * modules/xmalloca: Renamed from modules/xallocsa, updated.
67130         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
67131         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
67132         * modules/c-strcasestr (Depends-on): Update.
67133         * lib/c-strcasestr.c: Update.
67134         * modules/c-strstr (Depends-on): Update.
67135         * lib/c-strstr.c: Update.
67136         * modules/canonicalize-lgpl (Depends-on): Update.
67137         * lib/canonicalize-lgpl.c: Update.
67138         * modules/clean-temp (Depends-on): Update.
67139         * lib/clean-temp.c: Update.
67140         * modules/csharpcomp (Depends-on): Update.
67141         * lib/csharpcomp.c: Update.
67142         * modules/csharpexec (Depends-on): Update.
67143         * lib/csharpexec.c: Update.
67144         * modules/javacomp (Depends-on): Update.
67145         * lib/javacomp.c: Update.
67146         * modules/javaexec (Depends-on): Update.
67147         * lib/javaexec.c: Update.
67148         * modules/mbscasestr (Depends-on): Update.
67149         * lib/mbscasestr.c: Update.
67150         * modules/mbsstr (Depends-on): Update.
67151         * lib/mbsstr.c: Update.
67152         * modules/setenv (Depends-on): Update.
67153         * lib/setenv.c: Update.
67154         * modules/strcasestr (Depends-on): Update.
67155         * lib/strcasestr.c: Update.
67156         * modules/striconveha (Depends-on): Update.
67157         * lib/striconveha.c: Update.
67158         * modules/relocatable-prog-wrapper (Files): Update.
67159         * lib/relocwrapper.c: Update.
67160         * build-aux/install-reloc: Update.
67161         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
67162
67163 2007-06-08  Bruno Haible  <bruno@clisp.org>
67164
67165         Port to uClibc.
67166         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
67167         * lib/fpurge.c (fpurge): Likewise.
67168         * lib/freading.c (freading): Likewise.
67169         * lib/fseeko.c (rpl_fseeko): Likewise.
67170         * lib/fseterr.c (fseterr): Likewise.
67171         * lib/fwriting.c (fwriting): Likewise.
67172         * tests/test-fflush.c (main): Avoid a failure on uClibc.
67173
67174 2007-06-08  Bruno Haible  <bruno@clisp.org>
67175
67176         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
67177         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
67178         * modules/gettext (Files): Add m4/intlmacosx.m4.
67179
67180 2007-06-07  Bruno Haible  <bruno@clisp.org>
67181
67182         * modules/localename-tests: New file.
67183         * tests/test-localename.c: New file.
67184
67185         New module 'localename'.
67186         * lib/localename.h: New file.
67187         * lib/localename.c: New file, from GNU gettext.
67188         * m4/localename.m4: New file.
67189         * modules/localename: New file.
67190
67191 2007-06-07  Bruno Haible  <bruno@clisp.org>
67192
67193         Work around the lack of <wchar.h> on some builds of uClibc.
67194         * doc/headers/wchar.texi: Update.
67195         * lib/wchar_.h: Include <wchar.h> only if it exists.
67196         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
67197         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
67198         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
67199         doesn't exist.
67200         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
67201         * modules/mbfile (Depends-on): Add wchar.
67202         * modules/mbiter (Depends-on): Likewise.
67203         * modules/mbuiter (Depends-on): Likewise.
67204         Reported by Simon Josefsson.
67205
67206 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
67207
67208         Work around problem reported by Steven M. Schweda in
67209         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
67210         Tru64 5.1B with the Compaq compiler environment installed declares
67211         an 'isblank' function but does not define it in the C library.
67212         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
67213         * lib/regex_internal.h (isblank): Likewise.
67214         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
67215         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
67216
67217 2007-06-05  Bruno Haible  <bruno@clisp.org>
67218
67219         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
67220         ia64.
67221         * modules/printf-safe: New file.
67222         * modules/fprintf-posix (Depends-on): Add printf-safe.
67223         * modules/printf-posix (Depends-on): Likewise.
67224         * modules/snprintf-posix (Depends-on): Likewise.
67225         * modules/sprintf-posix (Depends-on): Likewise.
67226         * modules/vasnprintf-posix (Depends-on): Likewise.
67227         * modules/vasprintf-posix (Depends-on): Likewise.
67228         * modules/vfprintf-posix (Depends-on): Likewise.
67229         * modules/vprintf-posix (Depends-on): Likewise.
67230         * modules/vsnprintf-posix (Depends-on): Likewise.
67231         * modules/vsprintf-posix (Depends-on): Likewise.
67232         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
67233         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
67234         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
67235         "no" on i386, x86_64, ia64.
67236         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
67237         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
67238         on i386, x86_64, ia64.
67239         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
67240         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
67241         on i386, x86_64, ia64.
67242         * tests/test-vasnprintf-posix.c: Include float.h.
67243         (LDBL80_WORDS): New macro.
67244         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
67245         on i386, x86_64, ia64.
67246         * tests/test-vasprintf-posix.c: Include float.h.
67247         (LDBL80_WORDS): New macro.
67248         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
67249         on i386, x86_64, ia64.
67250         * tests/test-snprintf-posix.c: Include float.h.
67251         * tests/test-sprintf-posix.c: Likewise.
67252         * tests/test-vsnprintf-posix.c: Likewise.
67253         * tests/test-vsprintf-posix.c: Likewise.
67254
67255 2007-06-05  Bruno Haible  <bruno@clisp.org>
67256
67257         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
67258         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
67259         non-IEEE numbers on i386, x86_64, ia64.
67260         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
67261         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
67262         * tests/test-isnanl.h: Include float.h.
67263         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
67264
67265 2007-06-05  Bruno Haible  <bruno@clisp.org>
67266
67267         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
67268         also the %a / %A. Handle the %a / %A code before this extra handling.
67269
67270 2007-06-05  Bruno Haible  <bruno@clisp.org>
67271
67272         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
67273         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
67274
67275 2007-06-05  Bruno Haible  <bruno@clisp.org>
67276
67277         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
67278         typo in variable name.
67279
67280 2007-06-05  Eric Blake  <ebb9@byu.net>
67281
67282         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
67283         Reported by Simon Josefsson.
67284
67285 2007-06-04  Bruno Haible  <bruno@clisp.org>
67286
67287         Avoid test failures on some PowerPC platforms.
67288         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
67289         Define differently for PowerPC.
67290         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
67291         Reported by Gary V. Vaughan <gary@gnu.org>.
67292
67293 2007-06-02  Bruno Haible  <bruno@clisp.org>
67294
67295         Fix test-stdint failure on FreeBSD/ia64.
67296         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
67297         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
67298         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
67299         * doc/headers/stdint.texi: Update.
67300
67301 2007-06-01  Bruno Haible  <bruno@clisp.org>
67302
67303         * tests/test-binary-io.c (main): Pass a third argument to open().
67304         Reported by Gary V. Vaughan <gary@gnu.org>.
67305
67306 2007-06-01  Bruno Haible  <bruno@clisp.org>
67307
67308         * doc/functions/frexpl.texi: Update for mingw.
67309
67310 2007-06-01  Bruno Haible  <bruno@clisp.org>
67311
67312         * tests/test-lseek.c (main): Disable test of errno for invalid third
67313         argument.
67314         * doc/functions/lseek.texi: Update.
67315         Reported by Gary V. Vaughan <gary@gnu.org>.
67316
67317 2007-05-28  Bruno Haible  <bruno@clisp.org>
67318
67319         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
67320
67321 2007-05-31  Eric Blake  <ebb9@byu.net>
67322
67323         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
67324         cross compiling.
67325
67326 2007-05-30  Eric Blake  <ebb9@byu.net>
67327         and Bruno Haible  <bruno@clisp.org>
67328
67329         Work around mingw test failures exposed by m4-1.4.9b.
67330         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
67331         * tests/test-unistd.c: Disable uid_t and git_t tests for the
67332         moment.
67333
67334 2007-05-30  Bruno Haible  <bruno@clisp.org>
67335
67336         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
67337         assuming that they are closed. Needed on HP-UX 11.
67338
67339 2007-05-29  Bruno Haible  <bruno@clisp.org>
67340
67341         Fix a problem with #include_next.
67342         * lib/dirent_.h: Split the double-inclusion guard.
67343         * lib/fcntl_.h: Likewise.
67344         * lib/float_.h: Likewise.
67345         * lib/iconv_.h: Likewise.
67346         * lib/inttypes_.h: Likewise.
67347         * lib/locale_.h: Likewise.
67348         * lib/math_.h: Likewise.
67349         * lib/netinet_in_.h: Likewise.
67350         * lib/search_.h: Likewise.
67351         * lib/signal_.h: Likewise.
67352         * lib/stdint_.h: Likewise.
67353         * lib/stdio_.h: Likewise.
67354         * lib/stdlib_.h: Likewise.
67355         * lib/string_.h: Likewise.
67356         * lib/sys_select_.h: Likewise.
67357         * lib/sys_socket_.h: Likewise.
67358         * lib/sys_stat_.h: Likewise.
67359         * lib/sys_time_.h: Likewise.
67360         * lib/sysexits_.h: Likewise.
67361         * lib/time_.h: Likewise.
67362         * lib/unistd_.h: Likewise.
67363         * lib/wchar_.h: Likewise.
67364         * lib/wctype_.h: Likewise.
67365
67366 2007-05-29  Bruno Haible  <bruno@clisp.org>
67367
67368         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
67369         for the moment.
67370
67371 2007-05-29  Bruno Haible  <bruno@clisp.org>
67372
67373         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
67374         invocation.
67375         Reported by Eric Blake.
67376
67377 2007-05-29  Bruno Haible  <bruno@clisp.org>
67378
67379         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
67380         compiling case.
67381
67382 2007-05-29  Eric Blake  <ebb9@byu.net>
67383             Bruno Haible  <bruno@clisp.org>
67384
67385         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
67386         cross compiles.
67387
67388 2007-05-28  Eric Blake  <ebb9@byu.net>
67389
67390         * modules/closein-tests (test_closein_LDADD): Support test on
67391         cygwin with libtool.
67392
67393 2007-05-28  Bruno Haible  <bruno@clisp.org>
67394
67395         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
67396         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
67397         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
67398         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
67399         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
67400         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
67401         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
67402         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
67403         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
67404
67405 2007-05-28  Eric Blake  <ebb9@byu.net>
67406
67407         Unconditionally include <config.h> in unit tests.
67408         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
67409         * tests/test-allocsa.c, tests/test-arcfour.c,
67410         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
67411         tests/test-array_list.c, tests/test-array_oset.c,
67412         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
67413         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
67414         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
67415         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
67416         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
67417         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
67418         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
67419         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
67420         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
67421         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
67422         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
67423         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
67424         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
67425         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
67426         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
67427         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
67428         test-md5.c, test-memmem.c, test-printf-posix.c,
67429         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
67430         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
67431         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
67432         test-strcasestr.c, test-striconv.c, test-striconveh.c,
67433         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
67434         test-vasnprintf-posix2.c, test-vasnprintf.c,
67435         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
67436         test-vfprintf-posix.c, test-vprintf-posix.c,
67437         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
67438         test-xvasprintf.c: Likewise.
67439
67440 2007-05-28  Bruno Haible  <bruno@clisp.org>
67441
67442         * gnulib-tool (func_import): Remember the --with-tests command-line
67443         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
67444         Reported by Eric Blake.
67445
67446 2007-05-28  Bruno Haible  <bruno@clisp.org>
67447
67448         * modules/ftell-tests: New file.
67449         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
67450         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
67451
67452         * lib/ftell.c: New file.
67453         * modules/ftell: New file.
67454         * m4/ftell.m4: New file.
67455         * doc/functions/ftell.texi: Update.
67456         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
67457         REPLACE_FTELL.
67458         * lib/stdio_.h (rpl_ftell): New declaration.
67459         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
67460         REPLACE_FTELL.
67461
67462 2007-05-28  Eric Blake  <ebb9@byu.net>
67463
67464         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
67465
67466 2007-05-28  Bruno Haible  <bruno@clisp.org>
67467
67468         * modules/fseek-tests: New file.
67469         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
67470         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
67471
67472         * lib/fseek.c: New file.
67473         * modules/fseek: New file.
67474         * m4/fseek.m4: New file.
67475         * doc/functions/fseek.texi: Update.
67476         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
67477         REPLACE_FSEEK.
67478         * lib/stdio_.h (rpl_fseek): New declaration.
67479         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
67480         REPLACE_FSEEK.
67481
67482 2007-05-28  Bruno Haible  <bruno@clisp.org>
67483
67484         * lib/stdio_.h (fflush): More comments.
67485
67486 2007-05-28  Bruno Haible  <bruno@clisp.org>
67487
67488         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
67489         runtime test.
67490
67491 2007-05-28  Eric Blake  <ebb9@byu.net>
67492
67493         Improve lseek module.
67494         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
67495         * lib/unistd_.h (lseek): Scale back link warning message.
67496         * tests/test-lseek.c: Beef up test.
67497         * tests/test-lseek.sh: Exercise more facets of lseek.
67498         Reported by Bruno Haible.
67499
67500 2007-05-28  Bruno Haible  <bruno@clisp.org>
67501
67502         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
67503         to define.
67504
67505 2007-05-27  Bruno Haible  <bruno@clisp.org>
67506
67507         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
67508
67509 2007-05-27  Bruno Haible  <bruno@clisp.org>
67510
67511         * modules/openmp: New file.
67512         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
67513         Noah Misch.
67514
67515 2007-05-26  Bruno Haible  <bruno@clisp.org>
67516
67517         * modules/chdir-long (Depends-on): Add fchdir.
67518         * modules/chdir-safer (Depends-on): Likewise.
67519         * modules/fts (Depends-on): Likewise.
67520         * modules/fts-lgpl (Depends-on): Likewise.
67521         * modules/openat (Depends-on): Likewise.
67522         * modules/savewd (Depends-on): Likewise.
67523
67524 2007-05-24  Eric Blake  <ebb9@byu.net>
67525
67526         Fix lseek on mingw.
67527         * modules/lseek: New module.
67528         * m4/lseek.m4: New file.
67529         * lib/lseek.c: New file.
67530         * modules/lseek-tests: New file.
67531         * tests/test-lseek.c: New file.
67532         * tests/test-lseek.sh: New file.
67533         * MODULES.html.sh: Document lseek module.
67534         * modules/fflush (Depends-on): Add lseek, fseeko.
67535         * modules/fseeko (Depends-on): Likewise.
67536         * modules/ftello (Depends-on): Likewise.
67537         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
67538         broken.
67539         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
67540         broken.
67541         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
67542         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
67543         * lib/ftello.c (rpl_ftello): Likewise.
67544         * tests/test-fseeko.c (main): Test this.
67545         * tests/test-fseeko.sh: Likewise.
67546         * tests/test-ftello.c (main): Likewise.
67547         * tests/test-ftello.sh: Likewise.
67548         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
67549         implies replacing fseek.
67550         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
67551         HAVE_FTELLO.
67552         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
67553         * modules/unistd (Makefile.am): Likewise.
67554         * lib/unistd_.h (lseek): Declare a replacement.
67555         * doc/functions/lseek.texi (lseek): Document this fix.
67556         * doc/functions/fseek.texi (fseek): Likewise.
67557         * doc/functions/ftell.texi (ftell): Likewise.
67558
67559 2007-05-24  Bruno Haible  <bruno@clisp.org>
67560
67561         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
67562         in the printed representation of a NaN.
67563         * tests/test-vasprintf-posix.c (test_function): Likewise.
67564         * tests/test-snprintf-posix.h (test_function): Likewise.
67565         * tests/test-sprintf-posix.h (test_function): Likewise.
67566         Reported by Eric Blake.
67567
67568 2007-05-23  Eric Blake  <ebb9@byu.net>
67569
67570         Fix fseeko/ftello on cygwin 1.5.24.
67571         * doc/functions/fseeko.texi (fseeko): Document the fix.
67572         * doc/functions/ftello.texi (ftello): Document the fix.
67573         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
67574         * doc/functions/stdout.text (stdout): New file.
67575         * doc/functions/stderr.text (stderr): New file.
67576         * doc/gnulib.texi (Function Substitutes): Use new files.
67577         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
67578         prior to 1.7.0.
67579         * tests/test-ftello.c (main): Likewise for ftello.
67580         * tests/test-fseeko.sh: New file.
67581         * tests/test-ftello.sh: New file.
67582         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
67583         with seekable stdin.
67584         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
67585         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
67586         (gl_REPLACE_FSEEKO): New macro.
67587         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
67588         * modules/fseeko (Files): Distribute fseeko.c.
67589         * modules/ftello (Files): Distribute ftello.c.
67590         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
67591         mode.
67592         * lib/ftello.c (rpl_ftello): New file.
67593         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
67594         fseeko, ftello.
67595         (gl_STDIN_LARGE_OFFSET): New macro.
67596         * modules/stdio (Makefile.am): Perform the replacement.
67597         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
67598
67599 2007-05-23  Bruno Haible  <bruno@clisp.org>
67600
67601         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
67602         GNULIB_POSIXCHECK is defined.
67603
67604 2007-05-21  Bruno Haible  <bruno@clisp.org>
67605
67606         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
67607         Check also the output for NaN arguments. When cross-compiling, guess
67608         no on IRIX.
67609         * lib/vasnprintf.c: Update comments.
67610         * tests/test-vasnprintf-posix.c (strisnan): New function.
67611         (test_function): Use it.
67612         * tests/test-vasprintf-posix.c (strisnan): New function.
67613         (test_function): Use it.
67614         * tests/test-snprintf-posix.h (strisnan): New function.
67615         (test_function): Use it.
67616         * tests/test-sprintf-posix.h (strisnan): New function.
67617         (test_function): Use it.
67618         Reported by Eric Blake.
67619
67620 2007-05-20  Bruno Haible  <bruno@clisp.org>
67621
67622         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
67623         numbers that fails on BeOS.
67624         * doc/functions/frexpl.texi: Update.
67625
67626 2007-05-20  Jim Meyering  <jim@meyering.net>
67627
67628         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
67629         forced upon us by glibc-2.6.
67630
67631 2007-05-20  Bruno Haible  <bruno@clisp.org>
67632
67633         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
67634         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
67635         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
67636         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
67637         NEED_PRINTF_INFINITE.
67638         (is_infinitel): New function.
67639         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
67640         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
67641         gl_PREREQ_VASNPRINTF_INFINITE.
67642         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
67643         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
67644         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
67645         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
67646         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
67647         gl_PREREQ_VASNPRINTF_INFINITE.
67648         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
67649         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
67650         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
67651         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
67652         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
67653         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
67654         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
67655         * doc/functions/fprintf.texi: Update.
67656         * doc/functions/printf.texi: Update.
67657         * doc/functions/snprintf.texi: Update.
67658         * doc/functions/sprintf.texi: Update.
67659         * doc/functions/vfprintf.texi: Update.
67660         * doc/functions/vprintf.texi: Update.
67661         * doc/functions/vsnprintf.texi: Update.
67662         * doc/functions/vsprintf.texi: Update.
67663
67664 2007-05-20  Bruno Haible  <bruno@clisp.org>
67665
67666         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
67667         was not found in libc.
67668         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
67669
67670 2007-05-20  Bruno Haible  <bruno@clisp.org>
67671
67672         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
67673         printed as "-nan" instead of "nan".
67674         * tests/test-vasprintf-posix.c (test_function): Likewise.
67675         * tests/test-snprintf-posix.h (test_function): Likewise.
67676         * tests/test-sprintf-posix.h (test_function): Likewise.
67677         Needed for HP-UX 11.
67678
67679 2007-05-20  Jim Meyering  <jim@meyering.net>
67680
67681         Fix buggy test for the fchownat-deref bug.
67682         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
67683         symlink required for the run-test.  Without it, this test would
67684         always declare that fchownat doesn't work, and client code would
67685         unnecessarily use the replacement function with fixed libc.
67686         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
67687         Reported by Greg Schafer.
67688
67689 2007-05-19  Bruno Haible  <bruno@clisp.org>
67690
67691         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
67692         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
67693         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
67694         Needed for IRIX 6.5 and Solaris 2.5.1.
67695
67696 2007-05-19  Bruno Haible  <bruno@clisp.org>
67697
67698         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
67699         (test_function): Skip tests involving -0.0 on platforms where
67700         -0.0 = 0.0.
67701         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
67702         (test_function): Skip tests involving -0.0 on platforms where
67703         -0.0 = 0.0.
67704         * tests/test-snprintf-posix.h (have_minus_zero): New function.
67705         (test_function): Skip tests involving -0.0 on platforms where
67706         -0.0 = 0.0.
67707         * tests/test-sprintf-posix.h (have_minus_zero): New function.
67708         (test_function): Skip tests involving -0.0 on platforms where
67709         -0.0 = 0.0.
67710         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
67711         tests.
67712         * tests/test-printf-posix.h (test_function): Likewise.
67713         * tests/test-printf-posix.output: Remove all -0.0 related results.
67714         Needed for IRIX 6.5.
67715
67716 2007-05-19  Bruno Haible  <bruno@clisp.org>
67717
67718         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
67719         printed as "nan0x7fffffff" instead of "nan".
67720         * tests/test-vasprintf-posix.c (test_function): Likewise.
67721         * tests/test-snprintf-posix.h (test_function): Likewise.
67722         * tests/test-sprintf-posix.h (test_function): Likewise.
67723         * tests/test-fprintf-posix.h (NaN): Remove macro.
67724         (test_function): Remove all NaN related tests.
67725         * tests/test-printf-posix.h (NaN): Remove macro.
67726         (test_function): Remove all NaN related tests.
67727         * tests/test-printf-posix.output: Remove all NaN related results.
67728         Needed for IRIX 6.5.
67729
67730 2007-05-19  Bruno Haible  <bruno@clisp.org>
67731
67732         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
67733         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
67734
67735 2007-05-19  Bruno Haible  <bruno@clisp.org>
67736
67737         * lib/float_.h: New file.
67738         * m4/float_h.m4: New file.
67739         * modules/float: New file.
67740         * modules/isnanl (Dependencies): Add float.
67741         * modules/isnanl-nolibm (Dependencies): Likewise.
67742         * modules/mathl (Dependencies): Likewise.
67743         * modules/printf-frexpl (Dependencies): Likewise.
67744         * modules/signbit (Dependencies): Likewise.
67745         * modules/vasnprintf (Dependencies): Likewise.
67746         * doc/headers/float.texi: Update.
67747
67748 2007-05-19  Jim Meyering  <jim@meyering.net>
67749
67750         * lib/utimens.c (gl_futimens): Rename from futimens,
67751         now that glibc-2.6 declares futimens.
67752         * lib/utimens.h: Likewise.
67753
67754 2007-05-19  Bruno Haible  <bruno@clisp.org>
67755
67756         Avoid test failures on mingw.
67757         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
67758         * tests/test-printf-posix.sh: Likewise.
67759         * tests/test-vfprintf-posix.sh: Likewise.
67760         * tests/test-vprintf-posix.sh: Likewise.
67761
67762 2007-05-19  Bruno Haible  <bruno@clisp.org>
67763
67764         Fix *printf result for NaN, Inf, -0.0 on mingw.
67765         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
67766         * lib/vasnprintf.c: Include math.h and isnan.h.
67767         (is_infinite_or_zero): New function.
67768         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
67769         values in the %f, %F, %e, %E, %g, %G directives.
67770         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
67771         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
67772         gl_PRINTF_INFINITE and test its result. Invoke
67773         gl_PREREQ_VASNPRINTF_INFINITE.
67774         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
67775         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
67776         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
67777         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
67778         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
67779         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
67780         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
67781         * doc/functions/fprintf.texi: Update.
67782         * doc/functions/printf.texi: Update.
67783         * doc/functions/snprintf.texi: Update.
67784         * doc/functions/sprintf.texi: Update.
67785         * doc/functions/vfprintf.texi: Update.
67786         * doc/functions/vprintf.texi: Update.
67787         * doc/functions/vsnprintf.texi: Update.
67788         * doc/functions/vsprintf.texi: Update.
67789
67790 2007-05-19  Bruno Haible  <bruno@clisp.org>
67791
67792         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
67793         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
67794         Instead of multiplying with 10^k, set extra_zeroes to k.
67795         (scale10_round_long_double): Remove function.
67796
67797 2007-05-18  Bruno Haible  <bruno@clisp.org>
67798
67799         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
67800         introduced on 2007-05-06.
67801
67802 2007-05-18  Bruno Haible  <bruno@clisp.org>
67803
67804         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
67805         %g directives.
67806         * tests/test-vasprintf-posix.c (test_function): Likewise.
67807         * tests/test-snprintf-posix.h (test_function): Likewise.
67808         * tests/test-sprintf-posix.h (test_function): Likewise.
67809
67810 2007-05-18  Bruno Haible  <bruno@clisp.org>
67811
67812         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
67813         (strmatch): New function.
67814         (test_function): Test the %f directive on numbers of various exponents.
67815         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
67816         (strmatch): New function.
67817         (test_function): Test the %f directive on numbers of various exponents.
67818         * tests/test-snprintf-posix.h (strmatch): New function.
67819         (test_function): Test the %f directive on numbers of various exponents.
67820         * tests/test-sprintf-posix.h (strmatch): New function.
67821         (test_function): Test the %f directive on numbers of various exponents.
67822         * tests/test-snprintf-posix.c (SIZEOF): New macro.
67823         * tests/test-sprintf-posix.c (SIZEOF): New macro.
67824         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
67825         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
67826
67827 2007-05-18  Bruno Haible  <bruno@clisp.org>
67828
67829         Add support for 'long double' number output.
67830         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
67831         * lib/vasnprintf.c: Include math.h and float+.h.
67832         (mp_limb_t): New type.
67833         (GMP_LIMB_BITS): New macro.
67834         (mp_twolimb_t): New type.
67835         (GMP_TWOLIMB_BITS): New macro.
67836         (mpn_t): New type.
67837         (multiply, divide, convert_to_decimal, decode_long_double,
67838         scale10_round_long_double, scale10_round_decimal_long_double,
67839         floorlog10l): New functions.
67840         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
67841         for the %f, %F, %e, %E, %g, %G directives.
67842         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
67843         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
67844         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
67845         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
67846         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
67847         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
67848         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
67849         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
67850         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
67851         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
67852         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
67853         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
67854         * modules/snprintf-posix (Depends-on): Likewise.
67855         * modules/sprintf-posix (Depends-on): Likewise.
67856         * modules/vasnprintf-posix (Depends-on): Likewise.
67857         * modules/vasprintf-posix (Depends-on): Likewise.
67858         * modules/vfprintf-posix (Depends-on): Likewise.
67859         * modules/vsnprintf-posix (Depends-on): Likewise.
67860         * modules/vsprintf-posix (Depends-on): Likewise.
67861         * modules/vasnprintf (Files): Add lib/float+.h.
67862         * doc/functions/fprintf.texi: Update.
67863         * doc/functions/printf.texi: Update.
67864         * doc/functions/snprintf.texi: Update.
67865         * doc/functions/sprintf.texi: Update.
67866         * doc/functions/vfprintf.texi: Update.
67867         * doc/functions/vprintf.texi: Update.
67868         * doc/functions/vsnprintf.texi: Update.
67869         * doc/functions/vsprintf.texi: Update.
67870
67871 2007-05-18  Bruno Haible  <bruno@clisp.org>
67872
67873         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
67874
67875 2007-05-18  Bruno Haible  <bruno@clisp.org>
67876
67877         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
67878         for printing 64-bit integers. Needed for mingw.
67879
67880 2007-05-18  Bruno Haible  <bruno@clisp.org>
67881
67882         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
67883         gl_FUNC_FREXPL_WORKS.
67884         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
67885
67886 2007-05-18  Bruno Haible  <bruno@clisp.org>
67887
67888         * modules/frexpl-nolibm-tests: New file.
67889
67890         * modules/frexpl-nolibm: New file.
67891         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
67892
67893 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
67894
67895         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
67896         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
67897         GCC 4.2, which otherwise issues a lot of warnings.
67898         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
67899         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
67900         Likewise.
67901         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
67902         * modules/iconv_open (iconv.h): Likewise.
67903         * modules/locale (locale.h): Likewise.
67904         * modules/netinet_in (netinet/in.h): Likewise.
67905         * modules/sys_select (sys_select.h): Likewise.
67906         * modules/sys_socket (sys/socket.h): Likewise.
67907         * modules/sys_stat (sys/stat.h): Likewise.
67908         * modules/sysexits (sysexits.h): Likewise.
67909         * modules/unistd (unistd.h): Likewise.
67910
67911 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67912
67913         * modules/closein-tests (Makefile.am): Distribute
67914         `test-closein.sh'.
67915
67916 2007-05-17  Bruno Haible  <bruno@clisp.org>
67917
67918         * tests/test-printf-posix.output: Renamed from
67919         tests/test-fprintf-posix.out.
67920         * modules/fprintf-posix-tests: Update.
67921         * modules/printf-posix-tests: Update.
67922         * modules/vfprintf-posix-tests: Update.
67923         * modules/vprintf-posix-tests: Update.
67924         * tests/test-fprintf-posix.sh: Update.
67925         * tests/test-printf-posix.sh: Update.
67926         * tests/test-vfprintf-posix.sh: Update.
67927         * tests/test-vprintf-posix.sh: Update.
67928         Reported by Ralf Wildenhues.
67929
67930 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
67931
67932         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
67933         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
67934         GCC 4.2, which otherwise issues a lot of warnings.
67935         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
67936         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
67937         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
67938         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
67939         it should no longer be needed.
67940         * lib/string_.h: Likewise.
67941         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
67942         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
67943         * modules/inttypes (inttypes.h): Likewise.
67944         * modules/math (math.h): Likewise.
67945         * modules/search (search.h): Likewise.
67946         * modules/signal (signal.h): Likewise.
67947         * modules/stdint (stdint.h): Likewise.
67948         * modules/stdio (stdio.h): Likewise.
67949         * modules/stdlib (stdlib.h): Likewise.
67950         * modules/string (string.h): Likewise.
67951         * modules/sys_time (sys/time.h): Likewise.
67952         * modules/time (time.h): Likewise.
67953         * modules/wchar (wchar.h): Likewise.
67954         * modules/wctype (wtype.h): Likewise.
67955
67956 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
67957
67958         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
67959
67960 2007-05-13  Bruno Haible  <bruno@clisp.org>
67961
67962         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
67963         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
67964         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
67965         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
67966         (gl_PREREQ_STRTOK_R): Don't require it here.
67967
67968 2007-05-13  Bruno Haible  <bruno@clisp.org>
67969
67970         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
67971         when used in C++ mode.
67972
67973 2007-05-12  Bruno Haible  <bruno@clisp.org>
67974
67975         * lib/linebuffer.h: Tweak doc.
67976         * lib/linebuffer.c: Likewise.
67977
67978 2007-05-12  James Youngman  <jay@gnu.org>
67979
67980         * lib/linebuffer.c (readlinebuffer_delim): New function,
67981         like readlinebuffer, but use a caller-specified delimiter.
67982         (readlinebuffer): Just call readlinebuffer_delim with '\n'
67983         as the delimiter.
67984         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
67985
67986 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
67987
67988         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
67989         * modules/openat (Files): Remove openat-die.c.
67990         (Depends-on): Add openat-die.
67991         * modules/openat-die: New module.
67992
67993 2007-05-06  Bruno Haible  <bruno@clisp.org>
67994
67995         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
67996         Update with info about Cygwin.
67997         * doc/functions/fprintf.texi: Update.
67998         * doc/functions/printf.texi: Update.
67999         * doc/functions/snprintf.texi: Update.
68000         * doc/functions/sprintf.texi: Update.
68001         * doc/functions/vfprintf.texi: Update.
68002         * doc/functions/vprintf.texi: Update.
68003         * doc/functions/vsnprintf.texi: Update.
68004         * doc/functions/vsprintf.texi: Update.
68005         Reported by Eric Blake.
68006
68007 2007-05-06  Bruno Haible  <bruno@clisp.org>
68008
68009         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
68010         padding ourselves for the floating-point directives.
68011         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
68012         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
68013         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
68014         gl_PRINTF_FLAG_ZERO and test its result. Invoke
68015         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
68016         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
68017         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
68018         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
68019         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
68020         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
68021         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
68022         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
68023         * tests/test-snprintf-posix.h (test_function): Also check the width
68024         and some flags in the %f directive.
68025         * tests/test-sprintf-posix.h (test_function): Likewise.
68026         * tests/test-vasnprintf-posix.c (test_function): Likewise.
68027         * tests/test-vasprintf-posix.c (test_function): Likewise.
68028         * doc/functions/fprintf.texi: Update.
68029         * doc/functions/printf.texi: Update.
68030         * doc/functions/snprintf.texi: Update.
68031         * doc/functions/sprintf.texi: Update.
68032         * doc/functions/vfprintf.texi: Update.
68033         * doc/functions/vprintf.texi: Update.
68034         * doc/functions/vsnprintf.texi: Update.
68035         * doc/functions/vsprintf.texi: Update.
68036
68037 2007-05-06  Bruno Haible  <bruno@clisp.org>
68038
68039         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
68040         pass the ' flag character to sprintf or snprintf.
68041         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
68042         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
68043         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
68044         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
68045         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
68046         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
68047         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
68048         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
68049         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
68050         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
68051         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
68052         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
68053         * tests/test-snprintf-posix.h (test_function): Also check the grouping
68054         flag.
68055         * tests/test-sprintf-posix.h (test_function): Likewise.
68056         * tests/test-vasnprintf-posix.c (test_function): Likewise.
68057         * tests/test-vasprintf-posix.c (test_function): Likewise.
68058         * doc/functions/fprintf.texi: Update.
68059         * doc/functions/printf.texi: Update.
68060         * doc/functions/snprintf.texi: Update.
68061         * doc/functions/sprintf.texi: Update.
68062         * doc/functions/vfprintf.texi: Update.
68063         * doc/functions/vprintf.texi: Update.
68064         * doc/functions/vsnprintf.texi: Update.
68065         * doc/functions/vsprintf.texi: Update.
68066
68067 2007-05-01  Bruno Haible  <bruno@clisp.org>
68068
68069         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
68070
68071 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
68072
68073         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
68074         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
68075
68076 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
68077
68078         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
68079         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
68080         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
68081
68082 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
68083
68084         * lib/argp-help.c (struct hol_entry): New member `ord'.
68085         (HOL_ENTRY_PTRCMP): Use ord for comparison
68086         (hol_sort): Initialize ord.
68087
68088 2007-05-01  Bruno Haible  <bruno@clisp.org>
68089
68090         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
68091         Reported by Eric Blake.
68092         * doc/gnulib.texi (Function Substitutes): Update.
68093
68094 2007-05-01  Bruno Haible  <bruno@clisp.org>
68095
68096         * doc/functions.texi: Remove file, now redundant through
68097         doc/functions/*.texi.
68098
68099 2007-05-01  Bruno Haible  <bruno@clisp.org>
68100
68101         * modules/argp (Depends-on): Add sleep.
68102
68103 2007-05-01  Bruno Haible  <bruno@clisp.org>
68104
68105         * modules/sleep-tests: New file.
68106         * tests/test-sleep.c: New file.
68107
68108         * modules/sleep: New file.
68109         * lib/sleep.c: New file.
68110         * m4/sleep.m4: New file.
68111         * lib/unistd_.h (sleep): New declaration.
68112         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
68113         HAVE_SLEEP.
68114         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
68115         * doc/functions/sleep.texi: Document the sleep module.
68116
68117 2007-05-01  Bruno Haible  <bruno@clisp.org>
68118
68119         * lib/sigprocmask.h: Remove file.
68120         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
68121         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
68122         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
68123         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
68124         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
68125         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
68126         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
68127         HAVE_SIGSET_T as a shell variable.
68128         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
68129         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
68130         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
68131         (Depends-on): Add signal. Remove verify.
68132         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
68133         (Include): Mention <signal.h> instead of sigprocmask.h.
68134         * NEWS: Mention the change.
68135         * lib/fatal-signal.c: Don't include sigprocmask.h.
68136
68137 2007-05-01  Bruno Haible  <bruno@clisp.org>
68138
68139         * modules/signal: New file.
68140         * lib/signal_.h: New file.
68141         * m4/signal_h.m4: New file.
68142
68143 2007-05-01  Bruno Haible  <bruno@clisp.org>
68144
68145         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
68146         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
68147         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
68148         HAVE_WCTYPE_CTMP_BUG into wctype.h.
68149
68150 2007-05-01  Bruno Haible  <bruno@clisp.org>
68151
68152         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
68153         configure time.
68154         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
68155         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
68156         * modules/sys_stat (Makefile.am): Substitute their values into
68157         sys/stat.h.
68158
68159 2007-05-01  Bruno Haible  <bruno@clisp.org>
68160
68161         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
68162         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
68163         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
68164
68165 2007-05-01  Bruno Haible  <bruno@clisp.org>
68166
68167         * doc/header/assert.texi: Undo last change: don't mention the gnulib
68168         'assert' module here.
68169
68170 2007-05-01  Bruno Haible  <bruno@clisp.org>
68171
68172         * doc/functions/*.texi: New files.
68173         * doc/functions/google-ranking.txt: New file.
68174         * doc/gnulib.texi (Function Substitutes): New chapter.
68175         (ctime, inet_ntoa): Remove sections.
68176         * doc/ctime.texi: Remove file.
68177         * doc/inet_ntoa.texi: Remove file.
68178         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
68179         dependencies.
68180         (%.info): New rule, specifying a --reference-limit.
68181
68182 2007-05-01  Bruno Haible  <bruno@clisp.org>
68183
68184         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
68185
68186 2007-05-01  Bruno Haible  <bruno@clisp.org>
68187
68188         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
68189         the portability of 'mkdir' to mingw systems.
68190
68191 2007-05-01  Bruno Haible  <bruno@clisp.org>
68192
68193         * doc/headers/google-ranking.txt: New file.
68194
68195 2007-04-30  Eric Blake  <ebb9@byu.net>
68196
68197         Prefer fseeko to fseek.
68198         * modules/getpass (Depends-on): Add fseeko.
68199         * lib/getpass.c (getpass): Use fseeko, not fseek.
68200
68201 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
68202
68203         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
68204         assumes the sorting is stable, while most qsort implementations
68205         are not.  Use argument addresses to ensure they never compare as
68206         equal.
68207
68208         * tests/test-argp-2.sh (usage-indent test): Fix output
68209         (func_compare): Restore diff options
68210         * tests/test-argp.c: Restore #include "progname.h"
68211
68212 2007-04-29  Bruno Haible  <bruno@clisp.org>
68213
68214         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
68215         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
68216         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
68217         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
68218         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
68219         (configure.ac): Define CHECK_SNPRINTF_POSIX.
68220         (TESTS, check_PROGRAMS): Add test-snprintf.
68221         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
68222         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
68223         (TESTS, check_PROGRAMS): Add test-vsnprintf.
68224         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
68225         assertions that fail on HP-UX, OSF/1, or IRIX.
68226         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
68227
68228 2007-04-29  Bruno Haible  <bruno@clisp.org>
68229
68230         * MODULES.html.sh (posix_functions): Remove 'contents'.
68231
68232 2007-04-29  Karl Berry  <karl@gnu.org>
68233
68234         * config/srclist.txt (gendocs_template_min): new entry.
68235
68236 2007-04-29  Bruno Haible  <bruno@clisp.org>
68237
68238         Work around fpurge bug on BSD systems.
68239         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
68240         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
68241         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
68242         fpurge to rpl_fpurge if the system already has this function.
68243         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
68244         the case where the system already has this function. Correct invariants
68245         on BSD systems.
68246         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
68247         BSD systems.
68248
68249 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
68250
68251         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
68252         proposed by Sven Verdoolaege.
68253
68254         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
68255         options.
68256         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
68257         (usage and help tests): Update
68258
68259 2007-04-29  Bruno Haible  <bruno@clisp.org>
68260
68261         * tests/test-fflush.c (main): Use a file of size 17, not 10.
68262         Print more information in case of failure. Disable a test on BeOS.
68263
68264 2007-04-29  Bruno Haible  <bruno@clisp.org>
68265
68266         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
68267         This helps debugging on systems on which no gdb is available.
68268
68269 2007-04-29  Bruno Haible  <bruno@clisp.org>
68270
68271         * lib/freading.h: Improve comments.
68272         * lib/fwriting.h: Likewise.
68273         * tests/test-freading.c (main): Don't check freading immediately after
68274         repositioning. Needed for glibc.
68275
68276 2007-04-29  Bruno Haible  <bruno@clisp.org>
68277
68278         * lib/freading.c (freading): Trivial simplification.
68279
68280 2007-04-28  Bruno Haible  <bruno@clisp.org>
68281
68282         * tests/test-fwriting.c (main): Also test the interaction between
68283         fflush and fwriting.
68284         * modules/fwriting-tests (Depends-on): Add fflush.
68285
68286         * tests/test-freading.c (main): Also test the interaction between
68287         fflush and freading.
68288         * modules/freading-tests (Depends-on): Add fflush.
68289
68290 2007-04-28  Bruno Haible  <bruno@clisp.org>
68291
68292         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
68293         fseeko and ftello.
68294         Suggested by Eric Blake.
68295
68296 2007-04-28  Jim Meyering  <jim@meyering.net>
68297
68298         Avoid false-negative in gl_STDINT_H's C99 conformance test.
68299         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
68300         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
68301
68302 2007-04-27  Eric Blake  <ebb9@byu.net>
68303
68304         * doc/headers/assert.texi (assert.h): Document assert module use.
68305
68306 2007-04-27  Bruno Haible  <bruno@clisp.org>
68307
68308         * doc/headers/*.texi: New files.
68309         * doc/gnulib.texi (Header File Substitutes): New chapter.
68310         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
68311         dependencies.
68312         (standards.info ,standards.html, standards.dvi): Update dependencies.
68313         (mostlyclean, clean): New targets.
68314
68315 2007-04-27  Bruno Haible  <bruno@clisp.org>
68316
68317         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
68318         * modules/sysexits (Files, Makefile.am): Update.
68319
68320         * lib/sys_socket_.h: Renamed from lib/socket_.h.
68321         * modules/sys_socket (Files, Makefile.am): Update.
68322
68323         * lib/sys_stat_.h: Renamed from lib/stat_.h.
68324         * modules/sys_stat (Files, Makefile.am): Update.
68325
68326 2007-04-27  Eric Blake  <ebb9@byu.net>
68327
68328         * lib/freading.h: Improve comments.
68329         * lib/fwriting.h: Likewise.
68330         * lib/fflush.c: Likewise.
68331
68332         Fix closein for mingw.
68333         * modules/closein-tests: Add tests for closein.
68334         * tests/test-closein.c: New file.
68335         * tests/test-closein.sh: Likewise.
68336         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
68337         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
68338
68339 2007-04-27  Bruno Haible  <bruno@clisp.org>
68340
68341         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
68342         version is < 6.
68343         * lib/math_.h [__DECC]: Likewise.
68344         * lib/stdio_.h [__DECC]: Likewise.
68345         * lib/stdlib_.h [__DECC]: Likewise.
68346         * lib/string_.h [__DECC]: Likewise.
68347         * lib/time_.h [__DECC]: Likewise.
68348         * lib/wchar_.h [__DECC]: Likewise.
68349         * lib/wctype_.h [__DECC]: Likewise.
68350
68351 2007-04-27  Bruno Haible  <bruno@clisp.org>
68352
68353         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
68354
68355 2007-04-27  Bruno Haible  <bruno@clisp.org>
68356
68357         * lib/fflush.c: Add comments.
68358         * modules/fpurge-tests (Depends-on): Add fflush.
68359         * modules/freadable-tests (Depends-on): Likewise.
68360         * modules/fwritable-tests (Depends-on): Likewise.
68361
68362 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
68363
68364         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
68365         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
68366         Report by Bruno Haible <bruno@clisp.org>.
68367
68368 2007-04-26  Eric Blake  <ebb9@byu.net>
68369
68370         Fix fflush on mingw.
68371         * modules/fflush (Depends-on): Add freading.
68372         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
68373         but unread data.
68374
68375 2007-04-26  Eric Blake  <ebb9@byu.net>
68376         and Bruno Haible  <bruno@clisp.org>
68377
68378         Implement freading and fwriting.
68379         * lib/freading.c: New file.
68380         * lib/freading.h: Likewise.
68381         * m4/freading.m4: Likewise.
68382         * modules/freading: Likewise.
68383         * modules/freading-tests: Likewise.
68384         * tests/test-freading.c: Likewise.
68385         * lib/fwriting.c: New file.
68386         * lib/fwriting.h: Likewise.
68387         * m4/fwriting.m4: Likewise.
68388         * modules/fwriting: Likewise.
68389         * modules/fwriting-tests: Likewise.
68390         * tests/test-fwriting.c: Likewise.
68391         * MODULES.html.sh (File stream based Input/Output): Mention them.
68392
68393 2007-04-26  Bruno Haible  <bruno@clisp.org>
68394
68395         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
68396         'long' when we assume it.
68397         Suggested by Eric Blake.
68398
68399 2007-04-26  Bruno Haible  <bruno@clisp.org>
68400
68401         Ensure fseeko, ftello are declared on glibc systems.
68402         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
68403         * modules/fseeko (configure.ac-early): Likewise.
68404         * modules/ftello (configure.ac-early): Likewise.
68405         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
68406         AC_FUNC_FSEEKO for this.
68407         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
68408         (gl_CHECK_FSEEKO): Remove macro.
68409
68410 2007-04-26  Bruno Haible  <bruno@clisp.org>
68411
68412         * tests/test-fflush.c (main): Also check the ftell result after
68413         fflush and fseek/fseeko.
68414         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
68415         file descriptor position cache in the stream.
68416         * lib/fseeko.c (rpl_fseeko): Likewise.
68417
68418 2007-04-26  Bruno Haible  <bruno@clisp.org>
68419
68420         * modules/fflush-tests (Depends-on): Add fseeko.
68421
68422 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
68423             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68424
68425         * lib/argz_.h: ensure error_t definition is obtained in same
68426         mechanism system argz.h would have.
68427         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
68428         argz facilities are known bad.  Err on the side of caution if
68429         cross-compiling.
68430
68431 2007-04-25  Eric Blake  <ebb9@byu.net>
68432
68433         * lib/fpurge.c (includes): Use stdlib.h for free.
68434         * tests/test-fflush.c (main): Also test fflush-fseeko.
68435
68436 2007-04-25  Bruno Haible  <bruno@clisp.org>
68437
68438         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
68439         * lib/fseeko.c: New file.
68440         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
68441         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
68442         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
68443         gl_FUNC_FSEEKO.
68444         (gl_FUNC_FSEEKO): Invoke it.
68445         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
68446         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
68447         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
68448
68449 2007-04-25  Bruno Haible  <bruno@clisp.org>
68450
68451         * modules/fflush (Depends-on): Add ftello.
68452
68453 2007-04-25  Bruno Haible  <bruno@clisp.org>
68454
68455         * modules/ftello-tests: New file.
68456         * tests/test-ftello.c: New file.
68457
68458         * modules/ftello: New file.
68459         * m4/ftello.m4: New file.
68460         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
68461         HAVE_FTELLO.
68462         * lib/stdio_.h (ftello): New declaration.
68463         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
68464         HAVE_FTELLO.
68465
68466 2007-04-25  Bruno Haible  <bruno@clisp.org>
68467
68468         * modules/fseeko-tests: New file.
68469         * tests/test-fseeko.c: New file.
68470
68471         * modules/fseeko: New file.
68472         * m4/fseeko.m4: New file.
68473         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
68474         HAVE_FSEEKO.
68475         * lib/stdio_.h (fseeko): New declaration.
68476         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
68477         HAVE_FSEEKO.
68478
68479 2007-04-25  Bruno Haible  <bruno@clisp.org>
68480
68481         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
68482
68483 2007-04-25  Bruno Haible  <bruno@clisp.org>
68484
68485         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
68486         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
68487         * tests/test-unistd.c: Likewise.
68488         * tests/test-fcntl.c: Likewise.
68489
68490 2007-04-23  Eric Blake  <ebb9@byu.net>
68491
68492         * lib/fflush.c: Fix missing include.
68493         Reported by Bruno Haible.
68494
68495 2007-04-23  Bruno Haible  <bruno@clisp.org>
68496
68497         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
68498         Reported by Eric Blake.
68499
68500 2007-04-23  Bruno Haible  <bruno@clisp.org>
68501
68502         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
68503
68504 2007-04-23  Bruno Haible  <bruno@clisp.org>
68505
68506         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
68507
68508 2007-04-23  Bruno Haible  <bruno@clisp.org>
68509
68510         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
68511         Needed on HP-UX 11.
68512
68513 2007-04-16  Eric Blake  <ebb9@byu.net>
68514
68515         Make fflush rely on fpurge.
68516         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
68517         open coding all variants.
68518         * modules/fflush (Depends-on): Add fpurge and unistd.
68519         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
68520         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
68521
68522         Fix --with-tests compilation on cygwin.
68523         * modules/argmatch-tests (Makefile.am): List gnulib library first
68524         in LDADD.
68525         * modules/argp-tests (Makefile.am): Likewise.
68526         * modules/array-list-tests (Makefile.am): Likewise.
68527         * modules/array-oset-tests (Makefile.am): Likewise.
68528         * modules/avltree-list-tests (Makefile.am): Likewise.
68529         * modules/avltree-oset-tests (Makefile.am): Likewise.
68530         * modules/avltreehash-list-tests (Makefile.am): Likewise.
68531         * modules/carray-list-tests (Makefile.am): Likewise.
68532         * modules/dirname-tests (Makefile.am): Likewise.
68533         * modules/frexp-tests (Makefile.am): Likewise.
68534         * modules/isnanl-tests (Makefile.am): Likewise.
68535         * modules/linked-list-tests (Makefile.am): Likewise.
68536         * modules/linkedhash-list-tests (Makefile.am): Likewise.
68537         * modules/lock-tests (Makefile.am): Likewise.
68538         * modules/rbtree-list-tests (Makefile.am): Likewise.
68539         * modules/rbtree-oset-tests (Makefile.am): Likewise.
68540         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
68541         * modules/tls-tests (Makefile.am): Likewise.
68542         * modules/tsearch-tests (Makefile.am): Likewise.
68543         * modules/xvasprintf-tests (Makefile.am): Likewise.
68544
68545         Fix fpurge for cygwin.
68546         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
68547         value.
68548         * modules/fpurge-tests (Depends-on): Clean up trash.
68549
68550 2007-04-16  Simon Josefsson  <simon@josefsson.org>
68551
68552         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
68553
68554         * m4/autobuild.m4: Re-indent.
68555
68556 2007-04-13  Bruno Haible  <bruno@clisp.org>
68557
68558         * modules/fpurge-tests: New file.
68559         * tests/test-fpurge.c: New file.
68560
68561         * modules/fpurge: New file.
68562         * lib/fpurge.h: New file.
68563         * lib/fpurge.c: New file.
68564         * m4/fpurge.m4: New file.
68565
68566 2007-04-13  Bruno Haible  <bruno@clisp.org>
68567
68568         * modules/fbufmode-tests: New file.
68569         * tests/test-fbufmode.c: New file.
68570
68571         * modules/fbufmode: New file.
68572         * lib/fbufmode.h: New file.
68573         * lib/fbufmode.c: New file.
68574         * m4/fbufmode.m4: New file.
68575
68576 2007-04-13  Bruno Haible  <bruno@clisp.org>
68577
68578         * modules/fwritable-tests: New file.
68579         * tests/test-fwritable.c: New file.
68580
68581         * modules/fwritable: New file.
68582         * lib/fwritable.h: New file.
68583         * lib/fwritable.c: New file.
68584         * m4/fwritable.m4: New file.
68585
68586 2007-04-13  Bruno Haible  <bruno@clisp.org>
68587
68588         * modules/freadable-tests: New file.
68589         * tests/test-freadable.c: New file.
68590
68591         * modules/freadable: New file.
68592         * lib/freadable.h: New file.
68593         * lib/freadable.c: New file.
68594         * m4/freadable.m4: New file.
68595
68596 2007-04-13  Bruno Haible  <bruno@clisp.org>
68597
68598         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
68599         MOSTLYCLEANFILES.
68600
68601 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
68602
68603         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
68604         gzip bootstrap.conf to avoid dragging in i18n machinery.
68605         (gnulib_tool_option): Use it.
68606
68607 2007-04-13  Bruno Haible  <bruno@clisp.org>
68608
68609         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
68610         %F directives.
68611         * tests/test-vasprintf-posix.c (test_function): Likewise.
68612         * tests/test-snprintf-posix.h (test_function): Likewise.
68613         * tests/test-sprintf-posix.h (test_function): Likewise.
68614         * tests/test-fprintf-posix.h (test_function): Likewise.
68615         * tests/test-printf-posix.h (test_function): Likewise.
68616         * tests/test-fprintf-posix.out: Likewise.
68617
68618 2007-04-13  Bruno Haible  <bruno@clisp.org>
68619
68620         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
68621         * modules/tls-tests (configure.ac): Likewise.
68622         Reported by Arto C. Nirkko <anirkko@insel.ch>.
68623
68624 2007-04-13  Bruno Haible  <bruno@clisp.org>
68625
68626         * lib/tls.c (glthread_tls_get): Fix return type.
68627         Patch by Arto C. Nirkko <anirkko@insel.ch>.
68628
68629 2007-04-12  Eric Blake  <ebb9@byu.net>
68630
68631         * modules/gettime (Depends-on): Remove gettime.
68632         Reported by Dmitry V. Levin.
68633
68634 2007-04-12  Bruno Haible  <bruno@clisp.org>
68635
68636         * modules/fflush (Include): Mention <stdio.h>.
68637         * modules/strtoimax (Include): Mention <inttypes.h>.
68638         * modules/strtoumax (Include): Likewise.
68639
68640 2007-04-12  Eric Blake  <ebb9@byu.net>
68641
68642         * .cvsignore: New file.
68643         * .gitignore: Likewise.
68644
68645 2007-04-12  Bruno Haible  <bruno@clisp.org>
68646
68647         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
68648         not before, since $(LDADD) often contains libgnu.a.
68649         * modules/striconv-tests (test_striconv_LDADD): Likewise.
68650         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
68651         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
68652         Needed on Cygwin.
68653
68654 2007-04-12  Eric Blake  <ebb9@byu.net>
68655
68656         Work around glibc's failure to flush stdin on fclose.
68657         * lib/closein.c (close_stdin): Flush stdin before closing.
68658
68659         Work around glibc's failure to reset seekable stdin on exit.
68660         * modules/closein: New module.
68661         * lib/closein.c: New file.
68662         * lib/closein.h: Likewise.
68663         * m4/closein.m4: Likewise.
68664         * MODULES.html.sh (File stream based Input/Output): Document it.
68665
68666 2007-04-12  Simon Josefsson  <simon@josefsson.org>
68667
68668         * gnulib-tool: Rename generated 'autobuild' script to
68669         'do-autobuild' in --create-megatestdir output.
68670
68671         * doc/gnulib.texi (Build robot for gnulib): Fix.
68672
68673 2007-04-12  Simon Josefsson  <simon@josefsson.org>
68674
68675         * modules/sysexits (Depends-on): Add absolute-header.
68676
68677 2007-04-12  Eric Blake  <ebb9@byu.net>
68678
68679         No need to preserve errno on success.
68680         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
68681         Reported by Bruno Haible.
68682
68683 2007-04-12  Simon Josefsson  <simon@josefsson.org>
68684
68685         * MODULES.html.sh (Support for maintaining and releasing
68686         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
68687
68688 2007-04-12  Simon Josefsson  <simon@josefsson.org>
68689
68690         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
68691
68692 2007-04-12  Simon Josefsson  <simon@josefsson.org>
68693
68694         * modules/autobuild: New module.
68695
68696         * m4/autobuild.m4: New file.
68697
68698 2007-04-11  Bruno Haible  <bruno@clisp.org>
68699
68700         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
68701         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
68702         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
68703         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
68704         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
68705         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
68706         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
68707         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
68708         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
68709         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
68710         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
68711         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
68712         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
68713         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
68714         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
68715         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
68716         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
68717         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
68718         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
68719         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
68720         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
68721         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
68722         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
68723         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
68724         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
68725         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
68726         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
68727         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
68728         Reported by Eric Blake.
68729
68730 2007-04-11  Bruno Haible  <bruno@clisp.org>
68731
68732         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
68733
68734 2007-04-10  Bruno Haible  <bruno@clisp.org>
68735
68736         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
68737         for NaN and Infinity. Needed on FreeBSD 6.1.
68738         * tests/test-vasnprintf-posix.c (test_function): Undo last change
68739         regarding results for "%010a" of Infinity and NaN.
68740         * tests/test-vasprintf-posix.c (test_function): Likewise.
68741         * tests/test-snprintf-posix.h (test_function): Likewise.
68742         * tests/test-sprintf-posix.h (test_function): Likewise.
68743         * tests/test-fprintf-posix.h (test_function): Likewise.
68744         * tests/test-printf-posix.h (test_function): Likewise.
68745         * tests/test-fprintf-posix.out: Likewise.
68746
68747 2007-04-10  Bruno Haible  <bruno@clisp.org>
68748
68749         * modules/locale-tests: New file.
68750         * tests/test-locale.c: New file.
68751
68752         * modules/locale: New file.
68753         * lib/locale_.h: New file.
68754         * m4/locale_h.m4: New file.
68755
68756 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
68757             Bruno Haible  <bruno@clisp.org>
68758
68759         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
68760         be determined, test for availability of the copysignf, copysign,
68761         copysignl functions.
68762         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
68763         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
68764         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
68765
68766 2007-04-09  Eric Blake  <ebb9@byu.net>
68767
68768         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
68769         * modules/stdio (Makefile.am): Support fflush.
68770         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
68771         * modules/fflush: New file.
68772         * lib/fflush.c: Likewise.
68773         * m4/fflush.m4: Likewise.
68774         * modules/fflush-tests: New test.
68775         * tests/test-fflush.c: Likewise.
68776         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
68777
68778 2007-04-06  Bruno Haible  <bruno@clisp.org>
68779
68780         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
68781         (VASNPRINTF): Use signbit for faster determination whether to print a
68782         minus sign.
68783         * modules/vasnprintf (Files): Remove lib/float+.h.
68784         * modules/fprintf-posix (Depends-on): Add signbit.
68785         * modules/snprintf-posix (Depends-on): Likewise.
68786         * modules/sprintf-posix (Depends-on): Likewise.
68787         * modules/vasnprintf-posix (Depends-on): Likewise.
68788         * modules/vasprintf-posix (Depends-on): Likewise.
68789         * modules/vfprintf-posix (Depends-on): Likewise.
68790         * modules/vsnprintf-posix (Depends-on): Likewise.
68791         * modules/vsprintf-posix (Depends-on): Likewise.
68792
68793 2007-04-06  Bruno Haible  <bruno@clisp.org>
68794
68795         * tests/test-frexp.c (main): Test also the sign bit of zero results.
68796         * tests/test-frexpl.c (main): Likewise.
68797         * tests/test-ldexpl.c (main): Likewise.
68798         * modules/frexp-tests (Depends-on): Add signbit.
68799         * modules/frexpl-tests (Depdends-on): Likewise.
68800         * modules/ldexpl-tests (Depdends-on): Likewise.
68801
68802 2007-04-06  Bruno Haible  <bruno@clisp.org>
68803
68804         * modules/signbit-tests: New file.
68805         * tests/test-signbit.c: New file.
68806
68807         * modules/signbit: New file.
68808         * lib/signbitf.c: New file.
68809         * lib/signbitd.c: New file.
68810         * lib/signbitl.c: New file.
68811         * m4/signbit.m4: New file.
68812         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
68813         (signbit): New macro.
68814         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
68815         REPLACE_SIGNBIT.
68816         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
68817         REPLACE_FREXPL into math.h.
68818
68819 2007-04-06  Bruno Haible  <bruno@clisp.org>
68820
68821         * modules/isnanf-nolibm-tests: New file.
68822         * tests/test-isnanf.c: New file.
68823
68824         * modules/isnanf-nolibm: New file.
68825         * lib/isnanf.h: New file.
68826         * lib/isnanf.c: New file.
68827         * lib/isnan.c: Consider the USE_FLOAT macro.
68828         * m4/isnanf.m4: New file.
68829
68830 2007-04-06  Bruno Haible  <bruno@clisp.org>
68831
68832         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
68833         (Link): New section.
68834
68835         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
68836
68837 2007-04-06  Bruno Haible  <bruno@clisp.org>
68838
68839         Assume the 'long double' type.
68840         * m4/longdouble.m4: Remove file.
68841         * config/srclist.txt: Don't mention longdouble.m4.
68842         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
68843         * lib/float+.h: Likewise.
68844         * lib/frexp.c: Likewise.
68845         * lib/printf-args.h: Likewise.
68846         * lib/printf-args.c: Likewise.
68847         * lib/printf-frexp.c: Likewise.
68848         * lib/printf-parse.c: Likewise.
68849         * lib/vasnprintf.c: Likewise.
68850         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
68851         * m4/intl.m4: Likewise.
68852         * m4/isnanl.m4: Likewise.
68853         * m4/printf.m4: Likewise.
68854         * m4/printf-frexpl.m4: Likewise.
68855         * m4/vasnprintf.m4: Likewise.
68856         * modules/allocsa (Files): Remove m4/longdouble.m4.
68857         * modules/gettext (Files): Likewise.
68858         * modules/relocatable-prog-wrapper (Files): Likewise.
68859         * modules/vasnprintf (Files): Likewise.
68860         * modules/isnanl (Files): Likewise.
68861         (Include): Simplify.
68862         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
68863         (Include): Simplify.
68864         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
68865         (Include): Simplify.
68866         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
68867         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
68868         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
68869         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
68870         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
68871         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
68872         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
68873         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
68874         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
68875         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
68876         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
68877         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
68878         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
68879         * tests/test-isnanl.c: Likewise.
68880         * tests/test-snprintf-posix.h: Likewise.
68881         * tests/test-sprintf-posix.h: Likewise.
68882         * tests/test-vasnprintf-posix.c: Likewise.
68883         * tests/test-vasnprintf-posix2.c: Likewise.
68884         * tests/test-vasprintf-posix.c: Likewise.
68885
68886 2007-04-06  Bruno Haible  <bruno@clisp.org>
68887
68888         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
68889         * lib/math_.h [__DECC]: Include the overridden include file through
68890         #include_next, outside the double-inclusion guard.
68891         * lib/stdio_.h [__DECC]: Likewise.
68892         * lib/stdlib_.h [__DECC]: Likewise.
68893         * lib/string_.h [__DECC]: Likewise.
68894         * lib/time_.h [__DECC]: Likewise.
68895         * lib/wchar_.h [__DECC]: Likewise.
68896         * lib/wctype_.h [__DECC]: Likewise.
68897         * lib/inttypes_.h [__DECC]: Likewise.
68898         Reported by Albert Chin <china@thewrittenword.com> in
68899         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
68900
68901 2007-04-04  Eric Blake  <ebb9@byu.net>
68902
68903         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
68904         1.5.x.
68905
68906 2007-04-04  Bruno Haible  <bruno@clisp.org>
68907
68908         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
68909         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
68910
68911 2007-04-04  Bruno Haible  <bruno@clisp.org>
68912
68913         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
68914         results for "%010a" of Infinity and NaN.
68915         * tests/test-vasprintf-posix.c (test_function): Likewise.
68916         * tests/test-snprintf-posix.h (test_function): Likewise.
68917         * tests/test-sprintf-posix.h (test_function): Likewise.
68918         * tests/test-fprintf-posix.h (test_function): Remove these tests.
68919         * tests/test-printf-posix.h (test_function): Likewise.
68920         * tests/test-fprintf-posix.out: Update.
68921         Needed for FreeBSD 6.1.
68922
68923 2007-04-04  Bruno Haible  <bruno@clisp.org>
68924
68925         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
68926         directly used by the gnulib modules nor by gnulib-tool.
68927
68928 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
68929
68930         * DEPENDENCIES: Give overall description of version dependency
68931         desirability.  Use more-typical names for apps.
68932         Add shell, coreutils, diffutils, grep, tar, gzip.
68933
68934 2007-04-04  Simon Josefsson  <simon@josefsson.org>
68935
68936         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
68937
68938 2007-04-04  Karl Berry  <karl@gnu.org>
68939
68940         * MODULES.html.sh (func_module): missing '.
68941
68942 2007-04-03  Bruno Haible  <bruno@clisp.org>
68943
68944         * modules/argmatch-tests (Makefile.am): New variable
68945         test_argmatch_LDADD.
68946         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
68947         * modules/array-list-tests (Makefile.am): New variable
68948         test_array_list_LDADD.
68949         * modules/array-oset-tests (Makefile.am): New variable
68950         test_array_oset_LDADD.
68951         * modules/avltree-list-tests (Makefile.am): New variable
68952         test_avltree_list_LDADD.
68953         * modules/avltree-oset-tests (Makefile.am): New variable
68954         test_avltree_oset_LDADD.
68955         * modules/avltreehash-list-tests (Makefile.am): New variable
68956         test_avltreehash_list_LDADD.
68957         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
68958         test_canonicalize_lgpl_LDADD.
68959         * modules/carray-list-tests (Makefile.am): New variable
68960         test_carray_list_LDADD.
68961         * modules/dirname-tests (Makefile.am): New variable
68962         test_dirname_LDADD.
68963         * modules/linked-list-tests (Makefile.am): New variable
68964         test_linked_list_LDADD.
68965         * modules/linkedhash-list-tests (Makefile.am): New variable
68966         test_linkedhash_list_LDADD.
68967         * modules/rbtree-list-tests (Makefile.am): New variable
68968         test_rbtree_list_LDADD.
68969         * modules/rbtree-oset-tests (Makefile.am): New variable
68970         test_rbtree_oset_LDADD.
68971         * modules/rbtreehash-list-tests (Makefile.am): New variable
68972         test_rbtreehash_list_LDADD.
68973         * modules/xvasprintf-tests (Makefile.am): New variable
68974         test_xvasprintf_LDADD.
68975         Reported by Eric Blake.
68976
68977 2007-04-03  Eric Blake  <ebb9@byu.net>
68978
68979         * DEPENDENCIES: Weaken m4 requirements.
68980
68981 2007-04-03  Bruno Haible  <bruno@clisp.org>
68982
68983         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
68984         * modules/isnanl-tests (configure.ac): Likewise.
68985
68986 2007-04-03  Ben Pfaff  <blp@gnu.org>
68987
68988         * modules/iconv_open: Add $(srcdir)/ to source directory
68989         references in Makefile fragments that call gperf, to fix VPATH
68990         builds.
68991
68992 2007-04-03  Bruno Haible  <bruno@clisp.org>
68993
68994         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
68995         * lib/ldexpl.c: Undo last change.
68996
68997 2007-04-03  Bruno Haible  <bruno@clisp.org>
68998
68999         * modules/printf-frexpl (Depends-on): Undo last change.
69000         (Files): Add m4/ldexpl.m4.
69001
69002 2007-04-03  Bruno Haible  <bruno@clisp.org>
69003
69004         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
69005         * modules/isnanl (Link): New section.
69006
69007         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
69008         * modules/frexp (Link): New section.
69009
69010         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
69011         * modules/frexpl (Link): New section.
69012
69013         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
69014         * modules/ldexpl (Link): New section.
69015
69016 2007-04-03  Bruno Haible  <bruno@clisp.org>
69017
69018         * modules/TEMPLATE-EXTENDED: New file.
69019         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
69020
69021 2007-04-03  Bruno Haible  <bruno@clisp.org>
69022
69023         * DEPENDENCIES: New file.
69024         Suggested by Simon Josefsson.
69025
69026 2007-04-03  Bruno Haible  <bruno@clisp.org>
69027
69028         * doc/gnulib.texi: Escape @.
69029
69030 2007-04-03  James Youngman  <jay@gnu.org>
69031         and Paul Eggert  <eggert@cs.ucla.edu>
69032
69033         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
69034         birthtime on all systems that have birthtime, not just those which
69035         use st_birthtimensec rather than st_birthtim.  Putting zero in
69036         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
69037         that the birth time is not available for files on an NFS mount.
69038
69039 2007-04-03  Simon Josefsson  <simon@josefsson.org>
69040
69041         * modules/memxor: Move back from crypto/, suggested by Bruno.
69042         * modules/crypto/hmac-sha1: Fix memxor dependency.
69043
69044         * modules/crypto/gc: Moved from ../.
69045
69046 2007-04-02  Eric Blake  <ebb9@byu.net>
69047
69048         * lib/ldexpl.c (includes): Avoid libm.
69049
69050         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
69051
69052 2007-04-02  Bruno Haible  <bruno@clisp.org>
69053
69054         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
69055         on IRIX.
69056
69057 2007-04-02  Bruno Haible  <bruno@clisp.org>
69058
69059         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
69060         x86 or x86_64 platforms running MacOS X.
69061         Reported by Ryan Schmidt <@ryandesign.com>.
69062
69063 2007-04-02  Bruno Haible  <bruno@clisp.org>
69064
69065         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
69066         i386.
69067
69068 2007-04-01  Simon Josefsson  <simon@josefsson.org>
69069
69070         * modules/crypto/arcfour: Moved from ../.
69071         * modules/crypto/arcfour-tests: Moved from ../.
69072         * modules/crypto/arctwo: Moved from ../.
69073         * modules/crypto/arctwo-tests: Moved from ../.
69074         * modules/crypto/des: Moved from ../.
69075         * modules/crypto/des-tests: Moved from ../.
69076         * modules/crypto/gc-arcfour: Moved from ../.
69077         * modules/crypto/gc-arcfour-tests: Moved from ../.
69078         * modules/crypto/gc-arctwo: Moved from ../.
69079         * modules/crypto/gc-arctwo-tests: Moved from ../.
69080         * modules/crypto/gc-des: Moved from ../.
69081         * modules/crypto/gc-des-tests: Moved from ../.
69082         * modules/crypto/gc-hmac-md5: Moved from ../.
69083         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
69084         * modules/crypto/gc-hmac-sha1: Moved from ../.
69085         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
69086         * modules/crypto/gc-md2: Moved from ../.
69087         * modules/crypto/gc-md2-tests: Moved from ../.
69088         * modules/crypto/gc-md4: Moved from ../.
69089         * modules/crypto/gc-md4-tests: Moved from ../.
69090         * modules/crypto/gc-md5: Moved from ../.
69091         * modules/crypto/gc-md5-tests: Moved from ../.
69092         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
69093         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
69094         * modules/crypto/gc-random: Moved from ../.
69095         * modules/crypto/gc-rijndael: Moved from ../.
69096         * modules/crypto/gc-rijndael-tests: Moved from ../.
69097         * modules/crypto/gc-sha1: Moved from ../.
69098         * modules/crypto/gc-sha1-tests: Moved from ../.
69099         * modules/crypto/gc-tests: Moved from ../.
69100         * modules/crypto/hmac-md5: Moved from ../.
69101         * modules/crypto/hmac-md5-tests: Moved from ../.
69102         * modules/crypto/hmac-sha1: Moved from ../.
69103         * modules/crypto/hmac-sha1-tests: Moved from ../.
69104         * modules/crypto/md2: Moved from ../.
69105         * modules/crypto/md2-tests: Moved from ../.
69106         * modules/crypto/md4: Moved from ../.
69107         * modules/crypto/md4-tests: Moved from ../.
69108         * modules/crypto/md5: Moved from ../.
69109         * modules/crypto/md5-tests: Moved from ../.
69110         * modules/crypto/memxor: Moved from ../.
69111         * modules/crypto/rijndael: Moved from ../.
69112         * modules/crypto/rijndael-tests: Moved from ../.
69113         * modules/crypto/sha1: Moved from ../.
69114
69115 2007-03-30  James Youngman  <jay@gnu.org>
69116
69117         * tests/test-stat-time.c (prepare_test): use chmod() rather than
69118         rename() to change the ctime of a file (because ctime is unaffected
69119         by rename on jfs2 on AIX 5.1).
69120         (main): Start by doing cleanup, in case a previous run failed leaving
69121         test files behind.
69122
69123 2007-03-31  Bruno Haible  <bruno@clisp.org>
69124
69125         Support old proprietary implementations of iconv.
69126         * modules/iconv_open: New file.
69127         * lib/iconv_.h: New file.
69128         * m4/iconv_h.m4: New file.
69129         * lib/iconv_open.c: New file.
69130         * lib/iconv_open-aix.gperf: New file.
69131         * lib/iconv_open-hpux.gperf: New file.
69132         * lib/iconv_open-irix.gperf: New file.
69133         * lib/iconv_open-osf.gperf: New file.
69134         * m4/iconv_open.m4: New file.
69135         * modules/linebreak (Depends-on): Add iconv_open.
69136         * modules/striconv (Depends-on): Likewise.
69137         * modules/striconveh (Depends-on): Likewise.
69138         * modules/unicodeio (Depends-on): Likewise.
69139         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
69140         (iconv_t)(-1).
69141         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
69142         conversion if cd is (iconv_t)(-1).
69143         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
69144         is not possible.
69145
69146 2007-03-31  Bruno Haible  <bruno@clisp.org>
69147
69148         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
69149         work on Solaris either. Protect also second use of "autodetect_jp".
69150
69151 2007-03-31  Bruno Haible  <bruno@clisp.org>
69152
69153         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
69154         the function is not present.
69155
69156 2007-03-31  Bruno Haible  <bruno@clisp.org>
69157
69158         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
69159         the function is not present.
69160
69161 2007-03-31  Bruno Haible  <bruno@clisp.org>
69162
69163         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
69164         a bug in HP-UX iconv_open().
69165
69166 2007-03-31  Bruno Haible  <bruno@clisp.org>
69167
69168         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
69169         (Mathematics <math.h>): New section, add fpieee.
69170         (Input/output <stdio.h>): Add fseterr.
69171         (Mathematics <math.h>): New section, add printf-frexp.
69172         (Container data structures): Add sublist.
69173         (Core language properties): Add fpucw, inline.
69174         (Functions for greatest-width integer types <inttypes.h>): Add
69175         imaxabs, imaxdiv, inttypes.
69176         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
69177         isnanl-nolibm, ldexp.
69178         (Mathematics <math.h>): New section, add printf-frexpl.
69179         (Support for systems lacking POSIX:2001): Add fprintf-posix,
69180         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
69181         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
69182         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
69183         (Unicode string functions): Add unistr/u*-mbtoucr.
69184         (Java): Add javacomp-script, javaexec-script.
69185         (C#): Add csharpcomp-script, csharpexec-script.
69186         (Support for building libraries and executables): Add havelib,
69187         relocatable-*.
69188         (Support for maintaining and releasing projects): Renamed from
69189         'Support for maintaining and release projects'. Add announce-gen.
69190
69191 2007-03-31  Bruno Haible  <bruno@clisp.org>
69192
69193         * README: Talk primarily about git.
69194         (git and CVS): Renamed from CVS.
69195         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
69196         gnulib is available through git.
69197         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
69198
69199 2007-03-30  Bruno Haible  <bruno@clisp.org>
69200
69201         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
69202         * lib/poll_.h: Likewise.
69203         * lib/stat_.h: Likewise.
69204         * lib/sys_time_.h: Likewise.
69205         * lib/sysexit_.h: Likewise.
69206         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
69207         * lib/stdbool_.h: Likewise.
69208         * lib/byteswap_.h: Add double-inclusion guard.
69209
69210 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
69211
69212         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
69213
69214 2007-03-30  Karl Berry  <karl@gnu.org>
69215
69216         * config/srclist-update: double space after USA in the license
69217         substitution, since that's how it's usually (?) written.
69218
69219 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
69220
69221         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
69222         reported by Bruno Haible.
69223
69224 2007-03-29  Bruno Haible  <bruno@clisp.org>
69225
69226         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
69227         a bug in AIX iconv().
69228
69229 2007-03-29  Bruno Haible  <bruno@clisp.org>
69230
69231         * modules/ldexpl-tests: New file.
69232         * tests/test-ldexpl.c: New file.
69233
69234 2007-03-29  Bruno Haible  <bruno@clisp.org>
69235
69236         * lib/ldexpl.c: Include fpucw.h.
69237         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
69238         multiplication.
69239         * modules/ldexpl (Depends-on): Add fpucw.
69240
69241 2007-03-29  Bruno Haible  <bruno@clisp.org>
69242
69243         * modules/ldexpl: New file.
69244         * m4/ldexpl.m4: New file.
69245         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
69246         set.
69247         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
69248         REPLACE_LDEXPL.
69249         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
69250         REPLACE_LDEXPL.
69251         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
69252         gl_FUNC_LDEXPL_WORKS.
69253         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
69254         * modules/mathl (Files): Remove lib/ldexpl.c.
69255         (Depends-on): Add ldexpl.
69256
69257 2007-03-29  Bruno Haible  <bruno@clisp.org>
69258
69259         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
69260
69261 2007-03-29  Bruno Haible  <bruno@clisp.org>
69262
69263         * tests/test-striconveh.c (main): Don't assume that a direct conversion
69264         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
69265         and possibly also HP-UX.
69266         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
69267         work on AIX, IRIX, HP-UX, OSF/1.
69268         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
69269         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
69270         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
69271         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
69272         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
69273         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
69274
69275 2007-03-29  Bruno Haible  <bruno@clisp.org>
69276
69277         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
69278
69279 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
69280
69281         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
69282         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
69283
69284 2007-03-29  Eric Blake  <ebb9@byu.net>
69285
69286         * lib/acl-internal.h: Remove redundant include.
69287         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
69288         Cygwin when a file is locked.
69289
69290 2007-03-29  Bruno Haible  <bruno@clisp.org>
69291
69292         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
69293         file.
69294         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
69295
69296 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
69297
69298         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
69299         try to remove a parent directory if the child couldn't be removed
69300         (except for the first rmdir, which could fail because the child
69301         doesn't exist).  Problem reported by Jeff Blaine in
69302         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
69303
69304 2007-03-28  Bruno Haible  <bruno@clisp.org>
69305
69306         * lib/striconveh.c (utf8conv_carefully): New function.
69307         (mem_cd_iconveh_internal): Invoke it.
69308
69309 2007-03-28  Bruno Haible  <bruno@clisp.org>
69310
69311         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
69312         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
69313         input.
69314         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
69315         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
69316         unistr/u8-uctomb.
69317
69318 2007-03-28  Bruno Haible  <bruno@clisp.org>
69319
69320         * modules/unistr/u8-mbtoucr: New file.
69321         * lib/unistr/u8-mbtoucr.c: New file.
69322         * modules/unistr/u16-mbtoucr: New file.
69323         * lib/unistr/u16-mbtoucr.c: New file.
69324         * modules/unistr/u16-mbtoucr: New file.
69325         * lib/unistr/u16-mbtoucr.c: New file.
69326         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
69327
69328 2007-03-27  Simon Josefsson  <simon@josefsson.org>
69329             Bruno Haible  <bruno@clisp.org>
69330
69331         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
69332         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
69333         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
69334
69335         * m4/stdio_h.m4: Add stubs for vasprintf too.
69336
69337         * modules/stdio: Support vasprintf in sed command.
69338
69339         * modules/vasprintf: Depend on stdio for prototypes.  Remove
69340         vasprintf.h.  Add stdio module indicator.
69341
69342         * lib/stdio_.h: Declare asprintf and vasprintf, based on
69343         vasprintf.h.
69344
69345         * lib/vasprintf.h: File removed.
69346
69347         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
69348         * lib/vasprintf.c: Ditto.
69349         * lib/xvasprintf.c: Ditto.
69350         * tests/test-vasprintf-posix.c: Ditto.
69351         * tests/test-vasprintf.c: Ditto.
69352
69353 2007-03-27  Bruno Haible  <bruno@clisp.org>
69354
69355         Make vasnprintf multithread-safe.
69356         * lib/vasnprintf.c (decimal_point_char): New function.
69357         (VASNPRINTF): Use it.
69358         Suggested by Simon Josefsson.
69359
69360 2007-03-27  Eric Blake  <ebb9@byu.net>
69361
69362         Support sub-second birthtime on cygwin.
69363         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
69364         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
69365         (get_stat_birthtime): Also work with st_birthtim.
69366
69367 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
69368
69369         * lib/stat-time.h (USE_BIRTHTIME): Remove.
69370         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
69371         (get_stat_birthtime_ns): Do not try to use "spare" fields.
69372         (get_stat_birthtime_ns): Simplify compile-time tests.
69373         (get_stat_birthtime): Change the API to look like
69374         get_stat_mtime etc., except return a negative tv_nsec on error.
69375         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
69376         Don't check for "spare" fields.
69377         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
69378         or for struct stat.st_birthtime, as these tests aren't used.
69379         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
69380
69381 2007-03-27  Bruno Haible  <bruno@clisp.org>
69382
69383         * lib/stat-time.h: Include <sys/stat.h>.
69384
69385 2007-03-27  James Youngman  <jay@gnu.org>
69386
69387         * lib/stat-time.h (get_stat_birthtime): New function for
69388           retrieving st_birthtime as provided by UFS2 (hence *BSD).
69389         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
69390           and its variants.
69391         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
69392         * modules/stat-time-test: New file.
69393         * tests/test-stat-time.c: New test, devised by Bruno Haible.
69394
69395 2007-03-26  Bruno Haible  <bruno@clisp.org>
69396
69397         Better support of signalling NaNs.
69398         * lib/atanl.c: Include isnanl.h.
69399         (atanl): Perform test for NaN at the beginning of the function and
69400         through a call to isnanl.
69401         * lib/cosl.c: Include isnanl.h.
69402         (cosl): Perform test for NaN at the beginning of the function and
69403         through a call to isnanl.
69404         * lib/ldexpl.c: Include isnanl.h.
69405         (ldexpl): Perform test for NaN through a call to isnanl.
69406         * lib/logl.c: Include isnanl.h.
69407         (logl): Perform test for NaN at the beginning of the function and
69408         through a call to isnanl.
69409         * lib/sinl.c: Include isnanl.h.
69410         (sinl): Perform test for NaN at the beginning of the function and
69411         through a call to isnanl.
69412         * lib/sqrtl.c: Include isnanl.h.
69413         (sqrtl): Perform test for NaN at the beginning of the function and
69414         through a call to isnanl.
69415         * lib/tanl.c: Include isnanl.h.
69416         (tanl): Perform test for NaN at the beginning of the function and
69417         through a call to isnanl.
69418         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
69419         * modules/mathl (Depends-on): Add isnanl.
69420
69421 2007-03-26  Eric Blake  <ebb9@byu.net>
69422
69423         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
69424         regression in logic sense of previous patch.
69425
69426 2007-03-26  Bruno Haible  <bruno@clisp.org>
69427
69428         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
69429         unportable shell command "if ! ...".
69430         Reported by Ralf Wildenhues.
69431
69432 2007-03-25  Bruno Haible  <bruno@clisp.org>
69433
69434         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
69435         <sysexits.h> file, and only add EX_CONFIG.
69436         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
69437         absolute file name and whether it is sufficient. Substitute also
69438         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
69439         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
69440         ABSOLUTE_SYSEXITS_H into sysexits.h.
69441
69442 2007-03-25  Bruno Haible  <bruno@clisp.org>
69443
69444         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
69445         hints is NULL.
69446
69447 2007-03-25  Bruno Haible  <bruno@clisp.org>
69448
69449         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
69450         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
69451
69452 2007-03-25  Bruno Haible  <bruno@clisp.org>
69453
69454         * lib/vasnprintf.c: Include langinfo.h.
69455         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
69456         multithread-safe.
69457         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
69458         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
69459         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
69460         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
69461         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
69462         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
69463         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
69464         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
69465         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
69466         Reported by Simon Josefsson.
69467
69468 2007-03-25  Bruno Haible  <bruno@clisp.org>
69469
69470         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
69471         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
69472         * modules/vasnprintf (Depends-on): Add stdint.
69473
69474 2007-03-25  Bruno Haible  <bruno@clisp.org>
69475
69476         * modules/fpieee: New file.
69477         * m4/fpieee.m4: New file.
69478         * modules/isnan-nolibm (Depends-on): Add fpieee.
69479         * modules/isnanl-nolibm (Depends-on): Add fpieee.
69480         * modules/isnanl (Depends-on): Add fpieee.
69481
69482 2007-03-25  Bruno Haible  <bruno@clisp.org>
69483
69484         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
69485
69486 2007-03-25  Bruno Haible  <bruno@clisp.org>
69487
69488         Avoid test failures on IRIX 6.5.
69489         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
69490         (main): Use it.
69491         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
69492         macros.
69493         (main): Use them.
69494
69495 2007-03-25  Bruno Haible  <bruno@clisp.org>
69496
69497         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
69498         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
69499         exists but doesn't work.
69500         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
69501         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
69502         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
69503         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
69504         math.h.
69505
69506 2007-03-25  Bruno Haible  <bruno@clisp.org>
69507
69508         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
69509         returns inf. Needed on IRIX 6.5.
69510
69511 2007-03-25  Bruno Haible  <bruno@clisp.org>
69512
69513         * tests/test-frexpl.c: Include isnanl-nolibm.h.
69514         (main): Use isnanl instead of x != x idiom.
69515         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
69516
69517         * tests/test-frexp.c: Include isnan.h.
69518         (main): Use isnan instead of x != x idiom.
69519         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
69520
69521 2007-03-25  Bruno Haible  <bruno@clisp.org>
69522
69523         * tests/test-frexp.c (NaN): New function/macro.
69524         (main): Use it instead of 0.0 / 0.0.
69525         * tests/test-isnan.c (NaN): New function/macro.
69526         (main): Use it instead of 0.0 / 0.0.
69527         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
69528         (test_function): Use it instead of 0.0 / 0.0.
69529         * tests/test-vasprintf-posix.c (NaN): New function/macro.
69530         (test_function): Use it instead of 0.0 / 0.0.
69531         * tests/test-snprintf-posix.h (NaN): New function/macro.
69532         (test_function): Use it instead of 0.0 / 0.0.
69533         * tests/test-sprintf-posix.h (NaN): New function/macro.
69534         (test_function): Use it instead of 0.0 / 0.0.
69535         * tests/test-fprintf-posix.h (NaN): New function/macro.
69536         (test_function): Use it instead of 0.0 / 0.0.
69537         * tests/test-printf-posix.h (NaN): New function/macro.
69538         (test_function): Use it instead of 0.0 / 0.0.
69539
69540         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
69541
69542 2007-03-25  Bruno Haible  <bruno@clisp.org>
69543
69544         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
69545
69546 2007-03-25  Bruno Haible  <bruno@clisp.org>
69547
69548         * lib/regexec.c (merge_state_with_log): Make static.
69549
69550 2007-03-25  Bruno Haible  <bruno@clisp.org>
69551
69552         * lib/trigl.c (kernel_rem_pio2): Make static.
69553
69554 2007-03-25  Bruno Haible  <bruno@clisp.org>
69555
69556         * lib/sincosl.c (sincosl_table): Make static.
69557
69558 2007-03-25  Bruno Haible  <bruno@clisp.org>
69559
69560         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
69561         if the compiler does not support C99.
69562
69563 2007-03-25  Bruno Haible  <bruno@clisp.org>
69564
69565         * modules/time (Makefile.am): Ensure all rule action lines start with a
69566         tab.
69567
69568 2007-03-24  Bruno Haible  <bruno@clisp.org>
69569
69570         * modules/tsearch-tests: New file.
69571         * tests/test-tsearch.sh: New file.
69572         * tests/test-tsearch.c: New file, mostly copied from glibc.
69573
69574         * modules/search-tests: New file.
69575         * tests/test-search.c: New file.
69576
69577         * modules/search: New file.
69578         * lib/search_.h: New file, incorporating lib/tsearch.h.
69579         * m4/search_h.m4: New file.
69580         * lib/tsearch.h: Remove file.
69581         * lib/tsearch.c: Include search.h instead of tsearch.h.
69582         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
69583         HAVE_TSEARCH.
69584         * modules/tsearch (Files): Remove lib/tsearch.h.
69585         (Depends-on): Add search.
69586         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
69587         (Include): Change tsearch.h into search.h.
69588
69589 2007-03-24  Bruno Haible  <bruno@clisp.org>
69590
69591         * modules/fpucw: New file.
69592         * lib/fpucw.h: New file.
69593         * lib/frexp.c: Include fpucw.h.
69594         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
69595         (FUNC): Use them.
69596         * lib/printf-frexp.c: Include fpucw.h.
69597         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
69598         (FUNC): Use them.
69599         * lib/vasnprintf.c: Include fpucw.h.
69600         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
69601         'long double' calculations.
69602         * tests/test-frexpl.c: Include fpucw.h.
69603         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
69604         * tests/test-printf-frexpl.c: Include fpucw.h.
69605         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
69606         * modules/frexpl (Depends-on): Add fpucw.
69607         * modules/printf-frexpl (Depends-on): Likewise.
69608         * modules/fprintf-posix (Depends-on): Likewise.
69609         * modules/snprintf-posix (Depends-on): Likewise.
69610         * modules/sprintf-posix (Depends-on): Likewise.
69611         * modules/vasnprintf-posix (Depends-on): Likewise.
69612         * modules/vasprintf-posix (Depends-on): Likewise.
69613         * modules/vfprintf-posix (Depends-on): Likewise.
69614         * modules/vsnprintf-posix (Depends-on): Likewise.
69615         * modules/vsprintf-posix (Depends-on): Likewise.
69616         * modules/frexpl-tests (Depends-on): Likewise.
69617         * modules/printf-frexpl-tests (Depends-on): Likewise.
69618
69619 2007-03-24  Bruno Haible  <bruno@clisp.org>
69620
69621         * lib/float+.h: New file.
69622         * lib/isnan.c: Include float+.h.
69623         (SIZE): New macro.
69624         (FUNC): Compare only SIZE bytes of the value.
69625         * lib/vasnprintf.c: Include float+.h.
69626         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
69627         SIZEOF_LDBL or SIZEOF_DBL bytes.
69628         * modules/isnan-nolibm (Files): Add lib/float+.h.
69629         * modules/isnanl-nolibm (Files): Add lib/float+.h.
69630         * modules/isnanl (Files): Add lib/float+.h.
69631         * modules/vasnprintf (Files): Add lib/float+.h.
69632
69633 2007-03-24  Bruno Haible  <bruno@clisp.org>
69634
69635         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
69636         include isnanl-nolibm.h.
69637
69638 2007-03-24  Bruno Haible  <bruno@clisp.org>
69639
69640         * tests/test-read-file.c (main): Don't produce spurious output for
69641         expected situations. Make the test fail if it encountered unexpected
69642         results.
69643
69644 2007-03-24  Bruno Haible  <bruno@clisp.org>
69645
69646         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
69647         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
69648
69649 2007-03-24  Bruno Haible  <bruno@clisp.org>
69650
69651         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
69652
69653 2007-03-24  Bruno Haible  <bruno@clisp.org>
69654
69655         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
69656         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
69657
69658         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
69659         * modules/utf8-ucs4: Turn into a symbolic link to module
69660         unistr/u8-mbtouc.
69661
69662         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
69663         utf8-ucs4-unsafe.
69664         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
69665         unistr/u8-mbtouc-unsafe.
69666
69667         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
69668         * modules/utf16-ucs4: Turn into a symbolic link to module
69669         unistr/u16-mbtouc.
69670
69671         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
69672         utf16-ucs4-unsafe.
69673         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
69674         unistr/u16-mbtouc-unsafe.
69675
69676         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
69677         * modules/ucs4-utf8: Turn into a symbolic link to module
69678         unistr/u8-ubtomb.
69679
69680         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
69681         * modules/ucs4-utf16: Turn into a symbolic link to module
69682         unistr/u16-ubtomb.
69683
69684 2007-03-24  Bruno Haible  <bruno@clisp.org>
69685
69686         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
69687         Enable the function only if HAVE_INLINE.
69688         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
69689         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
69690         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
69691         Enable the function only if HAVE_INLINE.
69692         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
69693         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
69694         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
69695         Enable the function only if HAVE_INLINE.
69696         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
69697         Enable the function only if HAVE_INLINE.
69698         * modules/utf8-ucs4: Update.
69699         * modules/utf8-ucs4-unsafe: Update.
69700         * modules/utf16-ucs4: Update.
69701         * modules/utf16-ucs4-unsafe: Update.
69702         * modules/ucs4-utf8: Update.
69703         * modules/ucs4-utf16: Update.
69704
69705 2007-03-24  Bruno Haible  <bruno@clisp.org>
69706
69707         * lib/utf8-ucs4.h: Remove file.
69708         * lib/utf8-ucs4-unsafe.h: Remove file.
69709         * lib/utf16-ucs4.h: Remove file.
69710         * lib/utf16-ucs4-unsafe.h: Remove file.
69711         * lib/ucs4-utf8.h: Remove file.
69712         * lib/ucs4-utf16.h: Remove file.
69713         * lib/unistr.h: Include their previous contents.
69714         * m4/utf-ucs4.m4: Remove file.
69715         * m4/ucs4-utf.m4: Remove file.
69716         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
69717         (Depends-on): Add unistr/base.
69718         (configure.ac): Remove gl_UTF_UCS4.
69719         (Makefile.am): Update.
69720         (Include): Change to unistr.h.
69721         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
69722         (Depends-on): Add unistr/base.
69723         (configure.ac): Remove gl_UTF_UCS4.
69724         (Makefile.am): Update.
69725         (Include): Change to unistr.h.
69726         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
69727         (Depends-on): Add unistr/base.
69728         (configure.ac): Remove gl_UTF_UCS4.
69729         (Makefile.am): Update.
69730         (Include): Change to unistr.h.
69731         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
69732         (Depends-on): Add unistr/base.
69733         (configure.ac): Remove gl_UTF_UCS4.
69734         (Makefile.am): Update.
69735         (Include): Change to unistr.h.
69736         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
69737         (Depends-on): Add unistr/base.
69738         (configure.ac): Remove gl_UCS4_UTF.
69739         (Makefile.am): Update.
69740         (Include): Change to unistr.h.
69741         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
69742         (Depends-on): Add unistr/base.
69743         (configure.ac): Remove gl_UCS4_UTF.
69744         (Makefile.am): Update.
69745         (Include): Change to unistr.h.
69746         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
69747         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
69748         utf8-ucs4-unsafe.h.
69749         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
69750         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
69751         utf16-ucs4-unsafe.h.
69752         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
69753         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
69754         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
69755         * lib/unistr/u8-strchr.c: Likewise.
69756         * lib/unistr/u8-strrchr.c: Likewise.
69757         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
69758         * lib/unistr/u16-strchr.c: Likewise.
69759         * lib/unistr/u16-strrchr.c: Likewise.
69760         * lib/striconveh.c: Update.
69761         * lib/linebreak.c: Update.
69762
69763 2007-03-24  Bruno Haible  <bruno@clisp.org>
69764
69765         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
69766         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
69767
69768 2007-03-22  Bruno Haible  <bruno@clisp.org>
69769
69770         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
69771
69772 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
69773
69774         * MODULES.html.sh (File system functions): New module write-any-file.
69775         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
69776         * m4/write-any-file.m4: New files.
69777
69778 2007-03-23  Eric Blake  <ebb9@byu.net>
69779
69780         * gnulib-tool: Rearrange space-tab sequences, since some editors
69781         like to eat them.
69782
69783 2007-03-23  Eric Blake  <ebb9@byu.net>
69784
69785         * lib/version-etc.c (version_etc_va): Update license wording to
69786         be more concise.  Recommended by Richard Stallman.
69787
69788 2007-03-22  Bruno Haible  <bruno@clisp.org>
69789
69790         * lib/poll.c (MSG_PEEK): New fallback definition.
69791
69792 2007-03-22  Bruno Haible  <bruno@clisp.org>
69793
69794         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
69795         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
69796         (main): Update.
69797         Fixes a compilation error on BeOS.
69798
69799 2007-03-22  Bruno Haible  <bruno@clisp.org>
69800
69801         * modules/frexpl-tests: New file.
69802         * tests/test-frexpl.c: New file.
69803
69804         * modules/frexpl: New file.
69805         * m4/frexpl.m4: New file.
69806         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
69807         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
69808         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
69809         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
69810         (Depends-on): Add frexpl. Remove isnanl-nolibm.
69811         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
69812
69813 2007-03-22  Bruno Haible  <bruno@clisp.org>
69814
69815         * lib/frexpl.c: Share code with lib/frexp.c.
69816         * modules/mathl (Files): Add lib/frexp.c.
69817         (Depends-on): Add isnanl-nolibm.
69818
69819 2007-03-22  Bruno Haible  <bruno@clisp.org>
69820
69821         * modules/printf-frexp (Files): Add m4/frexp.m4.
69822         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
69823         only if the found frexp function actually works.
69824
69825 2007-03-22  Bruno Haible  <bruno@clisp.org>
69826
69827         * lib/frexp.c: Remove older implementation that uses divisions.
69828
69829 2007-03-21  Bruno Haible  <bruno@clisp.org>
69830
69831         * modules/frexp-tests: New file.
69832         * tests/test-frexp.c: New file.
69833
69834         * modules/frexp: New file.
69835         * lib/frexp.c: New file.
69836         * m4/frexp.m4: New file.
69837         * lib/math_.h (frexp): New declaration.
69838         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
69839         REPLACE_FREXP.
69840         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
69841
69842 2007-03-21  Bruno Haible  <bruno@clisp.org>
69843
69844         * modules/isnanl-tests: New file.
69845         * tests/test-isnanl.c: New file.
69846
69847         * modules/isnanl: New file.
69848         * lib/isnanl.h: New file.
69849         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
69850         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
69851         gl_FUNC_ISNANL_WORKS.
69852         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
69853         New macros.
69854
69855 2007-03-21  Bruno Haible  <bruno@clisp.org>
69856
69857         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
69858         lib/isnanl.h.
69859         (Include): Update.
69860         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
69861         * lib/vasnprintf.c: Update.
69862         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
69863         tests/test-isnanl.h, remove tests/test-isnanl.c.
69864         (Makefile.am): Update.
69865         * tests/test-isnanl-nolibm.c: New file.
69866         * tests/test-isnanl.h: New file.
69867         * tests/test-isnanl.c: Remove file.
69868
69869 2007-03-21  Jim Meyering  <jim@meyering.net>
69870
69871         When trying to open ".", treat ESTALE like EACCES.
69872         * lib/savewd.c (savewd_save): Resort to forking not just upon
69873         failure with EACCES, but also when errno is ESTALE.
69874
69875 2007-03-20  Bruno Haible  <bruno@clisp.org>
69876
69877         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
69878         Needed on AIX 5.1. Reported by Matthew Woehlke.
69879
69880 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
69881
69882         Suggestions by Bruno Haible:
69883         * lib/acl-internal.h: Include "gettext.h" rather than rolling
69884         our own.
69885         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
69886         * modules/acl (Depends-on): Add gettext.
69887
69888 2007-03-19  Bruno Haible  <bruno@clisp.org>
69889
69890         * modules/iconvme: Remove file.
69891         * lib/iconvme.h: Remove file.
69892         * lib/iconvme.c: Remove file.
69893         * m4/iconvme.m4: Remove file.
69894
69895 2007-03-19  Bruno Haible  <bruno@clisp.org>
69896
69897         * doc/relocatable-maint.texi: Break long shell script line.
69898         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
69899
69900 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
69901
69902         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
69903         handle file_has_acl.
69904         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
69905         * lib/acl.c: Move header inclusions and related macro defns into
69906         lib/acl-internal.h.
69907         (S_ISLNK): Remove defn, since that's now done for us.
69908         (file_has_acl): Move to lib/file-has-acl.c.
69909         Call acl_trivial if available.  This is the crucial part of the fix.
69910         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
69911         shared within the library.  Rewrite a bit, partly to make it compatible
69912         with the GNU coding style.
69913         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
69914         Remove unnecessary double-quotes.
69915         Don't test for acl_to_text; the build will catch that.
69916         Replace acl_entries if it doesn't exist and it is needed.
69917         Check for -lsec and acl_trivial (as used on Solaris 10).
69918         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
69919         lib/file-has-acl.c.
69920         (Depends-on): Add sys_stat, for S_ISLNK.
69921
69922 2007-03-19  Ben Pfaff  <blp@gnu.org>
69923
69924         * doc/gnulib.texi: Fix typos.
69925         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
69926
69927 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
69928
69929         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
69930         If size is zero here, buf must be zero.
69931
69932 2007-03-19  Simon Josefsson  <simon@josefsson.org>
69933
69934         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
69935         <bruno@clisp.org>.
69936
69937 2007-03-18  Bruno Haible  <bruno@clisp.org>
69938
69939         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
69940         Suggested by Eric Blake.
69941
69942 2007-03-18  Ben Pfaff  <blp@gnu.org>
69943
69944         * doc/relocatable.texi: Recommend using as prefix a directory
69945         that does not exist and will never be created.  Based on
69946         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
69947         and others.
69948
69949 2007-03-17  Bruno Haible  <bruno@clisp.org>
69950
69951         * lib/fchownat.c: Include lchown.h.
69952
69953 2007-03-17  Bruno Haible  <bruno@clisp.org>
69954
69955         Fix endless loop when the given allocated size was > INT_MAX.
69956         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
69957         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
69958         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
69959         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
69960         * lib/sprintf.c (sprintf): Likewise.
69961
69962 2007-03-17  Bruno Haible  <bruno@clisp.org>
69963
69964         * tests/test-argp-2.sh (func_compare): Output a context diff.
69965
69966 2007-03-17  Bruno Haible  <bruno@clisp.org>
69967
69968         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
69969         locale's decimal-point character.
69970
69971 2007-03-17  Bruno Haible  <bruno@clisp.org>
69972
69973         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
69974         before comparing it. Needed because on some platforms (e.g. x86) a
69975         'long double' occupies less bytes than sizeof (long double).
69976
69977 2007-03-17  Bruno Haible  <bruno@clisp.org>
69978
69979         * tests/test-crc.c (main): Make printf statements 64-bit clean.
69980         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
69981         * tests/test-getaddrinfo.c (simple): Likewise.
69982         * tests/test-read-file.c (main): Likewise.
69983
69984 2007-03-17  Bruno Haible  <bruno@clisp.org>
69985
69986         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
69987
69988 2007-03-17  Bruno Haible  <bruno@clisp.org>
69989
69990         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
69991         unused variable.
69992
69993 2007-03-17  Bruno Haible  <bruno@clisp.org>
69994
69995         * tests/test-c-strcasecmp.c: Include c-strcase.h.
69996         * tests/test-c-strncasecmp.c: Likewise.
69997
69998 2007-03-17  Bruno Haible  <bruno@clisp.org>
69999
70000         * modules/stdlib (Depends-on): Add unistd.
70001         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
70002         Needed for MacOS X 10.3.
70003
70004 2007-03-17  Bruno Haible  <bruno@clisp.org>
70005
70006         * lib/unistr/u-strdup.h: Include <stdlib.h>.
70007
70008 2007-03-17  Bruno Haible  <bruno@clisp.org>
70009
70010         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
70011
70012 2007-03-17  Bruno Haible  <bruno@clisp.org>
70013
70014         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
70015         to reflect files copied from gnulib (with or without modifications).
70016         Suggested by Jim Meyering.
70017
70018 2007-03-17  Eric Blake  <ebb9@byu.net>
70019
70020         * NEWS: Document stdlib change from 2007-02-18.
70021
70022 2007-03-17  Jim Meyering  <jim@meyering.net>
70023
70024         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
70025         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
70026         someone uses a name containing shell meta-characters.
70027         Reported by Alfred M. Szmidt.
70028
70029         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
70030
70031 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
70032
70033         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
70034         and copy gettext configuration files only if configure.ac contains
70035         a use of AM_GNU_GETTEXT_VERSION.
70036
70037 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
70038
70039         * build-aux/bootstrap (gnulib_name): New variable.
70040         (gnulib_tool_options): Use it.
70041
70042 2007-03-13  Simon Josefsson  <simon@josefsson.org>
70043
70044         * tests/test-des.c: Use new namespace.
70045
70046 2007-03-15  Bruno Haible  <bruno@clisp.org>
70047
70048         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
70049         Reported by James Youngman <jay@gnu.org>.
70050
70051 2007-03-15  Bruno Haible  <bruno@clisp.org>
70052
70053         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
70054         declared prototype. Needed with cc on OSF/1 5.1.
70055
70056 2007-03-15  Bruno Haible  <bruno@clisp.org>
70057
70058         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
70059         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
70060         (struct gl_list_implementation): Add dispose_fn argument to the
70061         'create_empty', 'create' methods.
70062         (struct gl_list_impl_base): Add field 'dispose_fn'.
70063         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
70064         argument.
70065         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
70066         dispose_fn argument.
70067         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
70068         dispose_fn on the dropped values.
70069         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
70070         dispose_fn argument.
70071         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
70072         dropped values.
70073         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
70074         (gl_tree_remove_node): Call dispose_fn on the dropped value.
70075         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
70076         (gl_tree_remove_node): Call dispose_fn on the dropped value.
70077         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
70078         argument.
70079         (gl_tree_list_free): Call dispose_fn on the dropped values.
70080         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
70081         the dropped values.
70082         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
70083         Add dispose_fn argument.
70084         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
70085         Call dispose_fn on the dropped values.
70086         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
70087         Add dispose_fn argument.
70088         (gl_sublist_create): Initialize the 'dispose_fn' field.
70089         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
70090         * tests/test-array_list.c (main): Update.
70091         * tests/test-carray_list.c (main): Update.
70092         * tests/test-avltree_list.c (main): Update.
70093         * tests/test-rbtree_list.c (main): Update.
70094         * tests/test-avltreehash_list.c (main): Update.
70095         * tests/test-rbtreehash_list.c (main): Update.
70096         * tests/test-linked_list.c (main): Update.
70097         * tests/test-linkedhash_list.c (main): Update.
70098         * tests/test-array_oset.c (main): Update.
70099
70100 2007-03-15  Bruno Haible  <bruno@clisp.org>
70101
70102         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
70103         (gl_oset_create_empty): Add dispose_fn argument.
70104         (struct gl_oset_implementation): Add dispose_fn argument to
70105         'create_empty' method.
70106         (struct gl_oset_impl_base): Add dispose_fn field.
70107         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
70108         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
70109         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
70110         values.
70111         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
70112         (gl_tree_oset_free): Call dispose_fn on the dropped values.
70113         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
70114         dropped value.
70115         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
70116         dropped value.
70117         * tests/test-array_oset.c (main): Update.
70118         * tests/test-avltree_oset.c (main): Update.
70119         * tests/test-rbtree_oset.c (main): Update.
70120         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
70121
70122 2007-03-13  Bruno Haible  <bruno@clisp.org>
70123
70124         * tests/test-stdbool.c (i): Update after last patch.
70125
70126 2007-03-12  Bruno Haible  <bruno@clisp.org>
70127
70128         * lib/quotearg.c: Include <wctype.h> early, before the definition of
70129         the iswprint macro. Needed on Solaris 2.5.1.
70130
70131 2007-03-12  Bruno Haible  <bruno@clisp.org>
70132
70133         * tests/test-printf-frexp.c (main): Declare x as volatile.
70134
70135 2007-03-12  Simon Josefsson  <simon@josefsson.org>
70136
70137         * doc/gnulib.texi (Build robot for gnulib): New section.
70138
70139 2007-03-12  Jim Meyering  <jim@meyering.net>
70140
70141         * build-aux/bootstrap: New file.
70142         * build-aux/bootstrap.conf: New file, from coreutils.
70143
70144 2007-03-11  Bruno Haible  <bruno@clisp.org>
70145
70146         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
70147
70148 2007-03-12  Simon Josefsson  <simon@josefsson.org>
70149
70150         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
70151         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
70152         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
70153
70154 2007-03-11  Bruno Haible  <bruno@clisp.org>
70155
70156         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
70157         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
70158
70159 2007-03-11  Bruno Haible  <bruno@clisp.org>
70160
70161         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
70162         formula. Needed for SunPRO C 5.0.
70163
70164 2007-03-11  Bruno Haible  <bruno@clisp.org>
70165
70166         * modules/long-options (Depends-on): Add getopt.
70167
70168 2007-03-11  Bruno Haible  <bruno@clisp.org>
70169
70170         * modules/modechange (Depends-on): Add stdbool.
70171
70172 2007-03-11  Bruno Haible  <bruno@clisp.org>
70173
70174         * modules/i-ring (Depends-on): Add stdbool.
70175
70176 2007-03-11  Bruno Haible  <bruno@clisp.org>
70177
70178         * modules/gc-des (Depends-on): Add stdbool.
70179
70180 2007-03-11  Bruno Haible  <bruno@clisp.org>
70181
70182         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
70183
70184 2007-03-11  Bruno Haible  <bruno@clisp.org>
70185
70186         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
70187
70188 2007-03-11  Bruno Haible  <bruno@clisp.org>
70189
70190         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
70191
70192 2007-03-11  Bruno Haible  <bruno@clisp.org>
70193
70194         * lib/vasnprintf.c (sprintf): Undefine.
70195
70196 2007-03-11  Bruno Haible  <bruno@clisp.org>
70197
70198         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
70199         initializers in SunPRO C and Compaq C compilers.
70200
70201 2007-03-11  Bruno Haible  <bruno@clisp.org>
70202
70203         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
70204         decrementing code ANSI C compliant.
70205
70206 2007-03-11  Bruno Haible  <bruno@clisp.org>
70207
70208         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
70209         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
70210
70211 2007-03-11  Bruno Haible  <bruno@clisp.org>
70212
70213         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
70214         <stdbool.h> substitute doesn't pass.
70215
70216 2007-03-11  Bruno Haible  <bruno@clisp.org>
70217
70218         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
70219
70220 2007-03-11  Bruno Haible  <bruno@clisp.org>
70221
70222         * gnulib-tool (func_create_megatestdir): Create also an autobuild
70223         script, for submission to autobuild.josefsson.org.
70224
70225 2007-03-10  Bruno Haible  <bruno@clisp.org>
70226
70227         * modules/canonicalize-lgpl-tests: New file.
70228         * tests/test-canonicalize-lgpl.sh: New file.
70229         * tests/test-canonicalize-lgpl.c: New file.
70230
70231         * modules/c-strcase-tests: New file.
70232         * tests/test-c-strcase.sh: New file.
70233         * tests/test-c-strcasecmp.c: New file.
70234         * tests/test-c-strncasecmp.c: New file.
70235
70236         * modules/atexit-tests: New file.
70237         * tests/test-atexit.sh: New file.
70238         * tests/test-atexit.c: New file.
70239
70240 2007-03-10  Bruno Haible  <bruno@clisp.org>
70241
70242         * tests/test-binary-io.sh: Use temporary filenames that are not so
70243         likely to clash with those of other tests (in a parallel make).
70244         * tests/test-binary-io.c: Likewise.
70245
70246 2007-03-10  Bruno Haible  <bruno@clisp.org>
70247
70248         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
70249         fallback; use #error instead.
70250         Suggested by Simon Josefsson.
70251
70252 2007-03-10  Bruno Haible  <bruno@clisp.org>
70253
70254         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
70255         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
70256         first and the last.
70257
70258 2007-03-10  Bruno Haible  <bruno@clisp.org>
70259
70260         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
70261
70262 2007-03-10  Bruno Haible  <bruno@clisp.org>
70263
70264         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
70265         "make distcheck".
70266         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
70267         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
70268         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
70269
70270 2007-03-10  Bruno Haible  <bruno@clisp.org>
70271
70272         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
70273         variable.
70274         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
70275         variable.
70276
70277 2007-03-09  Eric Blake  <ebb9@byu.net>
70278         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
70279
70280         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
70281         types are not being provided by gnulib.
70282         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
70283         types are supported.
70284
70285 2007-03-10  Bruno Haible  <bruno@clisp.org>
70286
70287         * lib/stdio_.h (__attribute__): New macro.
70288         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
70289         vsprintf): Specify __attribute__ __format__ for GCC.
70290         Suggested by Eric Blake.
70291
70292 2007-03-09  Bruno Haible  <bruno@clisp.org>
70293
70294         * modules/printf-posix-tests: New file.
70295         * tests/test-printf-posix.sh: New file.
70296         * tests/test-printf-posix.c: New file.
70297
70298         * modules/printf-posix: New file.
70299         * lib/printf.c: New file.
70300         * m4/printf-posix-rpl.m4: New file.
70301         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
70302         REPLACE_PRINTF.
70303         * lib/stdio_.h (printf): New declaration.
70304         (format, __format__, ____printf____, ____scanf____, ____strftime____,
70305         ____strfmon____): New macros.
70306         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
70307         REPLACE_PRINTF.
70308
70309 2007-03-09  Bruno Haible  <bruno@clisp.org>
70310
70311         * tests/test-vasnprintf-posix2.sh: New file.
70312         * tests/test-vasnprintf-posix2.c: New file.
70313         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
70314         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
70315         (Makefile.am): Activate test-vasnprintf-posix2.sh.
70316
70317         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
70318         a locale dependent decimal point, rather than always '.'.
70319
70320 2007-03-09  Eric Blake  <ebb9@byu.net>
70321
70322         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
70323         spite of platforms like Tandem/NSK that define it to -1.
70324
70325 2007-03-08  Bruno Haible  <bruno@clisp.org>
70326
70327         * modules/vprintf-posix-tests: New file.
70328         * tests/test-vprintf-posix.sh: New file.
70329         * tests/test-vprintf-posix.c: New file.
70330         * tests/test-printf-posix.h: New file.
70331
70332         * modules/vprintf-posix: New file.
70333         * lib/vprintf.c: New file.
70334         * m4/vprintf-posix.m4: New file.
70335         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
70336         REPLACE_VPRINTF.
70337         * lib/stdio_.h (vprintf): New declaration.
70338         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
70339         REPLACE_VPRINTF.
70340
70341 2007-03-08  Bruno Haible  <bruno@clisp.org>
70342
70343         * modules/fprintf-posix-tests: New file.
70344         * tests/test-fprintf-posix.sh: New file.
70345         * tests/test-fprintf-posix.c: New file.
70346
70347         * modules/fprintf-posix: New file.
70348         * lib/fprintf.c: New file.
70349         * m4/fprintf-posix.m4: New file.
70350         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
70351         REPLACE_FPRINTF.
70352         * lib/stdio_.h (fprintf): New declaration.
70353         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
70354         REPLACE_FPRINTF.
70355
70356 2007-03-08  Bruno Haible  <bruno@clisp.org>
70357
70358         * modules/vfprintf-posix-tests: New file.
70359         * tests/test-vfprintf-posix.sh: New file.
70360         * tests/test-vfprintf-posix.c: New file.
70361         * tests/test-fprintf-posix.h: New file.
70362         * tests/test-fprintf-posix.out: New file.
70363
70364         * modules/vfprintf-posix: New file.
70365         * lib/vfprintf.c: New file.
70366         * m4/vfprintf-posix.m4: New file.
70367         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
70368         REPLACE_VFPRINTF.
70369         * lib/stdio_.h (vfprintf): New declaration.
70370         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
70371         REPLACE_VFPRINTF.
70372
70373 2007-03-08  Bruno Haible  <bruno@clisp.org>
70374
70375         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
70376
70377 2007-03-08  Bruno Haible  <bruno@clisp.org>
70378
70379         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
70380         instead of 'expr' invocations.
70381         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
70382         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
70383         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
70384         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
70385         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
70386         Suggested by Paul Eggert.
70387
70388 2007-03-08  Bruno Haible  <bruno@clisp.org>
70389
70390         * modules/fseterr-tests: New file.
70391         * tests/test-fseterr.c: New file.
70392
70393         * modules/fseterr: New file.
70394         * lib/fseterr.h: New file.
70395         * lib/fseterr.c: New file.
70396
70397 2007-03-08  Bruno Haible  <bruno@clisp.org>
70398
70399         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
70400         * lib/getopt_.h: Likewise.
70401         * lib/mbswidth.h: Likewise.
70402         * lib/setenv.h: Likewise.
70403         * lib/vasnprintf.h: Likewise.
70404         * lib/vasprintf.h: Likewise.
70405         * lib/verror.h: Likewise.
70406         * lib/xsetenv.h: Likewise.
70407         * lib/xvasprintf.h: Likewise.
70408
70409 2007-03-08  Jim Meyering  <jim@meyering.net>
70410
70411         * users.txt: Add parted.
70412
70413         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
70414
70415 2007-03-07  Bruno Haible  <bruno@clisp.org>
70416
70417         * m4/printf.m4: Make the shell script snippets copy&pastable.
70418
70419 2007-03-02  Bruno Haible  <bruno@clisp.org>
70420
70421         * lib/netinet_in_.h: New file.
70422         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
70423         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
70424         * modules/netinet_in (Files): Add lib/netinet_in_.h.
70425         (Depends-on): Add absolute-header.
70426         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
70427         into netinet/in.h.
70428
70429 2007-03-03  Bruno Haible  <bruno@clisp.org>
70430
70431         * lib/sys_select_.h: New file.
70432         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
70433         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
70434         * modules/sys_select (Files): Add lib/sys_select_.h.
70435         (Depends-on): Add absolute-header.
70436         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
70437         into sys/select.h.
70438
70439 2007-03-02  Bruno Haible  <bruno@clisp.org>
70440
70441         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
70442         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
70443         values.
70444         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
70445         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
70446         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
70447         * modules/sys_socket (Depends-on): Add absolute-header.
70448         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
70449         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
70450         (Include): Remove requirement of inclusion of <sys/types.h>.
70451
70452 2007-03-02  Bruno Haible  <bruno@clisp.org>
70453
70454         * lib/byteswap_.h (bswap_32): Fix formula.
70455
70456 2007-03-06  Bruno Haible  <bruno@clisp.org>
70457
70458         * modules/sprintf-posix-tests: New file.
70459         * tests/test-sprintf-posix.c: New file.
70460
70461         * modules/sprintf-posix: New file.
70462         * lib/sprintf.c: New file.
70463         * m4/sprintf-posix.m4: New file.
70464         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
70465         REPLACE_SPRINTF.
70466         * lib/stdio_.h (sprintf): New declaration.
70467         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
70468         REPLACE_SPRINTF.
70469
70470 2007-03-06  Bruno Haible  <bruno@clisp.org>
70471
70472         * modules/vsprintf-posix-tests: New file.
70473         * tests/test-vsprintf-posix.c: New file.
70474         * tests/test-sprintf-posix.h: New file.
70475
70476         * modules/vsprintf-posix: New file.
70477         * lib/vsprintf.c: New file.
70478         * m4/vsprintf-posix.m4: New file.
70479         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
70480         REPLACE_VSPRINTF.
70481         * lib/stdio_.h (vsprintf): New declaration.
70482         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
70483         REPLACE_VSPRINTF.
70484
70485 2007-03-06  Bruno Haible  <bruno@clisp.org>
70486
70487         * modules/vsnprintf (Depend-on): Remove minmax.
70488
70489 2007-03-06  Bruno Haible  <bruno@clisp.org>
70490
70491         * modules/snprintf-posix-tests: New file.
70492         * tests/test-snprintf-posix.c: New file.
70493
70494         * modules/snprintf-posix: New file.
70495         * m4/snprintf-posix.m4: New file.
70496         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
70497         gl_FUNC_SNPRINTF.
70498         (gl_FUNC_SNPRINTF): Invoke it.
70499         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
70500         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
70501         is set.
70502         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
70503
70504 2007-03-06  Bruno Haible  <bruno@clisp.org>
70505
70506         * modules/vsnprintf-posix-tests: New file.
70507         * tests/test-vsnprintf-posix.c: New file.
70508         * tests/test-snprintf-posix.h: New file.
70509
70510         * modules/vsnprintf-posix: New file.
70511         * m4/vsnprintf-posix.m4: New file.
70512         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
70513         gl_FUNC_VSNPRINTF.
70514         (gl_FUNC_VSNPRINTF): Invoke it.
70515         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
70516         * lib/stdio_.h (vsnprintf): Define as a replacement if
70517         REPLACE_VSNPRINTF is set.
70518         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
70519
70520 2007-03-06  Bruno Haible  <bruno@clisp.org>
70521
70522         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
70523         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
70524
70525 2007-03-06  Bruno Haible  <bruno@clisp.org>
70526
70527         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
70528         (asinl): Declare also if HAVE_DECL_ASINL is set.
70529         (atanl): Declare also if HAVE_DECL_ATANL is set.
70530         (ceill): Declare also if HAVE_DECL_CEILL is set.
70531         (cosl): Declare also if HAVE_DECL_COSL is set.
70532         (expl): Declare also if HAVE_DECL_EXPL is set.
70533         (floorl): Declare also if HAVE_DECL_FLOORL is set.
70534         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
70535         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
70536         (logl): Declare also if HAVE_DECL_LOGL is set.
70537         (sinl): Declare also if HAVE_DECL_SINL is set.
70538         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
70539         (tanl): Declare also if HAVE_DECL_TANL is set.
70540         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
70541         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
70542         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
70543         declaration of frexpl, ldexpl.
70544         * modules/printf-frexpl (Depends-on): Add math.
70545         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
70546
70547 2007-03-05  Bruno Haible  <bruno@clisp.org>
70548
70549         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
70550         frexpl and ldexpl are declared.
70551         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
70552
70553 2007-03-05  Bruno Haible  <bruno@clisp.org>
70554
70555         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
70556         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
70557
70558 2007-03-05  Bruno Haible  <bruno@clisp.org>
70559
70560         * lib/stdio_.h: Include <stddef.h>.
70561
70562 2007-03-05  Bruno Haible  <bruno@clisp.org>
70563
70564         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
70565
70566 2007-03-05  Bruno Haible  <bruno@clisp.org>
70567
70568         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
70569         NetBSD 4, from Ralf Wildenhues.
70570
70571 2007-03-04  Bruno Haible  <bruno@clisp.org>
70572
70573         * lib/vasprintf.h: Update #if logic for the case when the functions
70574         exist but are overridden.
70575
70576 2007-03-04  Bruno Haible  <bruno@clisp.org>
70577
70578         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
70579         implementations: glibc-2.4 and MacOS X 10.3.
70580         * tests/test-vasnprintf-posix.c (test_function): Test also the case
70581         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
70582         * tests/test-vasprintf-posix.c (test_function): Likewise.
70583
70584 2007-03-04  Bruno Haible  <bruno@clisp.org>
70585
70586         * modules/vasprintf-posix-tests: New file.
70587         * tests/test-vasprintf-posix.c: New file.
70588
70589         * modules/vasprintf-posix: New file.
70590         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
70591         defined.
70592         * m4/vasprintf-posix.m4: New file.
70593         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
70594         gl_FUNC_VASPRINTF.
70595         (gl_FUNC_VASPRINTF): Invoke it.
70596         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
70597         here.
70598         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
70599
70600 2007-03-04  Bruno Haible  <bruno@clisp.org>
70601
70602         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
70603         REPLACE_GETTIMEOFDAY.
70604         * modules/sys_time (Makefile.am): Likewise.
70605         * m4/sys_time_h.m4: Likewise.
70606         * m4/gettimeofday.m4: Likewise.
70607
70608 2007-03-04  Bruno Haible  <bruno@clisp.org>
70609
70610         * modules/vasnprintf-posix-tests: New file.
70611         * tests/test-vasnprintf-posix.c: New file.
70612
70613         * modules/vasnprintf-posix: New file.
70614         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
70615         printf-frexpl.h.
70616         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
70617         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
70618         REPLACE_VASNPRINTF is defined.
70619         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
70620         gl_FUNC_VASNPRINTF.
70621         (gl_FUNC_VASNPRINTF): Invoke it.
70622         * m4/vasnprintf-posix.m4: New file.
70623         * m4/printf.m4: New file.
70624
70625 2007-03-04  Bruno Haible  <bruno@clisp.org>
70626
70627         Compile progreloc.c only if --enable-relocatable is specified.
70628         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
70629         if --enable-relocatable was specified.
70630         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
70631         lib_SOURCES.
70632
70633 2007-03-04  Jim Meyering  <jim@meyering.net>
70634
70635         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
70636         Use it consistently, rather than enumerating errno constants.
70637
70638 2007-03-04  Bruno Haible  <bruno@clisp.org>
70639
70640         * modules/xvasprintf-tests: New file.
70641         * tests/test-xvasprintf.c: New file.
70642
70643         * modules/vasprintf-tests: New file.
70644         * tests/test-vasprintf.c: New file.
70645
70646         * modules/vasnprintf-tests: New file.
70647         * tests/test-vasnprintf.c: New file.
70648
70649         * modules/vsnprintf-tests: New file.
70650         * tests/test-vsnprintf.c: New file.
70651
70652         * modules/snprintf-tests: New file.
70653         * tests/test-snprintf.c: New file.
70654
70655 2007-03-04  Bruno Haible  <bruno@clisp.org>
70656
70657         Compile relocatable.c only if --enable-relocatable is specified.
70658         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
70659         gl_RELOCATABLE_LIBRARY.
70660         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
70661         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
70662         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
70663         gl_RELOCATABLE_LIBRARY.
70664         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
70665         (Makefile.am): Remove lib_SOURCES.
70666         * modules/relocatable-lib-lgpl (configure.ac): Invoke
70667         gl_RELOCATABLE_LIBRARY.
70668         (Makefile.am): Remove lib_SOURCES.
70669         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
70670         always.
70671         * modules/relocatable-prog-wrapper (configure.ac): Invoke
70672         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
70673
70674 2007-03-04  Bruno Haible  <bruno@clisp.org>
70675
70676         * modules/argmatch-tests: New file.
70677         * tests/test-argmatch.c: New file.
70678
70679         * tests/test-allocsa.c (main): Halve the number of loop runs.
70680
70681         * modules/alloca-opt-tests: New file.
70682         * tests/test-alloca-opt.c: New file.
70683
70684 2007-03-04  Jim Meyering  <jim@meyering.net>
70685
70686         Work around difference between Linux ACLs and Solaris 10 ZFS.
70687         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
70688         for EINVAL.
70689
70690 2007-03-03  Bruno Haible  <bruno@clisp.org>
70691
70692         * modules/relocatable-prog (Depends-on): Add back progreloc's
70693         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
70694
70695 2007-03-03  Bruno Haible  <bruno@clisp.org>
70696
70697         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
70698         * modules/relocatable-lib: New file.
70699
70700 2007-03-03  Bruno Haible  <bruno@clisp.org>
70701
70702         * modules/relocatable-prog: Renamed from modules/relocatable.
70703         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
70704
70705 2007-03-03  Bruno Haible  <bruno@clisp.org>
70706
70707         * modules/relocatable-script (Files): Add doc/relocatable.texi,
70708         m4/relocatable-lib.m4.
70709         (Depends-on): Remove 'relocatable'.
70710         (configure.ac): Add gl_RELOCATABLE_NOP.
70711
70712 2007-03-03  Bruno Haible  <bruno@clisp.org>
70713
70714         * modules/relocatable-prog-wrapper: New file.
70715         * modules/relocatable (Depends-on): Add it. Remove all other
70716         dependencies except progname.
70717         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
70718
70719         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
70720         (gl_FUNC_STRERROR): Nop.
70721         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
70722
70723         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
70724         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
70725
70726         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
70727         (gl_FUNC_READLINK): Update.
70728
70729         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
70730
70731 2007-03-03  Bruno Haible  <bruno@clisp.org>
70732
70733         * lib/xreadlink.c: Include <unistd.h> unconditionally.
70734         * modules/xreadlink (Depends-on): Add unistd.
70735         * modules/xreadlink-with-size (Depends-on): Likewise.
70736
70737 2007-03-03  Bruno Haible  <bruno@clisp.org>
70738
70739         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
70740         extracted from gt_FUNC_SETENV.
70741         (gt_FUNC_SETENV): Remove macro.
70742         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
70743         remove gt_FUNC_SETENV.
70744
70745 2007-03-03  Bruno Haible  <bruno@clisp.org>
70746
70747         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
70748         ENABLE_RELOCATABLE here.
70749         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
70750
70751 2007-03-03  Bruno Haible  <bruno@clisp.org>
70752
70753         * modules/rbtreehash-list-tests (Depends-on): Add progname.
70754         * tests/test-rbtreehash_list.c: Include progname.h.
70755         (main): Call set_program_name.
70756
70757         * modules/rbtree-oset-tests (Depends-on): Add progname.
70758         * tests/test-rbtree_oset.c: Include progname.h.
70759         (main): Call set_program_name.
70760
70761         * modules/rbtree-list-tests (Depends-on): Add progname.
70762         * tests/test-rbtree_list.c: Include progname.h.
70763         (main): Call set_program_name.
70764
70765         * modules/linked-list-tests (Depends-on): Add progname.
70766         * tests/test-linked_list.c: Include progname.h.
70767         (main): Call set_program_name.
70768
70769 2007-03-03  Bruno Haible  <bruno@clisp.org>
70770
70771         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
70772         All uses of __restrict changed to _Restrict_.
70773         * lib/glob_.h (__restrict): Remove macro.
70774
70775 2007-03-02  Bruno Haible  <bruno@clisp.org>
70776
70777         * modules/gettext (configure.ac): Require gettext infrastructure
70778         from version 0.16.1.
70779
70780 2007-03-02  Bruno Haible  <bruno@clisp.org>
70781
70782         * modules/linkedhash-list-tests (Depends-on): Add progname.
70783         * tests/test-linkedhash_list.c: Include progname.h.
70784         (main): Call set_program_name.
70785
70786         * modules/carray-list-tests (Depends-on): Add progname.
70787         * tests/test-carray_list.c: Include progname.h.
70788         (main): Call set_program_name.
70789
70790         * modules/avltreehash-list-tests (Depends-on): Add progname.
70791         * tests/test-avltreehash_list.c: Include progname.h.
70792         (main): Call set_program_name.
70793
70794         * modules/avltree-oset-tests (Depends-on): Add progname.
70795         * tests/test-avltree_oset.c: Include progname.h.
70796         (main): Call set_program_name.
70797
70798         * modules/avltree-list-tests (Depends-on): Add progname.
70799         * tests/test-avltree_list.c: Include progname.h.
70800         (main): Call set_program_name.
70801
70802         * modules/array-oset-tests (Depends-on): Add progname.
70803         * tests/test-array_oset.c: Include progname.h.
70804         (main): Call set_program_name.
70805
70806         * modules/array-list-tests (Depends-on): Add progname.
70807         * tests/test-array_list.c: Include progname.h.
70808         (main): Call set_program_name.
70809
70810         * modules/argp-tests (Depends-on): Add progname.
70811         * tests/test-argp.c: Include argp.h first. Include progname.h.
70812         (main): Call set_program_name.
70813
70814 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
70815
70816         * doc/gnulib-tool.texi (Initial import): Reword description of
70817         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
70818         limited effect even if defined after the first system include.
70819
70820 2007-03-01  Bruno Haible  <bruno@clisp.org>
70821
70822         * build-aux/config.libpath: Update to libtool-1.5.22.
70823         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
70824
70825 2007-03-01  Bruno Haible  <bruno@clisp.org>
70826
70827         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
70828         foo_CFLAGS.
70829         Reported by Ralf Wildenhues.
70830
70831 2007-03-01  Bruno Haible  <bruno@clisp.org>
70832
70833         * build-aux/install-reloc: Remove object files left over by some
70834         compilers.
70835         Reported by Ralf Wildenhues.
70836
70837 2007-03-01  Bruno Haible  <bruno@clisp.org>
70838
70839         * build-aux/install-reloc: Break long lines.
70840
70841 2007-03-01  Bruno Haible  <bruno@clisp.org>
70842
70843         * doc/relocatable.texi: Document that it may not work on OpenBSD.
70844         Reported by Ralf Wildenhues.
70845
70846 2007-03-01  Bruno Haible  <bruno@clisp.org>
70847
70848         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
70849         include ordering constraints.
70850
70851 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
70852
70853         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
70854         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
70855         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
70856         as another example.
70857         * lib/time_.h: Fix misspelling.
70858         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
70859         Require gl_HEADER_TIME_H_DEFAULTS.
70860         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
70861         * m4/time_r.m4 (gl_TIME_R): Likewise.
70862         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
70863
70864 2007-03-01  Bruno Haible  <bruno@clisp.org>
70865
70866         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
70867         * m4/utimens.m4 (gl_UTIMENS): Likewise.
70868
70869 2007-03-01  Jim Meyering  <jim@meyering.net>
70870
70871         * modules/xreadlink (Maintainer): Add my name.
70872         * modules/xreadlink-with-size (Depends-on): Alphabetize.
70873
70874 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
70875             Bruno Haible  <bruno@clisp.org>
70876
70877         * build-aux/install-reloc: Compile also c-ctype.c.
70878         * build-aux/relocatable.sh.in: New file.
70879         * doc/relocatable.texi: New file.
70880         * doc/relocatable-maint.texi: New file.
70881         * doc/gnulib.texi: Include relocatable-maint.texi.
70882         * lib/progreloc.c: Include unistd.h unconditionally.
70883         * lib/relocwrapper.c: Include unistd.h unconditionally.
70884         Include c-ctype.h.
70885         (add_dotbin): Use c_tolower.
70886         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
70887         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
70888         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
70889         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
70890         to m4/relocatable-lib.m4.
70891         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
70892         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
70893         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
70894         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
70895         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
70896         * modules/relocatable: New file.
70897         * modules/relocatable-lib: New file.
70898         * modules/relocatable-script: New file.
70899
70900 2007-02-28  Bruno Haible  <bruno@clisp.org>
70901
70902         Import --enable-relocatable infrastructure.
70903         * build-aux/config.libpath: New file, from GNU gettext.
70904         * build-aux/install-reloc: New file, from GNU gettext.
70905         * build-aux/reloc-ldflags: New file, from GNU gettext.
70906         * lib/relocatable.h: New file, from GNU gettext.
70907         * lib/relocatable.c: New file, from GNU gettext.
70908         * lib/relocwrapper.c: New file, from GNU gettext.
70909         * m4/relocatable.m4: New file, from GNU gettext.
70910
70911 2007-02-28  Bruno Haible  <bruno@clisp.org>
70912
70913         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
70914
70915         * modules/xreadlink: New file, from GNU gettext with modifications.
70916         * lib/xreadlink.c: New file, from GNU gettext.
70917         * lib/xreadlink.h: Add comments.
70918         (xreadlink): New declaration.
70919
70920         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
70921         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
70922         lib/xreadlink-with-size.c.
70923         (configure.ac): Remove gl_XREADLINK invocation.
70924         (Makefile.am): Augment lib_SOURCES.
70925         * m4/xreadlink.m4: Remove file.
70926         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
70927         (xreadlink_with_size): Renamed from xreadink.
70928         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
70929         * modules/canonicalize (Depends-on): Replace xreadlink with
70930         xreadlink-with-size.
70931         * lib/canonicalize.c (canonicalize_filename_mode): Update.
70932
70933 2007-02-25  Jim Meyering  <jim@meyering.net>
70934
70935         * build-aux/announce-gen: When complaining about excess arguments,
70936         list them.
70937
70938 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
70939
70940         * README: Document signed integer overflow situation more
70941         accurately.
70942
70943 2007-02-25  Bruno Haible  <bruno@clisp.org>
70944
70945         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
70946         'a' or 'A' conversion.
70947
70948 2007-02-25  Bruno Haible  <bruno@clisp.org>
70949
70950         * modules/filename: Renamed from modules/pathname.
70951         (Files): Replace lib/pathname.h with lib/filename.h. Replace
70952         lib/concatpath.c with lib/concat-filename.c.
70953         (Makefile.am): Update.
70954         (Include): Replace pathname.h with filename.h.
70955         * lib/filename.h: Renamed from lib/pathname.h.
70956         (concatenated_filename): Renamed from concatenated_pathname.
70957         * lib/concat-filename.c: Renamed from lib/concatpath.c.
70958         (concatenated_filename): Renamed from concatenated_pathname.
70959         * lib/findprog.c: Include filename.h instead of pathname.h.
70960         (find_in_path): Update.
70961         * lib/javacomp.c: Include filename.h instead of pathname.h.
70962         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
70963         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
70964         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
70965         is_oldgcj_14_13_usable, is_javac_usable): Update.
70966         * lib/javaexec.c: Include filename.h instead of pathname.h.
70967         (execute_java_class): Update.
70968         * modules/findprog: Update.
70969         * modules/javacomp: Update.
70970         * modules/javaexec: Update.
70971         * MODULES.html.sh (File system functions): Add 'filename', remove
70972         'pathname'.
70973
70974 2007-02-25  Bruno Haible  <bruno@clisp.org>
70975
70976         * modules/printf-frexpl-tests: New file.
70977         * tests/test-printf-frexpl.c: New file.
70978
70979         * modules/printf-frexpl: New file.
70980         * lib/printf-frexpl.h: New file.
70981         * lib/printf-frexpl.c: New file.
70982         * m4/printf-frexpl.m4: New file.
70983
70984 2007-02-25  Bruno Haible  <bruno@clisp.org>
70985
70986         * modules/printf-frexp-tests: New file.
70987         * tests/test-printf-frexp.c: New file.
70988
70989         * modules/printf-frexp: New file.
70990         * lib/printf-frexp.h: New file.
70991         * lib/printf-frexp.c: New file.
70992         * m4/printf-frexp.m4: New file.
70993
70994 2007-02-25  Bruno Haible  <bruno@clisp.org>
70995
70996         Assume automake >= 1.10 for the tests.
70997         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
70998         * modules/arctwo-tests: Likewise.
70999         * modules/argp-tests: Likewise.
71000         * modules/avltree-list-tests: Likewise.
71001         * modules/avltree-oset-tests: Likewise.
71002         * modules/avltreehash-list-tests: Likewise.
71003         * modules/carray-list-tests: Likewise.
71004         * modules/crc-tests: Likewise.
71005         * modules/des-tests: Likewise.
71006         * modules/gc-arcfour-tests: Likewise.
71007         * modules/gc-arctwo-tests: Likewise.
71008         * modules/gc-des-tests: Likewise.
71009         * modules/gc-hmac-md5-tests: Likewise.
71010         * modules/gc-hmac-sha1-tests: Likewise.
71011         * modules/gc-md2-tests: Likewise.
71012         * modules/gc-md4-tests: Likewise.
71013         * modules/gc-md5-tests: Likewise.
71014         * modules/gc-pbkdf2-sha1-tests: Likewise.
71015         * modules/gc-rijndael-tests: Likewise.
71016         * modules/gc-sha1-tests: Likewise.
71017         * modules/gc-tests: Likewise.
71018         * modules/getaddrinfo-tests: Likewise.
71019         * modules/hmac-md5-tests: Likewise.
71020         * modules/hmac-sha1-tests: Likewise.
71021         * modules/linked-list-tests: Likewise.
71022         * modules/linkedhash-list-tests: Likewise.
71023         * modules/lock-tests: Likewise.
71024         * modules/md2-tests: Likewise.
71025         * modules/md4-tests: Likewise.
71026         * modules/md5-tests: Likewise.
71027         * modules/rbtree-list-tests: Likewise.
71028         * modules/rbtree-oset-tests: Likewise.
71029         * modules/rbtreehash-list-tests: Likewise.
71030         * modules/read-file-tests: Likewise.
71031         * modules/rijndael-tests: Likewise.
71032         * modules/stdint-tests: Likewise.
71033         * modules/tls-tests: Likewise.
71034
71035 2007-02-24  Bruno Haible  <bruno@clisp.org>
71036
71037         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
71038         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
71039         function; instead check whether isnan with a double argument links.
71040         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
71041         function; instead check whether isnan with a 'long double' argument
71042         links.
71043         Reported by Eric Blake <ebb9@byu.net>.
71044
71045 2007-02-24  Bruno Haible  <bruno@clisp.org>
71046
71047         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
71048         defined.
71049         * lib/isnanl.c: Remove all code. Just include isnan.c.
71050         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
71051
71052 2007-02-25  Jim Meyering  <jim@meyering.net>
71053
71054         Avoid conflicting types for 'unsetenv' on FreeBSD.
71055         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
71056         conflicting with FreeBSD's (5.0 and 6.1) function declaration
71057         in stdlib.h.
71058
71059 2007-02-24  Bruno Haible  <bruno@clisp.org>
71060
71061         * modules/isnanl-nolibm-tests: New file.
71062         * tests/test-isnanl.c: New file.
71063
71064         * modules/isnanl-nolibm: New file.
71065         * lib/isnanl.h: New file.
71066         * lib/isnanl.c: New file.
71067         * m4/isnanl.m4: New file.
71068
71069 2007-02-24  Bruno Haible  <bruno@clisp.org>
71070
71071         * modules/isnan-nolibm-tests: New file.
71072         * tests/test-isnan.c: New file.
71073
71074         * modules/isnan-nolibm: New file.
71075         * lib/isnan.h: New file.
71076         * lib/isnan.c: New file.
71077         * m4/isnan.m4: New file.
71078
71079 2007-02-24  Bruno Haible  <bruno@clisp.org>
71080
71081         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
71082         assume that an exponent fits in 20 bits.
71083
71084 2007-02-24  Jim Meyering  <jim@meyering.net>
71085
71086         * m4/regex.m4: Update the description of the configure-time option,
71087         --without-included-regex, to state accurately what the defaults are,
71088         and perhaps to give people an idea why using this option is risky.
71089
71090 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
71091
71092         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
71093         loops on small arguments.  This attempts to avoid the problem
71094         Bruno Haible reported for AIX 4.3.2 in
71095         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
71096
71097 2007-02-23  Bruno Haible  <bruno@clisp.org>
71098
71099         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
71100         Needed for help2man.
71101
71102 2007-02-23  Karl Berry  <karl@gnu.org>
71103
71104         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
71105         exists, foo.h should be cvs-ignored, not committed.
71106
71107 2007-02-23  Eric Blake  <ebb9@byu.net>
71108
71109         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
71110         * lib/stat-time.h (includes): Likewise.
71111         * lib/utimecmp.c (includes): Likewise.
71112         * lib/utimens.h (includes): Likewise.
71113         * lib/getdate.y (includes): Also include "timespec.h" for use
71114         internal to the module.
71115         * modules/utimens (Depends-on): Revert yesterday's patch.
71116         * modules/nanosleep (Depends-on): Add missing dependency.
71117
71118 2007-02-22  Bruno Haible  <bruno@clisp.org>
71119
71120         * lib/glob.c: Don't include getlogin_r.h.
71121
71122 2007-02-22  Jim Meyering  <jim@meyering.net>
71123
71124         * modules/utimens (Depends-on): Add timespec, required for
71125         utimens.h's inclusion of timespec.h.
71126
71127 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
71128
71129         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
71130         long unreadable paths in GNU/Linux.  Problem reported by Andreas
71131         Schwab in
71132         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
71133         I'll try to think of a better way to fix the Solaris problem.
71134
71135         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
71136         like glibc; on Solaris 10, it fails with errno == EINVAL.
71137         POSIX says the behavior is unspecified if the first argument is NULL,
71138         so play it safe and never pass NULL to the system getcwd.
71139
71140 2007-02-21  Jim Meyering  <jim@meyering.net>
71141
71142         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
71143         of gettimeofday.  It would conflict with the one now always
71144         provided via sys_time_.h.  Reported by Matthew Woehlke, as
71145         an IRIX 6.5 build failure.
71146
71147 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
71148
71149         Minor fixups to port to Solaris 10 with Sun C 5.8.
71150         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
71151         * modules/getcwd (Depends-on): Add dirfd.
71152         * lib/putenv.c (putenv): #undef it.
71153         (rpl_putenv): New decl.
71154         (malloc, free): Include <stdlib.h> rather than prototyping separately.
71155
71156 2007-02-20  Bruno Haible  <bruno@clisp.org>
71157
71158         * modules/stdio-tests: New file.
71159         * tests/test-stdio.c: New file.
71160
71161         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
71162         (Depends-on): Add stdio.
71163         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
71164         (Include): Use <stdio.h> instead of vsnprintf.h.
71165         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
71166         HAVE_DECL_VSNPRINTF.
71167         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
71168
71169         * modules/snprintf (Files): Remove lib/snprintf.h.
71170         (Depends-on): Add stdio.
71171         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
71172         (Include): Use <stdio.h> instead of snprintf.h.
71173         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
71174         HAVE_DECL_SNPRINTF.
71175         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
71176         * lib/getaddrinfo.c: Likewise.
71177
71178         * modules/stdio: New file.
71179         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
71180         * lib/snprintf.h: Remove file.
71181         * lib/vsnprintf.h: Remove file.
71182         * lib/.cppi-disable: Remove snprintf.h.
71183         * m4/stdio_h.m4: New file.
71184         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
71185
71186 2007-02-20  Jim Meyering  <jim@meyering.net>
71187
71188         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
71189         used by e.g., mingw.  From Bruno Haible.
71190
71191 2007-02-19  Bruno Haible  <bruno@clisp.org>
71192
71193         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
71194         warnings.
71195         Reported by Ben Pfaff <blp@cs.stanford.edu>.
71196
71197 2007-02-19  Bruno Haible  <bruno@clisp.org>
71198
71199         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
71200         from mingw users.
71201
71202 2007-02-19  Bruno Haible  <bruno@clisp.org>
71203
71204         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
71205         warnings.
71206         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
71207
71208 2007-02-19  Jim Meyering  <jim@meyering.net>
71209
71210         Don't use FD after a successful "fdopendir (fd)".
71211         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
71212         Reset it by calling dirfd on the just-obtained DIR*.
71213
71214         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
71215         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
71216
71217 2007-02-18  Bruno Haible  <bruno@clisp.org>
71218
71219         * lib/readlink.c: Include <unistd.h>.
71220         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
71221         HAVE_READLINK.
71222         * modules/readlink (Depends-on): Add unistd.
71223         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
71224         (Include): Add <unistd.h>.
71225
71226         * lib/getlogin_r.h: Remove file.
71227         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
71228         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
71229         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
71230         HAVE_DECL_GETLOGIN_R.
71231         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
71232         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
71233         (Include): Use <unistd.h> instead of getlogin_r.h.
71234
71235         * lib/getcwd.h: Remove file.
71236         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
71237         * lib/xgetcwd.c: Likewise.
71238         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
71239         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
71240         * modules/getcwd (Files): Remove lib/getcwd.h.
71241         (Depends-on): Add unistd.
71242         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
71243         (Include): Use <unistd.h> instad of getcwd.h.
71244
71245         * lib/ftruncate.c: Include <unistd.h> first.
71246         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
71247         Set HAVE_FTRUNCATE.
71248         * modules/ftruncate (Depends-on): Add unistd.
71249         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
71250
71251         * lib/fchdir.c: Include <unistd.h> first.
71252         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
71253         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
71254         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
71255         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
71256         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
71257
71258         * lib/dup2.c: Include <unistd.h> first.
71259         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
71260         HAVE_DUP2.
71261         * modules/dup2 (Depends-on): Add unistd.
71262         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
71263
71264         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
71265         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
71266         REPLACE_CHOWN. Don't define chown as a macro here.
71267         * modules/chown (Depends-on): Add unistd.
71268         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
71269
71270         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
71271         Add definition for GL_LINK_WARNING.
71272         (chown, dup2): New declarations.
71273         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
71274         link warning.
71275         (ftruncate): New declaration.
71276         (getcwd): New declaration, taken from old getcwd.h.
71277         (getlogin_r): New declaration, taken from old getlogin_r.h.
71278         (readlink): New declaration.
71279         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
71280         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
71281         (gl_PREREQ_UNISTD): Remove macro.
71282         (gl_UNISTD_MODULE_INDICATOR): New macro.
71283         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
71284         many new variables. Don't set UNISTD_H.
71285         * modules/unistd (Description): Change.
71286         (Depends-on): Add link-warning.
71287         (configure.ac): Update.
71288         (Makefile.am): Create unistd.h always. Substitute many new variables
71289         into it.
71290
71291 2007-02-18  Bruno Haible  <bruno@clisp.org>
71292
71293         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
71294         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
71295         HAVE_GETSUBOPT.
71296         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
71297         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
71298         * lib/getsubopt.h: Remove file.
71299         * modules/getsubopt (Files): Remove lib/getsubopt.h.
71300         (Depends-on): Add stdlib.
71301         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
71302         (Includes): Use <stdlib.h> instead of getsubopt.h.
71303         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
71304         Set HAVE_GETSUBOPT.
71305         * lib/getsubopt.c: Don't include getsubopt.h.
71306
71307 2007-02-18  Bruno Haible  <bruno@clisp.org>
71308
71309         * modules/fchdir (Depends-on): Add dup2.
71310
71311 2007-02-18  Bruno Haible  <bruno@clisp.org>
71312
71313         * lib/stdlib_.h: Handle glibc's special invocation convention
71314         specially.
71315
71316 2007-02-18  Bruno Haible  <bruno@clisp.org>
71317
71318         * modules/stdlib-tests: New file.
71319         * tests/test-stdlib.c: New file.
71320
71321         * modules/mkstemp (Files): Remove lib/mkstemp.h.
71322         (Depends-on): Add stdlib.
71323         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
71324         (Includes): Use <stdlib.h> instead of mkstemp.h.
71325         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
71326         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
71327         * lib/mkstemp.c: Don't include mkstemp.h.
71328         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
71329         * lib/stdlib--.h: Don't include mkstemp.h.
71330
71331         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
71332         (Depends-on): Add stdlib.
71333         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
71334         (Includes): Use <stdlib.h> instead of mkdtemp.h.
71335         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
71336         HAVE_MKDTEMP.
71337         * lib/mkdtemp.c: Don't include mkdtemp.h.
71338         * lib/clean-temp.c: Don't include mkdtemp.h.
71339
71340         * modules/exit (Files): Remove lib/exit.h.
71341         (Depends-on): Add stdlib.
71342         (Makefile.am): Remove lib_SOURCES.
71343         (Include): Use <stdlib.h> instead of exit.h.
71344         * lib/argmatch.c: Don't include exit.h.
71345         * lib/execute.c: Likewise.
71346         * lib/pagealign_alloc.c: Likewise.
71347         * lib/pipe.c: Likewise.
71348         * lib/wait-process.c: Likewise.
71349         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
71350         * lib/exitfail.c: Likewise.
71351         * lib/savewd.c: Likewise.
71352         * lib/xsetenv.c: Likewise.
71353
71354         * modules/stdlib: New file.
71355         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
71356         and extra comments about mkstemp().
71357         * lib/exit.h: Remove file.
71358         * lib/mkdtemp.h: Remove file.
71359         * lib/mkstemp.h: Remove file.
71360         * m4/stdlib_h.m4: New file.
71361         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
71362
71363 2007-02-18  Bruno Haible  <bruno@clisp.org>
71364
71365         * modules/math-tests: New file.
71366         * tests/test-math.c: New file.
71367
71368         * modules/math: New file.
71369         * modules/mathl (Files): Remove lib/mathl.h.
71370         (Depends-on): Add math.
71371         (Makefile.am): Don't mention mathl.h.
71372         (Include): Use <math.h> instead of mathl.h.
71373         * lib/math_.h: New file.
71374         * lib/mathl.h: Remove file.
71375         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
71376         mathl.h.
71377         * lib/asinl.c: Likewise.
71378         * lib/atanl.c: Likewise.
71379         * lib/ceill.c: Likewise.
71380         * lib/cosl.c: Likewise.
71381         * lib/expl.c: Likewise.
71382         * lib/floorl.c: Likewise.
71383         * lib/frexpl.c: Likewise.
71384         * lib/ldexpl.c: Likewise.
71385         * lib/logl.c: Likewise.
71386         * lib/sincosl.c: Likewise.
71387         * lib/sinl.c: Likewise.
71388         * lib/sqrtl.c: Likewise.
71389         * lib/tanl.c: Likewise.
71390         * lib/trigl.c: Likewise.
71391         * m4/math_h.m4: New file.
71392         * MODULES.html.sh (Mathematics): Add math.
71393
71394 2007-02-17  Bruno Haible  <bruno@clisp.org>
71395
71396         * modules/wctype-tests: New file.
71397         * tests/test-wctype.c: New file.
71398
71399         * modules/wchar-tests: New file.
71400         * tests/test-wchar.c: New file.
71401
71402         * modules/unistd-tests: New file.
71403         * tests/test-unistd.c: New file.
71404
71405         * modules/time-tests: New file.
71406         * tests/test-time.c: New file.
71407
71408         * modules/sysexits-tests: New file.
71409         * tests/test-sysexits.c: New file.
71410
71411         * modules/sys_time-tests: New file.
71412         * tests/test-sys_time.c: New file.
71413
71414         * modules/sys_stat-tests: New file.
71415         * tests/test-sys_stat.c: New file.
71416
71417         * modules/sys_socket-tests: New file.
71418         * tests/test-sys_socket.c: New file.
71419
71420         * modules/sys_select-tests: New file.
71421         * tests/test-sys_select.c: New file.
71422
71423         * modules/string-tests: New file.
71424         * tests/test-string.c: New file.
71425
71426         * modules/stdbool-tests: New file.
71427         * tests/test-stdbool.c: New file.
71428
71429         * modules/netinet_in-tests: New file.
71430         * tests/test-netinet_in.c: New file.
71431
71432         * modules/inttypes-tests: New file.
71433         * tests/test-inttypes.c: New file.
71434
71435         * modules/fcntl-tests: New file.
71436         * tests/test-fcntl.c: New file.
71437
71438         * modules/byteswap-tests: New file.
71439         * tests/test-byteswap.c: New file.
71440
71441         * modules/arpa_inet-tests: New file.
71442         * tests/test-arpa_inet.c: New file.
71443
71444 2007-02-17  Bruno Haible  <bruno@clisp.org>
71445
71446         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
71447         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
71448         if the corresponding module is not enabled. Emit link warnings if
71449         the function is used nevertheless.
71450         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
71451         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
71452         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
71453         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
71454         * modules/inttypes (Depends-on): Add link-warning.
71455         (Makefile.am): Copy the contents of build-aux/link-warning.h into
71456         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
71457         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
71458         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
71459         * modules/imaxdiv (configure.ac): Likewise.
71460         * modules/strtoimax (configure.ac): Likewise.
71461         * modules/strtoumax (configure.ac): Likewise.
71462
71463 2007-02-17  Bruno Haible  <bruno@clisp.org>
71464
71465         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
71466         gl_STRING_MODULE_INDICATOR_DEFAULTS.
71467         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
71468         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
71469
71470 2007-02-17  Bruno Haible  <bruno@clisp.org>
71471
71472         * modules/link-warning: New file.
71473         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
71474         * lib/string_.h (GL_LINK_WARNING): Remove definition.
71475         * modules/string (Depends-on): Add link-warning.
71476         (Makefile.am): Copy the contents of build-aux/link-warning.h into
71477         string.h.
71478         * MODULES.html.sh (Support for building libraries and executables): Add
71479         link-warning.
71480
71481 2007-02-17  Bruno Haible  <bruno@clisp.org>
71482
71483         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
71484         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
71485         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
71486         long lines.
71487
71488 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
71489             Bruno Haible  <bruno@clisp.org>
71490
71491         * modules/tmpfile: New file.
71492         * lib/tmpfile.c: New file.
71493         * m4/tmpfile.m4: New file.
71494         * MODULES.html.sh (func_all_modules): New section "Input/output".
71495
71496 2007-02-15  Bruno Haible  <bruno@clisp.org>
71497
71498         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
71499         (supports_delete_on_close): New function.
71500         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
71501
71502 2007-02-14  Bruno Haible  <bruno@clisp.org>
71503
71504         * modules/mbspcasecmp-tests: New file.
71505         * tests/test-mbspcasecmp.sh: New file.
71506         * tests/test-mbspcasecmp.c: New file.
71507
71508         New module mbspcasecmp.
71509         * modules/mbspcasecmp: New file.
71510         * lib/mbspcasecmp.c: New file.
71511         * lib/string_.h (strncasecmp): Change warning message.
71512         (mbspcasecmp): New declaration.
71513         * m4/mbspcasecmp.m4: New file.
71514         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
71515         GNULIB_MBSPCASECMP.
71516         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
71517         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
71518
71519 2007-02-14  Bruno Haible  <bruno@clisp.org>
71520
71521         * modules/mbsncasecmp-tests: New file.
71522         * tests/test-mbsncasecmp.sh: New file.
71523         * tests/test-mbsncasecmp.c: New file.
71524
71525         New module mbsncasecmp.
71526         * modules/mbsncasecmp: New file.
71527         * lib/mbsncasecmp.c: New file.
71528         * lib/string_.h (mbsncasecmp): New declaration.
71529         * m4/mbsncasecmp.m4: New file.
71530         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
71531         GNULIB_MBSNCASECMP.
71532         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
71533         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
71534
71535 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
71536
71537         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
71538         Verify that it doesn't overlap with our flags.
71539         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
71540         do not have the desired effect in multibyte locales; instead, use
71541         mbscasecmp.
71542         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
71543         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
71544         we don't require GNU fnmatch ourselves (if our users require it, they
71545         should do so explicitly).
71546
71547         Fix regex code so it doesn't rely on strcasecmp.
71548         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
71549         Otherwise, include gnulib's langinfo.h.
71550         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
71551         undesirable behavior in non-C locales.  Instead, rely on localecharset.
71552         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
71553         * modules/regex (FILES): Remove m4/codeset.m4.
71554         (Depends-on): Add localcharset.  Remove strcase.
71555
71556 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71557
71558         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
71559         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
71560
71561 2007-02-13  Bruno Haible  <bruno@clisp.org>
71562
71563         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
71564         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
71565
71566 2007-02-12  Bruno Haible  <bruno@clisp.org>
71567
71568         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
71569         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
71570         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
71571         time warning rather than a link error.
71572
71573 2007-02-12  Bruno Haible  <bruno@clisp.org>
71574
71575         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
71576         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
71577         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
71578
71579 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
71580
71581         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
71582         args, not 2.
71583
71584 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
71585
71586         New module 'time', so that apps can include <time.h> as per
71587         POSIX and GNU instead of separate include files like time_r.h
71588         and timegm.h.  This implementation tries out a simpler approach
71589         for replacing decls in standard include files (as compared to
71590         the string module), somewhat as an experiment.
71591
71592         * config/srclist.txt: Comment out mktime.c for now.
71593         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
71594         since it doesn't apply any more.  Use generic wording instead.
71595         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
71596         'time'.
71597         * lib/time_.h, m4/time_h.m4, modules/time: New files.
71598         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
71599         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
71600         Don't include <sys/types.h>; no longer needed since we assume C89.
71601         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
71602         * lib/strftime.c: Likewise.
71603         * lib/time_r.c: Likewise.
71604         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
71605         * lib/nanosleep.c: Include <time.h> first, to check interface.
71606         * lib/strptime.c: Likewise.
71607         * lib/time_r.c: Likewise.
71608         * lib/timegm.c: Likewise.
71609         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
71610         needed.
71611         * lib/timegm.c: Don't include timegm.h; no longer needed.
71612         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
71613         time.h now handles any problems in that area.
71614         (struct timespec, nanosleep): Remove; time.h now arranges for these.
71615         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
71616         that time.h defines struct timespec.
71617         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
71618         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
71619         handles that.
71620         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
71621         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
71622         needed.  Set REPLACE_LOCALTIME.
71623         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
71624         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
71625         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
71626         nanosleep; time_h.m4 now does that.  Don't require
71627         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
71628         module handles this now.
71629         * modules/getdate (Depends-on): Remove timespec.  Add time.
71630         * modules/nanosleep (Depends-on): Likewise.
71631         * modules/stat-time (Depends-on): Likewise.
71632         * modules/nanosleep (Include): Include time.h, not timespec.h.
71633         * modules/strptime (Files): Remove lib/strptime.h.
71634         (Depends-on): Add extensions, time.
71635         (Include): Include time.h, not strptime.h.
71636         * modules/time_r (Files): Remove lib/time_r.h.
71637         (Depends-on): Add time.
71638         (Include): Include time.h, not time_r.h.
71639         * modules/timegm: Likewise.
71640         * modules/timespec (Description): Now does timespec-related decls
71641         of our own, instead of struct timespec itself.
71642         (Depends-on): Add time; remove extensions.
71643         (Maintainer): Add self.
71644         * modules/utimecmp (Depends-on): Add time; remove timespec.
71645         * modules/utimens (Depends-on): Likewise.
71646         * modules/xnanosleep (Depends-on): Likewise.
71647
71648 2007-02-11  Bruno Haible  <bruno@clisp.org>
71649
71650         * lib/c-strstr.c: Include allocsa.h.
71651         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
71652         * lib/c-strcasestr.c: Include allocsa.h.
71653         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
71654         * lib/strcasestr.c: Include allocsa.h.
71655         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
71656         * lib/mbsstr.c: Include allocsa.h.
71657         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
71658         allocsa/freesa instead of malloc/free.
71659         * lib/mbscasestr.c: Include allocsa.h.
71660         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
71661         allocsa/freesa instead of malloc/free.
71662         * modules/c-strstr (Depends-on): Add allocsa.
71663         * modules/c-strcasestr (Depends-on): Likewise.
71664         * modules/strcasestr (Depends-on): Likewise.
71665         * modules/mbsstr (Depends-on): Likewise.
71666         * modules/mbscasestr (Depends-on): Likewise.
71667
71668 2007-02-11  Bruno Haible  <bruno@clisp.org>
71669
71670         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
71671
71672         * modules/mbsspn-tests: New file.
71673         * tests/test-mbsspn.sh: New file.
71674         * tests/test-mbsspn.c: New file.
71675
71676 2007-02-11  Bruno Haible  <bruno@clisp.org>
71677
71678         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
71679
71680         * modules/mbspbrk-tests: New file.
71681         * tests/test-mbspbrk.sh: New file.
71682         * tests/test-mbspbrk.c: New file.
71683
71684 2007-02-11  Bruno Haible  <bruno@clisp.org>
71685
71686         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
71687         unneeded cast.
71688
71689         * modules/mbscspn-tests: New file.
71690         * tests/test-mbscspn.sh: New file.
71691         * tests/test-mbscspn.c: New file.
71692
71693 2007-02-11  Bruno Haible  <bruno@clisp.org>
71694
71695         * modules/mbscasecmp-tests: New file.
71696         * tests/test-mbscasecmp.sh: New file.
71697         * tests/test-mbscasecmp.c: New file.
71698
71699 2007-02-11  Bruno Haible  <bruno@clisp.org>
71700
71701         Ensure O(n) worst-case complexity of mbscasestr.
71702         * lib/mbscasestr.c: Include stdbool.h.
71703         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
71704         functions.
71705         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
71706         the bookkeeping indicates that it's worth it.
71707         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
71708
71709         * modules/mbscasestr-tests: New file.
71710         * tests/test-mbscasestr1.c: New file.
71711         * tests/test-mbscasestr2.sh: New file.
71712         * tests/test-mbscasestr2.c: New file.
71713         * tests/test-mbscasestr3.sh: New file.
71714         * tests/test-mbscasestr3.c: New file.
71715         * tests/test-mbscasestr4.sh: New file.
71716         * tests/test-mbscasestr4.c: New file.
71717         * m4/locale-tr.m4: New file.
71718
71719 2007-02-11  Bruno Haible  <bruno@clisp.org>
71720
71721         Ensure O(n) worst-case complexity of mbsstr.
71722         * lib/mbsstr.c: Include stdbool.h.
71723         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
71724         functions.
71725         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
71726         bookkeeping indicates that it's worth it.
71727         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
71728
71729         * modules/mbsstr-tests: New file.
71730         * tests/test-mbsstr1.c: New file.
71731         * tests/test-mbsstr2.sh: New file.
71732         * tests/test-mbsstr2.c: New file.
71733         * tests/test-mbsstr3.sh: New file.
71734         * tests/test-mbsstr3.c: New file.
71735         * m4/locale-fr.m4: New file.
71736
71737 2007-02-11  Bruno Haible  <bruno@clisp.org>
71738
71739         * lib/mbsrchr.c (mbsrchr): Fix bug.
71740
71741         * modules/mbsrchr-tests: New file.
71742         * tests/test-mbsrchr.sh: New file.
71743         * tests/test-mbsrchr.c: New file.
71744
71745 2007-02-11  Bruno Haible  <bruno@clisp.org>
71746
71747         * lib/mbschr.c (mbschr): Fix bug.
71748
71749         * modules/mbschr-tests: New file.
71750         * tests/test-mbschr.sh: New file.
71751         * tests/test-mbschr.c: New file.
71752         * m4/locale-zh.m4: New file.
71753
71754 2007-02-11  Bruno Haible  <bruno@clisp.org>
71755
71756         Support for copying multibyte string iterators.
71757         * lib/mbiter.h: Include <string.h>.
71758         (mbiter_multi_copy): New function.
71759         (mbi_copy): New macro.
71760         * lib/mbuiter.h: Include <string.h>.
71761         (mbuiter_multi_copy): New function.
71762         (mbui_copy): New macro.
71763
71764 2007-02-11  Bruno Haible  <bruno@clisp.org>
71765
71766         New module mbslen.
71767         * modules/mbslen: New file.
71768         * lib/mbslen.c: New file.
71769         * lib/string_.h (mbslen): New declaration.
71770         * m4/mbslen.m4: New file.
71771         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
71772         GNULIB_MBSLEN.
71773         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
71774         * MODULES.html.sh (Internationalization functions): Add mbslen.
71775
71776 2007-02-11  Bruno Haible  <bruno@clisp.org>
71777
71778         Ensure O(n) worst-case complexity of strcasestr substitute.
71779         * lib/strcasestr.c: Include stdbool.h.
71780         (knuth_morris_pratt): New function.
71781         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
71782         bookkeeping indicates that it's worth it.
71783         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
71784
71785         * modules/strcasestr-tests: New file.
71786         * tests/test-strcasestr.c: New file.
71787
71788 2007-02-11  Bruno Haible  <bruno@clisp.org>
71789
71790         Ensure O(n) worst-case complexity of c_strcasestr.
71791         * lib/c-strcasestr.c: Include stdbool.h, string.h.
71792         (knuth_morris_pratt): New function.
71793         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
71794         the bookkeeping indicates that it's worth it.
71795         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
71796
71797         * modules/c-strcasestr-tests: New file.
71798         * tests/test-c-strcasestr.c: New file.
71799
71800 2007-02-11  Bruno Haible  <bruno@clisp.org>
71801
71802         Ensure O(n) worst-case complexity of c_strstr.
71803         * lib/c-strstr.c: Include stdbool.h, string.h.
71804         (knuth_morris_pratt): New function.
71805         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
71806         bookkeeping indicates that it's worth it.
71807         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
71808
71809         * lib/c-strstr.c: Complete rewrite for maintainability.
71810
71811         * modules/c-strstr-tests: New file.
71812         * tests/test-c-strstr.c: New file.
71813
71814 2007-02-11  Bruno Haible  <bruno@clisp.org>
71815
71816         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
71817         5.2.1 and earlier, whereby \055 was treated just like the range
71818         delimiter '-'.
71819         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
71820
71821 2007-02-08  Bruno Haible  <bruno@clisp.org>
71822
71823         * modules/regex (Depends-on): Add stdbool.
71824         Reported by Dalibor Topic <robilad@kaffe.org>.
71825
71826 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
71827
71828         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
71829         Prefer returning from main to exiting from it.
71830         Remove unnecessary parens after sizeof.
71831
71832 2007-02-05  Bruno Haible  <bruno@clisp.org>
71833
71834         New module mbssep.
71835         * modules/mbssep: New file.
71836         * lib/mbssep.c: New file.
71837         * lib/string_.h (strsep): Add a conditional link warning.
71838         (mbssep): New declaration.
71839         * m4/mbssep.m4: New file.
71840         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
71841         GNULIB_MBSSEP.
71842         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
71843         * MODULES.html.sh (Internationalization functions): Add mbssep.
71844
71845 2007-02-05  Bruno Haible  <bruno@clisp.org>
71846
71847         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
71848         Optimize search in case of 1 delimiter.
71849
71850 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
71851
71852         * lib/acl.h: Include sys/types.h before sys/acl.h.
71853
71854 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
71855
71856         Merge upstream fix for glibc bugzilla #3957:
71857
71858         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
71859
71860         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
71861         bit for RE_HAT_LISTS_NOT_NEWLINE.
71862         (build_charclass_op): Remove bogus comment.
71863
71864 2007-02-05  Simon Josefsson  <simon@josefsson.org>
71865
71866         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
71867
71868 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
71869
71870         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
71871         * lib/memmem.c [!defined _LIBC]: Include config.h.
71872
71873 2007-02-04  Bruno Haible  <bruno@clisp.org>
71874
71875         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
71876         warning message.
71877
71878 2007-02-04  Bruno Haible  <bruno@clisp.org>
71879
71880         New module mbstok_r.
71881         * modules/mbstok_r: New file.
71882         * lib/mbstok_r.c: New file.
71883         * lib/string_.h (strtok_r): Change argument names to match the
71884         comments. Add a conditional link warning.
71885         (mbstok_r): New declaration.
71886         * m4/mbstok_r.m4: New file.
71887         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
71888         GNULIB_MBSTOK_R.
71889         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
71890         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
71891
71892 2007-02-04  Bruno Haible  <bruno@clisp.org>
71893
71894         New module mbsspn.
71895         * modules/mbsspn: New file.
71896         * lib/mbsspn.c: New file.
71897         * lib/string_.h (strspn): Add a conditional link warning.
71898         (mbsspn): New declaration.
71899         * m4/mbsspn.m4: New file.
71900         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
71901         GNULIB_MBSSPN.
71902         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
71903         * MODULES.html.sh (Internationalization functions): Add mbsspn.
71904
71905 2007-02-04  Bruno Haible  <bruno@clisp.org>
71906
71907         New module mbspbrk.
71908         * modules/mbspbrk: New file.
71909         * lib/mbspbrk.c: New file.
71910         * lib/string_.h (strpbrk): Add a conditional link warning.
71911         (mbspbrk): New declaration.
71912         * m4/mbspbrk.m4: New file.
71913         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
71914         GNULIB_MBSPBRK.
71915         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
71916         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
71917
71918 2007-02-04  Bruno Haible  <bruno@clisp.org>
71919
71920         New module mbscspn.
71921         * modules/mbscspn: New file.
71922         * lib/mbscspn.c: New file.
71923         * lib/string_.h (strcspn): Add a conditional link warning.
71924         (mbscspn): New declaration.
71925         * m4/mbscspn.m4: New file.
71926         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
71927         GNULIB_MBSCSPN.
71928         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
71929         * MODULES.html.sh (Internationalization functions): Add mbscspn.
71930
71931 2007-02-04  Bruno Haible  <bruno@clisp.org>
71932
71933         New module mbscasestr, reduced goal of strcasestr.
71934         * modules/mbscasestr: New file.
71935         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
71936         (mbscasestr): Renamed from strcasestr.
71937         * lib/strcasestr.c: Don't include mbuiter.h.
71938         (strcasestr): Remove support for multibyte locales.
71939         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
71940         Change the conditional link warning.
71941         (mbscasestr): New declaration.
71942         * m4/mbscasestr.m4: New file.
71943         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
71944         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
71945         REPLACE_STRCASESTR.
71946         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
71947         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
71948         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
71949         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
71950         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
71951         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
71952         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
71953         (Depends-on): Remove mbuiter.
71954         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
71955
71956 2007-02-04  Bruno Haible  <bruno@clisp.org>
71957
71958         Simplify handling of strncasecmp.
71959         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
71960         the conditional link warning.
71961         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
71962         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
71963         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
71964         * modules/strcase (configure.ac): Don't invoke
71965         gl_STRING_MODULE_INDICATOR.
71966         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
71967
71968 2007-02-04  Bruno Haible  <bruno@clisp.org>
71969
71970         New module mbscasecmp, reduced goal of strcasecmp.
71971         * modules/mbscasecmp: New file.
71972         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
71973         (mbscasecmp): Renamed from strcasecmp.
71974         * lib/strcasecmp.c: Don't include mbuiter.h.
71975         (strcasecmp): Remove support for multibyte locales.
71976         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
71977         Change the conditional link warning.
71978         (mbscasecmp): New declaration.
71979         * m4/mbscasecmp.m4: New file.
71980         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
71981         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
71982         REPLACE_STRCASECMP.
71983         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
71984         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
71985         GNULIB_MBSCASECMP.
71986         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
71987         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
71988         * modules/strcase (Files): Remove m4/mbrtowc.m4.
71989         (Depends-on): Remove mbuiter.
71990         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
71991
71992 2007-02-04  Bruno Haible  <bruno@clisp.org>
71993
71994         New module mbsstr. Remove module strstr.
71995         * modules/mbsstr: New file.
71996         * modules/strstr: Remove file.
71997         * lib/mbsstr.c: Renamed from lib/strstr.c.
71998         (mbsstr): Renamed from strstr.
71999         * lib/string_.h (strstr): Remove declaration. Change the conditional
72000         link warning.
72001         (mbsstr): New declaration.
72002         * m4/mbsstr.m4: New file.
72003         * m4/strstr.m4: Remove file.
72004         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
72005         REPLACE_STRSTR.
72006         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
72007         Don't initialize GNULIB_STRSTR.
72008         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
72009         substitute GNULIB_STRSTR and REPLACE_STRSTR.
72010         * MODULES.html.sh (Internationalization functions): Add mbsstr.
72011         (Support for systems lacking ANSI C 89): Remove strstr.
72012
72013 2007-02-04  Bruno Haible  <bruno@clisp.org>
72014
72015         New module mbsrchr.
72016         * modules/mbsrchr: New file.
72017         * lib/mbsrchr.c: New file.
72018         * lib/string_.h (strrchr): Add a conditional link warning.
72019         (mbsrchr): New declaration.
72020         * m4/mbsrchr.m4: New file.
72021         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72022         GNULIB_MBSRCHR.
72023         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
72024         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
72025
72026 2007-02-04  Bruno Haible  <bruno@clisp.org>
72027
72028         New module mbschr.
72029         * modules/mbschr: New file.
72030         * lib/mbschr.c: New file.
72031         * lib/string_.h (strchr): Add a conditional link warning.
72032         (mbschr): New declaration.
72033         * m4/mbschr.m4: New file.
72034         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72035         GNULIB_MBSCHR.
72036         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
72037         * MODULES.html.sh (Internationalization functions): Add mbschr.
72038
72039 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
72040
72041         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
72042
72043         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
72044
72045 2007-02-04  Bruno Haible  <bruno@clisp.org>
72046
72047         New module description section 'configure.ac-early'.
72048         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
72049         (func_get_autoconf_early_snippet): New function.
72050         (func_import, func_create_testdir): Use it. Remove special cases for
72051         modules 'extensions' and 'lock'.
72052         * modules/extensions (configure.ac-early): Require
72053         gl_USE_SYSTEM_EXTENSIONS.
72054         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
72055
72056 2007-02-04  Bruno Haible  <bruno@clisp.org>
72057
72058         Make use of gcj-4.3's -fsource and -ftarget option.
72059         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
72060         and if so try the options -fsource and -ftarget.
72061         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
72062         source_version, ftarget_option, target_version arguments.
72063         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
72064         (is_envjavac_oldgcj_14_14_usable): Renamed from
72065         is_envjavac_gcj_14_14_usable.
72066         (is_envjavac_oldgcj_14_13_usable): Renamed from
72067         is_envjavac_gcj_14_13_usable.
72068         (is_gcj_present): Update.
72069         (is_gcj_43, is_gcj43_usable): New functions.
72070         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
72071         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
72072         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
72073         try the options -fsource and -ftarget.
72074
72075 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
72076
72077         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
72078         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
72079         larger value.
72080
72081 2007-02-03  Jim Meyering  <jim@meyering.net>
72082
72083         Give tools a better chance to allocate space for very large buffers.
72084         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
72085
72086         Make pwd and readlink work also when run with an unreadable parent dir
72087         on systems with openat support.
72088         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
72089         provided getcwd function, even when we have openat support.
72090         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
72091
72092 2007-02-02  Bruno Haible  <bruno@clisp.org>
72093
72094         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
72095         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
72096         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
72097         portability problems if one of these functions is only used on specific
72098         platforms.
72099         Reported by Paul Eggert.
72100
72101 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
72102
72103         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
72104         is causing more trouble than it's curing.
72105         * lib/regex_internal.h (__mempcpy): Remove.
72106         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
72107         (and make the code a tad smaller to boot).
72108         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
72109
72110 2007-02-02  Jim Meyering  <jim@meyering.net>
72111
72112         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
72113         section, not in the Makefile.am: one.
72114
72115 2007-02-02  Eric Blake  <ebb9@byu.net>
72116
72117         * lib/strchrnul.c: Always include config.h first.
72118
72119         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
72120         gnulib strstr is not necessary here.
72121
72122 2007-02-02  Simon Josefsson  <simon@josefsson.org>
72123
72124         * m4/socklen.m4: Fix typo.
72125
72126 2007-02-02  Eric Blake  <ebb9@byu.net>
72127
72128         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
72129         * modules/netinet_in (Makefile.am): Likewise.
72130
72131 2007-02-01  Bruno Haible  <bruno@clisp.org>
72132
72133         * lib/string_.h (GL_LINK_WARNING): New macro.
72134         (strcasecmp, strstr, strcasestr): If provided by the system,
72135         conditionally define as a macro that leads to a warning instead of to
72136         an error.
72137         (strncasecmp): Conditionally define as a macro that leads to a warning.
72138
72139 2007-02-01  Karl Berry  <karl@gnu.org>
72140
72141         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
72142
72143 2007-02-01  Bruno Haible  <bruno@clisp.org>
72144
72145         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
72146         renamings.
72147
72148 2007-02-01  Eric Blake  <ebb9@byu.net>
72149
72150         * modules/regex (Depends-on): Revert dependence on mempcpy.
72151         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
72152         module's definition of mempcpy.
72153         Reported by Paul Eggert.
72154
72155 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
72156
72157         * lib/string_.h: If the gnulib module XYZ is not present, undefine
72158         the symbol XYZ before redefining it.  This fixes a problem with
72159         programs that don't use XYZ, when compiled on systems that define
72160         XYZ to something else.
72161
72162 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
72163
72164         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
72165         occurs when "mkdir -m foo" creates a setgid directory that is (1)
72166         writeable to group or other and (2) is intended to have a special
72167         mode bit that is set or cleared.  In such a case, the directory
72168         should be neither group- nor other-writeable until the special
72169         mode bits are right.
72170
72171 2007-01-31  Eric Blake  <ebb9@byu.net>
72172
72173         * modules/mountlist (Depends-on): Add strstr.
72174
72175         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
72176         bug.
72177         * modules/string (Makefile.am): Remove redundant replacement.
72178         * modules/regex (Depends-on): Add mempcpy.
72179
72180 2007-01-31  Bruno Haible  <bruno@clisp.org>
72181
72182         New module description field 'Link'.
72183         * gnulib-tool (func_usage): Document --extract-link-directive.
72184         (sed_extract_prog): Recognize 'Link' directive.
72185         (func_get_link_directive): New function.
72186         (func_import): Show summary of link directives.
72187         Handle --extract-link-directive option.
72188         * modules/acl (Link): New section.
72189         * modules/clock-time (Link): New section.
72190         * modules/euidaccess (Link): New section.
72191         * modules/gettext (Link): New section.
72192         * modules/iconv (Link): New section.
72193         * modules/lock (Link): New section.
72194         * modules/nanosleep (Link): New section.
72195         * modules/readline (Link): New section.
72196
72197 2007-01-27  Bruno Haible  <bruno@clisp.org>
72198
72199         Enforce the use of gnulib modules for unportable <string.h> functions.
72200         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
72201         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
72202         (gl_HEADER_STRING_H_BODY): Require it.
72203         * lib/string_.h: If the gnulib module XYZ is not present, redefine
72204         the symbol XYZ to one that gives a link error.
72205         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
72206         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
72207         * modules/mempcpy (configure.ac): Likewise.
72208         * modules/memrchr (configure.ac): Likewise.
72209         * modules/stpcpy (configure.ac): Likewise.
72210         * modules/stpncpy (configure.ac): Likewise.
72211         * modules/strcase (configure.ac): Likewise.
72212         * modules/strcasestr (configure.ac): Likewise.
72213         * modules/strchrnul (configure.ac): Likewise.
72214         * modules/strdup (configure.ac): Likewise.
72215         * modules/strndup (configure.ac): Likewise.
72216         * modules/strnlen (configure.ac): Likewise.
72217         * modules/strpbrk (configure.ac): Likewise.
72218         * modules/strsep (configure.ac): Likewise.
72219         * modules/strstr (configure.ac): Likewise.
72220         * modules/strtok_r (configure.ac): Likewise.
72221
72222 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
72223
72224         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
72225
72226 2007-01-30  Jim Meyering  <jim@meyering.net>
72227
72228         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
72229
72230 2007-01-29  Bruno Haible  <bruno@clisp.org>
72231
72232         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
72233         * lib/execute.c: Likewise.
72234         * lib/pipe.c: Likewise.
72235         * lib/printf-args.h: Likewise.
72236         * lib/printf-args.c: Likewise.
72237         * lib/printf-parse.c: Likewise.
72238         * lib/vasnprintf.c: Likewise.
72239
72240 2007-01-29  Eric Blake  <ebb9@byu.net>
72241
72242         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
72243         declaration.
72244
72245 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
72246
72247         * lib/strptime.h (strptime): Use 'restrict' for args where
72248         POSIX requires this.
72249         * lib/strptime.c (strptime): Likewise.
72250         Change license notice from LGPL to GPL, since gnulib-tool will
72251         change this as needed.
72252         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
72253         defined.
72254         Include "strptime.h" first, to check interface.
72255         Do not #undef _LIBC and _NL_CURRENT.
72256         Do not include <stdlib.h>; no longer needed.
72257         Include "time_r.h" and declare ptime_locale_status
72258         only if _LIBC is not defined.
72259         (__P): Remove unused macro.
72260         (match_string): Bring back glibc version, but use it only if _LIBC
72261         is defined.
72262         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
72263         Remove unnecessary assertion and abort() call.
72264         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
72265         * m4/strptime.m4: Fix serial number comment.
72266         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
72267         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
72268         (Depends-on): Add time_r.
72269
72270 2007-01-29  Bruno Haible  <bruno@clisp.org>
72271
72272         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
72273         strptime.
72274         * modules/strptime (Depends-on): Add stdbool.
72275         * lib/strptime.h: Include <time.h> always. Add comments.
72276
72277 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
72278
72279         * modules/strptime: New file.
72280         * lib/strptime.h: New file.
72281         * lib/strptime.c: New file.
72282         * m4/strptime.m4: New file.
72283
72284 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
72285
72286         * MODULES.html.sh: New module mpsort.
72287         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
72288
72289         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
72290         a circularity problem with HP-UX ia64 reported by Bob Proulx in
72291         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
72292         All uses changed.
72293         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
72294         All uses changed.
72295         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
72296         to _Restrict_.
72297         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
72298         the parameter matches the prototype.
72299
72300 2007-01-28  Jim Meyering  <jim@meyering.net>
72301
72302         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
72303         sys/time.h here, reverting that part of the previous patch:
72304         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
72305
72306 2007-01-28  Bruno Haible  <bruno@clisp.org>
72307
72308         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
72309         value of $(SYS_TIME_H).
72310         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
72311         remove it conditionally, too. [added by Jim Meyering]
72312         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
72313         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
72314         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
72315         GETTIMEOFDAY_REPLACEMENT to 1.
72316
72317 2007-01-28  Bruno Haible  <bruno@clisp.org>
72318
72319         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
72320         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
72321         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
72322         Set UNISTD_H instead of UNISTD_H2.
72323         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
72324
72325 2007-01-28  Bruno Haible  <bruno@clisp.org>
72326
72327         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
72328         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
72329
72330 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72331
72332         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
72333         (func_create_testdir): Ensure C locale for `grep' and `tr'
72334         character ranges.
72335         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
72336         ACLOCAL_AMFLAGS parsing state machine.
72337
72338 2007-01-27  Bruno Haible  <bruno@clisp.org>
72339
72340         * modules/unistr/base: Update.
72341
72342 2007-01-27  Bruno Haible  <bruno@clisp.org>
72343
72344         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
72345         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
72346         * modules/unistr/u32-mbtouc-unsafe: Renamed from
72347         modules/unistr/u32-mbtouc.
72348         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
72349         * lib/unistr.h: Update.
72350         * lib/linebreak.c: Update.
72351         * modules/unistr/u32-mbtouc: Renamed from
72352         modules/unistr/u32-mbtouc-safe.
72353         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
72354         * lib/unistr.h: Update.
72355         * lib/unistr/u32-to-u8.c: Update.
72356         * lib/unistr/u32-to-u16.c: Update.
72357
72358 2007-01-27  Bruno Haible  <bruno@clisp.org>
72359
72360         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
72361         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
72362         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
72363         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
72364         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
72365         * modules/unistr/u16-mbtouc-unsafe: Renamed from
72366         modules/unistr/u16-mbtouc.
72367         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
72368         * lib/unistr.h: Update.
72369         * lib/linebreak.c: Update.
72370         * modules/linebreak: Update.
72371         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
72372         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
72373         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
72374         * modules/unistr/u16-mbtouc: Renamed from
72375         modules/unistr/u16-mbtouc-safe.
72376         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
72377         * lib/unistr.h: Update.
72378         * lib/unistr/u16-to-u8.c: Update.
72379         * modules/unistr/u16-to-u8: Update.
72380         * lib/unistr/u16-to-u32.c: Update.
72381         * modules/unistr/u16-to-u32: Update.
72382
72383 2007-01-27  Bruno Haible  <bruno@clisp.org>
72384
72385         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
72386         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
72387         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
72388         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
72389         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
72390         * modules/unistr/u8-mbtouc-unsafe: Renamed from
72391         modules/unistr/u8-mbtouc.
72392         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
72393         * lib/unistr.h: Update.
72394         * lib/striconveh.c: Update.
72395         * modules/striconveh: Update.
72396         * lib/linebreak.c: Update.
72397         * modules/linebreak: Update.
72398         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
72399         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
72400         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
72401         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
72402         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
72403         * lib/unistr.h: Update.
72404         * lib/striconveh.c: Update.
72405         * modules/striconveh: Update.
72406         * lib/unistr/u8-to-u16.c: Update.
72407         * modules/unistr/u8-to-u16: Update.
72408         * lib/unistr/u8-to-u32.c: Update.
72409         * modules/unistr/u8-to-u32: Update.
72410
72411 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72412
72413         Sync from Libtool.
72414         * lib/argz.c: Do not include strings.h nor memory.h, include
72415         string.h unconditionally.  Patch by Simon Josefsson.
72416
72417 2007-01-27  Bruno Haible  <bruno@clisp.org>
72418
72419         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
72420         from gl_HEADER_STRING_H_BODY.
72421         (gl_HEADER_STRING_H_BODY): Require it.
72422         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
72423         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
72424         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
72425         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
72426         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
72427         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
72428         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
72429         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
72430         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
72431         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
72432         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
72433         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
72434         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
72435         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
72436         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
72437
72438 2007-01-27  Bruno Haible  <bruno@clisp.org>
72439
72440         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
72441         check_PROGRAMS into noinst_PROGRAMS.
72442         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
72443         check_PROGRAMS in this case.
72444         (func_import): Set for_test to false.
72445         (func_create_testdir): Set for_test to true.
72446
72447 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
72448             Bruno Haible  <bruno@clisp.org>
72449
72450         * modules/strcasestr (Files): Remove lib/strcasestr.h.
72451         (Depends-on): Add string.
72452         (Includes): Use <string.h> instead of strcasestr.h.
72453         * modules/string (Makefile.am): Also substitute the value of
72454         REPLACE_STRCASESTR.
72455         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
72456         assume strcasestr is declared in <string.h> not <strings.h>. Also
72457         set REPLACE_STRCASESTR.
72458         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
72459         REPLACE_STRCASESTR.
72460         * lib/strcasestr.h: Remove file.
72461         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
72462         * lib/string_.h (strcasestr): New declaration.
72463
72464 2007-01-27  Bruno Haible  <bruno@clisp.org>
72465
72466         * lib/string_.h: Use 'extern'.
72467
72468 2007-01-27  Jim Meyering  <jim@meyering.net>
72469
72470         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
72471         of set-but-not-used local, "q".
72472
72473         * lib/mempcpy.c: Include <config.h> before <string.h>.
72474         This fixes a compilation error on HP-UX, due to the system's
72475         "restrict"-using mempcpy prototype.
72476
72477 2007-01-26  Bruno Haible  <bruno@clisp.org>
72478
72479         Small optimization.
72480         * lib/javacomp.c: Include c-strstr.h.
72481          (is_envjavac_gcj): Use c_strstr instead of strstr.
72482         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
72483
72484 2007-01-26  Bruno Haible  <bruno@clisp.org>
72485
72486         * MODULES.html.sh (Unicode string functions): Add the new modules.
72487
72488         * modules/uniconv/u32-strconv-to-locale: New file.
72489         * lib/uniconv/u32-strconv-to-locale.c: New file.
72490
72491         * modules/uniconv/u16-strconv-to-locale: New file.
72492         * lib/uniconv/u16-strconv-to-locale.c: New file.
72493
72494         * modules/uniconv/u8-strconv-to-locale: New file.
72495         * lib/uniconv/u8-strconv-to-locale.c: New file.
72496
72497         * modules/uniconv/u32-strconv-from-locale: New file.
72498         * lib/uniconv/u32-strconv-from-locale.c: New file.
72499
72500         * modules/uniconv/u16-strconv-from-locale: New file.
72501         * lib/uniconv/u16-strconv-from-locale.c: New file.
72502
72503         * modules/uniconv/u8-strconv-from-locale: New file.
72504         * lib/uniconv/u8-strconv-from-locale.c: New file.
72505
72506         * modules/uniconv/u32-strconv-to-enc: New file.
72507         * lib/uniconv/u32-strconv-to-enc.c: New file.
72508         * modules/uniconv/u32-strconv-to-enc-tests: New file.
72509         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
72510
72511         * modules/uniconv/u16-strconv-to-enc: New file.
72512         * lib/uniconv/u16-strconv-to-enc.c: New file.
72513         * lib/uniconv/u-strconv-to-enc.h: New file.
72514         * modules/uniconv/u16-strconv-to-enc-tests: New file.
72515         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
72516
72517         * modules/uniconv/u8-strconv-to-enc: New file.
72518         * lib/uniconv/u8-strconv-to-enc.c: New file.
72519         * modules/uniconv/u8-strconv-to-enc-tests: New file.
72520         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
72521
72522         * modules/uniconv/u32-strconv-from-enc: New file.
72523         * lib/uniconv/u32-strconv-from-enc.c: New file.
72524         * modules/uniconv/u32-strconv-from-enc-tests: New file.
72525         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
72526
72527         * modules/uniconv/u16-strconv-from-enc: New file.
72528         * lib/uniconv/u16-strconv-from-enc.c: New file.
72529         * modules/uniconv/u16-strconv-from-enc-tests: New file.
72530         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
72531
72532         * modules/uniconv/u8-strconv-from-enc: New file.
72533         * lib/uniconv/u8-strconv-from-enc.c: New file.
72534         * lib/uniconv/u-strconv-from-enc.h: New file.
72535         * modules/uniconv/u8-strconv-from-enc-tests: New file.
72536         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
72537
72538         * modules/uniconv/u32-conv-from-enc: New file.
72539         * lib/uniconv/u32-conv-from-enc.c: New file.
72540         * modules/uniconv/u32-conv-from-enc-tests: New file.
72541         * tests/uniconv/test-u32-conv-from-enc.c: New file.
72542
72543         * modules/uniconv/u16-conv-from-enc: New file.
72544         * lib/uniconv/u16-conv-from-enc.c: New file.
72545         * lib/uniconv/u-conv-from-enc.h: New file.
72546         * modules/uniconv/u16-conv-from-enc-tests: New file.
72547         * tests/uniconv/test-u16-conv-from-enc.c: New file.
72548
72549         * modules/uniconv/u8-conv-from-enc: New file.
72550         * lib/uniconv/u8-conv-from-enc.c: New file.
72551         * modules/uniconv/u8-conv-from-enc-tests: New file.
72552         * tests/uniconv/test-u8-conv-from-enc.c: New file.
72553
72554         * modules/uniconv/base: New file.
72555         * lib/uniconv.h: New file.
72556
72557 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
72558
72559         * doc/gnulib-tool.texi (Initial import): Update to match current
72560         behavior with strdup module.
72561         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
72562         * lib/memmem.h: Remove; all uses removed.  This is now done
72563         by <string.h>.
72564         * lib/mempcpy.h: Likewise.
72565         * lib/memrchr.h: Likewise.
72566         * lib/stpcpy.h: Likewise.
72567         * lib/stpncpy.h: Likewise.
72568         * lib/strcase.h: Likewise.
72569         * lib/strchrnul.h: Likewise.
72570         * lib/strdup.h: Likewise.
72571         * lib/strndup.h: Likewise.
72572         * lib/strnlen.h: Likewise.
72573         * lib/strpbrk.h: Likewise.
72574         * lib/strsep.h: Likewise.
72575         * lib/strstr.h: Likewise.
72576         * lib/strtok_r.h: Likewise.
72577         * lib/string_.h: New file.
72578         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
72579         Rely on <string.h> instead.
72580         * lib/canon-host.c: Likewise.
72581         * lib/chdir-long.c: Likewise.
72582         * lib/concatpath.c: Likewise.
72583         * lib/exclude.c: Likewise.
72584         * lib/fchdir.c: Likewise.
72585         * lib/getaddrinfo.c: Likewise.
72586         * lib/getcwd.c: Likewise.
72587         * lib/getsubopt.c: Likewise.
72588         * lib/glob.c: Likewise.
72589         * lib/hard-locale.c: Likewise.
72590         * lib/iconvme.c: Likewise.
72591         * lib/javacomp.c: Likewise.
72592         * lib/mempcpy.c: Likewise.
72593         * lib/memrchr.c: Likewise.
72594         * lib/regex_internal.h: Likewise.
72595         * lib/stpncpy.c: Likewise.
72596         * lib/strcasecmp.c: Likewise.
72597         * lib/strchrnul.c: Likewise.
72598         * lib/strdup.c: Likewise.
72599         * lib/striconv.c: Likewise.
72600         * lib/striconveh.c: Likewise.
72601         * lib/striconveha.c: Likewise.
72602         * lib/strncasecmp.c: Likewise.
72603         * lib/strndup.c: Likewise.
72604         * lib/strnlen.c: Likewise.
72605         * lib/strsep.c: Likewise.
72606         * lib/strstr.c: Likewise.
72607         * lib/strtok_r.c: Likewise.
72608         * lib/userspec.c: Likewise.
72609         * lib/w32spawn.h: Likewise.
72610         * lib/xstrndup.c: Likewise.
72611         * lib/mountlist.c (strstr): Remove decl.
72612         * m4/string_h.m4: New file.
72613         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
72614         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
72615         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
72616         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
72617         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
72618         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
72619         Set REPLACE_STRCASECMP if necessary.
72620         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
72621         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
72622         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
72623         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
72624         HAVE_DECL_STRDUP if necessary.
72625         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
72626         since gl_FUNC_STRNDUP does that now.
72627         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
72628         Check for decl here...
72629         (gl_PREREQ_STRNLEN): ... not here.
72630         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
72631         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
72632         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
72633         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
72634         necessary.
72635         * modules/string: New file.
72636         * modules/memmem (Files): Remove special-purpose include file.
72637         (Depends-on): Add string.
72638         (Include): Include <string.h>, not the removed file.
72639         * modules/mempcpy: Likewise.
72640         * modules/memrchr: Likewise.
72641         * modules/stpcpy: Likewise.
72642         * modules/stpncpy: Likewise.
72643         * modules/strcase: Likewise.
72644         * modules/strchrnul: Likewise.
72645         * modules/strdup: Likewise.
72646         * modules/strndup: Likewise.
72647         * modules/strnlen: Likewise.
72648         * modules/strpbrk: Likewise.
72649         * modules/strsep: Likewise.
72650         * modules/strstr: Likewise.
72651         * modules/strtok_r: Likewise.
72652         * tests/test-dirname.c: Don't include "strdup.h", since
72653         <string.h> now suffices.
72654         * tests/test-memmem.c: Don't include "memmem.h", since
72655         <string.h> now suffices.
72656
72657 2007-01-25  Bruno Haible  <bruno@clisp.org>
72658
72659         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
72660         *resultp is 0.
72661
72662         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
72663         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
72664         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
72665         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
72666
72667         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
72668         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
72669         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
72670         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
72671         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
72672         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
72673
72674 2007-01-24  Bruno Haible  <bruno@clisp.org>
72675
72676         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
72677         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
72678         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
72679         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
72680         gl_FUNC_FTS_CORE.
72681         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
72682         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
72683         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
72684         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
72685         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
72686         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
72687         gl_FUNC_FCHOWNAT.
72688         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
72689         gl_FUNC_STRFTIME.
72690         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
72691         Reported by Ralf Wildenhues.
72692
72693 2007-01-24  Bruno Haible  <bruno@clisp.org>
72694
72695         Drop AC_REQUIRE calls that are redundant with the module dependencies.
72696         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
72697         gl_GETADDRINFO.
72698         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
72699         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
72700         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
72701
72702 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
72703
72704         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
72705         Don't use 'exit'; just return from 'main'.
72706         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
72707
72708         * lib/fnmatch_.h: Readjust white space and comments to match
72709         glibc, to avoid spurious diffs.
72710
72711 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
72712
72713         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
72714         2004-12-01 change by Jakub Jelinek, since this code won't compile
72715         if !LIBC.  Problem reported by Bob Proulx.
72716
72717 2007-01-23  Bruno Haible  <bruno@clisp.org>
72718
72719         * lib/striconveh.c: Include c-strcaseeq.h.
72720         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
72721         * modules/striconveh (Depends-on): Add c-strcaseeq.
72722
72723 2007-01-23  Bruno Haible  <bruno@clisp.org>
72724
72725         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
72726
72727         * modules/c-strcaseeq: New file.
72728         * lib/c-strcaseeq.h: New file.
72729
72730         * modules/streq: New file.
72731         * lib/streq.h: New file.
72732
72733 2007-01-23  Bruno Haible  <bruno@clisp.org>
72734
72735         * modules/striconveha-tests: New file.
72736         * tests/test-striconveha.c: New file.
72737
72738         * lib/striconveha.h: Include <stdbool.h>.
72739         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
72740         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
72741         (mem_iconveha_notranslit): Renamed from mem_iconveha.
72742         (mem_iconveha): New function.
72743         (str_iconveha_notranslit): Renamed from str_iconveha.
72744         (str_iconveha): New function.
72745         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
72746         c-strcase.
72747
72748 2007-01-23  Bruno Haible  <bruno@clisp.org>
72749
72750         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
72751         encodings without forgiving before trying any encoding with handler.
72752         (str_iconveha): Try all encodings without forgiving before trying any
72753         encoding with handler.
72754
72755 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
72756
72757         Import the following changes from libc.
72758
72759         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
72760
72761         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
72762
72763         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
72764
72765         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
72766         normal_bracket label.
72767
72768         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
72769
72770         [BZ #361]
72771         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
72772         to normal_bracket after fetching the next character.
72773
72774 2007-01-22  Bruno Haible  <bruno@clisp.org>
72775
72776         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
72777         argument.
72778         * lib/striconveh.c (iconv_carefully_1): New function.
72779         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
72780         argument.
72781         (str_cd_iconveh): Update.
72782         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
72783         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
72784         * tests/test-striconveh.c (MAGIC): New macro.
72785         (new_offsets): New function.
72786         (main): Test call with and without offsets.
72787
72788 2007-01-22  Bruno Haible  <bruno@clisp.org>
72789
72790         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
72791         * modules/sys_select (Makefile.am): Likewise.
72792         * modules/sys_socket (Makefile.am): Likewise.
72793         * modules/sys_time (Makefile.am): Likewise.
72794
72795 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
72796
72797         * modules/gettimeofday (License): Change from GPL to LGPL, since
72798         gettimeofday is a library function.
72799
72800 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72801
72802         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
72803
72804 2007-01-21  Bruno Haible  <bruno@clisp.org>
72805
72806         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
72807
72808 2007-01-21  Bruno Haible  <bruno@clisp.org>
72809
72810         * modules/striconveha: New file.
72811         * lib/striconveha.h: New file.
72812         * lib/striconveha.c: New file.
72813         * MODULES.html.sh (Internationalization functions): Add striconveha.
72814         * lib/striconv.c (str_iconv): Optimize the case of an empty input
72815         string.
72816         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
72817
72818 2007-01-21  Bruno Haible  <bruno@clisp.org>
72819
72820         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
72821         * lib/striconveh.c (str_iconveh): Likewise.
72822
72823 2007-01-21  Bruno Haible  <bruno@clisp.org>
72824
72825         * lib/striconveh.h (mem_iconveh): New declaration.
72826         * lib/striconveh.c (mem_iconveh): New function.
72827         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
72828
72829 2007-01-21  Bruno Haible  <bruno@clisp.org>
72830
72831         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
72832
72833         * lib/striconveh.h (mem_cd_iconveh): Change specification.
72834         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
72835         original result buffer.
72836         (str_cd_iconveh): Update.
72837         * tests/test-striconveh.c (main): Update.
72838
72839         * lib/striconv.h (mem_cd_iconv): Change specification.
72840         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
72841         result buffer.
72842         (str_cd_iconv): Update.
72843         * tests/test-striconv.c (main): Update.
72844
72845 2007-01-21  Bruno Haible  <bruno@clisp.org>
72846
72847         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
72848
72849 2007-01-20  Jim Meyering  <jim@meyering.net>
72850
72851         * lib/userspec.c (parse_with_separator): If a user or group string
72852         starts with "+", skip the corresponding name-to-ID look-up, since
72853         such a look-up must fail: user and group names may not include "+".
72854
72855 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
72856
72857         * lib/poll.c: Include sys/time.h and time.h unconditionally,
72858         since we now assume the sys_time module.
72859         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
72860         check for sys/time.h; no longer needed.
72861         * modules/poll (Depends-on): Depend on sys_time.
72862
72863 2007-01-18  Bruno Haible  <bruno@clisp.org>
72864
72865         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
72866         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
72867
72868         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
72869         gettimeofday.
72870
72871         * tests/test-gettimeofday.c: Include <time.h>.
72872         (dummy): Remove variable.
72873
72874         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
72875         gl_HEADER_SYS_TIME_H.
72876         (gl_HEADER_SYS_TIME_H): New macro.
72877
72878         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
72879         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
72880         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
72881         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
72882         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
72883         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
72884         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
72885         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
72886         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
72887         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
72888         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
72889
72890         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
72891         last change; it caused a compilation error when cross-compiling to
72892         Cygwin.
72893
72894 2007-01-18  Jim Meyering  <jim@meyering.net>
72895
72896         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
72897         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
72898         than the race-prone "test -d sys || mkdir sys".
72899         (configure.ac): Use AC_PROG_MKDIR_P.
72900         * modules/sys_select: Likewise.
72901         * modules/sys_socket: Likewise.
72902         * modules/sys_time: Likewise.
72903
72904 2007-01-18  Eric Blake  <ebb9@byu.net>
72905
72906         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
72907         replace gettimeofday.
72908         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
72909         name, to avoid infinite recursion.
72910
72911 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
72912
72913         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
72914         module sys_time.
72915         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
72916         assume timespec.h defines struct timeval.
72917         * lib/settime.c: Likewise.
72918         * lib/utimens.c: Likewise.
72919         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
72920         since we now assume the gettimeofday module.
72921         * lib/tempname.c (__gen_tempname): Likewise.
72922         * lib/gettimeofday.h: Remove.
72923         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
72924         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
72925         Include <time.h>, for 'time()'.
72926         (localtime_buffer_addr): Also use this workaround if
72927         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
72928         to simplify the uses.  All uses changed.
72929         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
72930         that #undef is inside {}, and 'const' follows type name consistently.
72931         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
72932         (gettimeofday): Do not use the maximum possible value for
72933         tv->tv_usec, since that might break usages other than ls.c.
72934         Instead, we'll leave ls.c alone.  This undoes today's patch
72935         by Bruno.  Add a compile-time warning for 1s-clock resolution;
72936         we've never observed the problem but might as well keep the
72937         canary.
72938         * lib/nanosleep.c: Include timespec.h first, for interface check.
72939         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
72940         now assume the sys_time module.
72941         * lib/tempname.c: Likewise.
72942         * lib/timespec.h: Likewise.
72943         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
72944         needed.
72945         * lib/strftime.c: Likewise.
72946         * lib/timespec.h: Likewise.
72947         * lib/posixtm.c: Include posixtm.h first, for interface check.
72948         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
72949         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
72950         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
72951         * lib/sys_time_.h: New file.
72952         * lib/timespec.h (struct timespec): Use long int, not long.
72953         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
72954         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
72955         Remove obsolescent call to AC_HEADER_TIME.
72956         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
72957         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
72958         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
72959         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
72960         Likewise.
72961         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
72962         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
72963         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
72964         into the sys_time module.  Check for gettimeofday just once.
72965         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
72966         for gettimeofday signature to just check the signature.  Merely
72967         compile it, since linking doesn't test signature.  Improve test for
72968         whether gettimeofday.o is actually needed.
72969         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
72970         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
72971         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
72972         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
72973         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
72974         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
72975         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
72976         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
72977         than worrying about sys/time.h.
72978         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
72979         Don't bother worrying about TIME_WITH_SYS_TIME.
72980         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
72981         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
72982         * m4/sys_time_h.m4: New file.
72983         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
72984         Don't include sys/time.h.  Return from main rather than exiting.
72985         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
72986         all uses changed.
72987         * modules/gethrxtime (Depends-on): Add sys_time.
72988         * modules/gettime (Depends-on): Likewise.
72989         * modules/gettimeofday (Depends-on): Likewise.
72990         * modules/nanosleep (Depends-on): Likewise.
72991         * modules/settime (Depends-on): Likewise.
72992         * modules/tempname (Depends-on): Likewise.
72993         * modules/utimens (Depends-on): Likewise.
72994         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
72995         (Include): Change back to <sys/time.h>.
72996         (Maintainer): Add self.
72997         * modules/sys_time: New file.
72998         * modules/tempname (Depends-on): Add gettimeofday.
72999         * tests/test-gettimeofday.c: Include <sys/time.h>
73000         rather than gettimeofday.h.
73001
73002 2007-01-17  Bruno Haible  <bruno@clisp.org>
73003
73004         * gnulib-tool (func_get_license): Revert last patch. Instead, let
73005         the license default to GPL.
73006         (func_create_testdir): Don't complain if a module is LGPL and its
73007         tests module depends on GPLed modules.
73008
73009 2007-01-17  Bruno Haible  <bruno@clisp.org>
73010
73011         * lib/gettimeofday.c (gettimeofday): Add code for the case
73012         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
73013         maximum possible value for tv->tv_usec, rather than the minimum one.
73014
73015 2005-10-08  Martin Lambers  <marlam@marlam.de>
73016 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
73017 2007-01-16  Bruno Haible  <bruno@clisp.org>
73018
73019         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
73020         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
73021         gl_FUNC_GETTIMEOFDAY.
73022         (Include): Add gettimeofday.h.
73023         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
73024         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
73025         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
73026         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
73027         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
73028         * lib/gettimeofday.h: New file.
73029         * lib/gettimeofday.c: Include <sys/timeb.h>.
73030         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
73031         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
73032         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
73033         fall back on time().
73034
73035         * tests/test-gettimeofday.c: New file.
73036         * modules/gettimeofday-tests: New file.
73037
73038 2007-01-16  Eric Blake  <ebb9@byu.net>
73039
73040         * modules/fnmatch (Depends-on): Depend on wchar.
73041         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
73042         * m4/fnmatch.m4: Likewise.
73043         * modules/mbchar (Makefile.am): Assume <wchar.h>.
73044         * m4/mbchar.m4: Likewise.
73045         * modules/mbswidth (Depends-on): Depend on wchar.
73046         * lib/mbswidth.c: Assume <wchar.h>.
73047         * m4/mbswidth.m4: Likewise.
73048         * modules/quotearg (Depends-on): Depend on wchar.
73049         * lib/quotearg.c: Assume <wchar.h>.
73050         * m4/quotearg.m4: Likewise.
73051         * modules/regex (Depends-on): Depend on wchar.
73052         * lib/regex_internal.h: Assume <wchar.h>.
73053         * m4/regex.m4: Likewise.
73054         * modules/stdint (Depends-on): Depend on wchar.
73055         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
73056         * m4/stdint.m4: Likewise.
73057         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
73058         * modules/strftime (Depends-on): Depend on wchar.
73059         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
73060         * modules/strtol (Depends-on): Depend on wchar.
73061         * lib/strtol.c: Assume <wchar.h>.
73062         * modules/wcwidth (Depends-on): Depend on wchar.
73063         * lib/wcwidth.h: Assume <wchar.h>.
73064         * m4/wcwidth.m4: Likewise.
73065
73066 2007-01-16  Bruno Haible  <bruno@clisp.org>
73067
73068         * modules/csharpexec-script: New, created from...
73069         * modules/csharpexec: ... this.
73070
73071 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
73072
73073         * modules/javaexec-script: New, created from...
73074         * modules/javaexec: ... this.
73075
73076 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73077
73078         * modules/poll (Dependencies): Add sys_select.
73079
73080 2007-01-15  Jim Meyering  <jim@meyering.net>
73081
73082         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
73083         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
73084         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
73085         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
73086
73087 2007-01-15  Bruno Haible  <bruno@clisp.org>
73088
73089         * modules/striconveh: New file.
73090         * lib/striconveh.h: New file.
73091         * lib/striconveh.c: New file.
73092         * MODULES.html.sh (Internationalization functions): Add striconveh.
73093
73094         * modules/striconveh-tests: New file.
73095         * tests/test-striconveh.c: New file.
73096
73097 2007-01-15  Bruno Haible  <bruno@clisp.org>
73098
73099         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
73100         not from GNU libiconv or GNU libc.
73101
73102 2007-01-15  Bruno Haible  <bruno@clisp.org>
73103
73104         * doc/gnulib-intro.texi (Copyright): Explain the different license
73105         terms for module descriptions, autoconf macros, tests, documentation.
73106
73107 2007-01-14  Bruno Haible  <bruno@clisp.org>
73108
73109         * modules/striconv-tests: New file.
73110         * tests/test-striconv.c: New file.
73111
73112 2007-01-14  Bruno Haible  <bruno@clisp.org>
73113
73114         * modules/iconv-tests: New file.
73115         * tests/test-iconv.c: New file.
73116
73117 2007-01-14  Bruno Haible  <bruno@clisp.org>
73118
73119         * gnulib-tool (func_get_license): For test modules, use the license of
73120         the main module.
73121
73122 2007-01-14  Bruno Haible  <bruno@clisp.org>
73123
73124         * modules/iconv (Include): Clarify that <iconv.h> can only be included
73125         if iconv is found to exist.
73126
73127 2007-01-14  Bruno Haible  <bruno@clisp.org>
73128
73129         * modules/c-ctype-tests: New file.
73130         * tests/test-c-ctype.c: New file.
73131
73132 2007-01-14  Bruno Haible  <bruno@clisp.org>
73133
73134         * modules/binary-io-tests: New file.
73135         * tests/test-binary-io.sh: New file.
73136         * tests/test-binary-io.c: New file.
73137
73138 2007-01-14  Bruno Haible  <bruno@clisp.org>
73139
73140         * modules/array-oset-tests: New file.
73141         * tests/test-array_oset.c: New file.
73142
73143 2007-01-14  Bruno Haible  <bruno@clisp.org>
73144
73145         * modules/array-list-tests: New file.
73146         * tests/test-array_list.c: New file.
73147
73148 2007-01-14  Bruno Haible  <bruno@clisp.org>
73149
73150         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
73151         and make.
73152         Reported by Simon Josefsson in
73153         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
73154
73155 2007-01-14  Bruno Haible  <bruno@clisp.org>
73156
73157         * modules/allocsa-tests: New file.
73158         * tests/test-allocsa.c: New file.
73159
73160 2007-01-14  Bruno Haible  <bruno@clisp.org>
73161
73162         * modules/fchdir (Depends-on): Add absolute-header.
73163         * modules/unistd (Depends-on): Likewise.
73164
73165 2006-12-30  Bruno Haible  <bruno@clisp.org>
73166
73167         * modules/fchdir: New file.
73168         * modules/unistd (Files): Add lib/unistd_.h.
73169         (Makefile.am): Generate unistd.h from unistd_.h.
73170         * lib/fchdir.c: New file.
73171         * lib/dirent_.h: New file.
73172         * lib/unistd_.h: New file.
73173         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
73174         * m4/fchdir.m4: New file.
73175         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
73176         (gl_HEADER_UNISTD): Invoke it.
73177         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
73178         function.
73179         * lib/backupfile.c (opendir, closedir): Undefine.
73180         * lib/chown.c (open, close): Undefine.
73181         * lib/clean-temp.c (open, close): Undefine.
73182         * lib/copy-file.c (open, close): Undefine.
73183         * lib/execute.c (open, close): Undefine.
73184         * lib/fsusage.c (open, close): Undefine.
73185         * lib/gc-gnulib.c (open, close): Undefine.
73186         * lib/getcwd.c (opendir, closedir): Undefine.
73187         * lib/glob.c (opendir, closedir): Undefine.
73188         * lib/javacomp.c (open, close): Undefine.
73189         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
73190         * lib/openat-proc.c (open, close): Undefine.
73191         * lib/pagealign_alloc.c (open, close): Undefine.
73192         * lib/pipe.c (open, close): Undefine.
73193         * lib/progreloc.c (open, close): Undefine.
73194         * lib/savedir.c (opendir, closedir): Undefine.
73195         * lib/utime.c (open, close): Undefine.
73196         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
73197
73198 2007-01-10  Bruno Haible  <bruno@clisp.org>
73199
73200         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
73201
73202 2007-01-12  Eric Blake  <ebb9@byu.net>
73203
73204         Provide a robust <wchar.h>.  Further simplifications are now
73205         possible in other modules, but not included here.
73206         * modules/wchar: New module.
73207         * m4/wchar.m4: New file.
73208         * lib/wchar_.h: Likewise.
73209         * modules/mbchar (Depends-on): Depend on wchar, as the first use
73210         of the new module.
73211         * MODULES.html.sh (Extended multibyte and wide character utilities):
73212         New section.
73213
73214 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
73215
73216         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
73217         to a reasonable default for memory allocation.
73218         (xreadlink): Don't allocate a huge buffer, to work around a buggy
73219         file system that reports garbage st_size values for symlinks.
73220         Problem reported by Liyang Hu.
73221
73222 2007-01-11  Simon Josefsson  <simon@josefsson.org>
73223
73224         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
73225         Emacs .#* auto-save files).
73226
73227 2007-01-11  Bruno Haible  <bruno@clisp.org>
73228
73229         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
73230         directory.
73231
73232 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
73233
73234         Use @...@ consistently in lib/wctype_.h.
73235         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
73236         on it being set to 1 or 0.
73237         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
73238         go back to AC_SUBSTing it.
73239         * modules/wctype (Makefile.am): Undo previous change.
73240
73241 2007-01-10  Eric Blake  <ebb9@byu.net>
73242
73243         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
73244         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
73245         * modules/wctype (Makefile.am): Likewise.
73246         Reported by Chris McGuire.
73247
73248 2007-01-10  Jim Meyering  <jim@meyering.net>
73249
73250         fts.c: a small readability/maintainability improvement
73251         * lib/fts.c (fts_read): Make this code slightly more readable and
73252         maintainable by hoisting the "sp->fts_cur = p" assignments to
73253         immediately follow the statements that set P.  Derived from
73254         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
73255
73256 2007-01-10  Eric Blake  <ebb9@byu.net>
73257
73258         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
73259         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
73260         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
73261         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
73262         Reported by Chris McGuire.
73263
73264 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73265
73266         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
73267         in sed script.
73268
73269 2007-01-09  Bruno Haible  <bruno@clisp.org>
73270
73271         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
73272         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
73273         variables.
73274         (func_module): Use them.
73275
73276 2007-01-09  Bruno Haible  <bruno@clisp.org>
73277
73278         * modules/unistr/base: New file.
73279         * lib/unistr.h: New file.
73280
73281         * modules/unistr/u8-to-u16: New file.
73282         * lib/unistr/u8-to-u16.c: New file.
73283
73284         * modules/unistr/u8-to-u32: New file.
73285         * lib/unistr/u8-to-u32.c: New file.
73286
73287         * modules/unistr/u16-to-u8: New file.
73288         * lib/unistr/u16-to-u8.c: New file.
73289
73290         * modules/unistr/u16-to-u32: New file.
73291         * lib/unistr/u16-to-u32.c: New file.
73292
73293         * modules/unistr/u32-to-u8: New file.
73294         * lib/unistr/u32-to-u8.c: New file.
73295
73296         * modules/unistr/u32-to-u16: New file.
73297         * lib/unistr/u32-to-u16.c: New file.
73298
73299         * modules/unistr/u8-check: New file.
73300         * modules/unistr/u16-check: New file.
73301         * modules/unistr/u32-check: New file.
73302         * lib/unistr/u8-check.c: New file.
73303         * lib/unistr/u16-check.c: New file.
73304         * lib/unistr/u32-check.c: New file.
73305
73306         * modules/unistr/u8-chr: New file.
73307         * modules/unistr/u16-chr: New file.
73308         * modules/unistr/u32-chr: New file.
73309         * lib/unistr/u8-chr.c: New file.
73310         * lib/unistr/u16-chr.c: New file.
73311         * lib/unistr/u32-chr.c: New file.
73312
73313         * modules/unistr/u8-cmp: New file.
73314         * modules/unistr/u16-cmp: New file.
73315         * modules/unistr/u32-cmp: New file.
73316         * lib/unistr/u8-cmp.c: New file.
73317         * lib/unistr/u16-cmp.c: New file.
73318         * lib/unistr/u32-cmp.c: New file.
73319
73320         * modules/unistr/u8-cpy: New file.
73321         * modules/unistr/u16-cpy: New file.
73322         * modules/unistr/u32-cpy: New file.
73323         * lib/unistr/u8-cpy.c: New file.
73324         * lib/unistr/u16-cpy.c: New file.
73325         * lib/unistr/u32-cpy.c: New file.
73326         * lib/unistr/u-cpy.h: New file.
73327
73328         * modules/unistr/u8-cpy-alloc: New file.
73329         * modules/unistr/u16-cpy-alloc: New file.
73330         * modules/unistr/u32-cpy-alloc: New file.
73331         * lib/unistr/u8-cpy-alloc.c: New file.
73332         * lib/unistr/u16-cpy-alloc.c: New file.
73333         * lib/unistr/u32-cpy-alloc.c: New file.
73334         * lib/unistr/u-cpy-alloc.h: New file.
73335
73336         * modules/unistr/u8-endswith: New file.
73337         * modules/unistr/u16-endswith: New file.
73338         * modules/unistr/u32-endswith: New file.
73339         * lib/unistr/u8-endswith.c: New file.
73340         * lib/unistr/u16-endswith.c: New file.
73341         * lib/unistr/u32-endswith.c: New file.
73342         * lib/unistr/u-endswith.h: New file.
73343
73344         * modules/unistr/u8-mblen: New file.
73345         * modules/unistr/u16-mblen: New file.
73346         * modules/unistr/u32-mblen: New file.
73347         * lib/unistr/u8-mblen.c: New file.
73348         * lib/unistr/u16-mblen.c: New file.
73349         * lib/unistr/u32-mblen.c: New file.
73350
73351         * modules/unistr/u8-mbtouc: New file.
73352         * modules/unistr/u16-mbtouc: New file.
73353         * modules/unistr/u32-mbtouc: New file.
73354         * lib/unistr/u8-mbtouc.c: New file.
73355         * lib/unistr/u16-mbtouc.c: New file.
73356         * lib/unistr/u32-mbtouc.c: New file.
73357
73358         * modules/unistr/u8-mbtouc-safe: New file.
73359         * modules/unistr/u16-mbtouc-safe: New file.
73360         * modules/unistr/u32-mbtouc-safe: New file.
73361         * lib/unistr/u8-mbtouc-safe.c: New file.
73362         * lib/unistr/u16-mbtouc-safe.c: New file.
73363         * lib/unistr/u32-mbtouc-safe.c: New file.
73364
73365         * modules/unistr/u8-move: New file.
73366         * modules/unistr/u16-move: New file.
73367         * modules/unistr/u32-move: New file.
73368         * lib/unistr/u8-move.c: New file.
73369         * lib/unistr/u16-move.c: New file.
73370         * lib/unistr/u32-move.c: New file.
73371         * lib/unistr/u-move.h: New file.
73372
73373         * modules/unistr/u8-next: New file.
73374         * modules/unistr/u16-next: New file.
73375         * modules/unistr/u32-next: New file.
73376         * lib/unistr/u8-next.c: New file.
73377         * lib/unistr/u16-next.c: New file.
73378         * lib/unistr/u32-next.c: New file.
73379
73380         * modules/unistr/u8-prev: New file.
73381         * modules/unistr/u16-prev: New file.
73382         * modules/unistr/u32-prev: New file.
73383         * lib/unistr/u8-prev.c: New file.
73384         * lib/unistr/u16-prev.c: New file.
73385         * lib/unistr/u32-prev.c: New file.
73386
73387         * modules/unistr/u8-set: New file.
73388         * modules/unistr/u16-set: New file.
73389         * modules/unistr/u32-set: New file.
73390         * lib/unistr/u8-set.c: New file.
73391         * lib/unistr/u16-set.c: New file.
73392         * lib/unistr/u32-set.c: New file.
73393         * lib/unistr/u-set.h: New file.
73394
73395         * modules/unistr/u8-startswith: New file.
73396         * modules/unistr/u16-startswith: New file.
73397         * modules/unistr/u32-startswith: New file.
73398         * lib/unistr/u8-startswith.c: New file.
73399         * lib/unistr/u16-startswith.c: New file.
73400         * lib/unistr/u32-startswith.c: New file.
73401         * lib/unistr/u-startswith.h: New file.
73402
73403         * modules/unistr/u8-stpcpy: New file.
73404         * modules/unistr/u16-stpcpy: New file.
73405         * modules/unistr/u32-stpcpy: New file.
73406         * lib/unistr/u8-stpcpy.c: New file.
73407         * lib/unistr/u16-stpcpy.c: New file.
73408         * lib/unistr/u32-stpcpy.c: New file.
73409         * lib/unistr/u-stpcpy.h: New file.
73410
73411         * modules/unistr/u8-stpncpy: New file.
73412         * modules/unistr/u16-stpncpy: New file.
73413         * modules/unistr/u32-stpncpy: New file.
73414         * lib/unistr/u8-stpncpy.c: New file.
73415         * lib/unistr/u16-stpncpy.c: New file.
73416         * lib/unistr/u32-stpncpy.c: New file.
73417         * lib/unistr/u-stpncpy.h: New file.
73418
73419         * modules/unistr/u8-strcat: New file.
73420         * modules/unistr/u16-strcat: New file.
73421         * modules/unistr/u32-strcat: New file.
73422         * lib/unistr/u8-strcat.c: New file.
73423         * lib/unistr/u16-strcat.c: New file.
73424         * lib/unistr/u32-strcat.c: New file.
73425         * lib/unistr/u-strcat.h: New file.
73426
73427         * modules/unistr/u8-strchr: New file.
73428         * modules/unistr/u16-strchr: New file.
73429         * modules/unistr/u32-strchr: New file.
73430         * lib/unistr/u8-strchr.c: New file.
73431         * lib/unistr/u16-strchr.c: New file.
73432         * lib/unistr/u32-strchr.c: New file.
73433
73434         * modules/unistr/u8-strcmp: New file.
73435         * modules/unistr/u16-strcmp: New file.
73436         * modules/unistr/u32-strcmp: New file.
73437         * lib/unistr/u8-strcmp.c: New file.
73438         * lib/unistr/u16-strcmp.c: New file.
73439         * lib/unistr/u32-strcmp.c: New file.
73440
73441         * modules/unistr/u8-strcpy: New file.
73442         * modules/unistr/u16-strcpy: New file.
73443         * modules/unistr/u32-strcpy: New file.
73444         * lib/unistr/u8-strcpy.c: New file.
73445         * lib/unistr/u16-strcpy.c: New file.
73446         * lib/unistr/u32-strcpy.c: New file.
73447         * lib/unistr/u-strcpy.h: New file.
73448
73449         * modules/unistr/u8-strcspn: New file.
73450         * modules/unistr/u16-strcspn: New file.
73451         * modules/unistr/u32-strcspn: New file.
73452         * lib/unistr/u8-strcspn.c: New file.
73453         * lib/unistr/u16-strcspn.c: New file.
73454         * lib/unistr/u32-strcspn.c: New file.
73455         * lib/unistr/u-strcspn.h: New file.
73456
73457         * modules/unistr/u8-strdup: New file.
73458         * modules/unistr/u16-strdup: New file.
73459         * modules/unistr/u32-strdup: New file.
73460         * lib/unistr/u8-strdup.c: New file.
73461         * lib/unistr/u16-strdup.c: New file.
73462         * lib/unistr/u32-strdup.c: New file.
73463         * lib/unistr/u-strdup.h: New file.
73464
73465         * modules/unistr/u8-strlen: New file.
73466         * modules/unistr/u16-strlen: New file.
73467         * modules/unistr/u32-strlen: New file.
73468         * lib/unistr/u8-strlen.c: New file.
73469         * lib/unistr/u16-strlen.c: New file.
73470         * lib/unistr/u32-strlen.c: New file.
73471         * lib/unistr/u-strlen.h: New file.
73472
73473         * modules/unistr/u8-strmblen: New file.
73474         * modules/unistr/u16-strmblen: New file.
73475         * modules/unistr/u32-strmblen: New file.
73476         * lib/unistr/u8-strmblen.c: New file.
73477         * lib/unistr/u16-strmblen.c: New file.
73478         * lib/unistr/u32-strmblen.c: New file.
73479
73480         * modules/unistr/u8-strmbtouc: New file.
73481         * modules/unistr/u16-strmbtouc: New file.
73482         * modules/unistr/u32-strmbtouc: New file.
73483         * lib/unistr/u8-strmbtouc.c: New file.
73484         * lib/unistr/u16-strmbtouc.c: New file.
73485         * lib/unistr/u32-strmbtouc.c: New file.
73486
73487         * modules/unistr/u8-strncat: New file.
73488         * modules/unistr/u16-strncat: New file.
73489         * modules/unistr/u32-strncat: New file.
73490         * lib/unistr/u8-strncat.c: New file.
73491         * lib/unistr/u16-strncat.c: New file.
73492         * lib/unistr/u32-strncat.c: New file.
73493         * lib/unistr/u-strncat.h: New file.
73494
73495         * modules/unistr/u8-strncmp: New file.
73496         * modules/unistr/u16-strncmp: New file.
73497         * modules/unistr/u32-strncmp: New file.
73498         * lib/unistr/u8-strncmp.c: New file.
73499         * lib/unistr/u16-strncmp.c: New file.
73500         * lib/unistr/u32-strncmp.c: New file.
73501
73502         * modules/unistr/u8-strncpy: New file.
73503         * modules/unistr/u16-strncpy: New file.
73504         * modules/unistr/u32-strncpy: New file.
73505         * lib/unistr/u8-strncpy.c: New file.
73506         * lib/unistr/u16-strncpy.c: New file.
73507         * lib/unistr/u32-strncpy.c: New file.
73508         * lib/unistr/u-strncpy.h: New file.
73509
73510         * modules/unistr/u8-strnlen: New file.
73511         * modules/unistr/u16-strnlen: New file.
73512         * modules/unistr/u32-strnlen: New file.
73513         * lib/unistr/u8-strnlen.c: New file.
73514         * lib/unistr/u16-strnlen.c: New file.
73515         * lib/unistr/u32-strnlen.c: New file.
73516         * lib/unistr/u-strnlen.h: New file.
73517
73518         * modules/unistr/u8-strpbrk: New file.
73519         * modules/unistr/u16-strpbrk: New file.
73520         * modules/unistr/u32-strpbrk: New file.
73521         * lib/unistr/u8-strpbrk.c: New file.
73522         * lib/unistr/u16-strpbrk.c: New file.
73523         * lib/unistr/u32-strpbrk.c: New file.
73524         * lib/unistr/u-strpbrk.h: New file.
73525
73526         * modules/unistr/u8-strrchr: New file.
73527         * modules/unistr/u16-strrchr: New file.
73528         * modules/unistr/u32-strrchr: New file.
73529         * lib/unistr/u8-strrchr.c: New file.
73530         * lib/unistr/u16-strrchr.c: New file.
73531         * lib/unistr/u32-strrchr.c: New file.
73532
73533         * modules/unistr/u8-strspn: New file.
73534         * modules/unistr/u16-strspn: New file.
73535         * modules/unistr/u32-strspn: New file.
73536         * lib/unistr/u8-strspn.c: New file.
73537         * lib/unistr/u16-strspn.c: New file.
73538         * lib/unistr/u32-strspn.c: New file.
73539         * lib/unistr/u-strspn.h: New file.
73540
73541         * modules/unistr/u8-strstr: New file.
73542         * modules/unistr/u16-strstr: New file.
73543         * modules/unistr/u32-strstr: New file.
73544         * lib/unistr/u8-strstr.c: New file.
73545         * lib/unistr/u16-strstr.c: New file.
73546         * lib/unistr/u32-strstr.c: New file.
73547         * lib/unistr/u-strstr.h: New file.
73548
73549         * modules/unistr/u8-strtok: New file.
73550         * modules/unistr/u16-strtok: New file.
73551         * modules/unistr/u32-strtok: New file.
73552         * lib/unistr/u8-strtok.c: New file.
73553         * lib/unistr/u16-strtok.c: New file.
73554         * lib/unistr/u32-strtok.c: New file.
73555         * lib/unistr/u-strtok.h: New file.
73556
73557         * modules/unistr/u8-uctomb: New file.
73558         * modules/unistr/u16-uctomb: New file.
73559         * modules/unistr/u32-uctomb: New file.
73560         * lib/unistr/u8-uctomb.c: New file.
73561         * lib/unistr/u16-uctomb.c: New file.
73562         * lib/unistr/u32-uctomb.c: New file.
73563
73564         * MODULES.html.sh (Unicode string functions): Add the new modules.
73565
73566 2007-01-08  Bruno Haible  <bruno@clisp.org>
73567
73568         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
73569         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
73570         subdirectories.
73571
73572 2007-01-08  Karl Berry  <karl@gnu.org>
73573
73574         * doc/error.texi: mention that main() fns must set program_name
73575         when progname is used.
73576
73577 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
73578
73579         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
73580         WCTYPE_H is empty, for the benefit of builds from non-distclean
73581         directories.  Problem reported by Eric Blake in
73582         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
73583
73584 2007-01-08  Bruno Haible  <bruno@clisp.org>
73585
73586         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
73587         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
73588         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
73589         PROVIDE_CANONICALIZE_FILENAME_MODE.
73590         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
73591
73592 2007-01-08  Bruno Haible  <bruno@clisp.org>
73593
73594         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
73595         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
73596         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
73597         * lib/fts.c: Likewise.
73598         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
73599
73600 2006-12-25  Bruno Haible  <bruno@clisp.org>
73601
73602         * modules/utf8-ucs4-safe: New file.
73603         * lib/utf8-ucs4-safe.h: New file.
73604         * lib/unistr/utf8-ucs4-safe.c: New file.
73605
73606         * modules/utf16-ucs4-safe: New file.
73607         * lib/utf16-ucs4-safe.h: New file.
73608         * lib/unistr/utf16-ucs4-safe.c: New file.
73609
73610         * MODULES.html.sh (Unicode string functions): Add the new modules.
73611
73612 2007-01-08  Bruno Haible  <bruno@clisp.org>
73613
73614         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
73615         (Depends-on): Add unitypes.
73616         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
73617         (u8_mbtouc_aux): Move out to separate file.
73618         (u8_mbtouc): Use ucs4_t, uint8_t types.
73619         * lib/unistr/utf8-ucs4.c: New file.
73620
73621         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
73622         (Depends-on): Add unitypes.
73623         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
73624         (u16_mbtouc_aux): Move out to separate file.
73625         (u16_mbtouc): Use ucs4_t, uint16_t types.
73626         * lib/unistr/utf16-ucs4.c: New file.
73627
73628         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
73629         (Depends-on): Add unitypes.
73630         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
73631         (u8_uctomb_aux): Move out to separate file.
73632         (u8_uctomb): Use ucs4_t, uint8_t types.
73633         * lib/unistr/ucs4-utf8.c: New file.
73634
73635         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
73636         (Depends-on): Add unitypes.
73637         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
73638         (u16_uctomb_aux): Move out to separate file.
73639         (u16_uctomb): Use ucs4_t, uint16_t types.
73640         * lib/unistr/ucs4-utf16.c: New file.
73641
73642 2006-12-25  Bruno Haible  <bruno@clisp.org>
73643
73644         * modules/unitypes: New file.
73645         * lib/unitypes.h: New file.
73646         * MODULES.html.sh (func_all_modules): New section "Unicode string
73647         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
73648         this section. Add unitypes.
73649
73650 2007-01-08  Bruno Haible  <bruno@clisp.org>
73651
73652         Avoid variable names that conflict with those from libtool.
73653         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
73654         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
73655         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
73656         library_names_spec to acl_library_names_spec, hardcode_* to
73657         acl_hardcode_*.
73658         Reported by Ralf Wildenhues.
73659
73660 2007-01-08  Bruno Haible  <bruno@clisp.org>
73661
73662         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
73663         definition.
73664         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
73665         definition.
73666         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
73667         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
73668         definition.
73669         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
73670         definition.
73671         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
73672         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
73673         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
73674         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
73675         definition.
73676         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
73677         definition.
73678         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
73679         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
73680         GC_USE_<algorithm>.
73681         * lib/gc-libgcrypt.c: Likewise.
73682         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
73683         * modules/gc-arctwo (configure.ac): Likewise.
73684         * modules/gc-des (configure.ac): Likewise.
73685         * modules/gc-hmac-md5 (configure.ac): Likewise.
73686         * modules/gc-hmac-sha1 (configure.ac): Likewise.
73687         * modules/gc-md2 (configure.ac): Likewise.
73688         * modules/gc-md4 (configure.ac): Likewise.
73689         * modules/gc-md5 (configure.ac): Likewise.
73690         * modules/gc-random (configure.ac): Likewise.
73691         * modules/gc-rijndael (configure.ac): Likewise.
73692         * modules/gc-sha1 (configure.ac): Likewise.
73693
73694 2007-01-08  Bruno Haible  <bruno@clisp.org>
73695
73696         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
73697         macro definition.
73698         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
73699         definition.
73700         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
73701         definition.
73702         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
73703         * modules/fcntl-safer (configure.ac): Likewise.
73704         * modules/fopen-safer (configure.ac): Likewise.
73705         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
73706         GNULIB_FWRITEERROR macro definition.
73707
73708 2007-01-08  Bruno Haible  <bruno@clisp.org>
73709
73710         * m4/gnulib-common.m4: New file.
73711         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
73712         (func_get_filelist): Add m4/gnulib-common.m4.
73713
73714 2007-01-08  Bruno Haible  <bruno@clisp.org>
73715
73716         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
73717         command.
73718
73719 2007-01-08  Jim Meyering  <jim@meyering.net>
73720
73721         Use a more robust test for a "can't happen" condition.
73722         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
73723         narrowed the st_size value.  Presuming the "can't happen" condition
73724         is true, that narrowing could conceivably convert an invalid st_size
73725         value into a valid one.  Instead, use a change based on Matthew
73726         Woehlke's original patch.
73727
73728         Slight readability improvement: use an assert-like macro
73729         in place of literal "abort ()" uses.
73730         * lib/fts.c (fts_assert): Define.
73731         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
73732         Use this macro instead of a bare 'abort'.
73733
73734 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
73735
73736         Don't worry about using IRIX 5.3's wctype.h broken definitions;
73737         simply work around them.
73738         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
73739         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
73740         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
73741         declaring.
73742         Don't bother to define as macros, since the standard doesn't require it.
73743         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
73744         longer worry about IRIX 5.3.
73745         (HAVE_WCTYPE_CTMP_BUG): Remove.
73746
73747 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
73748
73749         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
73750         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
73751         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
73752         Problems reported by Georg Schwarz for IRIX 5.3.
73753
73754         * gnulib-tool (autoconf_minversion): Take the maximum version number
73755         found, not the minimum.  Problem reported by James Youngman.
73756
73757 2007-01-03  Karl Berry  <karl@gnu.org>
73758
73759         * doc/error.texi: new file, explaining interaction with progname.
73760         * doc/gnulib.texi: include it.  Update copyright.
73761
73762 2007-01-03  Simon Josefsson  <simon@josefsson.org>
73763
73764         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
73765         AC_CANONICAL_HOST, to improve autobuild outputs.
73766
73767 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
73768             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
73769
73770         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
73771         sockets, server sockets, and other file descriptors.  Count errors
73772         to compute the return value.  Reorder the code a bit to be easier
73773         to follow.  Don't set event bits that were not requested (except
73774         POLLERR and POLLHUP).
73775
73776 2007-01-01  Bruno Haible  <bruno@clisp.org>
73777
73778         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
73779
73780 2007-01-03  Jim Meyering  <jim@meyering.net>
73781
73782         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
73783
73784 2007-01-02  Bruno Haible  <bruno@clisp.org>
73785
73786         * modules/settime (Include): Require timespec.h.
73787         * modules/nanosleep (Include): Likewise.
73788
73789 2007-01-01  Bruno Haible  <bruno@clisp.org>
73790
73791         * gnulib-tool (func_emit_copyright_notice): Bump year.
73792         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
73793
73794 2007-01-01  Bruno Haible  <bruno@clisp.org>
73795
73796         Improve support for OpenBSD.
73797         * build-aux/config.rpath (libname_spec): Export.
73798         (library_names_spec): New variable. Export.
73799         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
73800         library_names_spec from the config.rpath output. Locate shared library
73801         through the name pattern in library_names_spec.
73802
73803 2007-01-01  Eric Blake  <ebb9@byu.net>
73804
73805         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
73806
73807 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
73808
73809         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
73810         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
73811         assume the C locale, and avoid an "eval" that could cause trouble.
73812         Problem with SORT reported by Bob Proulx.
73813
73814         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
73815         Define.  Trivial patch from Henning Nielsen Lund, originally
73816         sent to bug-grep@gnu.org today.
73817
73818 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
73819
73820         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
73821         struct stat.  Problem reported by Henning Nielsen Lund.
73822         * lib/acl.c: Include acl.h first, to check interface.  Don't
73823         bother to include sys/types.h and sys/stat.h again.
73824
73825 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
73826
73827         Import the following change from libc; problem reported by
73828         Sven Verdoolaege.
73829
73830         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
73831
73832         [BZ #1373]
73833         * lib/argp.h: Remove __NTH for __argp_usage inline function.
73834
73835 2006-12-28  Jim Meyering  <jim@meyering.net>
73836
73837         * build-aux/announce-gen: Do not assume that the package
73838         builds any of tar.gz, tar.bz2, and .xdelta files.
73839         Suggestion from Simon Josefsson.
73840
73841 2006-12-28  Simon Josefsson  <simon@josefsson.org>
73842
73843         * modules/announce-gen: New file.
73844
73845 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
73846
73847         * lib/mbchar.h: Just include <wctype.h>; the wctype module
73848         handles its gotchas now.
73849         * lib/mbswidth.c: Likewise.
73850         * lib/wcwidth.h: Likewise.
73851         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
73852         and iswcntrl; the wctype module does this stuff now.
73853         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
73854         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
73855         * modules/mbchar (Depends-on): Add wctype.
73856         * modules/mbswidth (Depends-on): Likewise.
73857         * modules/wcwidth (Depends-on): Likewise.
73858
73859 2006-12-27  Eric Blake  <ebb9@byu.net>
73860
73861         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
73862         module uses more than what <wctype.h> is required to provide.
73863
73864 2006-12-26  Eric Blake  <ebb9@byu.net>
73865
73866         * gnulib-tool (sed_extract_prog): Avoid space-tab.
73867
73868 2006-12-26  Eric Blake  <ebb9@byu.net>
73869
73870         * modules/absolute-header: New module.
73871         * modules/fcntl (Depends-on): Depend on it.
73872         * modules/inttypes (Depends-on): Likewise.
73873         * modules/stdint (Depends-on): Likewise.
73874         * modules/sys_stat (Depends-on): Likewise.
73875         * modules/wctype (Depends-on): Likewise.
73876         * MODULES.html.sh (Support for building libraries and
73877         executables): Document it.
73878
73879 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
73880
73881         * gnulib-tool (SED): Remove, undoing previous change.
73882         The problem was that it broke coreutils on Solaris, because
73883         "sed --posix" leaked into a makefile.
73884         (sed): New alias, if 'alias' and GNU sed.
73885
73886 2006-12-24  Jim Meyering  <jim@meyering.net>
73887
73888         Work around an fchownat bug in glibc-2.4:
73889         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
73890         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
73891         in spite of the -P option.
73892         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
73893         New macros.
73894         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
73895         * modules/openat (Files): Add lib/fchownat.c.
73896         * lib/openat.c (fchownat): Don't define here.  Move to...
73897         * lib/fchownat.c: ...this new file.
73898
73899 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
73900
73901         Fix bug reported by Bruno Haible in
73902         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
73903         where quotearg.c didn't compile on Mac OS X 10.2 because it
73904         lacks <wchar.h> and wint_t.
73905         * lib/wctype_.h (__wctype_wint_t): New type.
73906         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
73907         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
73908         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
73909         Arg is now of type __wctype_wint_t, not wint_t.
73910         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
73911         substitute HAVE_WINT_T.
73912         * modules/wctype (Files): Add m4/wint_t.m4.
73913         (wctype.h): Substitute HAVE_WINT_T.
73914
73915 2006-12-23  Bruno Haible  <bruno@clisp.org>
73916
73917         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
73918
73919 2006-12-23  Bruno Haible  <bruno@clisp.org>
73920
73921         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
73922         S_ISLNK.
73923         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
73924         mingw.
73925
73926 2006-12-22  Bruno Haible  <bruno@clisp.org>
73927
73928         * lib/copy-file.c: Include acl.h.
73929         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
73930         Close the file descriptors only after being done with copy_acl.
73931         * modules/copy-file (Depends-on): Add acl.
73932
73933 2006-12-22  Bruno Haible  <bruno@clisp.org>
73934
73935         * gnulib-tool (SED): New variable.
73936         Use $SED instead of sed everywhere.
73937
73938 2006-12-22  Bruno Haible  <bruno@clisp.org>
73939
73940         * modules/no-c++: New file.
73941         * m4/no-c++.m4: New file.
73942         * MODULES.html.sh (Support for building libraries and executables):
73943         Add no-c++.
73944
73945 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
73946
73947         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
73948         Include <limits.h>, and use its INT_MAX to rewrite the
73949         j loop so that it does not overflow 'int'.  Problem reported by
73950         Ralf Wildenhues in
73951         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
73952         Play it safe by shifting left by 1 rather than multiplying by 2,
73953         as GCC is less likely to optimize this away when the value
73954         is signed (when it assumes overflow leads to undefined behavior).
73955         Also, don't assume time_t uses two's complement.
73956
73957 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
73958
73959         * MODULES.html.sh: New module wctype.
73960         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
73961         * lib/fnmatch.c: Don't bother to include <wchar.h> before
73962         <wctype.h>, since the new wctype module should fix this.
73963         * lib/quotearg.c: Include <wctype.h> unconditionally, since
73964         the wctype module should arrange for it.
73965         * lib/regex_internal.h: Likewise.
73966         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
73967         since the wctype module should handle this now.
73968         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
73969         * modules/fnmatch (Depends-on): Add wctype.
73970         * modules/quotearg (Depends-on): Likewise.
73971         * modules/regex (Depends-on): Likewise.
73972
73973 2006-12-19  Bruno Haible  <bruno@clisp.org>
73974
73975         * lib/strdup.h [C++]: Wrap definitions in extern "C".
73976         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
73977
73978 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73979
73980         * modules/savewd (Depends-on): Fix dependency on fcntl.
73981
73982 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
73983
73984         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
73985         conforms to C99, rather than relying on the user's environment
73986         setting of STDINT_H.
73987
73988 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
73989         and Eric Blake  <ebb9@byu.net>
73990
73991         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
73992         This is more consistent with the other defines here.
73993         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
73994         Port to z/OS.  Problem reported by Paul Gilmartin.
73995         Change local vars to use gl_ prefix rather than ac_.
73996         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
73997         with other defines.
73998         * modules/double-slash-root: New module.
73999         * modules/dirname (Files): Remove m4/double-slash-root.m4.
74000         (Depends-on): Add double-slash-root.
74001         * MODULES.html.sh (File system functions): Mention new module.
74002
74003 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
74004
74005         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
74006         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
74007         This is for the benefit of gzip, which doesn't do i18n.
74008
74009 2006-12-12  Jim Meyering  <jim@meyering.net>
74010
74011         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
74012         Reported by Andreas Schwab <schwab@suse.de>.
74013
74014 2006-12-12  Bruno Haible  <bruno@clisp.org>
74015
74016         Merge these changes.
74017         2006-09-05  Bruno Haible  <bruno@clisp.org>
74018         * lib/iconvme.c (iconv_string): No need to save and restore errno when
74019         iconv_alloc succeeded.
74020         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
74021         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
74022         test for " && dest " at the end - dest is always != NULL there. Call
74023         iconv with 4xNULL arguments initially, to reset the state. Call iconv
74024         with 2xNULL arguments, also to flush the state storage. Handle the
74025         IRIX iconv behaviour. Realloc the final result, to throw away unused
74026         memory.
74027
74028 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
74029
74030         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
74031         and fchmodat unconditionally, since glibc 2.4 has them.
74032         Problem reported by Arkadiusz Miskiewicz.
74033
74034 2006-12-10  Bruno Haible  <bruno@clisp.org>
74035
74036         * gnulib-tool (func_import): Show the include files only for those
74037         modules that are copied and specified.
74038         Reported by Karl Berry.
74039
74040 2006-12-08  Jim Meyering  <jim@meyering.net>
74041
74042         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
74043         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
74044
74045         * build-aux/announce-gen: Add two new options, both optional:
74046         --bootstrap-tools=TOOL_LIST
74047               a comma-separated list of tools, e.g.,
74048               autoconf,automake,bison,gnulib
74049         --gnulib-snapshot-date=DATE
74050               if gnulib is in the bootstrap tool list,
74051               then report this as the snapshot date.
74052               If not specified, use the current date/time.
74053               If you specify a date here, be sure it's UTC.
74054
74055 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74056
74057         * tests/test-argp-2.sh: Fix test to match actual output.
74058         (func_compare): Fix sed script to be portable.
74059
74060 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
74061
74062         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
74063         workaround for this case.  It is not autoconfigured now; offhand
74064         it's hard to see how to autoconfigure it.
74065
74066 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
74067
74068         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
74069         a directory that is about to be chowned.  Such a directory's
74070         initial file permissions should permit the owner only and this
74071         should not be changed until after the chown, since the group and
74072         other bits would be incorrect if they granted permission before
74073         the chown.
74074
74075         Fix porting problem for iswctype reported by Georg Schwarz in:
74076         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
74077         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
74078         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
74079         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
74080         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
74081
74082 2006-12-03  Jim Meyering  <jim@meyering.net>
74083
74084         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
74085         p->fts_statp may not yet be defined.
74086         (fts_read): Instead, set it in the caller, once p->fts_statp is
74087         sure to be defined, and corresponds to a top-level directory.
74088         This bug made du -x fail.  Here's the coreutils test case:
74089         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
74090         Reported by Mike Frysinger.
74091
74092 2006-12-01  Jim Meyering  <jim@meyering.net>
74093
74094         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
74095         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
74096         Reported by Simon Josefsson.
74097
74098 2006-11-30  Jim Meyering  <jim@meyering.net>
74099
74100         * m4/warning.m4: Use the all-permissive copyright notice
74101         recommended by RMS (rather than LGPL).
74102         * m4/vararrays.m4: Likewise.
74103         * m4/flexmember.m4: Likewise.
74104
74105 2006-11-29  Bruno Haible  <bruno@clisp.org>
74106
74107         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
74108         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
74109         using +=.
74110         Reported by Simon Josefsson <simon@josefsson.org>.
74111
74112 2006-11-28  James Youngman <jay@gnu.org>
74113
74114         * README: Advise users that they might find the bug-gnulib@gnu.org
74115         and autotools-announce@gnu.org mailing lists useful.
74116
74117 2006-11-28  Bruno Haible  <bruno@clisp.org>
74118
74119         * m4/ptrdiff_max.m4: Remove file.
74120
74121 2006-11-21  Bruno Haible  <bruno@clisp.org>
74122
74123         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
74124         _AC_COMPUTE_INT.
74125         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
74126         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
74127         _AC_COMPUTE_INT.
74128         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
74129         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
74130         _AC_COMPUTE_INT.
74131         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
74132
74133 2006-11-28  Jim Meyering  <jim@meyering.net>
74134
74135         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
74136         warning from "gcc -Wshadow" about shadowing the builtin.
74137
74138 2006-11-27  Bruno Haible  <bruno@clisp.org>
74139
74140         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
74141         _AC_COMPUTE_INT.
74142         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
74143
74144 2006-11-27  Bruno Haible  <bruno@clisp.org>
74145             Paul Eggert  <eggert@cs.ucla.edu>
74146
74147         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
74148
74149 2006-11-26  Bruno Haible  <bruno@clisp.org>
74150
74151         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
74152         noinst_LTLIBRARIES.
74153
74154 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
74155             Bruno Haible  <bruno@clisp.org>
74156
74157         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
74158         if compiling with "gcc -ansi".
74159
74160 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
74161
74162         Fix some incompatibilities with gcc -ansi -pedantic.
74163         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
74164         if compiling pedantically with GCC, unless it's C99 or later.
74165         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
74166         it mishandles gcc -ansi -pedantic as well.
74167         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
74168         if gcc -pedantic.
74169         * lib/regexec.c (check_node_accept_bytes): Don't use auto
74170         initializers for struct if -pedantic, unless it's C99 or later.
74171
74172 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
74173
74174         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
74175         Don't close an fd more than once. Identical atimes indicate
74176         success, not failure.
74177
74178 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
74179
74180         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
74181
74182 2006-11-23  Jim Meyering  <jim@meyering.net>
74183
74184         * build-aux/announce-gen: New file.  From coreutils.
74185
74186 2006-11-22  Jim Meyering  <jim@meyering.net>
74187
74188         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
74189         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
74190         (fts_read): Use a temporary to narrow the overused st_size member
74191         before using it in a switch statement.  Reported by Matthew Woehlke.
74192
74193         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
74194         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
74195
74196 2006-11-20  Bruno Haible  <bruno@clisp.org>
74197
74198         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
74199         changequote instead of pairs of brackets.
74200         Reported by Andreas Schwab <schwab@suse.de>.
74201
74202 2006-11-21  Jim Meyering  <jim@meyering.net>
74203
74204         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
74205         so as to remain compatible with older compilers.
74206         Patch from Michael Deutschmann.
74207
74208 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
74209
74210         * MODULES.html.sh (File system functions): Add openat.
74211
74212         * lib/openat.h (rpl_fstatat): New macro, if
74213         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
74214         (fstatat): Define to rpl_fstatat under the same conditions,
74215         unless COMPILING_FSTATAT.
74216         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
74217         seems to have the bug.
74218         * lib/fstatat.c: New file.
74219         * modules/openat (Files): Add it.
74220
74221 2006-11-20  Bruno Haible  <bruno@clisp.org>
74222
74223         * Makefile: New file.
74224
74225 2006-11-20  Jim Meyering  <jim@meyering.net>
74226
74227         The beginnings of syntax-related checks for gnulib.
74228         * lib/Makefile: New file.
74229         * lib/t-idcache: New script.  Ensure that the two halves of
74230         idcache.c stay in sync.
74231
74232         * lib/idcache.c: Adjust comments in user- and group- portions to
74233         be more accurate, and to be consistent with one another.
74234
74235 2006-11-20  Jim Meyering  <jim@meyering.net>
74236
74237         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
74238         continue using the flexible array member (thus, this module performs
74239         half as many malloc calls), with the addition that...
74240         (getgroup, getuser): Consistently record a non-match via an empty
74241         "name" string, and map an empty string match to a NULL return value.
74242         * modules/idcache (Depends-on): Re-add flexmember.
74243
74244         * lib/idcache.c (getuser): Remove all uses of the register keyword.
74245         (getuidbyname, getgroup, getgidbyname): Likewise.
74246
74247         Use cleaner syntax: NULL rather than 0.
74248         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
74249
74250 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
74251
74252         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
74253         It mishandled the case where the group was missing.
74254         Problem reported by Greg Schafer.
74255         * modules/idcache: Likewise.
74256
74257 2006-11-18  Jim Meyering  <jim@meyering.net>
74258
74259         * check-module (%exempt_header): Add exception for some
74260         conditionally-included headers.
74261
74262         * modules/i-ring (Depends-on): Add verify.
74263         (License): Change to LGPL.
74264
74265 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
74266
74267         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
74268         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
74269         and inttostr.h.  Use snprintf rather than uinttostr, so that
74270         LGPLed code doesn't depend on GPLed.
74271
74272 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
74273
74274         * modules/inline (License): Change from GPL to LGPL.
74275
74276 2006-11-17  Jim Meyering  <jim@meyering.net>
74277
74278         * modules/d-type (License): Switch to LGPL.
74279
74280 2006-11-15  Bruno Haible  <bruno@clisp.org>
74281
74282         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
74283
74284 2006-11-15  Eric Blake  <ebb9@byu.net>
74285
74286         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
74287         the module dependency.
74288
74289 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74290             Bruno Haible  <bruno@clisp.org>
74291
74292         * gnulib-tool (func_create_testdir): Add license consistency check.
74293
74294 2006-11-15  Eric Blake  <ebb9@byu.net>
74295
74296         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
74297         random "(cached)" in configure output.
74298
74299 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74300
74301         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
74302         test for conforming inttypes.h is both announced and cached.
74303
74304         * MODULES.html.sh (seen_modules, seen_files): New variables.
74305         (func_module): Rewrite to use a few less gnulib-tool and sed
74306         invocations.  Avoid a couple of quadratic algorithms for ...
74307         (missed_modules, missed_files): ... these, with ...
74308         (func_append, func_tmpdir): ... these new functions, from
74309         gnulib-tool.  Analogously, install traps for cleanup.
74310
74311         * tests/test-gc.c (main): Remove unused variables.
74312         * tests/test-read-file.c: Include stdlib.h, for 'free'.
74313
74314 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
74315
74316         * modules/inttostr (License): Change to LGPL.
74317
74318 2006-11-14  Eric Blake  <ebb9@byu.net>
74319
74320         * modules/tempname (License): Change to LGPL.
74321
74322 2006-11-14  Eric Blake  <ebb9@byu.net>
74323
74324         * doc/functions.texi (Function Portability): *printf functions on
74325         Cygwin now understand all POSIX size specifiers.
74326
74327 2006-11-14  Bruno Haible  <bruno@clisp.org>
74328
74329         * modules/c-ctype (License): Change to LGPL.
74330
74331 2006-11-12  Bruno Haible  <bruno@clisp.org>
74332
74333         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
74334         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
74335         for GNOME libraries, for which the include files are installed in
74336         subdirectories of $prefix/include.
74337
74338 2006-11-12  Bruno Haible  <bruno@clisp.org>
74339
74340         * m4/lib-link.m4: Require at least autoconf-2.54.
74341         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
74342         name to underscores for the --with option.
74343
74344 2006-11-13  Bruno Haible  <bruno@clisp.org>
74345
74346         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
74347         the tests directory.
74348         Reported by Ralf Wildenhues.
74349
74350 2006-11-13  Bruno Haible  <bruno@clisp.org>
74351
74352         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
74353         (func_emit_initmacro_end): Undo the override here.
74354         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
74355         Works around the famous automake error in coreutils.
74356
74357 2006-11-13  Eric Blake  <ebb9@byu.net>
74358
74359         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
74360         element, not its node.
74361
74362 2006-11-12  Bruno Haible  <bruno@clisp.org>
74363
74364         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
74365         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
74366
74367 2006-11-12  Bruno Haible  <bruno@clisp.org>
74368
74369         * gnulib-tool: New option --local-symlink.
74370         (func_usage): Document it.
74371         (lsymbolic): New variable.
74372         (func_import, func_create_testdir): If --symlink was not specified,
74373         test whether --local-symlink was specified and the file comes from
74374         the local_gnulib_dir.
74375
74376 2006-11-12  Bruno Haible  <bruno@clisp.org>
74377
74378         * gnulib-tool (func_ln): New function.
74379         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
74380
74381 2006-11-12  Bruno Haible  <bruno@clisp.org>
74382
74383         Finish support for source files in subdirectories.
74384         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
74385         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
74386         AUTOMAKE_OPTIONS.
74387         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
74388
74389 2006-11-12  Bruno Haible  <bruno@clisp.org>
74390
74391         * gnulib-tool (func_get_automake_snippet): Synthesize also an
74392         EXTRA_lib_SOURCES augmentation.
74393         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
74394
74395 2006-11-12  Jim Meyering  <jim@meyering.net>
74396
74397         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
74398         file descriptors.  This also averts a failure on systems with
74399         native openat support when a traversed directory lacks "x" access.
74400         * lib/fts_.h: Include "i-ring.h"
74401         (struct FTS) [fts_fd_ring]: New member.
74402         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
74403         (FCHDIR): Add parentheses.
74404         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
74405         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
74406         When descending, rather than simply closing the previous
74407         fts_cwd_fd value, push that file descriptor onto the ring.
74408         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
74409         (fts_open): Initialize the new fd_ring member.
74410         (fts_close): Clear the ring.
74411         (fts_safe_changedir): When possible, use our new fd_ring to skip
74412         the diropen and fstat and dev/ino comparison that would normally
74413         accompany a virtual `chdir ("..")'.
74414
74415         * modules/fts (Depends-on): Add i-ring.
74416         * modules/i-ring: New module.
74417         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
74418         * m4/i-ring.m4: New file.
74419
74420 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74421
74422         * gnulib-tool (func_create_testdir): Fix replacement of
74423         `build-aux' in configure.ac.  Run autotools in gltests
74424         subdirectory.
74425         (func_create_testdir, func_create_megatestdir, test): There is
74426         no need for '--force' in most autotool invocations in a new
74427         tree.  Actually fail the whole test if any of the tools, or the
74428         configure or make stages fail.
74429
74430         Sync from Automake.
74431         * build-aux/gnupload: Revert last change.  Add pointer to upload
74432         instructions of the GNU Maintenance Instructions.
74433         Suggestion by Karl Berry.
74434
74435 2006-11-10  Jim Meyering  <jim@meyering.net>
74436
74437         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
74438
74439 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
74440
74441         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
74442         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
74443         (bind_textdomain_codeset) [! ENABLE_NLS]:
74444         Evaluate all the arguments.  That way, callers get compatible behavior
74445         if the arguments have side effects.  Also, it avoids some GCC
74446         diagnostics in some cases; Joel E. Denny reported problems when Bison
74447         was configured with --enable-gcc-warnigs.
74448
74449 2006-11-10  Jim Meyering  <jim@meyering.net>
74450
74451         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
74452         relevant options in CFLAGS (like -O, -fno-inline) are taken into
74453         account.
74454
74455 2006-11-10  Jim Meyering  <jim@meyering.net>
74456
74457         * modules/inline: New file/module.
74458         * modules/xalloc (Files): Remove m4/inline.m4.
74459         (Depends-on): Add inline, instead.
74460         * modules/oset: Likewise.
74461         * modules/list: Likewise.
74462
74463 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
74464
74465         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
74466         Problem reported by Matthew Woehlke.
74467
74468 2006-11-09  Bruno Haible  <bruno@clisp.org>
74469
74470         * lib/tempname.c (gen_tempname): Remove variant that invokes
74471         __gen_tempname.
74472         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
74473         __gen_tempname.
74474
74475 2006-11-08  Bruno Haible  <bruno@clisp.org>
74476
74477         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
74478         to 'yes' instead of 'cross-compiling'.
74479
74480 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
74481
74482         * lib/quotearg.h (quotearg_free): New decl.
74483         * lib/quotearg.c (quotearg_free): New function.
74484         (slot0, nslots, slotvec0, slotvec):
74485         Now file-scope so that quotearg_free can get at them.
74486
74487 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74488
74489         Sync from Automake.
74490         * build-aux/gnupload: Add missing 'gnu' to example URL.
74491         Report by Karl Berry.
74492
74493 2006-11-08  Bruno Haible  <bruno@clisp.org>
74494
74495         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
74496         Suggested by Paul Eggert.
74497
74498 2006-11-08  Jim Meyering  <jim@meyering.net>
74499
74500         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
74501         It's already included if !_LIBC.
74502         (fts_safe_changedir): Add a comment.
74503
74504 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
74505
74506         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
74507         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
74508         Matthew Woehlke.
74509
74510         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
74511         definitions up, to avoid colliding with change below.
74512         (static_inline) [HAVE_INLINE]: New macro.
74513         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
74514         Provide extern decls when !HAVE_INLINE.  Do not define unless
74515         static_inline is defined, either by us or by xmalloc.c.  Use
74516         static_inline rather than static inline.
74517         (XCALLOC): Optimize sizeof(T) = 1 case.
74518         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
74519
74520 2006-11-07  Bruno Haible  <bruno@clisp.org>
74521
74522         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
74523         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
74524         AC_C_INLINE.
74525         * modules/xalloc (Files): Add m4/inline.m4.
74526
74527 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74528
74529         * README: Fix typo.
74530         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
74531         (Miscellanous Notes): ...from this.
74532
74533 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
74534
74535         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
74536         Mention that offsetof should be used instead of sizeof.
74537         From Bruno Haible.
74538
74539 2006-11-07  Bruno Haible  <bruno@clisp.org>
74540
74541         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
74542
74543 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
74544
74545         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
74546         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
74547         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
74548         (gl_tree_add_before, gl_tree_add_after):
74549         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
74550         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
74551         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
74552         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
74553         (gl_linked_add_after, gl_linked_add_at): Likewise.
74554         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
74555         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
74556         (gl_tree_add_before, gl_tree_add_after): Likewise.
74557         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
74558         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
74559         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
74560
74561 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74562
74563         * lib/gl_oset.h: Use C comment style, not C++ comment style.
74564
74565 2006-11-06  Bruno Haible  <bruno@clisp.org>
74566
74567         * m4/inline.m4: New file.
74568         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
74569         * modules/list (Files): Add m4/inline.m4.
74570         * modules/oset (Files): Likewise.
74571
74572 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
74573
74574         * lib/idcache.c: Include <stddef.h>, for offsetof.
74575         (struct userid.name): Change from char * to a flexible array member.
74576         All uses changed.
74577         * modules/idcache (Depends-on): Add flexmember.
74578
74579         * MODULES.html.sh (Core language properties): New module flexmember.
74580         * modules/flexmember, m4/flexmember.m4: New files.
74581
74582         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
74583         inline functions that are identical with the old xnmalloc_inline,
74584         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
74585         that we can avoid some unnecessary integer multiplications and
74586         divisions in the common case where the element size is known at
74587         compile time.
74588         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
74589         needed.
74590         (xnboundedmalloc): Remove.
74591         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
74592         arguments, for consistency with rest of this header.
74593         (xcharalloc): Rewrite using XNMALLOC.
74594         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
74595         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
74596         versions have been moved to lib/xalloc.h and renamed to be the
74597         non-*_inline versions.
74598         (xmalloc, xrealloc): Implement without reference to the xnmalloc
74599         and xnrealloc functions, since those functions are now inline and
74600         now call us.
74601         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
74602         renaming described above.
74603         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
74604         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
74605         captures the dependency in AC_C_INLINE.
74606
74607         New module canonicalize-lgpl, proposed by Charles Wilson in
74608         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
74609         with a few small changes afterwards.
74610         * MODULES.html.sh (File system functions): New module
74611         canonicalize-lgpl.
74612         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
74613         and canonicalize_file_name.
74614         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
74615         * modules/canonicalize-lgpl: New files.
74616
74617 2006-11-05  Bruno Haible  <bruno@clisp.org>
74618
74619         * gnulib-tool (func_import, func_create_testdir): Create directories
74620         also for files in subdirectories of lib/.
74621
74622 2006-11-05  Bruno Haible  <bruno@clisp.org>
74623
74624         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
74625         ANSI C compliant.
74626
74627 2006-11-03  Bruno Haible  <bruno@clisp.org>
74628
74629         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
74630         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
74631         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
74632         (xnboundedmalloc): New inline function.
74633         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
74634         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
74635         xmalloc.
74636         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
74637         xmalloc.
74638         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
74639         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
74640         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
74641         xmalloc.
74642         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
74643         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
74644         xmalloc.
74645         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
74646         gl_tree_add_after): Use XMALLOC instead of xmalloc.
74647         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
74648         xmalloc.
74649         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
74650         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
74651         gl_tree_add_after): Use XMALLOC instead of xmalloc.
74652         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
74653         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
74654         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
74655         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
74656
74657 2006-11-03  Bruno Haible  <bruno@clisp.org>
74658
74659         * lib/c-ctype.h [C++]: Define functions without name mangling.
74660         * lib/fwriteerror.h [C++]: Likewise.
74661         * lib/gcd.h [C++]: Likewise.
74662         * lib/linebreak.h [C++]: Likewise.
74663
74664 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
74665
74666         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
74667         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
74668         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
74669         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
74670         Check for functions and headers just once.
74671         Check for declaration of canonicalize_file_name.
74672         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
74673
74674 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
74675
74676         * gnulib-tool (func_import): Fix typo in actioncmd.
74677
74678 2006-11-02  Bruno Haible  <bruno@clisp.org>
74679
74680         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
74681         newline sequence in the Makefile.am snippet as a space, like "make"
74682         does.
74683         Reported by Roger Persson <perrog@gmail.com>.
74684
74685 2006-11-01  Bruno Haible  <bruno@clisp.org>
74686
74687         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
74688         already declared in <string.h>.
74689         * lib/strcase.h (strncasecmp): Don't declare it if yes.
74690
74691 2006-11-01  Bruno Haible  <bruno@clisp.org>
74692
74693         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
74694         * lib/strcase.h: Include <string.h>.
74695         (strcasecmp): Define to rpl_strcasecmp here.
74696
74697 2006-11-01  Bruno Haible  <bruno@clisp.org>
74698
74699         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
74700
74701 2006-11-01  Eric Blake  <ebb9@byu.net>
74702
74703         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
74704
74705         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
74706
74707 2006-10-29  Bruno Haible  <bruno@clisp.org>
74708
74709         Make it compile in C++ mode.
74710         * lib/full-write.c (full_rw): Add a cast.
74711
74712 2006-11-01  Bruno Haible  <bruno@clisp.org>
74713
74714         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
74715         be POSIX compliant.
74716         Reported by Roger Persson <perrog@gmail.com>.
74717
74718 2006-11-01  Eric Blake  <ebb9@byu.net>
74719
74720         * lib/getopt_.h: Fix comments.
74721
74722 2006-10-31  Eric Blake  <ebb9@byu.net>
74723
74724         * modules/tmpdir (Depends-on): Add sys_stat.
74725         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
74726         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
74727         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
74728         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
74729         tempname.
74730
74731 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
74732
74733         Avoid some C++ diagnostics reported by Bruno Haible.
74734         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
74735         xmalloc.
74736         (quotearg_alloc): Use xcharalloc rather than xmalloc.
74737         (struct slotvec): Move to top level.
74738         (quotearg_n_options): Rewrite to avoid xmalloc.
74739         * lib/xalloc.h (xcharalloc): New function.
74740         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
74741         [defined __cplusplus]: Add function template that provides result
74742         type propagation.  This part of the change is from Bruno Haible.
74743
74744 2006-10-29  Bruno Haible  <bruno@clisp.org>
74745
74746         Make it compile in C++ mode.
74747         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
74748         * lib/strnlen1.c (strnlen1): Cast memchr result.
74749         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
74750         * lib/clean-temp.c (string_equals, string_hash): Add casts.
74751         (create_temp_dir): Rename local variable 'template'.
74752         (compile_csharp_using_sscli): Add cast.
74753         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
74754         * lib/findprog.c (find_in_path): Likewise.
74755         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
74756         * lib/wait-process.c (register_slave_subprocess): Likewise.
74757
74758 2006-10-22  Bruno Haible  <bruno@clisp.org>
74759
74760         * modules/tsearch: New file.
74761         * lib/tsearch.h: New file.
74762         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
74763         * m4/tsearch.m4: New file.
74764         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
74765
74766 2006-10-29  Eric Blake  <ebb9@byu.net>
74767
74768         * lib/arcfour.c: Assume config.h.
74769         * lib/arctwo.c: Likewise.
74770         * lib/base64.c: Likewise.
74771         * lib/check-version.c: Likewise.
74772         * lib/crc.c: Likewise.
74773         * lib/des.c: Likewise.
74774         * lib/gc-gnulib.c: Likewise.
74775         * lib/gc-libgcrypt.c: Likewise.
74776         * lib/gc-pbkdf2-sha1.c: Likewise.
74777         * lib/getaddrinfo.c: Likewise.
74778         * lib/getdelim.c: Likewise.
74779         * lib/getline.c: Likewise.
74780         * lib/hmac-md5.c: Likewise.
74781         * lib/hmac-sha1.c: Likewise.
74782         * lib/iconvme.c: Likewise.
74783         * lib/md2.c: Likewise.
74784         * lib/md4.c: Likewise.
74785         * lib/memxor.c: Likewise.
74786         * lib/read-file.c: Likewise.
74787         * lib/readline.c: Likewise.
74788         * lib/rijndael-alg-fst.c: Likewise.
74789         * lib/rijndael-api-fst.c: Likewise.
74790         * lib/xgetdomainname.c: Likewise.
74791
74792 2006-10-28  Eric Blake  <ebb9@byu.net>
74793
74794         * lib/xstrndup.c: Assume config.h.
74795
74796 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
74797
74798         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
74799         stat-macros.h is now for our own macros, whereas stat_h is for
74800         macros in the <sys/stat.h> name space.
74801         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
74802         (STAT_MACROS_H): Remove.
74803         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
74804         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
74805         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
74806         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
74807         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
74808         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
74809         Move these macros to ...
74810         * lib/stat_.h: here.  Don't include stat-macros.h.
74811         * lib/canonicalize.c: Don't include stat-macros.h.
74812         * lib/chown.c: Likewise.
74813         * lib/euidaccess.c: Likewise.
74814         * lib/file-type.c: Likewise.
74815         * lib/filemode.c: Likewise.
74816         * lib/glob.c: Likewise.
74817         * lib/isapipe.c: Likewise.
74818         * lib/lchown.c: Likewise.
74819         * lib/lstat.c: Likewise.
74820         * lib/mkdir-p.c: Likewise.
74821         * lib/rmdir.c: Likewise.
74822         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
74823         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
74824         unless mkdir isn't declared, to speed up 'configure'.
74825         Always create sys/stat.h, since it's unlikely any real sys/stat.h
74826         would define all the S_* symbols.
74827         * modules/canonicalize (Depends-on):
74828         Depend on sys_stat, not stat-macros.
74829         * modules/chown: Likewise.
74830         * modules/euidaccess: Likewise.
74831         * modules/filemode: Likewise.
74832         * modules/file-type: Likewise.
74833         * modules/glob: Likewise.
74834         * modules/isapipe: Likewise.
74835         * modules/lchown: Likewise.
74836         * modules/lstat: Likewise.
74837         * modules/mkancesdirs: Likewise.
74838         * modules/rmdir: Likewise.
74839         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
74840         * modules/modechange: Likewise.
74841         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
74842         (configure.ac): Remove gl_STAT_MACROS.
74843         * modules/sys_stat (Depends-on): Remove stat-macros.
74844
74845 2006-10-27  Bruno Haible  <bruno@clisp.org>
74846
74847         * m4/signed.m4: Remove file.
74848         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
74849         invocation.
74850         * modules/vasnprintf (Files): Remove m4/signed.m4.
74851
74852 2006-10-27  Bruno Haible  <bruno@clisp.org>
74853
74854         Update to GNU gettext 0.16.
74855         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
74856         m4/inttypes-h.m4, m4/signed.m4.
74857         * m4/gettext.m4: Update to GNU gettext 0.16.
74858         * m4/intl.m4: New file, from GNU gettext.
74859         * m4/intldir.m4: New file, from GNU gettext.
74860         * config/srclist.txt: Update
74861
74862 2006-10-27  Eric Blake  <ebb9@byu.net>
74863
74864         * MODULES.html.sh: Document tempname.
74865         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
74866         dependencies.
74867         (Files): Move lib/tempname.c...
74868         * modules/tempname: ...to this new module.
74869         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
74870         (gl_PREREQ_TEMPNAME): Move...
74871         * m4/tempname.m4: ...to this new file.
74872         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
74873         * modules/sys_stat (Depends-on): Add stat-macros.
74874         * lib/stat_.h (includes): Pick up stat macros.
74875         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
74876         if stat macros are broken.
74877         * lib/tempname.c (includes): No need to include "stat-macros.h".
74878         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
74879         (direxists, __path_search) [!_LIBC]: Don't compile these in
74880         gnulib; the tmpdir module covers that.
74881         * lib/tempname.h: New file.
74882
74883 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
74884
74885         * COPYING: Explain how gnulib-tool converts licence headers.
74886         Almost all wording by Eric Blake.
74887
74888 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
74889
74890         * lib/mbchar.h (is_basic_table): Make read-only.
74891         * lib/mbchar.c (is_basic_table): Likewise.
74892         Reported by John Darrington.
74893
74894 2006-10-25  Bruno Haible  <bruno@clisp.org>
74895
74896         * lib/progname.h (set_program_name): Undefine before defining.
74897
74898 2006-10-25  Bruno Haible  <bruno@clisp.org>
74899
74900         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
74901         false for non-gcc C++ compilers.
74902         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
74903
74904 2006-10-24  Bruno Haible  <bruno@clisp.org>
74905
74906         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
74907         iconv implementations like Irix iconv.
74908
74909 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
74910
74911         * modules/vararrays: New file.
74912         * m4/vararrays.m4: New file, taken from diffutils.
74913         * MODULES.html.sh: New module vararrays.
74914
74915 2006-10-24  Karl Berry  <karl@gnu.org>
74916
74917         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
74918         Don't call GNU Unix.
74919
74920 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74921
74922         * users.txt: Add Libtool.
74923
74924         Sync from Libtool:
74925
74926         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
74927
74928         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
74929         to gnulib's policy of including config.h unconditionally.
74930
74931 2006-10-24  Bruno Haible  <bruno@clisp.org>
74932
74933         * modules/wcwidth (Files): Add m4/wint_t.m4.
74934         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
74935         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
74936
74937 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
74938
74939         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
74940         to pacify GCC with some -W flags enabled.  Problem reported by
74941         Bruno Haible.
74942
74943 2006-10-24  Jim Meyering  <jim@meyering.net>
74944
74945         * MODULES.html.sh: Remove uinttostr.  It's not a module.
74946         Reported by Karl Berry.
74947
74948 2006-10-23  Bruno Haible  <bruno@clisp.org>
74949
74950         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
74951
74952 2006-10-24  Bruno Haible  <bruno@clisp.org>
74953
74954         * lib/gl_list.h: Use C comment style, not C++ comment style.
74955
74956 2006-10-23  Eric Blake  <ebb9@byu.net>
74957
74958         * lib/getaddrinfo.c (includes): Add missing include.
74959
74960 2006-10-23  Bruno Haible  <bruno@clisp.org>
74961             Paul Eggert  <eggert@cs.ucla.edu>
74962
74963         Ability to rename obstack_free.
74964         * lib/obstack.h (__obstack_free): New macro. Declare instead of
74965         obstack_free.
74966         (obstack_free): Invoke the __obstack_free macro.
74967         * lib/obstack.c (obstack_free): Use __obstack_free macro.
74968
74969 2006-10-23  Bruno Haible  <bruno@clisp.org>
74970             Paul Eggert  <eggert@cs.ucla.edu>
74971
74972         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
74973         __argc, __argv from the declaration. (They are defined as macros on
74974         mingw.)
74975
74976 2006-10-22  Bruno Haible  <bruno@clisp.org>
74977
74978         * doc/gnulib-intro.texi: New file.
74979         * doc/gnulib.texi: Include it.
74980
74981 2006-10-21  Bruno Haible  <bruno@clisp.org>
74982
74983         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
74984         "Introduction", "Miscellanous Notes", "Particular Modules".
74985
74986 2006-10-21  Bruno Haible  <bruno@clisp.org>
74987
74988         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
74989         Change mostlyclean-local rule to avoid sh syntax error from bash
74990         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
74991
74992 2006-10-23  Jim Meyering  <jim@meyering.net>
74993
74994         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
74995         in place of snprintf.
74996
74997         * modules/inttostr (Files): Add lib/uinttostr.c.
74998         * lib/uinttostr.c (inttostr): New file/function.
74999         * lib/inttostr.h (uinttostr): Declare.
75000         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
75001         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
75002         Add uinttostr.
75003         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
75004
75005 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
75006
75007         * lib/canonicalize.c (ELOOP): Define if not already defined.
75008         Problem reported by Bruno Haible in
75009         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
75010
75011 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
75012
75013         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
75014         Problem reported by Perry Smith and Ville Laurikari.
75015
75016         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
75017         uses.
75018
75019 2006-10-19  Bruno Haible  <bruno@clisp.org>
75020
75021         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
75022         for mingw.
75023
75024 2006-10-19  Bruno Haible  <bruno@clisp.org>
75025
75026         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
75027         Needed for mingw.
75028
75029 2006-10-19  Bruno Haible  <bruno@clisp.org>
75030
75031         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
75032
75033 2006-10-19  Bruno Haible  <bruno@clisp.org>
75034
75035         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
75036         it.
75037
75038 2006-10-19  Bruno Haible  <bruno@clisp.org>
75039
75040         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
75041         invocation.
75042
75043 2006-10-19  Bruno Haible  <bruno@clisp.org>
75044
75045         * gnulib-tool (func_create_testdir): Don't include ftruncate and
75046         mountlist by default.
75047
75048 2006-10-16  Bruno Haible  <bruno@clisp.org>
75049
75050         * lib/c-strstr.c: Include c-strstr.h.
75051
75052 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
75053
75054         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
75055         in a slash.
75056
75057 2006-10-18  Bruno Haible  <bruno@clisp.org>
75058
75059         * lib/lock.h [C++]: Wrap definitions in extern "C".
75060
75061 2006-10-18  Bruno Haible  <bruno@clisp.org>
75062
75063         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
75064         gl_LIBOBJS list.
75065
75066 2006-10-18  Bruno Haible  <bruno@clisp.org>
75067
75068         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
75069
75070 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
75071
75072         * lib/xstrtol.h: Include gettext.h.
75073         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
75074         Problem reported by Eric Blake.
75075         * modules/xstrtol (Depends-on): Add gettext-h.
75076
75077 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
75078
75079         * lib/strftime.c (advance): New macro.
75080         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
75081         incomplete type, so you can't add 0 to it.  Problem and patch
75082         reported by Eelco Dolstra for dietlibc.
75083
75084 2006-10-18  Jim Meyering  <jim@meyering.net>
75085
75086         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
75087         type for a local, and rename it: s/up/user_proc/.
75088
75089 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
75090
75091         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
75092         READ_UTMP_USER_PROCESS.
75093         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
75094
75095 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
75096
75097         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
75098         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
75099
75100 2006-10-17  Eric Blake  <ebb9@byu.net>
75101
75102         * lib/sigprocmask.c (sigprocmask): Fix typo.
75103
75104         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
75105
75106         * modules/clean-temp (Makefile.am): Don't add to make output...
75107         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
75108         config.h.
75109
75110 2006-10-17  Bruno Haible  <bruno@clisp.org>
75111
75112         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
75113         differently if DEFAULT_TEXT_DOMAIN is set.
75114
75115 2006-10-16  Bruno Haible  <bruno@clisp.org>
75116
75117         * lib/clean-temp.c: Include fwriteerror.h.
75118
75119 2006-10-16  Bruno Haible  <bruno@clisp.org>
75120
75121         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
75122
75123 2006-10-16  Bruno Haible  <bruno@clisp.org>
75124
75125         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
75126         * lib/sigprocmask.h: Include <sys/types.h>.
75127         (sigset_t): Use the system's definition if present.
75128
75129 2006-10-17  Eric Blake  <ebb9@byu.net>
75130
75131         * lib/xvasprintf.c (includes): Assume config.h.
75132         * lib/xasprintf.c (includes): Likewise.
75133
75134 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
75135
75136         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
75137         at least as wide as intmax_t.
75138
75139 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
75140
75141         (Imported from Automake.)
75142         * build-aux/gnupload: Update to version 1.1 of directive file.
75143
75144 2006-10-16  Eric Blake  <ebb9@byu.net>
75145
75146         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
75147         match Automake 1.10a.
75148
75149 2006-10-14  Bruno Haible  <bruno@clisp.org>
75150
75151         * modules/sigprocmask: New file.
75152         * lib/sigprocmask.h: New file.
75153         * lib/sigprocmask.c: New file.
75154         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
75155         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
75156         request sigprocmask.o.
75157         (gl_PREREQ_SIGPROCMASK): New macro.
75158         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
75159         (Depends-on): Add sigprocmask.
75160         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
75161         gt_SIGNALBLOCKING. Test for 'raise' only once.
75162         * lib/fatal-signal.c: Include sigprocmask.h.
75163         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
75164         unblock_fatal_signals): Define always.
75165         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
75166         sigprocmask.
75167
75168 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
75169
75170         Sync from Automake.
75171         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
75172         which incorrectly sets the mode of an existing destination
75173         directory.  In some cases the unpatched install-sh could do the
75174         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
75175         system.  We hope this is rare in practice, but it's clearly worth
75176         fixing.  Problem reported by Alex Unleashed in
75177         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
75178         Also, don't bother to check for -m bugs unless we're using -m;
75179         suggested by Stepan Kasal.
75180
75181 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75182
75183         Sync from Automake.
75184         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
75185         `-c' flag, so they appear at the same position as in %FASTDEP%
75186         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
75187         which ignores unknown options only after the first non-option.
75188         Bug report against M4 by Nelson H. F. Beebe.
75189
75190 2006-10-13  Jim Meyering  <jim@meyering.net>
75191
75192         Fix a bug in yesterday's change.
75193         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
75194         p->fts_statp->st_dev would be used uninitialized.
75195         Ensures that we always call fts_stat on the very first entry.
75196         Miklos Szeredi reported that find -xdev stopped working.
75197
75198 2006-10-12  Bruno Haible  <bruno@clisp.org>
75199
75200         * gnulib-tool (func_get_automake_snippet): Append an automatically
75201         computed EXTRA_DIST augmentation.
75202         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
75203         * modules/alloca-opt (Makefile.am): Likewise.
75204         * modules/allocsa (Makefile.am): Likewise.
75205         * modules/arcfour (Makefile.am): Likewise.
75206         * modules/arctwo (Makefile.am): Likewise.
75207         * modules/argmatch (Makefile.am): Likewise.
75208         * modules/argz (Makefile.am): Likewise.
75209         * modules/atexit (Makefile.am): Likewise.
75210         * modules/backupfile (Makefile.am): Likewise.
75211         * modules/byteswap (Makefile.am): Likewise.
75212         * modules/c-strtod (Makefile.am): Likewise.
75213         * modules/c-strtold (Makefile.am): Likewise.
75214         * modules/calloc (Makefile.am): Likewise.
75215         * modules/canon-host (Makefile.am): Likewise.
75216         * modules/canonicalize (Makefile.am): Likewise.
75217         * modules/chdir-long (Makefile.am): Likewise.
75218         * modules/chdir-safer (Makefile.am): Likewise.
75219         * modules/check-version (Makefile.am): Likewise.
75220         * modules/chown (Makefile.am): Likewise.
75221         * modules/cloexec (Makefile.am): Likewise.
75222         * modules/close-stream (Makefile.am): Likewise.
75223         * modules/closeout (Makefile.am): Likewise.
75224         * modules/crc (Makefile.am): Likewise.
75225         * modules/csharpexec (Makefile.am): Likewise.
75226         * modules/cycle-check (Makefile.am): Likewise.
75227         * modules/des (Makefile.am): Likewise.
75228         * modules/dev-ino (Makefile.am): Likewise.
75229         * modules/dirfd (Makefile.am): Likewise.
75230         * modules/dirname (Makefile.am): Likewise.
75231         * modules/dup2 (Makefile.am): Likewise.
75232         * modules/eealloc (Makefile.am): Likewise.
75233         * modules/error (Makefile.am): Likewise.
75234         * modules/euidaccess (Makefile.am): Likewise.
75235         * modules/exclude (Makefile.am): Likewise.
75236         * modules/exitfail (Makefile.am): Likewise.
75237         * modules/fcntl-safer (Makefile.am): Likewise.
75238         * modules/fcntl (Makefile.am): Likewise.
75239         * modules/file-type (Makefile.am): Likewise.
75240         * modules/fileblocks (Makefile.am): Likewise.
75241         * modules/filemode (Makefile.am): Likewise.
75242         * modules/filenamecat (Makefile.am): Likewise.
75243         * modules/fnmatch (Makefile.am): Likewise.
75244         * modules/fopen-safer (Makefile.am): Likewise.
75245         * modules/fpending (Makefile.am): Likewise.
75246         * modules/fprintftime (Makefile.am): Likewise.
75247         * modules/free (Makefile.am): Likewise.
75248         * modules/fsusage (Makefile.am): Likewise.
75249         * modules/ftruncate (Makefile.am): Likewise.
75250         * modules/fts (Makefile.am): Likewise.
75251         * modules/gc-arcfour (Makefile.am): Likewise.
75252         * modules/gc-des (Makefile.am): Likewise.
75253         * modules/gc-hmac-md5 (Makefile.am): Likewise.
75254         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
75255         * modules/gc-md4 (Makefile.am): Likewise.
75256         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
75257         * modules/gc-sha1 (Makefile.am): Likewise.
75258         * modules/gc (Makefile.am): Likewise.
75259         * modules/getaddrinfo (Makefile.am): Likewise.
75260         * modules/getcwd (Makefile.am): Likewise.
75261         * modules/getdelim (Makefile.am): Likewise.
75262         * modules/getdomainname (Makefile.am): Likewise.
75263         * modules/getgroups (Makefile.am): Likewise.
75264         * modules/gethostname (Makefile.am): Likewise.
75265         * modules/gethrxtime (Makefile.am): Likewise.
75266         * modules/getline (Makefile.am): Likewise.
75267         * modules/getloadavg (Makefile.am): Likewise.
75268         * modules/getlogin_r (Makefile.am): Likewise.
75269         * modules/getndelim2 (Makefile.am): Likewise.
75270         * modules/getopt (Makefile.am): Likewise.
75271         * modules/getpagesize (Makefile.am): Likewise.
75272         * modules/getpass-gnu (Makefile.am): Likewise.
75273         * modules/getpass (Makefile.am): Likewise.
75274         * modules/getsubopt (Makefile.am): Likewise.
75275         * modules/gettime (Makefile.am): Likewise.
75276         * modules/gettimeofday (Makefile.am): Likewise.
75277         * modules/getugroups (Makefile.am): Likewise.
75278         * modules/getusershell (Makefile.am): Likewise.
75279         * modules/glob (Makefile.am): Likewise.
75280         * modules/group-member (Makefile.am): Likewise.
75281         * modules/hard-locale (Makefile.am): Likewise.
75282         * modules/hash (Makefile.am): Likewise.
75283         * modules/hmac-md5 (Makefile.am): Likewise.
75284         * modules/hmac-sha1 (Makefile.am): Likewise.
75285         * modules/human (Makefile.am): Likewise.
75286         * modules/idcache (Makefile.am): Likewise.
75287         * modules/imaxabs (Makefile.am): Likewise.
75288         * modules/imaxdiv (Makefile.am): Likewise.
75289         * modules/inet_ntop (Makefile.am): Likewise.
75290         * modules/inet_pton (Makefile.am): Likewise.
75291         * modules/intprops (Makefile.am): Likewise.
75292         * modules/inttostr (Makefile.am): Likewise.
75293         * modules/inttypes (Makefile.am): Likewise.
75294         * modules/isapipe (Makefile.am): Likewise.
75295         * modules/javaversion (Makefile.am): Likewise.
75296         * modules/lchmod (Makefile.am): Likewise.
75297         * modules/lchown (Makefile.am): Likewise.
75298         * modules/localcharset (Makefile.am): Likewise.
75299         * modules/long-options (Makefile.am): Likewise.
75300         * modules/lstat (Makefile.am): Likewise.
75301         * modules/malloc (Makefile.am): Likewise.
75302         * modules/mathl (Makefile.am): Likewise.
75303         * modules/mbchar (Makefile.am): Likewise.
75304         * modules/md2 (Makefile.am): Likewise.
75305         * modules/md4 (Makefile.am): Likewise.
75306         * modules/md5 (Makefile.am): Likewise.
75307         * modules/memcasecmp (Makefile.am): Likewise.
75308         * modules/memchr (Makefile.am): Likewise.
75309         * modules/memcmp (Makefile.am): Likewise.
75310         * modules/memcoll (Makefile.am): Likewise.
75311         * modules/memcpy (Makefile.am): Likewise.
75312         * modules/memmem (Makefile.am): Likewise.
75313         * modules/memmove (Makefile.am): Likewise.
75314         * modules/mempcpy (Makefile.am): Likewise.
75315         * modules/memrchr (Makefile.am): Likewise.
75316         * modules/memset (Makefile.am): Likewise.
75317         * modules/memxor (Makefile.am): Likewise.
75318         * modules/mkancesdirs (Makefile.am): Likewise.
75319         * modules/mkdir-p (Makefile.am): Likewise.
75320         * modules/mkdir (Makefile.am): Likewise.
75321         * modules/mkdtemp (Makefile.am): Likewise.
75322         * modules/mkstemp (Makefile.am): Likewise.
75323         * modules/mktime (Makefile.am): Likewise.
75324         * modules/modechange (Makefile.am): Likewise.
75325         * modules/mountlist (Makefile.am): Likewise.
75326         * modules/nanosleep (Makefile.am): Likewise.
75327         * modules/obstack (Makefile.am): Likewise.
75328         * modules/openat (Makefile.am): Likewise.
75329         * modules/pagealign_alloc (Makefile.am): Likewise.
75330         * modules/pathmax (Makefile.am): Likewise.
75331         * modules/physmem (Makefile.am): Likewise.
75332         * modules/poll (Makefile.am): Likewise.
75333         * modules/posixtm (Makefile.am): Likewise.
75334         * modules/posixver (Makefile.am): Likewise.
75335         * modules/putenv (Makefile.am): Likewise.
75336         * modules/quote (Makefile.am): Likewise.
75337         * modules/quotearg (Makefile.am): Likewise.
75338         * modules/raise (Makefile.am): Likewise.
75339         * modules/read-file (Makefile.am): Likewise.
75340         * modules/readline (Makefile.am): Likewise.
75341         * modules/readlink (Makefile.am): Likewise.
75342         * modules/readtokens (Makefile.am): Likewise.
75343         * modules/readutmp (Makefile.am): Likewise.
75344         * modules/realloc (Makefile.am): Likewise.
75345         * modules/regex (Makefile.am): Likewise.
75346         * modules/rename-dest-slash (Makefile.am): Likewise.
75347         * modules/rename (Makefile.am): Likewise.
75348         * modules/rijndael (Makefile.am): Likewise.
75349         * modules/rmdir (Makefile.am): Likewise.
75350         * modules/rpmatch (Makefile.am): Likewise.
75351         * modules/safe-read (Makefile.am): Likewise.
75352         * modules/safe-write (Makefile.am): Likewise.
75353         * modules/same-inode (Makefile.am): Likewise.
75354         * modules/same (Makefile.am): Likewise.
75355         * modules/save-cwd (Makefile.am): Likewise.
75356         * modules/savedir (Makefile.am): Likewise.
75357         * modules/setenv (Makefile.am): Likewise.
75358         * modules/settime (Makefile.am): Likewise.
75359         * modules/sha1 (Makefile.am): Likewise.
75360         * modules/sig2str (Makefile.am): Likewise.
75361         * modules/snprintf (Makefile.am): Likewise.
75362         * modules/stat-macros (Makefile.am): Likewise.
75363         * modules/stat-time (Makefile.am): Likewise.
75364         * modules/stdbool (Makefile.am): Likewise.
75365         * modules/stdint (Makefile.am): Likewise.
75366         * modules/stdlib-safer (Makefile.am): Likewise.
75367         * modules/stpcpy (Makefile.am): Likewise.
75368         * modules/stpncpy (Makefile.am): Likewise.
75369         * modules/strcase (Makefile.am): Likewise.
75370         * modules/strcasestr (Makefile.am): Likewise.
75371         * modules/strchrnul (Makefile.am): Likewise.
75372         * modules/strcspn (Makefile.am): Likewise.
75373         * modules/strdup (Makefile.am): Likewise.
75374         * modules/strerror (Makefile.am): Likewise.
75375         * modules/strftime (Makefile.am): Likewise.
75376         * modules/strndup (Makefile.am): Likewise.
75377         * modules/strnlen (Makefile.am): Likewise.
75378         * modules/strpbrk (Makefile.am): Likewise.
75379         * modules/strsep (Makefile.am): Likewise.
75380         * modules/strstr (Makefile.am): Likewise.
75381         * modules/strtod (Makefile.am): Likewise.
75382         * modules/strtoimax (Makefile.am): Likewise.
75383         * modules/strtok_r (Makefile.am): Likewise.
75384         * modules/strtol (Makefile.am): Likewise.
75385         * modules/strtoll (Makefile.am): Likewise.
75386         * modules/strtoul (Makefile.am): Likewise.
75387         * modules/strtoull (Makefile.am): Likewise.
75388         * modules/strtoumax (Makefile.am): Likewise.
75389         * modules/strverscmp (Makefile.am): Likewise.
75390         * modules/sys_socket (Makefile.am): Likewise.
75391         * modules/sys_stat (Makefile.am): Likewise.
75392         * modules/sysexits (Makefile.am): Likewise.
75393         * modules/time_r (Makefile.am): Likewise.
75394         * modules/timegm (Makefile.am): Likewise.
75395         * modules/timespec (Makefile.am): Likewise.
75396         * modules/tmpfile-safer (Makefile.am): Likewise.
75397         * modules/trim (Makefile.am): Likewise.
75398         * modules/unistd-safer (Makefile.am): Likewise.
75399         * modules/unlinkdir (Makefile.am): Likewise.
75400         * modules/unlocked-io (Makefile.am): Likewise.
75401         * modules/userspec (Makefile.am): Likewise.
75402         * modules/utime (Makefile.am): Likewise.
75403         * modules/utimecmp (Makefile.am): Likewise.
75404         * modules/utimens (Makefile.am): Likewise.
75405         * modules/vasnprintf (Makefile.am): Likewise.
75406         * modules/vasprintf (Makefile.am): Likewise.
75407         * modules/vsnprintf (Makefile.am): Likewise.
75408         * modules/xalloc (Makefile.am): Likewise.
75409         * modules/xgetcwd (Makefile.am): Likewise.
75410         * modules/xnanosleep (Makefile.am): Likewise.
75411         * modules/xreadlink (Makefile.am): Likewise.
75412         * modules/xstrtod (Makefile.am): Likewise.
75413         * modules/xstrtol (Makefile.am): Likewise.
75414         * modules/xstrtold (Makefile.am): Likewise.
75415         * modules/yesno (Makefile.am): Likewise.
75416         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
75417
75418 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
75419
75420         * modules/error (Makefile.am): Distribute files through
75421         EXTRA_DIST, not lib_SOURCES.
75422
75423 2006-10-12  Eric Blake  <ebb9@byu.net>
75424
75425         * modules/error (Makefile.am): Distribute files in /lib.
75426         * modules/obstack (Makefile.am): Likewise.
75427
75428 2006-10-12  Bruno Haible  <bruno@clisp.org>
75429
75430         * modules/acl (Makefile.am): Distribute all files in lib/ through
75431         EXTRA_DIST.
75432         * modules/arcfour (Makefile.am): Likewise.
75433         * modules/arctwo (Makefile.am): Likewise.
75434         * modules/argmatch (Makefile.am): Likewise.
75435         * modules/argz (Makefile.am): Likewise.
75436         * modules/atexit (Makefile.am): Likewise.
75437         * modules/backupfile (Makefile.am): Likewise.
75438         * modules/c-strtod (Makefile.am): Likewise.
75439         * modules/c-strtold (Makefile.am): Likewise.
75440         * modules/calloc (Makefile.am): Likewise.
75441         * modules/canon-host (Makefile.am): Likewise.
75442         * modules/canonicalize (Makefile.am): Likewise.
75443         * modules/chdir-long (Makefile.am): Likewise.
75444         * modules/chdir-safer (Makefile.am): Likewise.
75445         * modules/check-version (Makefile.am): Likewise.
75446         * modules/chown (Makefile.am): Likewise.
75447         * modules/cloexec (Makefile.am): Likewise.
75448         * modules/close-stream (Makefile.am): Likewise.
75449         * modules/closeout (Makefile.am): Likewise.
75450         * modules/crc (Makefile.am): Likewise.
75451         * modules/cycle-check (Makefile.am): Likewise.
75452         * modules/des (Makefile.am): Likewise.
75453         * modules/dirfd (Makefile.am): Likewise.
75454         * modules/dirname (Makefile.am): Likewise.
75455         * modules/dup2 (Makefile.am): Likewise.
75456         * modules/euidaccess (Makefile.am): Likewise.
75457         * modules/exclude (Makefile.am): Likewise.
75458         * modules/exitfail (Makefile.am): Likewise.
75459         * modules/fcntl-safer (Makefile.am): Likewise.
75460         * modules/file-type (Makefile.am): Likewise.
75461         * modules/fileblocks (Makefile.am): Likewise.
75462         * modules/filemode (Makefile.am): Likewise.
75463         * modules/filenamecat (Makefile.am): Likewise.
75464         * modules/fnmatch (Makefile.am): Likewise.
75465         * modules/fopen-safer (Makefile.am): Likewise.
75466         * modules/fpending (Makefile.am): Likewise.
75467         * modules/fprintftime (Makefile.am): Likewise.
75468         * modules/free (Makefile.am): Likewise.
75469         * modules/fsusage (Makefile.am): Likewise.
75470         * modules/ftruncate (Makefile.am): Likewise.
75471         * modules/fts (Makefile.am): Likewise.
75472         * modules/gc (Makefile.am): Likewise.
75473         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
75474         * modules/getaddrinfo (Makefile.am): Likewise.
75475         * modules/getcwd (Makefile.am): Likewise.
75476         * modules/getdelim (Makefile.am): Likewise.
75477         * modules/getdomainname (Makefile.am): Likewise.
75478         * modules/getgroups (Makefile.am): Likewise.
75479         * modules/gethostname (Makefile.am): Likewise.
75480         * modules/gethrxtime (Makefile.am): Likewise.
75481         * modules/getline (Makefile.am): Likewise.
75482         * modules/getloadavg (Makefile.am): Likewise.
75483         * modules/getlogin_r (Makefile.am): Likewise.
75484         * modules/getopt (Makefile.am): Likewise.
75485         * modules/getpass (Makefile.am): Likewise.
75486         * modules/getpass-gnu (Makefile.am): Likewise.
75487         * modules/getsubopt (Makefile.am): Likewise.
75488         * modules/gettime (Makefile.am): Likewise.
75489         * modules/gettimeofday (Makefile.am): Likewise.
75490         * modules/getugroups (Makefile.am): Likewise.
75491         * modules/getusershell (Makefile.am): Likewise.
75492         * modules/glob (Makefile.am): Likewise.
75493         * modules/group-member (Makefile.am): Likewise.
75494         * modules/hard-locale (Makefile.am): Likewise.
75495         * modules/hash (Makefile.am): Likewise.
75496         * modules/hmac-md5 (Makefile.am): Likewise.
75497         * modules/hmac-sha1 (Makefile.am): Likewise.
75498         * modules/human (Makefile.am): Likewise.
75499         * modules/idcache (Makefile.am): Likewise.
75500         * modules/imaxabs (Makefile.am): Likewise.
75501         * modules/imaxdiv (Makefile.am): Likewise.
75502         * modules/inet_ntop (Makefile.am): Likewise.
75503         * modules/inet_pton (Makefile.am): Likewise.
75504         * modules/inttostr (Makefile.am): Likewise.
75505         * modules/isapipe (Makefile.am): Likewise.
75506         * modules/lchown (Makefile.am): Likewise.
75507         * modules/long-options (Makefile.am): Likewise.
75508         * modules/lstat (Makefile.am): Likewise.
75509         * modules/malloc (Makefile.am): Likewise.
75510         * modules/mathl (Makefile.am): Likewise.
75511         * modules/mbchar (Makefile.am): Likewise.
75512         * modules/md2 (Makefile.am): Likewise.
75513         * modules/md4 (Makefile.am): Likewise.
75514         * modules/md5 (Makefile.am): Likewise.
75515         * modules/memcasecmp (Makefile.am): Likewise.
75516         * modules/memchr (Makefile.am): Likewise.
75517         * modules/memcmp (Makefile.am): Likewise.
75518         * modules/memcoll (Makefile.am): Likewise.
75519         * modules/memcpy (Makefile.am): Likewise.
75520         * modules/memmem (Makefile.am): Likewise.
75521         * modules/memmove (Makefile.am): Likewise.
75522         * modules/mempcpy (Makefile.am): Likewise.
75523         * modules/memrchr (Makefile.am): Likewise.
75524         * modules/memset (Makefile.am): Likewise.
75525         * modules/memxor (Makefile.am): Likewise.
75526         * modules/mkancesdirs (Makefile.am): Likewise.
75527         * modules/mkdir (Makefile.am): Likewise.
75528         * modules/mkdir-p (Makefile.am): Likewise.
75529         * modules/mkdtemp (Makefile.am): Likewise.
75530         * modules/mkstemp (Makefile.am): Likewise.
75531         * modules/mktime (Makefile.am): Likewise.
75532         * modules/modechange (Makefile.am): Likewise.
75533         * modules/mountlist (Makefile.am): Likewise.
75534         * modules/nanosleep (Makefile.am): Likewise.
75535         * modules/openat (Makefile.am): Likewise.
75536         * modules/pagealign_alloc (Makefile.am): Likewise.
75537         * modules/physmem (Makefile.am): Likewise.
75538         * modules/poll (Makefile.am): Likewise.
75539         * modules/posixtm (Makefile.am): Likewise.
75540         * modules/posixver (Makefile.am): Likewise.
75541         * modules/putenv (Makefile.am): Likewise.
75542         * modules/quote (Makefile.am): Likewise.
75543         * modules/quotearg (Makefile.am): Likewise.
75544         * modules/raise (Makefile.am): Likewise.
75545         * modules/read-file (Makefile.am): Likewise.
75546         * modules/readline (Makefile.am): Likewise.
75547         * modules/readlink (Makefile.am): Likewise.
75548         * modules/readtokens (Makefile.am): Likewise.
75549         * modules/readutmp (Makefile.am): Likewise.
75550         * modules/realloc (Makefile.am): Likewise.
75551         * modules/regex (Makefile.am): Likewise.
75552         * modules/rename (Makefile.am): Likewise.
75553         * modules/rename-dest-slash (Makefile.am): Likewise.
75554         * modules/rijndael (Makefile.am): Likewise.
75555         * modules/rmdir (Makefile.am): Likewise.
75556         * modules/rpmatch (Makefile.am): Likewise.
75557         * modules/safe-read (Makefile.am): Likewise.
75558         * modules/safe-write (Makefile.am): Likewise.
75559         * modules/same (Makefile.am): Likewise.
75560         * modules/save-cwd (Makefile.am): Likewise.
75561         * modules/savedir (Makefile.am): Likewise.
75562         * modules/setenv (Makefile.am): Likewise.
75563         * modules/settime (Makefile.am): Likewise.
75564         * modules/sha1 (Makefile.am): Likewise.
75565         * modules/sig2str (Makefile.am): Likewise.
75566         * modules/snprintf (Makefile.am): Likewise.
75567         * modules/stdlib-safer (Makefile.am): Likewise.
75568         * modules/stpcpy (Makefile.am): Likewise.
75569         * modules/stpncpy (Makefile.am): Likewise.
75570         * modules/strcase (Makefile.am): Likewise.
75571         * modules/strcasestr (Makefile.am): Likewise.
75572         * modules/strchrnul (Makefile.am): Likewise.
75573         * modules/strcspn (Makefile.am): Likewise.
75574         * modules/strdup (Makefile.am): Likewise.
75575         * modules/strerror (Makefile.am): Likewise.
75576         * modules/strftime (Makefile.am): Likewise.
75577         * modules/strndup (Makefile.am): Likewise.
75578         * modules/strnlen (Makefile.am): Likewise.
75579         * modules/strpbrk (Makefile.am): Likewise.
75580         * modules/strsep (Makefile.am): Likewise.
75581         * modules/strstr (Makefile.am): Likewise.
75582         * modules/strtod (Makefile.am): Likewise.
75583         * modules/strtoimax (Makefile.am): Likewise.
75584         * modules/strtok_r (Makefile.am): Likewise.
75585         * modules/strtol (Makefile.am): Likewise.
75586         * modules/strtoll (Makefile.am): Likewise.
75587         * modules/strtoul (Makefile.am): Likewise.
75588         * modules/strtoull (Makefile.am): Likewise.
75589         * modules/strtoumax (Makefile.am): Likewise.
75590         * modules/strverscmp (Makefile.am): Likewise.
75591         * modules/time_r (Makefile.am): Likewise.
75592         * modules/timegm (Makefile.am): Likewise.
75593         * modules/tmpfile-safer (Makefile.am): Likewise.
75594         * modules/unistd-safer (Makefile.am): Likewise.
75595         * modules/unlinkdir (Makefile.am): Likewise.
75596         * modules/userspec (Makefile.am): Likewise.
75597         * modules/utime (Makefile.am): Likewise.
75598         * modules/utimecmp (Makefile.am): Likewise.
75599         * modules/utimens (Makefile.am): Likewise.
75600         * modules/vasnprintf (Makefile.am): Likewise.
75601         * modules/vasprintf (Makefile.am): Likewise.
75602         * modules/vsnprintf (Makefile.am): Likewise.
75603         * modules/xalloc (Makefile.am): Likewise.
75604         * modules/xgetcwd (Makefile.am): Likewise.
75605         * modules/xnanosleep (Makefile.am): Likewise.
75606         * modules/xreadlink (Makefile.am): Likewise.
75607         * modules/xstrtod (Makefile.am): Likewise.
75608         * modules/xstrtol (Makefile.am): Likewise.
75609         * modules/xstrtold (Makefile.am): Likewise.
75610         * modules/yesno (Makefile.am): Likewise.
75611
75612 2006-10-12  Jim Meyering  <jim@meyering.net>
75613
75614         * m4/getloadavg.m4: Revert the change below.
75615
75616         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
75617         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
75618         fail with a symlink, which is what coreutils' ./bootstrap now
75619         creates by default.
75620
75621 2006-10-12  Bruno Haible  <bruno@clisp.org>
75622
75623         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
75624         mingw.
75625         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
75626         MSVC and mingw explicitly.
75627
75628 2006-10-11  Simon Josefsson  <jas@extundo.com>
75629             Bruno Haible  <bruno@clisp.org>
75630
75631         Add support for multiple gnulib-tool invocations in the scope of a
75632         single configure.ac file.
75633         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
75634         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
75635         with the same contents as the _LIBADD variable.
75636         (func_emit_initmacro_start, func_emit_initmacro_end,
75637         func_emit_initmacro_done): New functions.
75638         (func_import, func_create_testdir): Invoke them. Allow the identifiers
75639         gl_LIBOBJS and gl_LTLIBOBJS.
75640
75641 2006-10-11  Bruno Haible  <bruno@clisp.org>
75642
75643         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
75644         (func_create_testdir): Don't create po/Makefile.am, don't invoke
75645         autoreconf. Instead, invoke autopoint explicitly but move back the
75646         *.m4 files from gnulib.
75647
75648 2006-10-11  Bruno Haible  <bruno@clisp.org>
75649
75650         * gnulib-tool (func_usage): Make module names after --create-testdir
75651         optional.
75652         (func_create_testdir): If no module was specified, use nearly all
75653         modules.
75654
75655 2006-10-12  Jim Meyering  <jim@meyering.net>
75656
75657         Big performance improvement for fts-based tools that use FTS_NOSTAT.
75658         Avoid spurious inode-mismatch problems on non-POSIX file systems.
75659         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
75660         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
75661         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
75662         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
75663         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
75664         (fts_set_stat_required): New function.
75665         (fts_open): Defer the calls to fts_stat, if possible or requested.
75666         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
75667         into fts_stat itself.
75668         (fts_read): Perform any required (deferred) fts_stat call.
75669         (fts_build): Likewise, for the directory we're about to open and read.
75670         In the readdir loop, carefully decide whether each entry will require
75671         an eventual call to fts_stat, using dirent.d_type info if available.
75672         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
75673         a command line argument into this function.  Update all callers.
75674         Map a return value of FTS_DOT to FTS_D for a command line argument.
75675         * modules/fts (Depends-on): Add d-type.  Alphabetize.
75676         Thanks to Miklos Szeredi for his tenacity and for the initial
75677         bug report about "find" failing on a FUSE-based file system.
75678
75679         * lib/fts.c (fts_open): Use consistent indentation.
75680
75681 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
75682
75683         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
75684         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
75685         reported by Jim Meyering.  All uses of cache variables renamed
75686         to match Autoconf's.
75687         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
75688         the other one.
75689
75690         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
75691         Fix misspelling in diagnostic.
75692
75693 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
75694
75695         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
75696         defined.  Problem reported by Matthew Woehlke.
75697
75698         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
75699         Add support for Tandem NonStop R series.
75700         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
75701         Use new macro.
75702
75703         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
75704         (has_trailing_slash): Omit size arg; all callers changed.
75705         Omit 'inline', since it doesn't help performance and we'd
75706         need to configure it.
75707         Don't count //, ///, etc. as having a trailing slash.
75708         As a side effect, this removes a C99ism reported by Matthew Woehlke.
75709         (rpl_rename_dest_slash): On failure, use rename's errno rather
75710         than (in some cases) an incorrect or junk errno.
75711         Simplify code by removing need to compute length; this does
75712         cause it to make two passes instead of one over the file name,
75713         but it's worth it.
75714
75715         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
75716         change, since Autoconf's version may no longer be appropriate now
75717         that we are using CVS Autoconf's version.  Add support for Tandem.
75718
75719 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
75720             Bruno Haible  <bruno@clisp.org>
75721
75722         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
75723         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
75724         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
75725         gl_AC_TYPE_LONG_LONG.
75726
75727         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
75728         instead of HAVE_LONG_LONG.
75729         * lib/printf-args.c (printf_fetchargs): Likewise.
75730         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
75731         * lib/vasnprintf.c (VASNPRINTF): Likewise.
75732         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
75733         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
75734         gl_AC_TYPE_LONG_LONG.
75735
75736 2006-10-11  Bruno Haible  <bruno@clisp.org>
75737
75738         * m4/longlong.m4: Add comments.
75739         * m4/ulonglong.m4: Likewise.
75740
75741 2006-10-10  Bruno Haible  <bruno@clisp.org>
75742
75743         Make it possible to #define stpcpy, strdup to aliases.
75744         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
75745         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
75746
75747 2006-10-10  Bruno Haible  <bruno@clisp.org>
75748
75749         Make it possible to #define gcd to an alias.
75750         * lib/gcd.c: Include config.h.
75751
75752 2006-10-10  Bruno Haible  <bruno@clisp.org>
75753
75754         Make it possible to #define c_isascii to an alias.
75755         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
75756         defined. Undefine the macros before defining them, to avoid gcc
75757         warnings.
75758         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
75759         define NO_C_CTYPE_MACROS early.
75760
75761 2006-10-10  Bruno Haible  <bruno@clisp.org>
75762
75763         Make it possible to #define set_program_name to an alias.
75764         * lib/progname.c: Don't undefine set_program_name; instead, undefine
75765         ENABLE_RELOCATABLE early.
75766
75767 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
75768
75769         Port to Tandem NSK OSS, which has 64-bit signed int but at most
75770         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
75771         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
75772         More generally, don't assume that 64-bit signed int is available
75773         if unsigned int is, and vice versa.
75774         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
75775         unsigned symbols, not on their signed counterparts.
75776         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
75777         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
75778         (UINT64_C, UINTMAX_C):
75779         Likewise.
75780         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
75781         unsigned counterparts.
75782         (Have_long_long, Unsigned): New macros.
75783         (Int): Renamed from INT.
75784         (strtoimax): Use the new macros.
75785         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
75786         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
75787         * modules/inttypes (inttypes.h): Substitute
75788         HAVE_UNSIGNED_LONG_LONG_INT.
75789         * modules/stdint (stdint.h): Likewise.
75790         (Files): Add m4/ulonglong.m4.
75791
75792 2006-10-10  Bruno Haible  <bruno@clisp.org>
75793
75794         Fix a gcc -Wshadow warning.
75795         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
75796         to 'bucket'.
75797         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
75798         gl_linked_indexof_from_to): Likewise.
75799         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
75800         Likewise.
75801         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
75802         Likewise.
75803         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
75804         Reported by Eric Blake.
75805
75806 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
75807
75808         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
75809         for NetBSD.  Problem reported by Bruno Haible.
75810
75811 2006-10-09  Jim Meyering  <jim@meyering.net>
75812
75813         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
75814         Patch from Bruno Haible.
75815
75816 2006-10-09  Jim Meyering  <jim@meyering.net>
75817
75818         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
75819         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
75820         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
75821
75822 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
75823
75824         Don't include <config.h> twice; this doesn't work in some cases,
75825         e.g., when config.h has "#define intmax_t long long int" and
75826         we include <config.h>, <inttypes.h>, <config.h> in that order.
75827         Problem reported by Matthew Woehlke in:
75828         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
75829         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
75830         * lib/fts-cycle.c: Don't include config.h.
75831         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
75832         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
75833         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
75834         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
75835         inttypes.h.
75836         * lib/xstrtoumax.c: Likewise.
75837         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
75838         __strtol and the like, so that this module is more like its siblings.
75839         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
75840         Remove; no longer needed now that we assume gnulib inttypes.h.
75841
75842 2006-10-08  Bruno Haible  <bruno@clisp.org>
75843
75844         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
75845         option.
75846
75847 2006-10-07  Jim Meyering  <jim@meyering.net>
75848
75849         * modules/inttypes (inttypes.h): Revert what seems to have been
75850         an inadvertent part of today's change: use "|", not "/" in the
75851         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
75852
75853 2006-10-07  Bruno Haible  <bruno@clisp.org>
75854
75855         * modules/sublist: New file.
75856
75857 2006-10-07  Bruno Haible  <bruno@clisp.org>
75858
75859         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
75860         * modules/argz (argz.h): Likewise.
75861         * modules/arpa_inet (arpa/inet.h): Likewise.
75862         * modules/byteswap (byteswap.h): Likewise.
75863         * modules/configmake (configmake.h): Likewise.
75864         * modules/fcntl (fcntl.h): Likewise.
75865         * modules/fnmatch (fnmatch.h): Likewise.
75866         * modules/getopt (getopt.h): Likewise.
75867         * modules/glob (glob.h): Likewise.
75868         * modules/inttypes (inttypes.h): Likewise.
75869         * modules/netinet_in (netinet/in.h): Likewise.
75870         * modules/poll (poll.h): Likewise.
75871         * modules/stdbool (stdbool.h): Likewise.
75872         * modules/stdint (stdint.h): Likewise.
75873         * modules/sys_select (sys/select.h): Likewise.
75874         * modules/sys_socket (sys/socket.h): Likewise.
75875         * modules/sys_stat (sys/stat.h): Likewise.
75876         * modules/sysexits (sysexits.h): Likewise.
75877         * modules/unistd (unistd.h): Likewise.
75878         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75879         Add a "DO NOT EDIT" comment to the generated file.
75880         (func_import): Likewise for gnulib-comp.m4.
75881
75882 2006-10-07  Bruno Haible  <bruno@clisp.org>
75883
75884         * lib/gl_sublist.h: New file.
75885         * lib/gl_sublist.c: New file.
75886
75887 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
75888
75889         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
75890         name (relative to the original working directory) and the file
75891         name component (relative to the temporary working directory).  All
75892         callers changed.
75893         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
75894         * lib/mkdir-p.c (make_dir_parents): Likewise.
75895         * lib/mkdir-p.h (make_dir_parents): Likewise.
75896
75897 2006-10-06  Eric Blake  <ebb9@byu.net>
75898
75899         Define several macros for use by the clean-temp module.
75900         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
75901         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
75902         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
75903
75904         * lib/clean-temp.h (close_stream_temp): New declaration.
75905         * lib/clean-temp.c (includes): Pull in headers according to what
75906         other modules are in use.
75907         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
75908
75909 2006-10-06  Bruno Haible  <bruno@clisp.org>
75910
75911         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
75912         instead of fopen, fwriteerror.
75913
75914 2006-10-06  Bruno Haible  <bruno@clisp.org>
75915
75916         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
75917         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
75918         int.
75919         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
75920         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
75921         Return an error indicator.
75922         Suggested by Eric Blake.
75923
75924 2006-10-06  Bruno Haible  <bruno@clisp.org>
75925
75926         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
75927         Reported by Eric Blake.
75928
75929 2006-10-06  Bruno Haible  <bruno@clisp.org>
75930
75931         * modules/closeout (Description): Mention stderr too.
75932
75933 2006-10-06  Bruno Haible  <bruno@clisp.org>
75934         and Paul Eggert  <eggert@cs.ucla.edu>
75935
75936         * lib/closeout.c (close_stdout): Also close stderr.
75937         * lib/closeout.h: Update comment.
75938
75939 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
75940
75941         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
75942         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
75943         * lib/dirchownmod.c: Include lchown.h.
75944         * lib/lchown.c: Don't include files that lchown.h now includes.
75945         Don't declare chown, since lchown.h now does that.
75946         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
75947         (lchown): Define to rpl_chown if lchown is declared but
75948         does not exist.  Declare using a prototype if lchown is not
75949         declared.  Add a copyright notice.
75950         * lib/mkstemp.h: Include <unistd.h>.
75951         * lib/openat.c: Include lchown.h.
75952
75953         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
75954         we now test for that separately.
75955         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
75956         rather than O_NOFOLLOW, when testing whether it's possible to
75957         avoid a race condition reliably.
75958         * lib/savewd.c (savewd_chdir): Likewise.
75959
75960         Remove macros that are no longer needed now that stdint.h is
75961         reliable.
75962         * lib/fsusage.c (UINTMAX_MAX): Remove.
75963         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
75964         * lib/utimecmp.c (SIZE_MAX): Remove.
75965
75966         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
75967
75968         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
75969         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
75970         O_NOATIME works.
75971
75972 2006-10-05  Bruno Haible  <bruno@clisp.org>
75973
75974         * lib/gl_list.h (gl_sortedlist_search_from_to,
75975         gl_sortedlist_indexof_from_to): New declarations.
75976         (gl_list_implementation): New fields sortedlist_search_from_to,
75977         sortedlist_indexof_from_to.
75978         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
75979         inline functions.
75980         * lib/gl_list.c (gl_sortedlist_search_from_to,
75981         gl_sortedlist_indexof_from_to): New functions.
75982         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
75983         function.
75984         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
75985         (gl_array_sortedlist_search_from_to): New function.
75986         (gl_array_list_implementation): Update.
75987         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
75988         function.
75989         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
75990         (gl_carray_sortedlist_search_from_to): New function.
75991         (gl_carray_list_implementation): Update.
75992         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
75993         gl_linked_sortedlist_indexof_from_to): New functions.
75994         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
75995         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
75996         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
75997         gl_tree_sortedlist_indexof_from_to): New functions.
75998         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
75999         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
76000         Update.
76001         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
76002         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
76003         Update.
76004
76005 2006-10-05  Bruno Haible  <bruno@clisp.org>
76006
76007         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
76008         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
76009         (struct gl_list_implementation): Add fields search_from_to,
76010         indexof_from_to. Remove fields search, indexof.
76011         (gl_list_search): Use the search_from_to method.
76012         (gl_list_search_from, gl_list_search_from_to): New functions.
76013         (gl_list_indexof): Use the indexof_from_to method.
76014         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
76015         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
76016         (gl_list_search_from, gl_list_search_from_to): New functions.
76017         (gl_list_indexof): Use the indexof_from_to method.
76018         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
76019         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
76020         gl_array_indexof. Add start_index, end_index arguments.
76021         (gl_array_search_from_to): Renamed from gl_array_search. Add
76022         start_index, end_index arguments.
76023         (gl_array_remove, gl_array_list_implementation): Update.
76024         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
76025         gl_carray_indexof. Add start_index, end_index arguments.
76026         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
76027         start_index, end_index arguments.
76028         (gl_carray_remove, gl_carray_list_implementation): Update.
76029         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
76030         gl_linked_search. Add start_index, end_index arguments.
76031         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
76032         start_index, end_index arguments.
76033         (gl_linked_remove): Update.
76034         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
76035         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
76036         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
76037         field to 'size_t'.
76038         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
76039         gl_tree_search. Add start_index, end_index arguments.
76040         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
76041         start_index, end_index arguments.
76042         (gl_tree_remove): Update.
76043         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
76044         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
76045         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
76046         function.
76047         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
76048         gl_tree_search. Add start_index, end_index arguments.
76049         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
76050         start_index, end_index arguments.
76051         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
76052         Update.
76053         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
76054
76055 2006-10-05  Bruno Haible  <bruno@clisp.org>
76056
76057         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
76058
76059         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
76060         fwriteerror_temp): New declarations.
76061         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
76062         (descriptors): New variable.
76063         (cleanup): First, close the descriptors.
76064         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
76065         fclose_temp, fwriteerror_temp): New functions.
76066
76067 2006-10-04  Jim Meyering  <jim@meyering.net>
76068
76069         * lib/fts.c (fts_open): Tiny comment change.
76070
76071 2006-10-04  Bruno Haible  <bruno@clisp.org>
76072
76073         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
76074         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
76075         gl_LOCK_BODY.
76076         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
76077         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
76078         gl_LOCK_EARLY_BODY.
76079         (gl_LOCK): Require gl_LOCK_BODY.
76080
76081 2006-10-04  Bruno Haible  <bruno@clisp.org>
76082
76083         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
76084         (gl_oset_search_atleast): New declaration.
76085         (struct gl_oset_implementation): Add field 'search_atleast'.
76086         (gl_oset_search_atleast): New inline function.
76087         * lib/gl_oset.c (gl_oset_search_atleast): New function.
76088         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
76089         (gl_array_oset_implementation): Update.
76090         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
76091         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
76092         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
76093
76094 2006-10-04  Bruno Haible  <bruno@clisp.org>
76095
76096         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
76097
76098 2006-10-03  Bruno Haible  <bruno@clisp.org>
76099
76100         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
76101         from gl_avltreehash_list_implementation.
76102
76103 2006-10-03  Bruno Haible  <bruno@clisp.org>
76104
76105         * lib/gl_oset.c (gl_oset_add): Fix return type.
76106
76107 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
76108
76109         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
76110
76111 2006-10-02  Eric Blake  <ebb9@byu.net>
76112
76113         * modules/strnlen (Depends-on): Add extensions.
76114
76115 2006-10-02  Eric Blake  <ebb9@byu.net>
76116
76117         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
76118         definition in 2.60+.
76119
76120 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
76121
76122         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
76123         checks.
76124
76125 2006-10-02  Bruno Haible  <bruno@clisp.org>
76126
76127         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
76128         to the AUTOMAKE_OPTIONS.
76129         Reported by Jim Meyering.
76130
76131 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
76132
76133         Work around bug in Solaris 10 /proc file system:
76134         /proc/self/fd/NNN/.. isn't the parent directory of
76135         the directory whose file descriptor is NNN.  This needs to
76136         be worked around at run time, not compile time, since a
76137         program might be built on Solaris 8, where things work, and
76138         run on Solaris 10.
76139         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
76140         to use the following interface instead:
76141         (OPENAT_BUFFER_SIZE): New macro.
76142         (openat_proc_name): New function.
76143         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
76144         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
76145         Likewise.
76146         * lib/openat-proc.c: New file.
76147         * modules/openat (Files): Add lib/openat-proc.c.
76148         (Depends-on): Add same-inode, stdbool.
76149         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
76150
76151 2006-09-29  Bruno Haible  <bruno@clisp.org>
76152
76153         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
76154         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
76155         argument. Set stdout_closed before testing for ferror, not after.
76156         (fwriteerror, fwriteerror_no_ebadf): New functions.
76157
76158 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76159
76160         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
76161
76162 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
76163
76164         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
76165         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
76166
76167 2006-09-28  Jim Meyering  <jim@meyering.net>
76168
76169         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
76170         Include <unistd.h>.
76171
76172 2006-09-28  Bruno Haible  <bruno@clisp.org>
76173
76174         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
76175         * modules/linkedhash-list (Depends-on): Likewise.
76176         * modules/rbtreehash-list (Depends-on): Likewise.
76177
76178 2006-09-28  Bruno Haible  <bruno@clisp.org>
76179
76180         * lib/strndup.h: Simplify the redefinition of strndup.
76181         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
76182         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
76183
76184 2006-09-28  Bruno Haible  <bruno@clisp.org>
76185
76186         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
76187         * lib/gl_linkedhash_list.c: Likewise.
76188         * lib/gl_rbtreehash_list.c: Likewise.
76189
76190 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
76191
76192         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
76193         getaddrinfo.
76194
76195         * lib/__fpending.h: Don't include <stdio_ext.h> unless
76196         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
76197         it causes <stdio_ext.h> to cause a compile-time error.
76198         Problem reported by Nelson H. F. Beebe.
76199         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
76200         of HAVE_DECL___PENDING.
76201
76202         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
76203         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
76204         declaration.
76205
76206 2006-09-27  Jim Meyering  <jim@meyering.net>
76207
76208         This file could end up with a definition for a function
76209         named __strndup, rather than rpl_strndup on a system with
76210         incomplete weak_alias support.
76211         * lib/strndup.c (strndup): Rename from __strndup.
76212         Remove #defines that used to map __strndup to strndup.
76213         Don't use K&R prototypes.
76214         Remove LIBC-related code, since this file is not sync'd with glibc.
76215         * lib/strndup.h: Revamp, accordingly.
76216         * m4/strndup.m4: Modernize.
76217
76218 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
76219
76220         * modules/savewd (Depends-on): Add 'raise'.
76221         * lib/savewd.c: Include <signal.h>, for 'raise'.
76222
76223 2006-09-26  Jim Meyering  <jim@meyering.net>
76224
76225         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
76226         when we detect Darwin 8.7.0's acl_get_file bug.
76227         Rearrange to perform the new (below) run-test while $LIBS
76228         contains any acl-related library.  Set USE_ACL at the end.
76229         (gl_ACL_GET_FILE): New function.
76230
76231 2006-09-26  Eric Blake  <ebb9@byu.net>
76232
76233         * lib/verror.c: Include <config.h> unconditionally.
76234
76235 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
76236
76237         * modules/clock-time (Maintainer): Add self.
76238         * modules/getlogin_r (Depends-on): Add extensions.
76239
76240 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76241
76242         * modules/clock-time: New module.
76243         * modules/nanosleep (Depends-on): Add clock-time.
76244         * modules/gethrxtime (Depends-on): Likewise.
76245         * modules/gettime (Depends-on): Likewise.
76246         * modules/settime (Depends-on): Likewise.
76247
76248         * modules/fts-lgpl: Depend on openat.
76249         * modules/mkancesdirs: Depend on savewd.
76250         * modules/mkdir-p: Likewise.
76251
76252 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76253
76254         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
76255
76256         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
76257         `gl_have_arbitrary_file_name_length_limit' to
76258         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
76259         actually works between configure runs.
76260
76261 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76262             Bruno Haible  <bruno@clisp.org>
76263
76264         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
76265
76266 2006-09-25  Jim Meyering  <jim@meyering.net>
76267
76268         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
76269         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
76270
76271 2006-09-25  Eric Blake  <ebb9@byu.net>
76272
76273         * gnulib-tool (func_import, func_create_testdir): Fix typos in
76274         exec's in 2006-09-18 patch when shuffling fds.
76275
76276 2006-09-25  Bruno Haible  <bruno@clisp.org>
76277
76278         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
76279         Reported by Jim Meyering.
76280
76281 2006-09-24  Jim Meyering  <jim@meyering.net>
76282
76283         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
76284         compare a pointer against a literal "0".  That caused failures with
76285         at least HP-UX's hpcc.
76286
76287 2006-09-22  Simon Josefsson  <jas@extundo.com>
76288
76289         * modules/gc-sha1:
76290         * modules/gc-md4:
76291         * modules/gc-hmac-sha1:
76292         * modules/gc-hmac-md5:
76293         * modules/gc-des:
76294         * modules/gc-arcfour: Distribute more files.
76295
76296 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76297
76298         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
76299         (gl_linked_iterator_from_to): Initialize struct completely.
76300         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
76301         (gl_tree_iterator_from_to): Likewise
76302         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
76303         * lib/gl_array_list.c [lint] (gl_array_iterator)
76304         (gl_array_iterator_from_to): Likewise.
76305         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
76306         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
76307         (gl_carray_iterator_from_to): Likewise.
76308
76309         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
76310         * lib/md4.c (md4_process_block): Remove unused variable.
76311         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
76312         parentheses for clarity.
76313
76314 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76315
76316         * modules/bison-i18n (Depends-on): Add gettext.
76317
76318 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76319
76320         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
76321         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
76322         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
76323         also add missing comma that caused broken test.
76324         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
76325         stdlib.h, for `abort'.
76326         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
76327         variables.
76328         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
76329         include unistd.h if present, for `rmdir'.
76330         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
76331         variables.
76332         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
76333         in the process include standard headers for prototypes.
76334         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
76335         gets declared on GNU/Linux.
76336         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
76337         unistd.h, for `rmdir'.
76338         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
76339
76340         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
76341         always true.
76342         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
76343
76344         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
76345
76346 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76347
76348         * gnulib-tool (func_version): Create output all at once.  This
76349         may help avoid triggering unnecessary SIGPIPEs, and at any
76350         rate it doesn't hurt.
76351
76352 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76353             Bruno Haible  <bruno@clisp.org>
76354
76355         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
76356         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
76357         * m4/signed.m4 (bh_C_SIGNED): Likewise.
76358
76359         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
76360         (gl_FUNC_VASPRINTF): Invoke it.
76361
76362 2006-09-22  Bruno Haible  <bruno@clisp.org>
76363
76364         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
76365         getloadavg.c as first argument.
76366
76367 2006-09-22  Bruno Haible  <bruno@clisp.org>
76368
76369         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
76370         at the beginning of the gl_INIT macro.
76371         * modules/getloadavg (configure.ac): Pass $gl_source_base to
76372         gl_GETLOADAVG.
76373
76374 2006-09-22  Bruno Haible  <bruno@clisp.org>
76375
76376         * gnulib-tool (func_create_megatestdir): Don't include the config-h
76377         module.
76378         Suggested by Ralf Wildenhues.
76379
76380 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
76381
76382         Import this patch from libc:
76383
76384         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
76385
76386         * lib/regex_internal.c (re_string_reconstruct): Handle
76387         offset < pstr->valid_raw_len && pstr->offsets_needed case.
76388         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
76389         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
76390         re_string_context_at.
76391
76392         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
76393         now requires it.
76394         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
76395         gl_REGEX now does it for us.
76396         (gl_REGEX): Add test taken from
76397         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
76398
76399         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
76400         Check that large offsets work.  Modernize Autoconf usages.
76401         Prefer "yes" to mean a good thing rather than a bad.
76402         Don't put "#define mkstemp" in config.h, as this might interfere
76403         with standard system headers that "#define mkstemp mkstemp64".
76404
76405         * modules/mkstemp (Depends-on): Add extensions, so that
76406         mkstemp is visible on some platforms.
76407         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
76408         (Include): Change to "mkstemp.h" from <stdlib.h>.
76409         (Files): Add mkstemp.h.
76410
76411         * lib/mkstemp.h: New file, since some standard headers
76412         #define mkstemp.
76413         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
76414         Include "mkstemp.h".
76415         Make the _LIBC code resemble glibc original more,
76416         e.g., use K&R style.
76417         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
76418         (mkstemp): Remove, since mkstemp.h does this for us.
76419         * lib/stdlib--.h: Include mkstemp.h.
76420
76421         Import this patch from libc:
76422
76423         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
76424
76425         * lib/tempname.c (__gen_tempname): Change attempts_min
76426         into a macro.  Use preprocessor to decide how to initialize
76427         attempts [Coverity CID 67].
76428
76429 2006-09-20  Bruno Haible  <bruno@clisp.org>
76430
76431         * lib/mkdtemp.c: Import from libc.
76432         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
76433                 * sysdeps/posix/tempname.c (__gen_tempname): Change
76434                 attempts_min into a macro.  Use preprocessor to decide how to
76435                 initialize attempts [Coverity CID 67].
76436         2001-11-27  Paul Eggert  <eggert@twinsun.com>
76437                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
76438                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
76439
76440 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76441
76442         * gnulib-tool (func_exit): New function, to allow to pass the
76443         exit status portably through the trap.  Use everywhere.
76444         (--help, --version): Signal a write error.
76445         (trap): catch SIGPIPE, for write errors.
76446         Exit at the end of the trap, with the correct exit status.
76447
76448 2006-09-19  Karl Berry  <karl@gnu.org>
76449
76450         * doc/gnulib.texi: note about the license texinfo files.
76451
76452 2006-09-19  Eric Blake  <ebb9@byu.net>
76453
76454         * gnulib-tool: Avoid space-tab.
76455
76456 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
76457
76458         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
76459         that prevented coreutils 6.1 from building.  Problem reported
76460         by Petter Reinholdtsen.
76461
76462 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
76463
76464         * gnulib-tool (avoidlist): Fix typo that broke options like
76465         --avoid=lock that are used by coreutils bootstrap.
76466
76467 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
76468
76469         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
76470         more systematically.
76471
76472 2006-09-18  Jim Meyering  <jim@meyering.net>
76473
76474         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
76475
76476 2006-09-18  Bruno Haible  <bruno@clisp.org>
76477
76478         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
76479
76480 2006-09-18  Bruno Haible  <bruno@clisp.org>
76481
76482         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
76483         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
76484         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
76485         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
76486         * m4/gettext.m4: Require autoconf >= 2.52.
76487         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
76488         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
76489         of gl_cv_header_inttypes_h.
76490
76491 2006-09-18  Bruno Haible  <bruno@clisp.org>
76492
76493         * lib/javaversion.c: Include configmake.h.
76494
76495 2006-09-18  Bruno Haible  <bruno@clisp.org>
76496
76497         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
76498         avoid that the while loops be executed in a subshell.
76499
76500 2006-09-18  Bruno Haible  <bruno@clisp.org>
76501
76502         * MODULES.html.sh (func_module): Break long lines.
76503         Suggested by Bruce Korb <bkorb@gnu.org>.
76504
76505 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76506
76507         Speed up by a factor of 1.12.
76508         * gnulib-tool (nl): New variable.
76509         (func_import): Rewrite include directive extraction to only read each
76510         directive once.
76511
76512 2006-09-17  Bruno Haible  <bruno@clisp.org>
76513
76514         * modules/javaversion (Makefile.am): Remove DEFS setting.
76515         (Depends-on): Add configmake, for PKGDATADIR definition.
76516
76517 2006-09-17  Bruno Haible  <bruno@clisp.org>
76518
76519         * gnulib-tool (func_create_testdir): Rewrite all files at once.
76520
76521 2006-09-17  Bruno Haible  <bruno@clisp.org>
76522
76523         * gnulib-tool (func_append): New function, stolen from libtool.m4.
76524         (func_modules_transitive_closure, func_modules_add_dummy,
76525         func_modules_to_filelist, func_import, func_create_testdir,
76526         func_create_megatestdir, ...): Use it wherever possible.
76527         Suggested by Ralf Wildenhues.
76528
76529 2006-09-16  Karl Berry  <karl@gnu.org>
76530
76531         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
76532         to avoid sectioning errors.
76533         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
76534         [ifinfo]: blank line after @center-ed titles.
76535         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
76536         Spell FSF address consistently with others.
76537         (These changes approved by rms.)
76538
76539 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76540
76541         Speed up by a factor of 1.61.
76542         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
76543         already checked module names again.
76544
76545 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76546
76547         Speed up by a factor of 1.13.
76548         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
76549         for new_files, and the input to func_add_or_update.
76550
76551 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76552
76553         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
76554         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
76555
76556 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
76557
76558         * modules/mkancesdirs (Depends-on): Add fcntl.
76559         * modules/savewd: New file.
76560         * MODULES.html.sh (File system functions): Add savewd.
76561
76562         * modules/configmake (Makefile.am): Add support for the
76563         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
76564
76565 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
76566
76567         * m4/savewd.m4: New file.
76568
76569 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
76570
76571         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
76572         (dirchownmod): New arg FD.  All callers changed.
76573         Use FD rather than opening the directory ourself, as opening is
76574         now the caller's responsibility.
76575         * lib/dirchownmod.h: Likewise.
76576         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
76577         hosts that require <sys/types.h> before <sys/stat.h>.  Include
76578         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
76579         (test_dir): Remove.
76580         (mkancesdirs): Return length of prefix of FILE that has already
76581         been made, or -2 if there is a child doing the work.  Redo
76582         algorithm so that it is O(N) rather than O(N**2).  Optimize away
76583         ".", and treat ".." specially since it might stray back into
76584         already-created areas.  Use a subprocess if necessary.  New arg
76585         WD; all users changed.  MAKE_DIR function should now return 1
76586         if it creates a directory that is not readable.  Return -2 if
76587         a child process is spun off.
76588         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
76589         Adjust signature to match code.
76590         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
76591         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
76592         all users changed.
76593         * lib/savewd.c, lib/savewd.h: New files.
76594
76595 2006-09-15  Jim Meyering  <jim@meyering.net>
76596
76597         * modules/rename-dest-slash: New module.
76598         * MODULES.html.sh (posix_compat): Add it here.
76599
76600         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
76601
76602 2006-09-15  Jim Meyering  <jim@meyering.net>
76603
76604         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
76605         file.
76606
76607         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
76608
76609 2006-09-15  Jim Meyering  <jim@meyering.net>
76610
76611         * lib/rename-dest-slash.c (has_trailing_slash): Use
76612         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
76613         (rpl_rename_dest_slash): Perform the cheaper trailing slash
76614         test before testing whether SRC is a directory.
76615         Suggestions from Bruno Haible.
76616
76617         Avoid a warning about an unused variable.
76618         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
76619         into the #ifdef block where it's used.
76620
76621         * lib/rename-dest-slash.c: New file.
76622
76623 2006-09-14  Bruno Haible  <bruno@clisp.org>
76624
76625         * lib/allocsa.c: Include <config.h> unconditionally.
76626         * lib/asnprintf.c: Likewise.
76627         * lib/asprintf.c: Likewise.
76628         * lib/c-strcasecmp.c: Likewise.
76629         * lib/c-strcasestr.c: Likewise.
76630         * lib/c-strncasecmp.c: Likewise.
76631         * lib/c-strstr.c: Likewise.
76632         * lib/classpath.c: Likewise.
76633         * lib/clean-temp.c: Likewise.
76634         * lib/concatpath.c: Likewise.
76635         * lib/copy-file.c: Likewise.
76636         * lib/csharpcomp.c: Likewise.
76637         * lib/csharpexec.c: Likewise.
76638         * lib/execute.c: Likewise.
76639         * lib/fatal-signal.c: Likewise.
76640         * lib/findprog.c: Likewise.
76641         * lib/fwriteerror.c: Likewise.
76642         * lib/gl_array_list.c: Likewise.
76643         * lib/gl_array_oset.c: Likewise.
76644         * lib/gl_avltree_list.c: Likewise.
76645         * lib/gl_avltree_oset.c: Likewise.
76646         * lib/gl_avltreehash_list.c: Likewise.
76647         * lib/gl_carray_list.c: Likewise.
76648         * lib/gl_linked_list.c: Likewise.
76649         * lib/gl_linkedhash_list.c: Likewise.
76650         * lib/gl_list.c: Likewise.
76651         * lib/gl_oset.c: Likewise.
76652         * lib/gl_rbtree_list.c: Likewise.
76653         * lib/gl_rbtree_oset.c: Likewise.
76654         * lib/gl_rbtreehash_list.c: Likewise.
76655         * lib/imaxabs.c: Likewise.
76656         * lib/imaxdiv.c: Likewise.
76657         * lib/javacomp.c: Likewise.
76658         * lib/javaexec.c: Likewise.
76659         * lib/javaversion.c: Likewise.
76660         * lib/linebreak.c: Likewise.
76661         * lib/localcharset.c: Likewise.
76662         * lib/lock.c: Likewise.
76663         * lib/mbchar.c: Likewise.
76664         * lib/mbswidth.c: Likewise.
76665         * lib/mkdtemp.c: Likewise.
76666         * lib/pipe.c: Likewise.
76667         * lib/printf-args.c: Likewise.
76668         * lib/printf-parse.c: Likewise.
76669         * lib/progname.c: Likewise.
76670         * lib/progreloc.c: Likewise.
76671         * lib/readlink.c: Likewise.
76672         * lib/sh-quote.c: Likewise.
76673         * lib/stpcpy.c: Likewise.
76674         * lib/stpncpy.c: Likewise.
76675         * lib/strcasecmp.c: Likewise.
76676         * lib/strcasestr.c: Likewise.
76677         * lib/strcspn.c: Likewise.
76678         * lib/striconv.c: Likewise.
76679         * lib/strncasecmp.c: Likewise.
76680         * lib/strnlen1.c: Likewise.
76681         * lib/strstr.c: Likewise.
76682         * lib/strtok_r.c: Likewise.
76683         * lib/tls.c: Likewise.
76684         * lib/tmpdir.c: Likewise.
76685         * lib/unicodeio.c: Likewise.
76686         * lib/unsetenv.c: Likewise.
76687         * lib/vasnprintf.c: Likewise.
76688         * lib/vasprintf.c: Likewise.
76689         * lib/wait-process.c: Likewise.
76690         * lib/xallocsa.c: Likewise.
76691         * lib/xsetenv.c: Likewise.
76692         * lib/xstriconv.c: Likewise.
76693
76694 2006-09-13  Simon Josefsson  <jas@extundo.com>
76695
76696         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
76697         that internally, suggested by Ralf Wildenhues
76698         <Ralf.Wildenhues@gmx.de>.
76699
76700 2006-09-13  Simon Josefsson  <jas@extundo.com>
76701
76702         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
76703         @LIBOBJS@.
76704         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
76705
76706 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
76707
76708         * lib/_fpending.c: Include <config.h> unconditionally, since we no
76709         longer worry about uses that don't define HAVE_CONFIG_H.
76710         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
76711         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
76712         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
76713         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
76714         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
76715         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
76716         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
76717         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
76718         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
76719         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
76720         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
76721         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
76722         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
76723         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
76724         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
76725         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
76726         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
76727         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
76728         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
76729         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
76730         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
76731         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
76732         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
76733         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
76734         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
76735         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
76736         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
76737         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
76738         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
76739         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
76740         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
76741         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
76742         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
76743         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
76744         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
76745         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
76746         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
76747         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
76748         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
76749         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
76750         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
76751         Likewise.
76752
76753 2006-09-13  Eric Blake  <ebb9@byu.net>
76754
76755         * lib/getopt.c: Fix typo in last commit.
76756
76757 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
76758
76759         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
76760         dgettext.
76761
76762 2006-09-12  Jim Meyering  <jim@meyering.net>
76763
76764         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
76765         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
76766         Reported by Nelson H. F. Beebe.
76767
76768 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
76769
76770         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
76771         program_invocation_name and program_invocation_short_name are
76772         initialized.
76773         * lib/argp-namefrob.h: Move declarations of program_invocation_name
76774         and program_invocation_short_name to argp.h, so they are visible
76775         to user programs.
76776         * lib/argp.h: Likewise
76777
76778 2006-09-10  Bruno Haible  <bruno@clisp.org>
76779
76780         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
76781         m4/inttypes_h.m4, m4/uintmax_t.m4.
76782
76783 2006-09-10  Bruno Haible  <bruno@clisp.org>
76784
76785         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
76786         gl_AC_TYPE_UINTMAX_T.
76787
76788 2006-09-10  Bruno Haible  <bruno@clisp.org>
76789
76790         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
76791
76792 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
76793
76794         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
76795         convention.  Text proposed by Bruno Haible.
76796         (struct argp_option): Document the use of N_() wrappers.
76797
76798         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
76799         '\v', and translate the two parts separately, instead of feeding
76800         the whole string to gettext.  This allows to exclude
76801         '\v' from the strings visible to the translator by writing doc
76802         strings as N_("..") "\v" N_("..").
76803
76804 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
76805
76806         * config/srclist.txt: Undo latest change; the bug was fixed.
76807
76808 2006-09-09  Bruno Haible  <bruno@clisp.org>
76809
76810         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
76811         assignments if building a library without libtool.
76812         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
76813         in func_emit_lib_Makefile_am.
76814         (func_import): When building a static library libfoo.a, arrange to
76815         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
76816         (func_create_testdir): Likewise.
76817         * modules/gc (configure.ac, Makefile.am): If building statically,
76818         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
76819         * modules/iconvme (configure.ac, Makefile.am): Likewise.
76820         * modules/striconv (configure.ac, Makefile.am): Likewise.
76821         Based on a suggestion by Ralf Wildenhues.
76822
76823 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
76824
76825         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
76826         Check for unistd.h too, since Autoconf doesn't assume POSIX.
76827         Also:
76828
76829         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
76830         Add year_2050_test to catch glibc bug 2821
76831         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
76832
76833         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
76834         Prefer #ifdef to #if.
76835
76836         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
76837         Return from 'main' instead of calling 'exit'.
76838
76839 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
76840
76841         * lib/mktime.c (guess_time_tm): Fix bug where mktime
76842         returned the maximum time_t value rather than (time_t) -1.
76843         Problem originally reported by William Bardwell
76844         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
76845
76846         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
76847         Moved to here ...
76848         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
76849         ... from here.
76850
76851 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
76852
76853         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
76854         2821 is fixed.
76855
76856 2006-09-08  Jim Meyering  <jim@meyering.net>
76857
76858         Don't make generated files read-only.  That would bother too many
76859         people.  However, do retain the ability to work when targets are
76860         read-only: remove the destination and temporary files before writing
76861         them (when generated via sed or echo), or by using the -f option for
76862         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
76863         * modules/alloca-opt, modules/argz, modules/arpa_inet:
76864         * modules/byteswap, modules/configmake, modules/fcntl:
76865         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
76866         * modules/localcharset, modules/netinet_in, modules/poll:
76867         * modules/stdbool, modules/stdint, modules/sys_select:
76868         * modules/sys_socket, modules/sys_stat, modules/sysexits:
76869
76870 2006-09-08  Jim Meyering  <jim@meyering.net>
76871
76872         Avoid new build failure on FreeBSD 6.0.
76873         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
76874         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
76875         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
76876
76877 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76878
76879         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
76880
76881 2006-09-07  Jim Meyering  <jim@meyering.net>
76882
76883         Fix global typo in last change: use chmod u-w, not chmod u-x.
76884         Spotted by Paul Eggert and Bruce Korb.
76885         * modules/alloca-opt, modules/argz, modules/arpa_inet:
76886         * modules/byteswap, modules/configmake, modules/fcntl:
76887         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
76888         * modules/localcharset, modules/netinet_in, modules/poll:
76889         * modules/stdbool, modules/stdint, modules/sys_select:
76890         * modules/sys_socket, modules/sys_stat, modules/sysexits:
76891
76892 2006-09-06  Jim Meyering  <jim@meyering.net>
76893
76894         Make generated files be read-only.
76895         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
76896         Ensure that each generated file is now read-only.
76897         * modules/argz: Likewise.
76898         * modules/arpa_inet: Likewise.
76899         * modules/byteswap: Likewise.
76900         * modules/configmake: Likewise.
76901         * modules/fcntl: Likewise.
76902         * modules/fnmatch: Likewise.
76903         * modules/getopt: Likewise.
76904         * modules/glob: Likewise.
76905         * modules/inttypes: Likewise.
76906         * modules/netinet_in: Likewise.
76907         * modules/poll: Likewise.
76908         * modules/stdbool: Likewise.
76909         * modules/stdint: Likewise.
76910         * modules/sys_select: Likewise.
76911         * modules/sys_socket: Likewise.
76912         * modules/sys_stat: Likewise.
76913         * modules/sysexits: Likewise.
76914         * modules/localcharset: Same as above, but continue using temporary
76915         file named "t-$@" (why different?) rather than the "$@-t" used
76916         everywhere else.
76917
76918         * modules/sysexits (Makefile.am): Replace literal occurrences
76919         of "sysexit.h" more readable, and more consistent, "$@".
76920
76921 2006-09-06  Bruno Haible  <bruno@clisp.org>
76922
76923         * modules/striconv: New file.
76924         * modules/xstriconv: New file.
76925         * MODULES.html.sh (Internationalization functions): Add striconv,
76926         xstriconv.
76927
76928 2006-09-06  Bruno Haible  <bruno@clisp.org>
76929
76930         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
76931         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
76932         not using libtool correctly.
76933
76934 2006-09-06  Bruno Haible  <bruno@clisp.org>
76935
76936         * lib/striconv.h: New file.
76937         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
76938         iconvstring.c.
76939         * lib/xstriconv.h: New file.
76940         * lib/xstriconv.c: New file.
76941
76942 2006-09-06  Bruno Haible  <bruno@clisp.org>
76943
76944         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
76945         lib_..._LDFLAGS.
76946
76947 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76948
76949         * lib/argz_.h: Sync from Libtool.
76950
76951         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
76952                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
76953
76954         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
76955
76956 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
76957
76958         * modules/trim: New file.
76959
76960 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
76961
76962         * lib/trim.h: New file.
76963         * lib/trim.c: New file.
76964
76965 2006-09-05  Bruno Haible  <bruno@clisp.org>
76966
76967         * MODULES.html.sh (String handling): Add trim.
76968
76969 2006-09-04  Karl Berry  <karl@gnu.org>
76970
76971         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
76972         until next release.
76973
76974 2006-09-03  Bruno Haible  <bruno@clisp.org>
76975
76976         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
76977         correctly.
76978
76979 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
76980
76981         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
76982         not gl_GETLOADAVG.  Omit unneeded semicolons.
76983         Problems reported by Ralf Wildenhues in
76984         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
76985         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
76986         at the end, which is the usual gnulib style.
76987
76988         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
76989         of doing all the work ourselves.
76990         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
76991         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
76992
76993 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
76994
76995         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
76996         Problem reported by Ralf Wildenhues in
76997         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
76998
76999         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
77000         HAVE_STRUCT_STATFS_F_FSTYPENAME.
77001
77002 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
77003
77004         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
77005         yesterday's patch by changing test -n to test -z.
77006
77007 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
77008
77009         * modules/getloadavg (Files): Add m4/getloadavg.m4.
77010         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
77011         the former is now obsolescent.
77012
77013         * modules/chdir-long (Depends-on): Add fcntl.
77014
77015 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
77016
77017         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
77018         obsolescent, and programs should use gnulib instead.
77019         * m4/getloadavg.m4: New file, with contents taken from Autoconf
77020         but with prefixes changed.
77021
77022 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
77023
77024         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
77025         or stdbool.h, because they might not exist while configuring.
77026
77027         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
77028         Don't include unistd.h or limits.h; not needed, since chdir-long.h
77029         does that for us.
77030         (O_DIRECTORY): Remove.
77031
77032 2006-08-31  Eric Blake  <ebb9@byu.net>
77033
77034         * gnulib-tool: Don't let emacs change spaces to TAB.
77035
77036 2006-08-31  Bruno Haible  <bruno@clisp.org>
77037
77038         * gnulib-tool: When calling func_import more than once, do it in a
77039         subshell.
77040         Reported by Eric Blake <ebb9@byu.net>.
77041
77042 2006-08-31  Bruno Haible  <bruno@clisp.org>
77043
77044         * gnulib-tool (nl): Remove variable.
77045         (sed_transform_lib_file): Use more robust test for config-h module.
77046         (func_import): Fix typo in 2006-08-25 patch.
77047
77048 2006-08-31  Bruno Haible  <bruno@clisp.org>
77049
77050         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
77051         specified, augment Makefile.am variables instead of assigning them.
77052
77053 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
77054
77055         Work around a bug in both the Linux and SunOS 64-bit kernels:
77056         nanosleep mishandles sleeps for longer than 2**31 seconds.
77057         Problem reported by Frank v Waveren in
77058         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
77059         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
77060         Check for nanosleep bug.
77061         (LIB_NANOSLEEP): Append clock_gettime library if needed.
77062
77063 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
77064
77065         Work around a bug in both the Linux and SunOS 64-bit kernels:
77066         nanosleep mishandles sleeps for longer than 2**31 seconds.
77067         Problem reported by Frank v Waveren in
77068         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
77069         * lib/nanosleep.c (BILLION): New constant.
77070         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
77071         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
77072         implementation.
77073
77074 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
77075
77076         * modules/nanosleep (Depends-on): Add gettime.
77077
77078 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
77079         and Simon Josefsson  <jas@extundo.com>
77080         and Oskar Liljeblad  <oskar@osk.mine.nu>
77081
77082         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
77083         * gnulib-tool (func_import): New license type 'unmodifiable license
77084         text'.
77085         * modules/fdl: Use it.  Longer description.
77086         * module/gpl, module/lgpl: New files.
77087
77088 2006-08-30  Jim Meyering  <jim@meyering.net>
77089
77090         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
77091         shadowing the parameter.
77092
77093 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77094
77095         Sync from Libtool:
77096
77097         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77098
77099         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
77100         sharing with gnulib.  Report by Eric Blake.
77101
77102 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
77103
77104         * modules/isapipe: New file.
77105         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
77106
77107 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
77108
77109         * modules/configmake (Makefile.am): Add a comment, and omit
77110         the CONFIGMAKE_ prefix from generated macro names.  Suggested
77111         by Bruno Haible.
77112
77113 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
77114
77115         * m4/isapipe.m4: New file.
77116
77117 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
77118
77119         * lib/isapipe.c, lib/isapipe.h: New files.
77120
77121 2006-08-29  Jim Meyering  <jim@meyering.net>
77122
77123         * modules/configmake (Makefile.am): Make configmake.h depend on
77124         Makefile.  Otherwise, a stale configmake.h could hang around.
77125
77126 2006-08-29  Eric Blake  <ebb9@byu.net>
77127
77128         * lib/error.c (error_at_line, print_errno_message): Match libc, after
77129         resolution of upstream bug 3044.
77130
77131 2006-08-29  Bruno Haible  <bruno@clisp.org>
77132
77133         * modules/localcharset (Depends-on): Add configmake.
77134         (Makefile.am): Remove setting of LIBDIR through DEFS.
77135
77136 2006-08-29  Bruno Haible  <bruno@clisp.org>
77137
77138         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
77139         defined.
77140
77141 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
77142
77143         * modules/fcntl: New file.
77144         * modules/chdir-safer (Depends-on): Add fcntl.
77145         * modules/fts: Likewise.
77146         * modules/mkdir-p: Likewise.
77147
77148         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
77149         This undoes the most recent change, since we're now addressing the
77150         problem in a different way.
77151
77152         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
77153         into output, since the output might be called Makefile.am even
77154         if $makefile_name is something different.
77155         (func_import): Use $makefile_am rather than
77156         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
77157         empty.
77158
77159         * modules/inttypes (Files): Add m4/inttypes-h.m4.
77160
77161 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
77162
77163         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
77164         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
77165         recent change to stdint.m4, since we're now addressing the problem in a
77166         different way.
77167
77168 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
77169
77170         * m4/fcntl_h.m4: New file.
77171
77172 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
77173
77174         * lib/fcntl_.h: New file.
77175         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
77176         the fcntl module.
77177         * lib/dirchownmod.c: Likewise.
77178         * lib/fts.c: Likewise.
77179
77180         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
77181         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
77182         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
77183         just before including <inttypes.h>, to avoid circular inclusion.
77184
77185 2006-08-28  Jim Meyering  <jim@meyering.net>
77186
77187         * doc/visibility.texi: Actually read and correct the grammar of the
77188         sentence affected by yesterday's change.
77189
77190 2006-08-28  Eric Blake  <ebb9@byu.net>
77191
77192         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
77193         needs wrapper.
77194
77195 2006-08-28  Eric Blake  <ebb9@byu.net>
77196
77197         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
77198
77199 2006-08-28  Eric Blake  <ebb9@byu.net>
77200
77201         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
77202
77203 2006-08-28  Bruno Haible  <bruno@clisp.org>
77204
77205         * modules/c-strstr: New file, from GNU gettext.
77206         * MODULES.html.sh (String handling): Add c-strstr.
77207
77208 2006-08-28  Bruno Haible  <bruno@clisp.org>
77209
77210         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
77211         macros.
77212         Reported by Eric Blake.
77213
77214 2006-08-28  Bruno Haible  <bruno@clisp.org>
77215
77216         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
77217         (VASNPRINTF): Return a string of length > INT_MAX without failing.
77218         * lib/vasprintf.c: Include errno.h, limits.h.
77219         (EOVERFLOW): New fallback definition.
77220         (vasprintf): Test here whether the string length is > INT_MAX.
77221         * lib/vsnprintf.c: Include errno.h, limits.h.
77222         (EOVERFLOW): New fallback definition.
77223         (vsnprintf): Fix bug when generated string was too long for the buffer.
77224         Test here whether the string length is > INT_MAX.
77225
77226 2006-08-28  Bruno Haible  <bruno@clisp.org>
77227
77228         * lib/inttypes_.h (SCNX*): Remove definitions.
77229         Reported by Eric Blake.
77230
77231 2006-08-28  Bruno Haible  <bruno@clisp.org>
77232
77233         * lib/c-strstr.h: New file, from GNU gettext.
77234         * lib/c-strstr.c: New file, from GNU gettext.
77235
77236 2006-08-28  Bruno Haible  <bruno@clisp.org>
77237
77238         * gnulib-tool: Reorder some statements.
77239
77240 2006-08-28  Bruno Haible  <bruno@clisp.org>
77241
77242         * gnulib-tool: New option --makefile-name.
77243         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
77244         $makefile_name.
77245         (func_import): Write $makefile_name to the cache file, and read it from
77246         there unless explicitly specified. Use $makefile_name as file name
77247         instead of Makefile.am. Adjust the recommendations accordingly.
77248
77249 2006-08-28  Bruno Haible  <bruno@clisp.org>
77250
77251         * gnulib-tool (func_verify_module): Check against misapplying patch.
77252
77253 2006-08-28  Bruno Haible  <bruno@clisp.org>
77254
77255         * gnulib-tool (func_relativize, func_relconcat): New functions.
77256         Give an error if --local-dir is given with --update.
77257         Remove trailing slashes from $local_gnulib_dir.
77258         (func_import): Store the relativized $local_gnulib_dir in
77259         gnulib-cache.m4, and read it from there if not specified explicitly.
77260
77261 2006-08-28  Bruno Haible  <bruno@clisp.org>
77262
77263         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
77264         is the current directory. Respect also $local_gnulib_dir.
77265
77266 2006-08-28  Bruno Haible  <bruno@clisp.org>
77267             Simon Josefsson  <jas@extundo.com>
77268
77269         BeOS portability.
77270         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
77271
77272 2006-08-27  Jim Meyering  <jim@meyering.net>
77273
77274         * doc/visibility.texi: Remove duplicate word: "pointer".
77275
77276 2006-08-26  Bruno Haible  <bruno@clisp.org>
77277
77278         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
77279         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
77280         (Makefile.am): Create inttypes.h from inttypes_.h.
77281         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
77282
77283         * modules/imaxabs: New file.
77284
77285         * modules/imaxdiv: New file.
77286
77287 2006-08-26  Bruno Haible  <bruno@clisp.org>
77288
77289         * m4/inttypes.m4: New file.
77290         * m4/_inttypes_h.m4: Remove file.
77291         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
77292         PRI_MACROS_BROKEN.
77293         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
77294
77295         * m4/imaxabs.m4: New file.
77296
77297         * m4/imaxdiv.m4: New file.
77298
77299 2006-08-26  Bruno Haible  <bruno@clisp.org>
77300
77301         * lib/inttypes_.h: New file.
77302         * lib/inttypes.h: Remove file.
77303         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
77304
77305         * lib/imaxabs.c: New file.
77306
77307         * lib/imaxdiv.c: New file.
77308
77309 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
77310
77311         New config-h module, so that "make" output needn't be cluttered
77312         by -DHAVE_CONFIG_H.
77313         * MODULES.html.sh (Support for building libraries and executables):
77314         Add config-h.
77315         * modules/config-h: New file.
77316         * gnulib-tool (nl, sed_transform_lib_file): New vars.
77317         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
77318         the config-h module is used.
77319
77320         New configmake module, so that "make" output needn't be cluttered
77321         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
77322         * MODULES.html.sh (Support for building libraries and executables):
77323         Add configmake.
77324         * modules/configmake: New file.
77325
77326 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
77327
77328         * m4/config-h.m4: New file.
77329
77330 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
77331
77332         * config/srclist.txt: Add elisp-comp.
77333
77334 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
77335
77336         * MODULES.html.sh (Support for building libraries and executables):
77337         Add elisp-comp.
77338         * build-aux/elisp-comp: New file.
77339         * modules/elisp-comp: New file.
77340
77341 2006-08-24  Bruno Haible  <bruno@clisp.org>
77342
77343         * gnulib-tool (func_create_testdir): Use non-default values of
77344         sourcebase and m4base.
77345
77346 2006-08-24  Bruno Haible  <bruno@clisp.org>
77347
77348         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
77349         HTML structure.
77350
77351 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
77352
77353         * modules/openat (Depends-on): Add lchown.
77354
77355 2006-08-23  Bruno Haible  <bruno@clisp.org>
77356
77357         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
77358         of gl_LOCK_EARLY instead of gl_LOCK.
77359
77360 2006-08-23  Bruno Haible  <bruno@clisp.org>
77361
77362         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
77363         on OSF/1 to no.
77364         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
77365
77366 2006-08-23  Bruno Haible  <bruno@clisp.org>
77367
77368         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
77369         as unusable.
77370
77371         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
77372         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
77373         (gl_LOCK): New macro.
77374
77375 2006-08-22  Simon Josefsson  <jas@extundo.com>
77376
77377         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
77378         to md5 module.
77379
77380 2006-08-22  Simon Josefsson  <jas@extundo.com>
77381
77382         * MODULES.html.sh: Add "Support for maintaining and release
77383         projects".
77384
77385         * build-aux/gnupload: New file, from coreutils.
77386
77387 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
77388
77389         Avoid the need for AC_LIBSOURCES in m4 macros.
77390         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
77391         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
77392         * modules/check-version (EXTRA_DIST): Add check-version.h.
77393         * modules/crc (EXTRA_DIST): Add crc.h.
77394         * modules/des (EXTRA_DIST): Add des.h.
77395         * modules/gc (EXTRA_DIST): Add gc.h.
77396         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
77397         * modules/getline (EXTRA_DIST): Add getline.h.
77398         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
77399         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
77400         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
77401         * modules/md2 (EXTRA_DIST): Add md2.h.
77402         * modules/md4 (EXTRA_DIST): Add md4.h.
77403         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
77404         * modules/read-file (EXTRA_DIST): Add read-file.h.
77405         * modules/readline (EXTRA_DIST): Add readline.h.
77406         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
77407         rijndael-api-fst.h.
77408
77409 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
77410
77411         * m4/rijndael.m4 (gl_ARCFOUR):
77412         * m4/arctwo.m4 (gl_ARCTWO):
77413         * m4/check-version.m4 (gl_CHECK_VERSION):
77414         * m4/crc.m4 (gl_CRC):
77415         * m4/des.m4 (gl_DES):
77416         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
77417         * m4/gc.m4 (gl_GC):
77418         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
77419         * m4/getline.m4 (gl_FUNC_GETLINE):
77420         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
77421         * m4/hmac-md5.m4 (gl_HMAC_MD5):
77422         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
77423         * m4/md2.m4 (gl_MD2):
77424         * m4/md4.m4 (gl_MD4):
77425         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
77426         * m4/read-file.m4 (gl_FUNC_READ_FILE):
77427         * m4/readline.m4 (gl_FUNC_READLINE):
77428         * m4/rijndael.m4 (gl_RIJNDAEL):
77429         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
77430         to get the necessary .h files and whatnot.
77431
77432 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
77433
77434         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
77435         gnulib rather than the other way around.
77436         * config/srclistvars.sh (COREUTILS): Remove.
77437
77438 2006-08-22  Jim Meyering  <jim@meyering.net>
77439
77440         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
77441
77442         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
77443
77444 2006-08-22  Eric Blake  <ebb9@byu.net>
77445
77446         * modules/regexprops-generic: New file.
77447         * MODULES.html.sh (Support for building documentation): List it.
77448
77449 2006-08-22  Eric Blake  <ebb9@byu.net>
77450
77451         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
77452         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
77453         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
77454         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
77455
77456 2006-08-22  Bruno Haible  <bruno@clisp.org>
77457
77458         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
77459         and lib_LTLIBRARIES like the other lib_* variables.
77460
77461 2006-08-22  Bruno Haible  <bruno@clisp.org>
77462
77463         * build-aux/x-to-1.in: New file, from GNU gettext.
77464
77465 2006-08-22  Bruno Haible  <bruno@clisp.org>
77466
77467         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
77468         <utmpx.h> exists.
77469
77470 2006-08-22  Bruno Haible  <bruno@clisp.org>
77471
77472         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
77473         <utmpx.h> exists.
77474
77475 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
77476
77477         BeOS portability.
77478         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
77479         exist.
77480         Problem reported by Bruno Haible.
77481
77482 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
77483
77484         Avoid the need for AC_LIBSOURCES in m4 macros.
77485         * modules/acl (EXTRA_DIST): Add acl.h.
77486         * modules/argmatch (Files): Add m4/argmatch.m4.
77487         (configure.ac): Add gl_ARGMATCH.
77488         (EXTRA_DIST): Renamed from lib_SOURCES, for
77489         consistency with the other modules.  Remove argmatch.c.
77490         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
77491         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
77492         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
77493         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
77494         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
77495         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
77496         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
77497         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
77498         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
77499         * modules/closeout (EXTRA_DIST): Add closeout.h.
77500         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
77501         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
77502         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
77503         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
77504         dirname.h; remove basename.c and stripslash.c.
77505         * modules/exclude (EXTRA_DIST): Add exclude.h.
77506         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
77507         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
77508         * modules/file-type (EXTRA_DIST): Add file-type.h.
77509         * modules/filemode (EXTRA_DIST): Add filemode.h.
77510         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
77511         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
77512         * modules/fpending (EXTRA_DIST): Add __fpending.h.
77513         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
77514         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
77515         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
77516         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
77517         * modules/getdate (EXTRA_DIST): Add getdate.c.
77518         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
77519         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
77520         * modules/getpass (EXTRA_DIST): Add getpass.h.
77521         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
77522         * modules/group-member (EXTRA_DIST): Add group-member.h.
77523         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
77524         * modules/hash (EXTRA_DIST): Add hash.h.
77525         * modules/human (EXTRA_DIST): Add human.h.
77526         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
77527         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
77528         * modules/lchown (EXTRA_DIST): Add lchown.h.
77529         * modules/long-options (EXTRA_DIST): Add long-options.h.
77530         * modules/lstat (EXTRA_DIST): Add lstat.h.
77531         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
77532         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
77533         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
77534         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
77535         * modules/memxor (EXTRA_DIST): Add memxor.h.
77536         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
77537         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
77538         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
77539         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
77540         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
77541         * modules/physmem (EXTRA_DIST): Add physmem.h.
77542         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
77543         * modules/posixver (EXTRA_DIST): Add posixver.h.
77544         * modules/quote (EXTRA_DIST): Add quote.h.
77545         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
77546         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
77547         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
77548         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
77549         regex_internal.h regexec.c.
77550         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
77551         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
77552         * modules/same (EXTRA_DIST): Add same.h.
77553         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
77554         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
77555         * modules/savedir (EXTRA_DIST): Add savedir.h.
77556         * modules/sha1 (EXTRA_DIST): Add sha1.h.
77557         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
77558         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
77559         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
77560         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
77561         * modules/strdup (EXTRA_DIST): Add strdup.h.
77562         * modules/strftime (EXTRA_DIST): Add strftime.h.
77563         * modules/strndup (EXTRA_DIST): Add strndup.h.
77564         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
77565         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
77566         * modules/time_r (EXTRA_DIST): Add time_r.h.
77567         * modules/timespec (EXTRA_DIST): Add timespec.h.
77568         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
77569         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
77570         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
77571         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
77572         * modules/userspec (EXTRA_DIST): Add userspec.h.
77573         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
77574         * modules/utimens (EXTRA_DIST): Add utimens.h.
77575         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
77576         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
77577         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
77578         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
77579         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
77580         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
77581         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
77582         * modules/yesno (EXTRA_DIST): Add yesno.h.
77583
77584 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
77585
77586         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
77587
77588         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
77589         * m4/dev-ino.m4, same-inode.m4: Remove.
77590
77591         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
77592         * m4/acl.m4 (AC_FUNC_ACL):
77593         * m4/backupfile.m4 (gl_BACKUPFILE):
77594         * m4/c-strtod.m4 (gl_C99_STRTOLD):
77595         * m4/canon-host.m4 (gl_CANON_HOST):
77596         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
77597         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
77598         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
77599         * m4/cloexec.m4 (gl_CLOEXEC):
77600         * m4/close-stream.m4 (gl_CLOSE_STREAM):
77601         * m4/closeout.m4 (gl_CLOSEOUT):
77602         * m4/dirfd.m4 (gl_FUNC_DIRFD):
77603         * m4/dirname.m4 (gl_DIRNAME):
77604         * m4/exclude.m4 (gl_EXCLUDE):
77605         * m4/exitfail.m4 (gl_EXITFAIL):
77606         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
77607         * m4/file-type.m4 (gl_FILE_TYPE):
77608         * m4/filemode.m4 (gl_FILEMODE):
77609         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
77610         * m4/fpending.m4 (gl_FUNC_FPENDING):
77611         * m4/fprintftime.m4 (gl_FPRINTFTIME):
77612         * m4/fts.m4 (gl_FUNC_FTS):
77613         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
77614         * m4/getdate.m4 (gl_GETDATE):
77615         * m4/gethrxtime.m4 (gl_GETHRXTIME):
77616         * m4/getpagesize.m4 (gl_GETPAGESIZE):
77617         * m4/getpass.m4 (gl_FUNC_GETPASS):
77618         * m4/gettime.m4 (gl_GETTIME):
77619         * m4/getugroups.m4 (gl_GETUGROUPS):
77620         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
77621         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
77622         * m4/hard-locale.m4 (gl_HARD_LOCALE):
77623         * m4/hash.m4 (gl_HASH):
77624         * m4/idcache.m4 (gl_IDCACHE):
77625         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
77626         * m4/lchown.m4 (gl_FUNC_LCHOWN):
77627         * m4/long-options.m4 (gl_LONG_OPTIONS):
77628         * m4/lstat.m4 (gl_FUNC_LSTAT):
77629         * m4/md5.m4 (gl_MD5):
77630         * m4/memcasecmp.m4 (gl_MEMCASECMP):
77631         * m4/memcoll.m4 (gl_MEMCOLL):
77632         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
77633         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
77634         * m4/memxor.m4 (gl_MEMXOR):
77635         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
77636         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
77637         * m4/modechange.m4 (gl_MODECHANGE):
77638         * m4/mountlist.m4 (gl_MOUNTLIST):
77639         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
77640         * m4/openat.m4 (gl_FUNC_OPENAT):
77641         * m4/pathmax.m4 (gl_PATHMAX):
77642         * m4/physmem.m4 (gl_PHYSMEM):
77643         * m4/posixtm.m4 (gl_POSIXTM):
77644         * m4/posixver.m4 (gl_POSIXVER):
77645         * m4/quote.m4 (gl_QUOTE):
77646         * m4/quotearg.m4 (gl_QUOTEARG):
77647         * m4/readtokens.m4 (gl_READTOKENS):
77648         * m4/readutmp.m4 (gl_READUTMP):
77649         * m4/regex.m4 (gl_REGEX):
77650         * m4/safe-read.m4 (gl_SAFE_READ):
77651         * m4/safe-write.m4 (gl_SAFE_WRITE):
77652         * m4/same.m4 (gl_SAME):
77653         * m4/save-cwd.m4 (gl_SAVE_CWD):
77654         * m4/savedir.m4 (gl_SAVEDIR):
77655         * m4/settime.m4 (gl_SETTIME):
77656         * m4/sha1.m4 (gl_SHA1):
77657         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
77658         * m4/stat-macros.m4 (gl_STAT_MACROS):
77659         * m4/stat-time.m4 (gl_STAT_TIME):
77660         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
77661         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
77662         * m4/strdup.m4 (gl_FUNC_STRDUP):
77663         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
77664         * m4/strndup.m4 (gl_FUNC_STRNDUP):
77665         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
77666         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
77667         * m4/time_r.m4 (gl_TIME_R):
77668         * m4/timespec.m4 (gl_TIMESPEC):
77669         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
77670         * m4/unlinkdir.m4 (gl_UNLINKDIR):
77671         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
77672         * m4/userspec.m4 (gl_USERSPEC):
77673         * m4/utimecmp.m4 (gl_UTIMECMP):
77674         * m4/utimens.m4 (gl_UTIMENS):
77675         * m4/xalloc.m4 (gl_XALLOC):
77676         * m4/xgetcwd.m4 (gl_XGETCWD):
77677         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
77678         * m4/xreadlink.m4 (gl_XREADLINK):
77679         * m4/xstrtod.m4 (gl_XSTRTOD):
77680         * m4/yesno.m4 (gl_YESNO):
77681         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
77682         to get the necessary .h files and whatnot.
77683
77684 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
77685             Bruno Haible  <bruno@clisp.org>
77686
77687         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
77688         /bin/sh understanding of '!' conditional negation.
77689
77690 2006-08-21  Jim Meyering  <jim@meyering.net>
77691
77692         * modules/openat (Depends-on): Really alphabetize.
77693
77694         * modules/acl (Depends-on): Add error and quote.
77695
77696         * check-module (find_included_lib_files): Add at-func.c to the
77697         ok-to-include-more-than-once white list.
77698
77699         * modules/openat (Depends-on): Add lstat.  Alphabetize.
77700
77701 2006-08-21  Bruno Haible  <bruno@clisp.org>
77702
77703         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
77704         Emit a pkgdata_DATA variable only if some snippets add contents to it.
77705         Reported by Martin Lambers <marlam@marlam.de>.
77706
77707 2006-08-21  Bruno Haible  <bruno@clisp.org>
77708
77709         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
77710         specify an installation location, don't emit a noinst_LIBRARIES or
77711         noinst_LTLIBRARIES assignment.
77712
77713 2006-08-21  Bruno Haible  <bruno@clisp.org>
77714
77715         BeOS portability.
77716         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
77717         BeOS has mbrtowc() but no <wctype.h>.
77718
77719 2006-08-21  Bruno Haible  <bruno@clisp.org>
77720
77721         BeOS portability.
77722         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
77723         exist.
77724
77725 2006-08-21  Bruno Haible  <bruno@clisp.org>
77726
77727         BeOS portability.
77728         * lib/mbchar.h: Include <wctype.h> only if it exists.
77729
77730 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
77731
77732         Remove files that are no longer needed by their respective modules.
77733         * m4/obstack.m4: Remove.
77734         * m4/strerror_r.m4: Remove.
77735         * m4/uint32_t.m4: Remove.
77736         * m4/uintptr_t.m4: Remove.
77737         * m4/ullong_max.m4: Remove.
77738         * m4/xstrtoimax.m4: Remove.
77739         * m4/xstrtoumax.m4: Remove.
77740
77741         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
77742         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
77743         dependencies now capture this.
77744
77745         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
77746         Do not use AC_LIBSOURCES, since gnulib modules now do this.
77747         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
77748         * m4/human.m4 (gl_HUMAN): Likewise.
77749         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
77750         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
77751
77752         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
77753
77754         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
77755         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
77756         stdint.
77757         * m4/human.m4 (gl_HUMAN): Likewise.
77758         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
77759         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
77760         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
77761         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
77762         * m4/xstrtol (gl_XSTRTOL): Likewise.
77763
77764         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
77765         AC_TYPE_LONG_LONG_INT.
77766         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
77767         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
77768         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
77769         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
77770
77771         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
77772         on stdbool.
77773
77774         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
77775         (gl_PREREQ_XSTRTOUL): Remove.
77776
77777         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
77778
77779         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
77780         mode.
77781
77782 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
77783
77784         Add and change modules to make it easier for coreutils to use
77785         gnulib-tool.
77786         * modules/backupfile (Files): Remove m4/d-ino.m4.
77787         (Depends-on): Add d-ino.
77788         * modules/cycle-check (Depends-on): Add stdint.
77789         (lib_SOURCES): Add cycle-check.h.
77790         * modules/d-ino: New module.
77791         * modules/d-type: New module.
77792         * modules/error (Files): Remove m4/strerror_r.m4.
77793         * modules/filemode (Files): Add m4/st_dm_mode.m4.
77794         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
77795         m4/inttypes_h.m4, m4/uintmax_t.m4.
77796         (Depends-on): Add stdint.
77797         (lib_SOURCES): Add fsusage.h.
77798         * modules/getcwd (Files): Remove d-ino.m4.
77799         (Depends-on): Add d-ino.
77800         * modules/getndelim2 (Depends-on): Add stdint.
77801         * modules/glob (Files): Remove m4/d-type.m4.
77802         (Depends-on): Add d-type.
77803         * modules/host-os: New module.
77804         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
77805         m4/inttypes_h.m4, m4/uintmax_t.m4.
77806         * Depends-on: Add stdint.
77807         (lib_SOURCES): Add human.h.
77808         * modules/inttostr (Files): Remove m4/intmax_t.m4,
77809         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
77810         m4/uintmax_t.m4, m4/ulonglong.m4.
77811         (Depends-on): Add stdint.
77812         (EXTRA_DIST): Add inttostr.h.
77813         * modules/lchmod: New module.
77814         * modules/link-follow: New module.
77815         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
77816         (Depends-on): Add lchmod.
77817         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
77818         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
77819         (Depends-on): Add stdint.
77820         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
77821         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
77822         (Depends-on): Add stdint.
77823         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
77824         * modules/perl: New module.
77825         * modules/regex (Depends-on): Add stdint.
77826         * modules/rmdir-errno: New module.
77827         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
77828         m4/intmax_t.m4.
77829         (Depends-on): Add stdint.
77830         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
77831         m4/uintmax_t.m4.
77832         (Depends-on): Add stdint.
77833         * modules/unlink-busy: New module.
77834         * modules/utimecmp (Depends-on): Add stdint.
77835         * modules/uptime: New module.
77836         * modules/winsz-ioctl: New module.
77837         * modules/winsz-termios: New module.
77838         * modules/xnanosleep (Depends-on): Add nanosleep.
77839         * modules/ullong_max: Remove.
77840         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
77841         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
77842         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
77843         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
77844         (Depends-on): Add inttypes.
77845         (lib_SOURCES): Add xstrtol.h.
77846         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
77847         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
77848         * MODULES.html.sh: Move 'assert' into the assert section.
77849         Move 'dummy' into the linking section.
77850         Remove ullong_max.
77851         Add section for compatibility checks for POSIX:2001 functions,
77852         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
77853         winsz-ioctl, and winsz-termios into it.
77854         Add lchmod.
77855         Add top-level Misc section and put host-os, perl, and uptime
77856         into it.
77857
77858 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
77859
77860         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
77861         now assume the stdint module.  Do not include inttypes.h.
77862         * lib/fsusage.h: Likewise.
77863         * lib/getndelim2.c: Likewise.
77864         * lib/human.h: Likewise.
77865         * lib/inttostr.h: Likewise.
77866         * lib/obstack.c: Likewise.
77867         * lib/regex_internal.h: Likewise.
77868         * lib/tempname.c: Likewise.
77869         * lib/utimecmp.c: Likewise.
77870         * lib/xstrtol.h: Likewise.
77871
77872         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
77873
77874         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
77875         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
77876         * lib/xtime.h: Likewise.
77877
77878 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
77879
77880         * modules/openat (Files): Add lib/fchmodat.c.
77881         Fixes problem reported by Jay Youngman.
77882
77883 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
77884
77885         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
77886         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
77887
77888 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
77889             Bruno Haible  <bruno@clisp.org>
77890
77891         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
77892         and is a script that invokes bison. Tighten the code. Add comments.
77893
77894 2006-08-18  Jim Meyering  <jim@meyering.net>
77895
77896         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
77897         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
77898         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
77899         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
77900
77901 2006-08-18  Bruno Haible  <bruno@clisp.org>
77902
77903         * modules/bison-i18n: New file.
77904         * MODULES.html.sh (Internationalization functions): Add it.
77905
77906 2006-08-18  Bruno Haible  <bruno@clisp.org>
77907
77908         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
77909         sys/statvfs.h. When getmntinfo was found, check its declaration and
77910         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
77911
77912 2006-08-18  Bruno Haible  <bruno@clisp.org>
77913
77914         * m4/bison-i18n.m4: New file, from bison.
77915
77916 2006-08-18  Bruno Haible  <bruno@clisp.org>
77917
77918         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
77919         (ME_DUMMY): Treat "kernfs" as a dummy.
77920         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
77921
77922 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
77923
77924         Update from coreutils.
77925
77926         2006-08-15  Jim Meyering  <jim@meyering.net>
77927
77928         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
77929
77930         2006-01-17  Jim Meyering  <jim@meyering.net>
77931
77932         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
77933
77934         2006-01-11  Jim Meyering  <jim@meyering.net>
77935
77936         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
77937         Check for the lchmod function.
77938
77939 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
77940
77941         Update from coreutils.
77942
77943         * lib/__fpending.h: Add copyright notice.
77944         * lib/fprintftime.h: Likewise.
77945         * lib/savedir.c: Use (C) in copyright notice.
77946         * lib/savedir.h: Likewise.
77947
77948         2006-08-15  Jim Meyering  <jim@meyering.net>
77949
77950         * lib/at-func.c: New file, with the logic of all emulated at-functions.
77951         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
77952         in support of the EXPECTED_ERRNO macro.
77953         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
77954         definitions.  Instead, define the appropriate symbols and include
77955         "at-func.c".
77956         * lib/mkdirat.c (mkdirat): Likewise.
77957         * lib/fchmodat.c (fchmodat): Likewise.
77958         (ENOSYS): Remove definition.
77959         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
77960         it.  Don't include "unistd--.h" -- it wasn't ever used.
77961
77962         2006-01-17  Jim Meyering  <jim@meyering.net>
77963
77964         Rewrite fts.c not to change the current working directory,
77965         by using openat, fstatat, fdopendir, etc..
77966
77967         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
77968         (HAVE_OPENAT_SUPPORT): Define.
77969         [_LIBC] (fchdir): Don't undef or define; no longer used.
77970         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
77971         Now, this `function' always succeeds, and consumes its file descriptor
77972         parameter -- so callers must not close such FDs.  Update callers.
77973         (diropen_fd, opendirat, cwd_advance_fd): New functions.
77974         (diropen): Add parameter, SP.  Adjust all callers.
77975         Implement using diropen_fd, rather than open.
77976         (fts_open): Initialize new member, fts_cwd_fd.
77977         Remove fts_rft-setting code.
77978         (fts_close): Close fts_cwd_fd, if necessary.
77979         (__opendir2): Define in terms of opendir or opendirat,
77980         depending on whether the FST_NOCHDIR flag is set.
77981         (fts_build): Since fts_safe_changedir consumes its FD, and since
77982         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
77983         and close the dup'd file descriptor upon failure.
77984         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
77985         (fts_safe_changedir): Tweak semantics to reflect that this function
77986         now calls cwd_advance_fd and hence consumes its FD argument.
77987         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
77988         [struct FTS] (fts_rft): Remove now-unused member.
77989         [struct FTS] (fts_cycle.state): Improve comment.
77990
77991         * lib/openat.c (openat_needs_fchdir): New function.
77992         * lib/openat.h (openat_needs_fchdir): Declare it.
77993
77994 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
77995
77996         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
77997         Problem and fix reported by Pádraig Brady in
77998         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
77999
78000 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
78001
78002         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
78003
78004 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
78005
78006         * lib/memcoll.c (memcoll): Optimize for the common case where the
78007         arguments are bytewise equal.
78008
78009 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
78010
78011         * doc/regexprops-generic.texi: Add a copyright notice.
78012
78013 2006-08-15  Bruno Haible  <bruno@clisp.org>
78014
78015         * modules/tmpdir (License): Change to LGPL.
78016
78017 2006-08-15  Bruno Haible  <bruno@clisp.org>
78018
78019         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
78020         module.
78021
78022 2006-08-14  Simon Josefsson  <jas@extundo.com>
78023
78024         * config/srclist.txt: Add gnupload.
78025
78026 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
78027
78028         Change copyright notice from LGPL 2 to GPL 2, since that's the
78029         standard form used in the gnulib repository.
78030         * tests/test-lock.c: Likewise.
78031         * tests/test-stdint.c: Likewise.
78032         * tests/test-tls.c: Likewise.
78033
78034         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
78035         prelude-manager.  User shorter URLs for GNU projects, without '?'.
78036         Add copyright notice.
78037
78038         * check-module: Add copyright notice.  Output a copyright
78039         notice if "--version" is specified.
78040         * modules/COPYING: New file.
78041         * tests/test-getaddrinfo.c: Add copyright notice.
78042         * tests/test-verify.c: Likewise.
78043
78044 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
78045
78046         Change copyright notice from LGPL 2 to GPL 2, since that's the
78047         standard form used in the gnulib repository.
78048         * lib/lock.c: LGPL -> GPL.
78049         * lib/lock.h: Likewise.
78050         * lib/strnlen1.c: Likewise.
78051         * lib/strnlen1.h: Likewise.
78052         * lib/tls.c: Likewise.
78053         * lib/tls.h: Likewise.
78054         * lib/tmpdir.c: Likewise.
78055
78056         * lib/TODO: Remove; this belongs only in coreutils.
78057
78058 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
78059
78060         Add copyright notices to long-enough files that lack them, since
78061         otherwise the files aren't clearly free.  Use the same notice that
78062         getdate.texi already uses.
78063         * doc/alloca-opt.texi: Add copyright notice.
78064         * doc/alloca.texi: Likewise.
78065         * doc/ctime.texi: Likewise.
78066         * doc/functions.texi: Likewise.
78067         * doc/gcd.texi: Likewise.
78068         * doc/gnulib-tool.texi: Likewise.
78069         * doc/inet_ntoa.texi: Likewise.
78070         * doc/visibility.texi: Likewise.
78071
78072         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
78073         * doc/quote.texi: Add copyright notice.
78074
78075         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
78076         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
78077         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
78078         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
78079         is now obsolete, and give a pointer to the Sun list.
78080         Add copyright notice.
78081
78082 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
78083
78084         * config/srclistvars.sh: Add copyright notice.
78085
78086 2006-08-14  Eric Blake  <ebb9@byu.net>
78087
78088         Import the following change from libc:
78089
78090         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
78091
78092         Upstream bug 2997.
78093         * lib/misc/error.c: Add space between program name and message if file
78094         name is missing.
78095
78096 2006-08-12  Karl Berry  <karl@gnu.org>
78097
78098         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
78099         remove, these originate in gnulib now.
78100
78101 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78102
78103         * doc/Makefile (standards.info standards.html standards.dvi):
78104         Also depend on make-stds.texi.
78105
78106 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
78107
78108         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
78109         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
78110
78111         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
78112         in wchar_t.  Problem reported by Eric Blake.
78113
78114         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
78115         LEN is smaller than SIZE.  Suggested by Bruno Haible.
78116         Also, help the compiler to keep LEN in a register.
78117
78118 2006-08-11  Eric Blake  <ebb9@byu.net>
78119
78120         * users.txt: Sort.  Add tar.
78121
78122 2006-08-11  Bruno Haible  <bruno@clisp.org>
78123
78124         * users.txt: New file.
78125
78126 2006-08-11  Bruno Haible  <bruno@clisp.org>
78127
78128         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
78129         before <wchar.h>. Needed for OSF/1 and BSD/OS.
78130
78131 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
78132
78133         * modules/snprintf (Depends-on): Remove minmax.
78134         (Maintainer): Add self and Bruno.
78135
78136 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
78137
78138         * lib/.cppi-disable: Add snprintf.h, socket_.h.
78139         * lib/snprintf.c: Include <errno.h> and <limits.h>.
78140         (EOVERFLOW): Define if the system does not.
78141         Do not include "minmax.h"; it wasn't used.
78142         (snprintf): Don't assume size_t promotes to an unsigned type.
78143         Fix bug when generated string was too long for the buffer: the
78144         buffer's contents are supposed to be the initial prefix of the
78145         output.  Don't assume vasnprintf returns EOVERFLOW if the size
78146         exceeds INT_MAX; do the check ourselves.
78147
78148         Import the following changes from libc:
78149
78150         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
78151
78152         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
78153         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
78154         set wc to the byte which couldn't be converted.
78155         (re_string_reconstruct): Don't clear valid_raw_len before calling
78156         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
78157         tip_context using re_string_context_at.
78158
78159         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
78160
78161         * lib/posix/regex.h: g++ still cannot handled [restrict].
78162
78163         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
78164
78165         * lib/posix/regex.h: Remove special handling for VMS.
78166
78167 2006-08-10  Jim Meyering  <jim@meyering.net>
78168
78169         * modules/same-inode: New module.
78170         * modules/dev-ino: New module.
78171         * modules/cycle-check: Depend on these modules, rather than simply
78172         including their .h files.
78173         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
78174         required via m4/cycle-check.m4.
78175         * modules/same: Depend on new same-inode module, rather than
78176         including same-inode.h.
78177         * modules/chdir-safer: New file.
78178
78179         * modules/chown (Depends-on): Add stat-macros.
78180
78181 2006-08-10  Jim Meyering  <jim@meyering.net>
78182
78183         * m4/cycle-check.m4: New file.
78184         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
78185         * m4/dev-ino.m4, m4/same-inode.m4: New files.
78186
78187 2006-08-10  Eric Blake  <ebb9@byu.net>
78188
78189         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
78190         in from original proposal.
78191
78192 2006-08-10  Eric Blake  <ebb9@byu.net>
78193         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
78194
78195         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
78196         namespace.
78197
78198 2006-08-10  Bruno Haible  <bruno@clisp.org>
78199
78200         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
78201         as well.
78202
78203 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
78204
78205         Sync from coreutils.
78206
78207         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
78208
78209         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
78210         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
78211
78212 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
78213
78214         * modules/restrict: Remove; no longer needed now that we assume
78215         Autoconf 2.59 or later.
78216         * MODULES.html.sh: Remove 'restrict'.
78217         * modules/argp (Depends-on): Remove 'restrict'.
78218         * modules/base64 (Depends-on): Likewise.
78219         * modules/gc (Depends-on): Likewise.
78220         * modules/getaddrinfo (Depends-on): Likewise.
78221         * modules/glob (Depends-on): Likewise.
78222         * modules/inet_ntop (Depends-on): Likewise.
78223         * modules/inet_pton (Depends-on): Likewise.
78224         * modules/memxor (Depends-on): Likewise.
78225         * modules/regex (Depends-on): Likewise.
78226         * modules/strtok_r (Depends-on): Likewise.
78227         * modules/time_r (Depends-on): Likewise.
78228
78229 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
78230
78231         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
78232         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
78233         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
78234         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
78235         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
78236         * m4/memxor.m4 (gl_MEMXOR): Likewise.
78237         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
78238         gl_C_RESTRICT replaced by AC_C_RESTRICT.
78239
78240         Merge from coreutils.
78241         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
78242         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
78243         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
78244         * m4/time_r.m4 (gl_TIME_R): Likewise.
78245
78246 2006-08-09  Karl Berry  <karl@gnu.org>
78247
78248         * config/srclist.txt: no more gettext-tools, per Bruno.
78249
78250 2006-08-08  Eric Blake  <ebb9@byu.net>
78251
78252         * modules/verror: New module.
78253         * MODULES.html.sh: Document it.
78254
78255 2006-08-08  Eric Blake  <ebb9@byu.net>
78256
78257         * lib/verror.h, lib/verror.c: New files.
78258
78259 2006-08-08  Eric Blake  <ebb9@byu.net>
78260
78261         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
78262         verror_at_line output complies with GNU Coding Standards even when
78263         file is NULL.
78264
78265 2006-08-07  Bruno Haible  <bruno@clisp.org>
78266
78267         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
78268         versions of AIX.
78269         Reported by Ralf Wildenhues.
78270
78271 2006-08-07  Bruno Haible  <bruno@clisp.org>
78272
78273         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
78274         in an AC_DEFUN. Needed so that the autoconf snippets can use
78275         AC_REQUIRE.
78276
78277 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78278
78279         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
78280         Initialize pkgdata_DATA.
78281         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
78282         overriding it.
78283
78284 2006-08-06  Eric Blake  <ebb9@byu.net>
78285
78286         * lib/error.h: Fold in some upstream changes from glibc.
78287         * lib/error.c: Likewise.
78288
78289 2006-08-04  Bruno Haible  <bruno@clisp.org>
78290
78291         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
78292         Make the mostlyclean-local rule depend on mostlyclean-generic.
78293         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
78294
78295 2006-07-31  Bruno Haible  <bruno@clisp.org>
78296
78297         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
78298         <stdlib.h>, <string.h>.
78299
78300 2006-07-30  Bruno Haible  <bruno@clisp.org>
78301
78302         * modules/readlink (License): Change to LGPL.
78303
78304 2006-07-30  Bruno Haible  <bruno@clisp.org>
78305
78306         * modules/javaversion (Makefile.am): Distribute javaversion.java and
78307         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
78308         set PKGDATADIR to point to it.
78309
78310 2006-07-30  Bruno Haible  <bruno@clisp.org>
78311
78312         * modules/csharpexec (configure.ac): Comment out macro invocation.
78313         * modules/javaexec (configure.ac): Likewise.
78314         * modules/javacomp-script (configure.ac): Likewise.
78315
78316         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
78317
78318 2006-07-30  Bruno Haible  <bruno@clisp.org>
78319
78320         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
78321         linked-list.
78322
78323 2006-07-30  Bruno Haible  <bruno@clisp.org>
78324
78325         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
78326
78327 2006-07-30  Bruno Haible  <bruno@clisp.org>
78328
78329         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
78330         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
78331         get removed.
78332
78333 2006-07-29  Bruno Haible  <bruno@clisp.org>
78334
78335         Make it possible for gnulib-tool to work with locally modified or
78336         augmented gnulib repositories.
78337         * gnulib-tool (func_usage): Document --local-dir option.
78338         (local_gnulib_dir): New variable.
78339         Handle --local-dir option.
78340         (func_lookup_file): New function.
78341         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
78342         (func_get_description, func_get_filelist, func_get_description,
78343         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
78344         func_get_automake_snippet, func_get_include_directive,
78345         func_get_license, func_get_maintainer): Use func_lookup_file.
78346         (func_import, func_create_testdir): Use func_lookup_file.
78347
78348 2006-07-29  Bruno Haible  <bruno@clisp.org>
78349
78350         * modules/setenv (Depends-on): Add unistd.
78351
78352 2006-07-29  Bruno Haible  <bruno@clisp.org>
78353
78354         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
78355
78356 2006-07-29  Bruno Haible  <bruno@clisp.org>
78357
78358         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
78359
78360 2006-07-29  Bruno Haible  <bruno@clisp.org>
78361
78362         * gnulib-tool (import, update): If there is no Makefile.am, look at
78363         aclocal.m4, instead of bailing out.
78364
78365 2006-07-29  Bruno Haible  <bruno@clisp.org>
78366
78367         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
78368         Categorize the options by when they are useful.
78369
78370 2006-07-29  Bruno Haible  <bruno@clisp.org>
78371
78372         * gnulib-tool (func_usage): Document option --no-libtool.
78373         Handle option --no-libtool.
78374         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
78375         for changed semantics of $libtool variable.
78376         (func_import): Likewise. If libtool is not used, show this through
78377         an option --no-libtool.
78378         (func_create_testdir): Update.
78379
78380 2006-07-29  Bruno Haible  <bruno@clisp.org>
78381
78382         * gnulib-tool (func_import): Extend error message about missing
78383         --doc-base.
78384
78385 2006-07-29  Bruno Haible  <bruno@clisp.org>
78386
78387         * gnulib-tool (func_import): Don't create the $docbase directory if
78388         there is no file to store there.
78389
78390 2006-07-29  Bruno Haible  <bruno@clisp.org>
78391
78392         * gnulib-tool (autoconf_minversion): If a --dir option is given and
78393         relevant, look for configure.ac there, not in the current directory.
78394         Also use a simple search for AC_PREREQ, not "autoconf --trace".
78395
78396 2006-07-29  Bruno Haible  <bruno@clisp.org>
78397
78398         * gnulib-tool (SORT): New variable.
78399         (func_usage): Undocument --assume-autoconf option.
78400         Remove --assume-autoconf option handling.
78401         (autoconf_minversion): Determine from the contents of configure.ac.
78402         (func_import): Remove autoconf_minversion handling.
78403         Suggested by Eric Blake.
78404
78405 2006-07-29  Bruno Haible  <bruno@clisp.org>
78406
78407         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
78408
78409 2006-07-29  Bruno Haible  <bruno@clisp.org>
78410
78411         * config/srclist.txt (*setenv.[ch]): Remove rules.
78412
78413 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
78414
78415         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
78416
78417 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
78418
78419         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
78420         arpa/inet.h.
78421
78422 2006-07-28  Simon Josefsson  <jas@extundo.com>
78423
78424         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
78425         * modules/inet_pton (Depends-on): Likewise.
78426
78427 2006-07-28  Simon Josefsson  <jas@extundo.com>
78428
78429         * m4/netinet_in_h.m4: New file.
78430
78431 2006-07-28  Simon Josefsson  <jas@extundo.com>
78432
78433         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
78434         #include's.
78435
78436 2006-07-28  Simon Josefsson  <jas@extundo.com>
78437
78438         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
78439         #include's.
78440
78441 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
78442
78443         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
78444         setgid on directories only if they set these bits.
78445         * lib/modechange.h: Remove obsolete comment about masks.
78446
78447 2006-07-28  Eric Blake  <ebb9@byu.net>
78448
78449         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
78450         macro expansion.
78451
78452 2006-07-28  Bruno Haible  <bruno@clisp.org>
78453
78454         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
78455
78456 2006-07-28  Bruno Haible  <bruno@clisp.org>
78457
78458         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
78459
78460 2006-07-28  Bruno Haible  <bruno@clisp.org>
78461
78462         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
78463         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
78464         Define fallbacks.
78465         Avoids link error on FreeBSD 4.x.
78466         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
78467
78468         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
78469         encoding.
78470         * lib/mbswidth.c (iswcntrl): Likewise.
78471
78472 2006-07-27  Bruno Haible  <bruno@clisp.org>
78473
78474         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
78475         test.
78476
78477 2006-07-27  Bruno Haible  <bruno@clisp.org>
78478
78479         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
78480         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
78481         defined.
78482
78483 2006-07-26  Eric Blake  <ebb9@byu.net>
78484
78485         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
78486
78487 2006-07-26  Eric Blake  <ebb9@byu.net>
78488
78489         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
78490         like mingw that lack mkstemp.
78491         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
78492         avoid compilation warning on mingw.
78493
78494 2006-07-26  Bruno Haible  <bruno@clisp.org>
78495
78496         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
78497         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
78498         INT_FAST*_MIN, INTPTR_MIN.
78499
78500 2006-07-25  Bruno Haible  <bruno@clisp.org>
78501
78502         * modules/version-etc (Depends-on): Add stdarg.
78503
78504 2006-07-25  Bruno Haible  <bruno@clisp.org>
78505
78506         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
78507         complex commands.
78508
78509 2006-07-25  Bruno Haible  <bruno@clisp.org>
78510
78511         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
78512         defined in <stdarg.h> or config.h.
78513
78514 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
78515
78516         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
78517         (gl_STDIO_SAFER): Remove.
78518
78519 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
78520
78521         * MODULES.html.sh (File stream based Input/Output):
78522         Add fopen-safer, tmpfile-safer; remove stdio-safer.
78523         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
78524         * modules/fopen-safer, modules/tmpfile-safer: New files.
78525         * modules/stdio-safer: Remove.
78526
78527 2006-07-24  Bruno Haible  <bruno@clisp.org>
78528
78529         * modules/tmpdir: New file.
78530         * MODULES.html.sh (File system functions): Add it.
78531
78532 2006-07-24  Bruno Haible  <bruno@clisp.org>
78533
78534         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
78535         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
78536
78537 2006-07-24  Bruno Haible  <bruno@clisp.org>
78538
78539         * modules/clean-temp: New file.
78540
78541 2006-07-24  Bruno Haible  <bruno@clisp.org>
78542
78543         * m4/tmpdir.m4: New file, from GNU gettext.
78544
78545 2006-07-24  Bruno Haible  <bruno@clisp.org>
78546
78547         * lib/tmpdir.h: New file, from GNU gettext.
78548         * lib/tmpdir.c: New file, from GNU gettext.
78549
78550 2006-07-24  Bruno Haible  <bruno@clisp.org>
78551
78552         * lib/clean-temp.h: New file, from GNU gettext.
78553         * lib/clean-temp.c: New file, from GNU gettext.
78554
78555 2006-07-23  Eric Blake  <ebb9@byu.net>
78556
78557         * modules/stdio-safer (Files): Add tmpfile-safer.c.
78558         (Depends-on): Add binary-io.
78559
78560 2006-07-23  Eric Blake  <ebb9@byu.net>
78561
78562         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
78563
78564 2006-07-23  Eric Blake  <ebb9@byu.net>
78565
78566         * lib/tmpfile-safer.c: New file.
78567         * lib/stdio-safer.h (fopen_safer): Add prototype.
78568         * lib/stdio--.h (tmpfile): Make safer.
78569
78570 2006-07-23  Bruno Haible  <bruno@clisp.org>
78571
78572         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
78573         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
78574         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
78575         gl_linked_remove_at): Use it.
78576
78577 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
78578         and Simon Josefsson <jas@extundo.com>
78579
78580         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
78581
78582         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
78583
78584 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
78585
78586         * modules/close-stream: New file.
78587         * modules/closeout (Description): Make it clear that it exits
78588         with a diagnostic on error.
78589         (Depends-on): Add close-stream.  Remove fpending, stdbool.
78590         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
78591
78592 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
78593
78594         * m4/close-stream.m4: New file.
78595
78596 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
78597
78598         * lib/close-stream.c, lib/close-stream.h: New files.
78599
78600 2006-07-22  Bruno Haible  <bruno@clisp.org>
78601
78602         Merge from GNU gettext 0.15.
78603
78604         2006-05-01  Bruno Haible  <bruno@clisp.org>
78605
78606                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
78607
78608         2006-07-22  Bruno Haible  <bruno@clisp.org>
78609
78610                 * modules/javaversion: New file.
78611                 * MODULES.html.sh (Java): Add javaversion.
78612
78613         2006-03-12  Bruno Haible  <bruno@clisp.org>
78614
78615                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
78616
78617         2005-12-04  Bruno Haible  <bruno@clisp.org>
78618
78619                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
78620                 (untested).
78621
78622         2006-06-21  Bruno Haible  <bruno@clisp.org>
78623
78624                 Avoid warnings from recent versions of mcs.
78625                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
78626                 -o, -L, -r any more. Use options documented since mcs-1.0
78627                 instead. Similarly for -g.
78628
78629         2005-12-04  Bruno Haible  <bruno@clisp.org>
78630
78631                 * build-aux/csharpcomp.sh.in: Suffix for resources is
78632                 .resources, not .resource.
78633
78634         2005-07-09  Bruno Haible  <bruno@clisp.org>
78635
78636                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
78637                 add a .dll suffix.
78638                 Reported by Mark Junker <mjscod@gmx.de>.
78639
78640         2006-07-22  Bruno Haible  <bruno@clisp.org>
78641
78642                 * modules/gettext: Upgrade to gettext-0.15.
78643                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
78644                 m4/visibility.m4.
78645                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
78646
78647 2006-07-22  Bruno Haible  <bruno@clisp.org>
78648
78649         Merge from GNU gettext 0.15.
78650
78651         2006-03-25  Bruno Haible  <bruno@clisp.org>
78652
78653                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
78654
78655         2006-07-21  Bruno Haible  <bruno@clisp.org>
78656
78657                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
78658                 "1.1".
78659
78660         2006-05-09  Bruno Haible  <bruno@clisp.org>
78661
78662                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
78663                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
78664                 for the conftestver execution.
78665
78666         2006-05-01  Bruno Haible  <bruno@clisp.org>
78667
78668                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
78669                 optional target-version argument. Verify that the compiler
78670                 groks source of the specified source-version, or add -source
78671                 option as necessary. Verify that the compiler produces
78672                 bytecode in the specified target-version, or add -target and
78673                 -source options as necessary. Make the result of the test
78674                 available as variable CONF_JAVAC. Also log error output in
78675                 config.log.
78676
78677         2006-03-11  Bruno Haible  <bruno@clisp.org>
78678
78679                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
78680
78681         2006-05-09  Bruno Haible  <bruno@clisp.org>
78682
78683                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
78684                 CLASSPATH_SEPARATOR to a semicolon.
78685
78686         2006-03-12  Bruno Haible  <bruno@clisp.org>
78687
78688                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
78689                 available as variable CONF_JAVA, for subsequent autoconf
78690                 tests. Also log error output in config.log.
78691
78692         2006-07-19  Bruno Haible  <bruno@clisp.org>
78693
78694                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
78695                 that getline works on glibc2 systems. Needed to avoid trouble
78696                 in relocatable.c.
78697                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
78698
78699         2005-12-04  Bruno Haible  <bruno@clisp.org>
78700
78701                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
78702                 launcher (untested).
78703
78704         2005-12-04  Bruno Haible  <bruno@clisp.org>
78705
78706                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
78707
78708         2006-07-22  Bruno Haible  <bruno@clisp.org>
78709
78710                 * gettext.m4: Update from GNU gettext-0.15.
78711                 * nls.m4: Likewise.
78712                 * po.m4: Likewise.
78713                 * inttypes-pri.m4: Likewise.
78714                 * inttypes-h.m4: Renamed from inttypes.m4.
78715                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
78716
78717 2006-07-22  Bruno Haible  <bruno@clisp.org>
78718
78719         Merge from GNU gettext 0.15.
78720
78721         2005-07-05  Bruno Haible  <bruno@clisp.org>
78722
78723                 * printf-args.c (printf_fetchargs): Work around broken
78724                 definition of wint_t on mingw.
78725
78726         2005-02-12  Bruno Haible  <bruno@clisp.org>
78727
78728                 * xallocsa.h: Add extern "C" for C++.
78729
78730         2006-05-17  Bruno Haible  <bruno@clisp.org>
78731
78732                 Cygwin portability.
78733                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
78734
78735         2006-04-30  Bruno Haible  <bruno@clisp.org>
78736
78737                 * progreloc.c: Include <mach-o/dyld.h> if available.
78738                 (find_executable): Use _NSGetExecutablePath when possible.
78739
78740         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
78741
78742                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
78743                 function.
78744
78745         2005-12-29  Bruno Haible  <bruno@clisp.org>
78746
78747                 * progreloc.c (set_program_name_and_installdir): Fix
78748                 compilation error.
78749
78750         2005-12-04  Bruno Haible  <bruno@clisp.org>
78751
78752                 Cygwin portability.
78753                 * progreloc.c: Include <windows.h> also on Cygwin.
78754                 (find_executable): Add support for Cygwin.
78755                 (set_program_name_and_installdir): Handle also platforms with
78756                 nonempty EXEEXT.
78757
78758         2006-07-11  Bruno Haible  <bruno@clisp.org>
78759
78760                 * javacomp.c: Fix a comment.
78761                 Reported by Jim Meyering.
78762
78763         2006-04-30  Bruno Haible  <bruno@clisp.org>
78764
78765                 * javacomp.h (compile_java_class): Add source_version,
78766                 target_version arguments.
78767                 * javacomp.c: Rewritten to choose only a compiler that
78768                 respects the specified source_version and target_version.
78769
78770         2006-06-27  Bruno Haible  <bruno@clisp.org>
78771
78772                 Assume correct S_ISDIR macro.
78773                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
78774
78775         2006-07-22  Bruno Haible  <bruno@clisp.org>
78776
78777                 * javaversion.h: New file, from GNU gettext.
78778                 * javaversion.c: New file, from GNU gettext.
78779                 * javaversion.java: New file, from GNU gettext.
78780                 * javaversion.class: New file, from GNU gettext.
78781
78782         2006-05-17  Bruno Haible  <bruno@clisp.org>
78783
78784                 Cygwin portability.
78785                 * javaexec.c (execute_java_class): Test for jview program
78786                 also on Cygwin.
78787
78788         2006-04-09  Bruno Haible  <bruno@clisp.org>
78789
78790                 * fatal-signal.c: Don't include string.h.
78791                 (at_fatal_signal): Use a copying loop instead of memcpy.
78792
78793         2005-12-04  Bruno Haible  <bruno@clisp.org>
78794
78795                 * csharpexec.c: Add support for 'clix' launcher (untested).
78796                 (execute_csharp_using_sscli): New function.
78797                 (execute_csharp_program): Call it.
78798
78799         2006-06-21  Bruno Haible  <bruno@clisp.org>
78800
78801                 Avoid warnings from recent versions of mcs.
78802                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
78803                 -o, -L, -r any more. Use options documented since mcs-1.0
78804                 instead. Similarly for -g.
78805
78806         2005-07-09  Bruno Haible  <bruno@clisp.org>
78807
78808                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
78809                 add a .dll suffix.
78810                 Reported by Mark Junker <mjscod@gmx.de>.
78811
78812         2006-06-17  Bruno Haible  <bruno@clisp.org>
78813
78814                 * config.charset: Update for NetBSD 3.0.
78815
78816         2006-05-17  Bruno Haible  <bruno@clisp.org>
78817
78818                 Cygwin portability.
78819                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
78820
78821         2006-05-16  Bruno Haible  <bruno@clisp.org>
78822
78823                 * localcharset.c [CYGWIN]: Include <windows.h>.
78824                 (get_charset_aliases): For Cygwin, return the same CPxxx
78825                 aliases list as under WIN32.
78826                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
78827                 the environment variables. Fall back to GetACP().
78828
78829         2006-04-05  Bruno Haible  <bruno@clisp.org>
78830
78831                 * config.charset: Update Juan Manuel Guerrero's address.
78832
78833         2005-02-12  Bruno Haible  <bruno@clisp.org>
78834
78835                 * allocsa.h: Add extern "C" for C++.
78836
78837         2005-02-10  Bruno Haible  <bruno@clisp.org>
78838
78839                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
78840                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
78841
78842         2006-07-22  Bruno Haible  <bruno@clisp.org>
78843
78844                 * gettext.h: Update to GNU gettext-0.15.
78845
78846 2006-07-22  Bruno Haible  <bruno@clisp.org>
78847
78848         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
78849         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
78850         lib-prefix.m4, longdouble.m4, ssize_t.m4.
78851
78852 2006-07-21  Eric Blake  <ebb9@byu.net>
78853
78854         * modules/stdlib-safer: New file.
78855         * MODULES.html.sh (File stream based Input/Output): Add
78856         stdlib-safer.
78857
78858 2006-07-21  Eric Blake  <ebb9@byu.net>
78859
78860         * lib/stdlib-safer.h: New file from coreutils, required by
78861         stdlib--.h.
78862
78863 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
78864
78865         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
78866
78867 2006-07-20  Bruno Haible  <bruno@clisp.org>
78868
78869         * gnulib-tool: Recognize new option --assume-autoconf.
78870         (autoconf_minversion): New variable.
78871         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
78872
78873 2006-07-20  Bruno Haible  <bruno@clisp.org>
78874
78875         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
78876
78877 2006-07-19  Derek R. Price  <derek@ximbiot.com>
78878
78879         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
78880         Reindent and repaginate.
78881
78882 2006-07-19  Derek Price  <derek@ximbiot.com>
78883
78884         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
78885         Correct grammar.
78886
78887 2006-07-17  Bruno Haible  <bruno@clisp.org>
78888
78889         * modules/list: New file.
78890         * modules/array-list: New file.
78891         * modules/carray-list, modules/carray-list-tests: New files.
78892         * modules/linked-list, modules/linked-list-tests: New files.
78893         * modules/avltree-list, modules/avltree-list-tests: New files.
78894         * modules/rbtree-list, modules/rbtree-list-tests: New files.
78895         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
78896         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
78897         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
78898         * modules/oset: New file.
78899         * modules/array-oset: New file.
78900         * modules/avltree-oset, modules/avltree-oset-tests: New files.
78901         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
78902         * tests/test-carray_list.c: New file.
78903         * tests/test-linked_list.c: New file.
78904         * tests/test-avltree_list.c: New file.
78905         * tests/test-rbtree_list.c: New file.
78906         * tests/test-linkedhash_list.c: New file.
78907         * tests/test-avltreehash_list.c: New file.
78908         * tests/test-rbtreehash_list.c: New file.
78909         * tests/test-avltree_oset.c: New file.
78910         * tests/test-rbtree_oset.c: New file.
78911         * MODULES.html.sh (Container data structures): New section.
78912
78913 2006-07-17  Bruno Haible  <bruno@clisp.org>
78914
78915         * m4/gl_list.m4: New file.
78916
78917 2006-07-17  Bruno Haible  <bruno@clisp.org>
78918
78919         * lib/gl_list.h: New file.
78920         * lib/gl_list.c: New file.
78921         * lib/gl_array_list.h: New file.
78922         * lib/gl_array_list.c: New file.
78923         * lib/gl_carray_list.h: New file.
78924         * lib/gl_carray_list.c: New file.
78925         * lib/gl_linked_list.h: New file.
78926         * lib/gl_linked_list.c: New file.
78927         * lib/gl_anylinked_list1.h: New file.
78928         * lib/gl_anylinked_list2.h: New file.
78929         * lib/gl_avltree_list.h: New file.
78930         * lib/gl_avltree_list.c: New file.
78931         * lib/gl_anyavltree_list1.h: New file.
78932         * lib/gl_anyavltree_list2.h: New file.
78933         * lib/gl_rbtree_list.h: New file.
78934         * lib/gl_rbtree_list.c: New file.
78935         * lib/gl_anyrbtree_list1.h: New file.
78936         * lib/gl_anyrbtree_list2.h: New file.
78937         * lib/gl_anytree_list1.h: New file.
78938         * lib/gl_anytree_list2.h: New file.
78939         * lib/gl_linkedhash_list.h: New file.
78940         * lib/gl_linkedhash_list.c: New file.
78941         * lib/gl_anyhash_list1.h: New file.
78942         * lib/gl_anyhash_list2.h: New file.
78943         * lib/gl_avltreehash_list.h: New file.
78944         * lib/gl_avltreehash_list.c: New file.
78945         * lib/gl_rbtreehash_list.h: New file.
78946         * lib/gl_rbtreehash_list.c: New file.
78947         * lib/gl_anytreehash_list1.h: New file.
78948         * lib/gl_anytreehash_list2.h: New file.
78949
78950         * lib/gl_oset.h: New file.
78951         * lib/gl_oset.c: New file.
78952         * lib/gl_array_oset.h: New file.
78953         * lib/gl_array_oset.c: New file.
78954         * lib/gl_avltree_oset.h: New file.
78955         * lib/gl_avltree_oset.c: New file.
78956         * lib/gl_rbtree_oset.h: New file.
78957         * lib/gl_rbtree_oset.c: New file.
78958         * lib/gl_anytree_oset.h: New file.
78959
78960 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
78961
78962         * m4/mkancesdirs.m4: New file.
78963         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
78964         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
78965         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
78966         it.
78967
78968 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
78969
78970         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
78971         * lib/mkancesdirs.h: New files.
78972         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
78973         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
78974         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
78975         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
78976         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
78977         callers changed.  Revamp internals significantly, by not
78978         attempting to create directories that are temporarily more
78979         permissive than the final results.  Do not attempt to use
78980         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
78981         This removes some race conditions, fixes some bugs, and simplifies
78982         things.  Use new dirchownmod function to do owner and mode changes.
78983         * lib/mkdir-p.h: Likewise.
78984         * lib/modechange.c (octal_to_mode): New function.
78985         (struct mode_change): New member mentioned.
78986         (make_node_op_equals): New arg mentioned.  All callers changed.
78987         (mode_compile): Keep track of which mode bits the user has explicitly
78988         mentioned.
78989         (mode_adjust): New arg DIR, so that we implement the X op correctly.
78990         New arg PMODE_BITS, to keep track of which mode bits the user
78991         mentioned; it treats S_ISUID and S_ISGID speciall.
78992         All callers changed.
78993         * lib/modechange.h: Likewise.
78994
78995 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
78996
78997         * MODULES.html.sh: Add mkancestors.
78998         * modules/mkancesdirs: New module.
78999         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
79000         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
79001         The chdir-safer and afs files are now orphans; I'll remove them
79002         unless someone speaks up.
79003         Add lib/dirchownmod.c, lib/dirchownmod.h.
79004         (Depends-on): Remove alloca, chown, save-cwd, dirname.
79005         Add lchown, mkancesdirs.
79006         (Maintainer): Add self.
79007
79008 2006-07-15  Karl Berry  <karl@gnu.org>
79009
79010         * gnulib-tool: help message wording/arrangement.
79011
79012 2006-07-14  Simon Josefsson  <jas@extundo.com>
79013
79014         * doc/gnulib.texi (Libtool and Windows): New section.
79015
79016 2006-07-12  Simon Josefsson  <jas@extundo.com>
79017
79018         * modules/gendocs (License): Fix license, approved by Karl.
79019
79020 2006-07-12  Eric Blake  <ebb9@byu.net>
79021
79022         * MODULES.html.sh: Add gendocs.
79023
79024 2006-07-11  Eric Blake  <ebb9@byu.net>
79025
79026         * modules/fdl: New module, to install doc/fdl.texi.
79027         * MODULES.html.sh: Add new section for documentation modules.
79028         * gnulib-tool: Avoid space-tab.
79029         (--doc-base): New option, to manage files from doc.
79030
79031 2006-07-11  Eric Blake  <ebb9@byu.net>
79032
79033         * m4/absolute-header.m4: Fix comments to match recent change.
79034
79035 2006-07-11  Eric Blake  <ebb9@byu.net>
79036
79037         * gnulib-tool: List --doc-base before --tests-base.
79038
79039 2006-07-11  Derek R. Price  <derek@ximbiot.com>
79040
79041         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
79042
79043 2006-07-11  Bruno Haible  <bruno@clisp.org>
79044
79045         * README: Mention where to put documentation.
79046
79047 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79048
79049         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
79050
79051 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
79052
79053         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
79054         to stdint.m4.
79055
79056 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
79057
79058         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
79059         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
79060         "no/such/file/stdint.h" when there is no such file, so that
79061         the resulting C code can be parsed by dodgy compilers.
79062         Problems reported by Bob Proulx.
79063
79064 2006-07-10  Derek R. Price  <derek@ximbiot.com>
79065
79066         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
79067         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
79068         macros into the GNU _D_EXACT_NAMLEN.
79069         * lib/savedir.c:  Likewise.
79070         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
79071
79072 2006-07-10  Derek R. Price  <derek@ximbiot.com>
79073         and Paul Eggert  <eggert@cs.ucla.edu>
79074
79075         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
79076         * m4/savedir.m4:
79077         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
79078         macros into the GNU _D_EXACT_NAMLEN.
79079
79080 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
79081
79082         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
79083         around the absolute name, to work around a problem with the HP-UX
79084         11.23 native C compiler, reported by Bob Proulx.
79085
79086 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
79087
79088         * doc/maintain.texi, make-stds.texi: Sync from
79089         <http://savannah.gnu.org/projects/gnustandards>.
79090
79091 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
79092
79093         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
79094
79095 2006-07-09  Jim Meyering  <jim@meyering.net>
79096
79097         * m4/glob.m4: Remove a doubled word in a comment.
79098
79099 2006-07-09  Jim Meyering  <jim@meyering.net>
79100
79101         * lib/argp-pv.c: Remove a doubled word in a comment.
79102         * lib/check-version.c (check_version): Likewise.
79103         * lib/javacomp.c (compile_java_class): Likewise.
79104
79105 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
79106
79107         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
79108         for the benefit of people using Autoconf 2.60.  If you want to
79109         support older Autoconf versions you can copy m4/onceonly_2_57.m4
79110         (or m4/onceonly.m4, if pre-2.57) manually.
79111
79112 2006-07-08  Jim Meyering  <jim@meyering.net>
79113
79114         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
79115         comment.
79116         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
79117         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
79118         comment.
79119
79120 2006-07-08  Jim Meyering  <jim@meyering.net>
79121
79122         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
79123
79124 2006-07-07  Simon Josefsson  <jas@extundo.com>
79125
79126         * tests/test-crc.c: Change expected crc value, the test vector
79127         were probably computed using the old broken crc.c?
79128
79129 2006-07-06  Simon Josefsson  <jas@extundo.com>
79130
79131         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
79132         now the canonical place for the M4 file).
79133
79134         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
79135         from the sys_socket dependency now.
79136
79137         * modules/inet_pton (Files): Ditto.
79138
79139         * modules/inet_ntop (Files): Ditto.
79140
79141 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
79142
79143         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
79144         not gl_PREREQ_GETUSERSHELL.
79145
79146 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79147
79148         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
79149         with only one argument, for Autoconf 2.60.
79150         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
79151         expand to nothing, so add a shell command to avoid syntax error.
79152         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
79153
79154 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79155
79156         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
79157
79158 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
79159
79160         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
79161         no longer needed.  Check for isblank decl.
79162         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
79163         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
79164         of existence.
79165
79166 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
79167
79168         * lib/getloadavg.c: Use __VMS, not VMS.
79169         * lib/getopt.c: Likewise.
79170         * lib/getpagesize.h: Likewise.
79171         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
79172         and probably does not work.
79173
79174 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
79175
79176         * lib/.cppi-disable: Add wcwidth.
79177         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
79178         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
79179         (ISGRAPH): Remove.  All uses changed to isgraph.
79180         (FOLD) [!defined _LIBC]: Remove special case.
79181         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
79182         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
79183         HAVE_ISBLANK.
79184         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
79185         case.
79186
79187 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
79188
79189         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
79190         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
79191         brackets.  Other minor changes to suppress some compiler
79192         warnings.
79193
79194 2006-07-06  Derek R. Price  <derek@ximbiot.com>
79195         and Paul Eggert  <eggert@cs.ucla.edu>
79196
79197         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
79198         of invoking obsolescent AC_HEADER_DIRENT macro.
79199         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
79200         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
79201         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
79202         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
79203         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
79204         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
79205         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
79206         * m4/readdir.m4: Remove; no longer needed.
79207
79208 2006-07-06  Derek R. Price  <derek@ximbiot.com>
79209         and Paul Eggert  <eggert@cs.ucla.edu>
79210
79211         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
79212         Don't worry about this obsolete case any more.
79213         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
79214         directories.
79215         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
79216         worry about this obsolete case any more.
79217         * lib/fts.c: Likewise.
79218         * lib/getcwd.c: Likewise.
79219         * lib/glob.h: Likewise.
79220         * lib/savedir.c: Likewise.
79221
79222 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
79223
79224         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
79225         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
79226         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
79227         needed.
79228         All uses removed.
79229         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
79230         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
79231         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
79232         needed.
79233         * m4/getdate.m4 (gl_GETDATE): Likewise.
79234         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
79235         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
79236         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
79237         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
79238         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
79239         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
79240         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
79241         needed.
79242
79243 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
79244
79245         * lib/memcasecmp.c: Include <limits.h>.
79246         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
79247         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
79248         Don't assume isdigit succeeds only on '0' through '9'.
79249
79250 2006-07-05  Eric Blake  <ebb9@byu.net>
79251
79252         * modules/getaddrinfo (Depends-on): Add snprintf.
79253
79254 2006-07-05  Eric Blake  <ebb9@byu.net>
79255
79256         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
79257         to avoid 'header present but could not be compiled' on cygwin.
79258
79259 2006-07-05  Eric Blake  <ebb9@byu.net>
79260
79261         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
79262         missing from netdb.h.
79263         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
79264
79265 2006-07-05  Derek R. Price  <derek@ximbiot.com>
79266
79267         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
79268         no longer needed.
79269         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
79270         * m4/getdate.m4 (gl_GETDATE): Likewise.
79271         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
79272         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
79273         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
79274         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
79275         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
79276
79277 2006-07-05  Derek R. Price  <derek@ximbiot.com>
79278
79279         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
79280         All uses of is_space replaced by isspace.
79281         * lib/exit.h: Don't talk about STDC_HEADERS.
79282         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
79283         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
79284         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
79285         replaced by isprint etc.
79286         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
79287         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
79288         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
79289         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
79290         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
79291         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
79292
79293 2006-07-05  Bruno Haible  <bruno@clisp.org>
79294
79295         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
79296         the function exists, before testing against AIX.
79297         Reported by Martin Lambers <marlam@marlam.de>.
79298
79299 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
79300
79301         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
79302         From Mark D. Baushke.
79303
79304 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
79305
79306         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
79307         to the absolute name, not just one, to bypass Sun C 5.8's
79308         "warning: #include of /usr/include/... may be non-portable".
79309
79310 2006-07-04  Eric Blake  <ebb9@byu.net>
79311
79312         * modules/dirname-tests: New test module.
79313         * tests/test-dirname.c: New file, replacing dirname.c
79314         TEST_DIRNAME section that was recently deleted.
79315
79316 2006-07-04  Bruno Haible  <bruno@clisp.org>
79317
79318         Assume ANSI C header files and <ctype.h> functions.
79319         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
79320         (mbsnwidth): Use isprint, iscntrl instead.
79321
79322 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
79323
79324         Merge from coreutils.
79325         * MODULES.html.sh: Add xstrtold.
79326         * modules/xstrtold: New file.
79327         * modules/cycle-check (Files): Add lib/same-inode.h.
79328         * modules/dirname (Files): Add m4/double-slash-root.m4.
79329         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
79330         * modules/mkdir-p (Files): Add lib/same-inode.h.
79331         * modules/same (Files): Add lib/same-inode.h.
79332
79333 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
79334
79335         * m4/absolute-header.m4: Renamed from full-header-path.m4.
79336         This is to keep the terminology clean; POSIX talks about
79337         "absolute pathnames", not "full pathnames", but the GNU
79338         Coding Standards say to use "path" for something else;
79339         so use "absolute" to keep both sides happy.
79340         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
79341         Set gl_absolute_header, not gl_full_header_path.
79342         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
79343         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
79344         All uses changed.
79345
79346         Merge from coreutils.
79347
79348         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
79349
79350         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
79351         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
79352         want to require the building of c-strtod.o.
79353         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
79354         needs -lm directly.
79355         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
79356
79357         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
79358
79359         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
79360         --as-needed option if available.  Problem reported by Albert Chin in
79361         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
79362         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
79363         cc merely issues a bunch of annoying warnings for --as-needed
79364         (this problem was reported by Bob Proulx).  Also, try linking with
79365         -lm to detect a bug in binutils 2.16 (this problem was reported
79366         by Ralf Wildenhues).
79367
79368         2006-06-18  Jim Meyering  <jim@meyering.net>
79369
79370         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
79371         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
79372         macro.
79373         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
79374         also check for glibc-2.4's abort-inducing bug.
79375
79376         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
79377         Low-probability clean-up should be to use rmdir to get rid of
79378         the just-created directory, not unlink.
79379
79380         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
79381         configure fail, and request a bug report to inform us about it.
79382         Add a comment that, barring reports to the contrary, in 2007 we'll
79383         assume ftruncate is universally available.
79384
79385         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
79386
79387         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
79388
79389         2006-03-12  Jim Meyering  <jim@meyering.net>
79390
79391         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
79392         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
79393         * m4/same.m4 (gl_SAME): Likewise.
79394         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
79395
79396         2006-03-11  Eric Blake  <ebb9@byu.net>
79397
79398         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
79399         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
79400         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
79401         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
79402
79403 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
79404
79405         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
79406         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
79407         reported by Mark D. Baushke, one in
79408         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
79409
79410         Merge from coreutils.
79411
79412         * lib/.cppi-disable: Add stdint_.h.
79413         * lib/.cvsignore: Add stdint.h.
79414
79415         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
79416
79417         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
79418         both double and long double versions.
79419         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
79420         * lib/xstrtold.c: New file.
79421         * lib/xstrtod.h (xstrtold): New decl.
79422
79423         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
79424
79425         * lib/filemode.c (setst): Remove.
79426         (strmode): Rewrite to avoid setst.  This makes the code shorter,
79427         (arguably) clearer, and the generated code is a bit smaller on my
79428         Debian GNU/Linux stable x86 host.
79429
79430         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
79431
79432         * lib/filemode.c: Include "filemode.h" first, to test the interface.
79433         Assume that filemode.h includes sys/types.h and sys/stat.h.
79434         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
79435         (ftypelet): Reorder to put common cases first, for efficiency.
79436         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
79437         to do 'M'.
79438         (strmode): Renamed from mode_string, and now stores 12 bytes instead
79439         of 10, for compatibility with FreeBSD.  All callers changed.
79440         (filemodestring): Now stores 12 bytes instead of 10, and sets file
79441         types that can't be deduced solely from st_mode.  First arg is now a
79442         const pointer.
79443         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
79444         (strmode): Renamed from mode_string.
79445         (filemodestring): New decl.
79446         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
79447         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
79448         needed.
79449         (S_ISPORT, S_ISWHT): New macros, if not already defined.
79450
79451         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
79452
79453         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
79454         fsusage.h now does that.  Include fsusage.h first, to test interface.
79455         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
79456         at most one method (the old code could have generated decls that
79457         didn't conform to C89, not that this was ever exercised).
79458         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
79459
79460         2006-03-19  Jim Meyering  <jim@meyering.net>
79461
79462         Work even in a chroot where d_ino values for entries in "/"
79463         don't match the stat.st_ino values for the same names.
79464         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
79465         number, iterate through all entries again, using lstat instead.
79466         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
79467         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
79468
79469         * lib/getcwd.c (__getcwd): Clarify a comment.
79470         Use memcpy in place of a call to strcpy.
79471
79472         2006-03-12  Jim Meyering  <jim@meyering.net>
79473
79474         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
79475         matches that of the current directory (which we're about to chdir ".."
79476         out of), then save the dev-ino of the parent, instead.
79477
79478         * lib/same-inode.h (SAME_INODE): New file/macro.
79479         * lib/chdir-safer.c (SAME_INODE): Remove definition.
79480         Include "same-inode.h", instead.
79481         * lib/same.c: Likewise.
79482         * lib/cycle-check.h: Include "same-inode.h".
79483         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
79484         * lib/cycle-check.c (SAME_INODE): Remove definition.
79485         * lib/root-dev-ino.h: Include "same-inode.h".
79486
79487         2006-03-11  Eric Blake  <ebb9@byu.net>
79488
79489         * lib/same.c (same_name): s/base_name/last_component/
79490         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
79491         * lib/filenamecat.c (file_name_concat): Likewise.
79492
79493         2006-03-11  Eric Blake  <ebb9@byu.net>,
79494                     Paul Eggert  <eggert@cs.ucla.edu>
79495
79496         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
79497         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
79498         drive prefix.
79499         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
79500         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
79501         (last_component): New method.
79502         * lib/dirname.c (dir_len): Determine when drive letters need a
79503         subsequent slash.  Preserve // when it is special.
79504         (dir_name): Don't append dot when drive letter is absolute.
79505         [TEST_DIRNAME]: Move into a full-blown gnulib test.
79506         * lib/basename.c (base_name): New semantics - malloc the result.
79507         Preserve // when it is special.  Preserve relative files that look
79508         like drive letters.
79509         (base_len): Preserve // when it is special.
79510         (last_component): New method, similar to old base_name semantics.
79511         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
79512         base_name.  Strip redundant slashes from ///.
79513
79514 2006-07-03  Jim Meyering  <jim@meyering.net>
79515
79516         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
79517         macro is used before the first cycle_check call.
79518
79519 2006-07-03  Eric Blake  <ebb9@byu.net>
79520
79521         * modules/dirname (Depends-on): Add xstrndup.
79522
79523 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
79524
79525         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
79526         test cases, so that config.log is a bit easier to follow.
79527
79528 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
79529
79530         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
79531         both are 64 bits, since this seems to be the tradition, and this
79532         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
79533         we ever run into a host that prefers long long to long in this
79534         case, we'll need another configure-time test.  Problem reported by
79535         Jim Meyering.
79536
79537 2006-07-02  Eric Blake  <ebb9@byu.net>
79538
79539         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
79540
79541 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
79542
79543         * modules/inttypes (Depends-on): No longer depends on stdint.
79544         * modules/stdint (Description): Say more about assumptions.
79545         Say that the fast types might differ.  Say macros are used.
79546         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
79547         (Makefile.am): Revise list of substituted symbols to match
79548         new stdint.m4.
79549         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
79550         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
79551         * tests/test-stdint.c (verify_same_types)
79552         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
79553         the code conforms to C99/C89.
79554         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
79555         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
79556
79557 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
79558
79559         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
79560         but fix a bug, by requiring at least 64 bits.
79561         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
79562         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
79563         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
79564         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
79565
79566         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
79567         changes.  Make 2.59 a prerequisite.  Check and substitute for
79568         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
79569         inttypes.h.  Do not use special include files; just use the
79570         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
79571         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
79572         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
79573         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
79574         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
79575         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
79576         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
79577         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
79578         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
79579         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
79580         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
79581         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
79582         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
79583         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
79584         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
79585         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
79586         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
79587         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
79588         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
79589         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
79590         WINT_MAX.  Check for C99 conformance more strictly, by detecting
79591         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
79592         not check for things that C99 does not require, e.g., int8_t.  If
79593         a test isn't needed unless <stdint.h> isn't working, and is
79594         unlikely to be needed for any other reason, then don't do it
79595         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
79596         size_t, since we assume C89 freestanding at least.  Do not check
79597         for sig_atomic_t, wchar_t, or wint_t, since the code now does
79598         the right thing even if the types are not defined.  Instead use:
79599         (gl_STDINT_TYPE_PROPERTIES): New macro.
79600         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
79601         testing whether <sys/types.h> clashes, as Autoconf does this for
79602         us now.  All uses removed.
79603         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
79604         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
79605         (gl_CHECK_TYPE_SAME):
79606         Remove; no longer needed.
79607         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
79608         exists, since we'll return 0 anyway in that case.
79609         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
79610
79611 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
79612
79613         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
79614         possible collision with system files.
79615         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
79616         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
79617         WCHAR_MIN and WCHAR_MAX in this case.
79618         (<stddef.h>): Do not include; no longer needed.
79619         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
79620         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
79621         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
79622         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
79623         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
79624         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
79625         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
79626         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
79627         !defined(__c99))]: Include in this case too, since it's harmless
79628         now.
79629         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
79630         dangerous to do so.
79631         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
79632         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
79633         (_STDINT_MIN, _STDINT_MAX): New macros.
79634         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
79635         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
79636         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
79637         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
79638         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
79639         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
79640         macros, not typedefs; this simplifies things quite a bit.
79641         Use long int for all types narrower than int64_t.
79642         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
79643         Define in terms of long long int or int64_t or long int,
79644         not int64_t or int32_t.  This saves some compile-time testing.
79645         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
79646         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
79647         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
79648         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
79649         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
79650         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
79651         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
79652         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
79653         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
79654         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
79655         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
79656         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
79657         undef any previous version and define our own version, for
79658         simplicity and consistency with the new macros for types.
79659         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
79660         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
79661         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
79662         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
79663         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
79664         @WINT_T_SUFFIX@ to keep things simple here.
79665         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
79666         Simplify by assuming typical 8/16/32/64 host, since we're
79667         already doing that elsewhere anyway.
79668         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
79669         and assume long long int is 64 bits if available.  This
79670         speeds up 'configure'.
79671
79672 2006-07-01  Eric Blake  <ebb9@byu.net>
79673
79674         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
79675         Reported by Andreas Buening.
79676
79677 2006-07-01  Eric Blake  <ebb9@byu.net>
79678
79679         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
79680
79681 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
79682
79683         * lib/getaddrinfo.c: fixed typo
79684
79685 2006-06-29  Jim Meyering  <jim@meyering.net>
79686
79687         * modules/strftime (Maintainer): Add my name, since with the
79688         FPRINTFTIME changes strftime.c has forked from glibc.
79689
79690 2006-06-29  Eric Blake  <ebb9@byu.net>
79691
79692         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
79693
79694 2006-06-29  Eric Blake  <ebb9@byu.net>
79695
79696         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
79697
79698 2006-06-29  Eric Blake  <ebb9@byu.net>
79699
79700         * lib/stat_.h: New file.
79701
79702 2006-06-29  Eric Blake  <ebb9@byu.net>
79703
79704         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
79705         unused static function.
79706
79707 2006-06-29  Eric Blake  <ebb9@byu.net>
79708
79709         * doc/functions.texi (Function Portability): Document missing lstat
79710         on mingw.
79711
79712 2006-06-29  Eric Blake  <ebb9@byu.net>
79713
79714         * MODULES.html.sh: Add sys_stat.
79715         * modules/sys_stat: New module.
79716         * modules/mkstemp (Depends-on): Add sys_stat.
79717
79718 2006-06-29  Derek R. Price  <derek@ximbiot.com>
79719
79720         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
79721
79722 2006-06-29  Derek R. Price  <derek@ximbiot.com>
79723
79724         * m4/c-bs-a.m4: Removed.
79725
79726 2006-06-29  Derek R. Price  <derek@ximbiot.com>
79727
79728         * lib/strftime.c: Assume strftime() exists.
79729
79730 2006-06-29  Derek Price  <derek@ximbiot.com>
79731
79732         * modules/c-bs-a: Removed - \a is C89.
79733         * MODULES.html.sh: Remove c-bs-a.
79734
79735 2006-06-29  Bruno Haible  <bruno@clisp.org>
79736
79737         * modules/wcwidth (License): Change to LGPL.
79738
79739 2006-06-28  Simon Josefsson  <jas@extundo.com>
79740
79741         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
79742         on _WIN32.
79743
79744         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
79745         getnameinfo.
79746
79747 2006-06-28  Simon Josefsson  <jas@extundo.com>
79748
79749         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
79750
79751 2006-06-28  Simon Josefsson  <jas@extundo.com>
79752
79753         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
79754         functions there.  It will succeed on Windows XP, but on Windows
79755         2000 and (presumably) earlier, it will fail, and use the internal
79756         re-implementation.
79757         (use_win32_p): New function.
79758         (getaddrinfo): Use strtoul on servname, to support numeric ports.
79759         Support AI_NUMERICSERV to disable getservbyname.
79760         (getnameinfo): New function, only supports
79761         NI_NUMERICHOST|NI_NUMERICSERV for now.
79762
79763         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
79764         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
79765         getnameinfo.
79766
79767 2006-06-28  Eric Blake  <ebb9@byu.net>
79768
79769         * modules/wcwidth: New file.
79770         * modules/mbchar (Depends-on): Add wcwidth.
79771         * modules/mbswidth (Depends-on): Add wcwidth.
79772         * MODULES.html.sh: Add wcwidth.
79773
79774 2006-06-28  Eric Blake  <ebb9@byu.net>
79775
79776         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
79777         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
79778
79779 2006-06-28  Eric Blake  <ebb9@byu.net>
79780
79781         * lib/xvasprintf.h: Fix comments.
79782
79783 2006-06-28  Eric Blake  <ebb9@byu.net>
79784
79785         * lib/mbchar.h (wcwidth): Include wcwidth.h.
79786         * lib/mbswidth.c (wcwidth): Move from here...
79787         * lib/wcwidth.h: ...to this new file.
79788
79789 2006-06-28  Derek R. Price  <derek@ximbiot.com>
79790
79791         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
79792
79793         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
79794         it's obsolete.
79795         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
79796
79797 2006-06-28  Derek R. Price  <derek@ximbiot.com>
79798
79799         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
79800         Autoconf 2.60 says this stuff was obsolete.
79801
79802 2006-06-28  Bruno Haible  <bruno@clisp.org>
79803
79804         * modules/wcwidth (Files): Add m4/wchar_t.m4.
79805
79806 2006-06-28  Bruno Haible  <bruno@clisp.org>
79807
79808         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
79809         gt_TYPE_WCHAR_T.
79810
79811 2006-06-28  Bruno Haible  <bruno@clisp.org>
79812
79813         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
79814         declaration for wcwidth.
79815         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
79816
79817 2006-06-28  Bruno Haible  <bruno@clisp.org>
79818
79819         * lib/mkdtemp.c [MINGW]: Include <io.h>.
79820         (mkdir): Define using _mkdir.
79821
79822 2006-06-28  Bruno Haible  <bruno@clisp.org>
79823
79824         * lib/getaddrinfo.h: Fix POSIX URL.
79825         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
79826         _WIN32.
79827         (use_win32_p): Make static.
79828         (getaddrinfo): Reject service name if it is empty or does not consist
79829         solely of decimal digits, or if its value is > 65535.
79830         (getnameinfo): Remove useless casts.
79831
79832 2006-06-27  Simon Josefsson  <jas@extundo.com>
79833
79834         * modules/sys_select: New file, suggested by Bruno Haible, Paul
79835         Eggert and Martin Lambers.
79836
79837 2006-06-27  Simon Josefsson  <jas@extundo.com>
79838
79839         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
79840         Eggert and Martin Lambers.
79841
79842 2006-06-27  Bruno Haible  <bruno@clisp.org>
79843
79844         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
79845         result to 0, not to empty.
79846         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
79847
79848 2006-06-27  Bruno Haible  <bruno@clisp.org>
79849
79850         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
79851
79852 2006-06-26  Simon Josefsson  <jas@extundo.com>
79853
79854         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
79855         present.
79856
79857 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
79858
79859         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
79860         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
79861         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
79862
79863 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
79864
79865         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
79866
79867 2006-06-26  Bruno Haible  <bruno@clisp.org>
79868
79869         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
79870
79871 2006-06-26  Bruno Haible  <bruno@clisp.org>
79872
79873         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
79874
79875 2006-06-26  Bruno Haible  <bruno@clisp.org>
79876
79877         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
79878         SGI C compiler in pre-C99 mode.
79879         Suggested by Mark D. Baushke and Larry Jones.
79880
79881 2006-06-26  Bruno Haible  <bruno@clisp.org>
79882
79883         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
79884         WCHAR_MAX.
79885         Reported by Mark D. Baushke and Larry Jones.
79886
79887 2006-06-26  Bruno Haible  <bruno@clisp.org>
79888
79889         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
79890         in pre-C99 mode.
79891         Suggested by Mark D. Baushke and Larry Jones.
79892
79893 2006-06-23  Simon Josefsson  <jas@extundo.com>
79894             Bruno Haible  <bruno@clisp.org>
79895
79896         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
79897         Emit mostlyclean-local rule.
79898         (func_emit_tests_Makefile_am): Likewise.
79899         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
79900
79901 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
79902
79903         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
79904
79905 2006-06-23  Bruno Haible  <bruno@clisp.org>
79906
79907         * tests/test-stdint.c: Update to match ISO C 99 Technical
79908         Corrigendum 1.
79909
79910 2006-06-23  Bruno Haible  <bruno@clisp.org>
79911
79912         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
79913
79914 2006-06-23  Bruno Haible  <bruno@clisp.org>
79915
79916         * lib/stdint_.h: Treat IRIX like OpenBSD.
79917
79918 2006-06-23  Bruno Haible  <bruno@clisp.org>
79919
79920         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
79921         ISO C 99 Technical Corrigendum 1.
79922
79923 2006-06-22  Simon Josefsson  <jas@extundo.com>
79924
79925         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
79926         MinGW.
79927
79928 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
79929
79930         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
79931         needed.  Some compiler complained about some of them.  Problem reported
79932         by Larry Jones in
79933         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
79934
79935 2006-06-21  Simon Josefsson  <jas@extundo.com>
79936
79937         * tests/test-getaddrinfo.c: New file.
79938
79939         * modules/getaddrinfo-tests: New file.
79940
79941         * MODULES.html.sh: Add inet_pton.
79942
79943         * modules/inet_pton: New file.
79944
79945 2006-06-21  Simon Josefsson  <jas@extundo.com>
79946
79947         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
79948         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
79949         of using the (limited) gnulib implementation on Windows XP.
79950
79951         * m4/inet_pton.m4: New file.
79952
79953 2006-06-21  Simon Josefsson  <jas@extundo.com>
79954
79955         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
79956         variable.
79957
79958         * lib/socket_.h: Don't define WINVER.
79959
79960         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
79961         slightly modified to work in gnulib.
79962
79963 2006-06-21  Simon Josefsson  <jas@extundo.com>
79964
79965         * doc/gnulib.texi (Windows sockets): Add.
79966
79967 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
79968
79969         * lib/read-file.c (fread_file): Start with buffer allocation of
79970         0 bytes rather than 1 byte; this simplifies the code.
79971         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
79972         code to free buffer and save/restore errno.
79973         (internal_read_file): Remove unused local.
79974
79975 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
79976
79977         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
79978         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
79979         Problem reported by Denis Excoffier in
79980         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
79981
79982 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
79983
79984         * modules/sys_socket, modules/socklen: Include sys/types since
79985         FreeBSD 4.x's sys/socket.h needs it.
79986
79987 2006-06-19  Simon Josefsson  <jas@extundo.com>
79988
79989         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
79990
79991 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
79992
79993         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
79994
79995 2006-06-19  Bruno Haible  <bruno@clisp.org>
79996
79997         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
79998         and FULL_PATH_INTTYPES_H in angle brackets.
79999         Reported by Mark D. Baushke <mdb@gnu.org>.
80000
80001 2006-06-17  Eric Blake  <ebb9@byu.net>
80002
80003         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
80004         errno.
80005
80006 2006-06-17  Bruno Haible  <bruno@clisp.org>
80007
80008         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
80009         <sys/inttypes.h>.
80010
80011 2006-06-17  Bruno Haible  <bruno@clisp.org>
80012
80013         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
80014         whether errno is declared. Assume <errno.h> declares errno.
80015
80016 2006-06-17  Bruno Haible  <bruno@clisp.org>
80017
80018         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
80019
80020 2006-06-17  Bruno Haible  <bruno@clisp.org>
80021
80022         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
80023         problem on Solaris 2.5.1.
80024
80025 2006-06-16  Eric Blake  <ebb9@byu.net>
80026
80027         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
80028         * lib/unicodeio.c [!defined errno]: Likewise.
80029         * lib/strtol.c [!defined errno]: Likewise.
80030         * lib/strtod.c [!defined errno]: Likewise.
80031
80032 2006-06-15  Eric Blake  <ebb9@byu.net>
80033
80034         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
80035
80036 2006-06-15  Eric Blake  <ebb9@byu.net>
80037
80038         * config/srclist.txt (ssize_t.m4): Lose sync.
80039
80040 2006-06-15  Bruno Haible  <bruno@clisp.org>
80041
80042         * modules/stdint (Files): Include m4/full-header-path.m4,
80043         m4/size_max.m4, m4/wchar_t.m4.
80044         (Makefile.am): Many more substitutions.
80045         * modules/stdint-tests: New file.
80046         * tests/test-stdint.c: New file.
80047
80048 2006-06-15  Bruno Haible  <bruno@clisp.org>
80049
80050         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
80051         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
80052         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
80053         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
80054         gl_CHECK_TYPE_SAME): New macros.
80055
80056 2006-06-15  Bruno Haible  <bruno@clisp.org>
80057
80058         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
80059
80060 2006-06-15  Bruno Haible  <bruno@clisp.org>
80061
80062         * lib/stdint_.h: Rewritten to be fully auto-configured.
80063         Fixes bug on HP-UX/IA64.
80064
80065 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
80066
80067         * lib/getdate.y (__attribute__): Don't define if already defined.
80068         Problem reported by Larry Jones.
80069         * lib/utimens.c (__attribute__): Likewise.
80070
80071 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
80072
80073         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
80074         reported by Andreas Schwab.
80075
80076 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80077             Bruno Haible  <bruno@clisp.org>
80078
80079         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
80080         check for the declaration of strnlen and a run test that exposes the
80081         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
80082         rpl_strndup.
80083
80084 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80085             Bruno Haible  <bruno@clisp.org>
80086
80087         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
80088
80089 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80090
80091         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
80092         compile test, for Tru64 4.0D.
80093
80094 2006-05-28  Karl Berry  <karl@gnu.org>
80095
80096         * config/srclist.txt (printf-args.c): lose sync.
80097
80098 2006-05-26  Martin Lambers  <marlam@marlam.de>
80099
80100         * lib/getpass.c: Updates the test for the native W32 API, and adds
80101         missing includes, thus fixing compilation warnings.
80102
80103 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
80104
80105         * lib/exclude.c (exclude_fnmatch): New function.
80106         (excluded_file_name): Call exclude_fnmatch.
80107         * lib/exclude.h (excluded_file_name): New prototype
80108
80109 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
80110
80111         * lib/tempname.c (small_open, large_open): New macros.
80112         (__open, __open64) [!_LIBC]: Remove.
80113         (__gen_tempname): Use small_open and large_open instead of __open
80114         and __open64.  This fixes a portability bug on HP-UX 11.11i
80115         reported by Simon Wing-Tang in
80116         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
80117
80118 2006-05-24  Bruno Haible  <bruno@clisp.org>
80119
80120         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
80121         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
80122         Reported by Thorsten Maerz <torte@netztorte.de> via
80123         Aaron Stone <aaron@serendipity.cx>.
80124
80125 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
80126
80127         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
80128         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
80129         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
80130         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
80131         not really conditional on the cache.
80132         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
80133
80134 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
80135
80136         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
80137         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
80138         (my_usleep): Don't mishandle maximum value.
80139
80140 2006-05-19  Jim Meyering  <jim@meyering.net>
80141
80142         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
80143
80144 2006-05-17  Bruno Haible  <bruno@clisp.org>
80145
80146         Cygwin portability.
80147         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
80148
80149 2006-05-17  Bruno Haible  <bruno@clisp.org>
80150
80151         * lib/stdint_.h: Fix recognition of Cygwin.
80152
80153 2006-05-15  Bruno Haible  <bruno@clisp.org>
80154
80155         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
80156         on libtool patch by Ralf Wildenhues.
80157
80158 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
80159
80160         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
80161         test for C99 conformance; (bool) 0.5 is an integer constant
80162         expression, but (bool) -0.5 is not.  Problem reported by Fedor
80163         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
80164
80165 2006-05-11  Simon Josefsson  <jas@extundo.com>
80166
80167         * m4/xvasprintf.m4: Fix obvious typo.
80168
80169 2006-05-11  Jim Meyering  <jim@meyering.net>
80170
80171         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
80172         James Lemley.
80173
80174 2006-05-10  Simon Josefsson  <jas@extundo.com>
80175
80176         * lib/md4.c: Typo fix, update copyright years.
80177         (K1, K2): Don't use L because it turn computations into 64-bit on
80178         64-bit platforms.
80179
80180 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
80181
80182         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
80183         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
80184         unwanted sign propagation, e.g., on hosts with 64-bit int.
80185         There still are some problems with reeelly weird theoretical hosts
80186         (e.g., 33-bit int) but it's not worth worrying about now.
80187         * lib/sha1.c (rol): Likewise.
80188         (K1, K2, K3, K4): Remove unnecessary L suffix.
80189
80190 2006-05-10  Bruno Haible  <bruno@clisp.org>
80191
80192         * lib/des.c: Cast to avoid warnings.
80193
80194 2006-05-09  Bruno Haible  <bruno@clisp.org>
80195
80196         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
80197         (Depends-on): Depend also on xsize, stdarg.
80198         (configure.ac): Add gl_XVASPRINTF.
80199
80200 2006-05-09  Bruno Haible  <bruno@clisp.org>
80201
80202         * m4/xvasprintf.m4: New file.
80203
80204 2006-05-09  Bruno Haible  <bruno@clisp.org>
80205
80206         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
80207         (EOVERFLOW): Define fallback value.
80208         (xstrcat): New function.
80209         (xvasprintf): Recognize the special case of a string concatenation.
80210
80211 2006-05-08  Eric Blake  <ebb9@byu.net>
80212
80213         * gnulib-tool (func_version): Base copyright year on CVS date.
80214         (func_emit_copyright_notice): New function.
80215         (func_emit_lib_Makefile_am): Use it.
80216         (func_emit_tests_Makefile_am): Likewise.
80217         (func_import): Likewise.
80218
80219 2006-05-08  Bruno Haible  <bruno@clisp.org>
80220
80221         * modules/stdarg: New file.
80222         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
80223
80224 2006-05-08  Bruno Haible  <bruno@clisp.org>
80225
80226         * m4/stdarg.m4: New file, from GNU gettext.
80227
80228 2006-05-08  Bruno Haible  <bruno@clisp.org>
80229
80230         * config/srclist.txt (build-aux/config.rpath): different from latest
80231         release.
80232
80233 2006-05-08  Bruno Haible  <bruno@clisp.org>
80234
80235         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
80236
80237 2006-05-05  Jim Meyering  <jim@meyering.net>
80238
80239         * m4/warning.m4: New file, derived from bison's file by the same name.
80240
80241 2006-05-03  Bruno Haible  <bruno@clisp.org>
80242
80243         * lib/stdint_.h: Shorter URL.
80244         * lib/inttypes.h: Likewise.
80245
80246 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
80247
80248         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
80249
80250 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
80251
80252         * lib/verify.h: Document the internals better.  Most of this change
80253         was written by Bruno Haible.
80254
80255 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
80256
80257         * doc/verify.texi: New file, partly based on a proposal by
80258         Bruno Haible.
80259
80260 2006-05-02  Bruno Haible  <bruno@clisp.org>
80261
80262         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
80263         test from here...
80264         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
80265
80266 2006-04-29  Bruno Haible  <bruno@clisp.org>
80267
80268         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
80269         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
80270
80271 2006-04-29  Bruno Haible  <bruno@clisp.org>
80272
80273         * gnulib-tool: Make --update option actually work.
80274
80275 2006-04-29  Bruno Haible  <bruno@clisp.org>
80276
80277         * doc/gcd.texi: New file.
80278         * doc/gnulib.texi: Include it.
80279
80280 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
80281
80282         * lib/getdate.y (get_date): When adding relative date, start with the
80283         initial time, not with the result of the first mktime call.
80284
80285 2006-04-25  Bruno Haible  <bruno@clisp.org>
80286
80287         * gnulib-tool (func_import): Output the include directives in three
80288         blocks, sorted separately.
80289         Reported by Ben Pfaff <blp@cs.stanford.edu>.
80290
80291 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
80292
80293         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
80294         to define main with arguments, for C++.  Reported by Eric Blake.
80295         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
80296         Prefer 'int main ()' to 'int main (void)', for C++.
80297         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
80298         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
80299         for 'main', for C99 and C++.
80300
80301 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
80302
80303         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
80304         Don't assume that exit status -1 is valid.
80305         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
80306         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
80307         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
80308         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
80309         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
80310         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
80311         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
80312         functions can be used without declaring them, or that you can
80313         exit with status -1.
80314         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
80315
80316 2006-04-24  Karl Berry  <karl@gnu.org>
80317
80318         * config/srclist.txt (longdouble.m4): sync lost.
80319
80320 2006-04-24  Eric Blake  <ebb9@byu.net>
80321
80322         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
80323
80324 2006-04-24  Bruno Haible  <bruno@clisp.org>
80325
80326         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
80327         poll() implementation in AIX.
80328         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
80329
80330 2006-04-24  Bruno Haible  <bruno@clisp.org>
80331
80332         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
80333         assigned exactly once.
80334
80335 2006-04-23  Claudio Fontana  <claudio@gnu.org>
80336             Bruno Haible  <bruno@clisp.org>
80337
80338         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
80339         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
80340         for AM_CPPFLAGS.
80341
80342 2006-04-23  Bruno Haible  <bruno@clisp.org>
80343
80344         * modules/copy-file: Depend on unistd.
80345         * modules/execute: Likewise.
80346         * modules/fatal-signal: Likewise.
80347         * modules/findprog: Likewise.
80348         * modules/mkdtemp : Likewise.
80349         * modules/pipe: Likewise.
80350         * modules/wait-process: Likewise.
80351
80352 2006-04-23  Bruno Haible  <bruno@clisp.org>
80353
80354         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
80355         condition was already detected.
80356         Reported by Ben Pfaff <blp@cs.stanford.edu>.
80357
80358 2006-04-23  Bruno Haible  <bruno@clisp.org>
80359
80360         * lib/copy-file.c: Include <unistd.h> unconditionally.
80361         * lib/execute.c: Likewise.
80362         * lib/fatal-signal.c: Likewise.
80363         * lib/findprog.c: Likewise.
80364         * lib/mkdtemp.c: Likewise.
80365         * lib/pipe.h: Likewise.
80366         * lib/pipe.c: Likewise.
80367         * lib/wait-process.h: Likewise.
80368
80369 2006-04-23  Bruno Haible  <bruno@clisp.org>
80370
80371         * gnulib-tool (func_usage): Fix --import description. Document
80372         --update.
80373         (func_import): Create temporary file in a temporary directory, if
80374         --dry-run is specified. Silence errors from 'grep' when there are no
80375         m4 files in $m4dir.
80376         (func_create_testdir): Silence errors from 'grep' when there are no
80377         m4 files in $m4dir.
80378         Reported by Karl Berry <karl@freefriends.org>.
80379
80380 2006-04-20  Bruno Haible  <bruno@clisp.org>
80381
80382         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
80383         one argument, so that the code will be portable to Autoconf 2.60.
80384         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
80385         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
80386         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
80387
80388 2006-04-19  Derek Price  <derek@ximbiot.com>
80389             Eric Blake  <ebb9@byu.net>
80390
80391         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
80392         rather than "/full/path.h".  Update comment to match.  Shorten &
80393         generalize m4_translit call via AS_TR_CPP.
80394
80395 2006-04-19  Derek Price  <derek@ximbiot.com>
80396             Eric Blake  <ebb9@byu.net>
80397
80398         * lib/inttypes.h: Correct grammar in comment.
80399
80400 2006-04-18  Derek Price  <derek@ximbiot.com>
80401             Paul Eggert  <eggert@cs.ucla.edu>
80402
80403         * modules/inttypes: New file.
80404         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
80405
80406 2006-04-18  Derek Price  <derek@ximbiot.com>
80407             Paul Eggert  <eggert@cs.ucla.edu>
80408
80409         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
80410         New files.
80411
80412 2006-04-18  Derek Price  <derek@ximbiot.com>
80413             Paul Eggert  <eggert@cs.ucla.edu>
80414
80415         * lib/inttypes.h: New file.
80416         * lib/strtoimax.c: Assume <inttypes.h>.
80417
80418 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
80419
80420         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
80421         isn't mounted.  Problem reported by Kir Kolyshkin.
80422
80423 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
80424
80425         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
80426         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
80427         Derek R. Price.
80428         * lib/regex.h (RE_DUP_MAX): Update comment to match current
80429         implementation.
80430
80431 2006-04-12  Eric Blake  <ebb9@byu.net>
80432
80433         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
80434         is now done automatically by the corresponding Autoconf macro.
80435
80436 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
80437
80438         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
80439         time_r.h.
80440
80441 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
80442
80443         Merge regex changes from libc, removing some of our
80444         POSIX-conformance changes that were rejected and redoing them in a
80445         less-intrusive way.
80446
80447         * lib/regcomp.c (re_compile_internal, init_dfa):
80448         Length arg is now size_t, not Idx.  All uses changed.
80449         (peek_token): Forward decl now says internal_function.
80450         (__re_error_msgid, __re_error_msgid_idx):
80451         Now static rather than extern with attribute_hidden.
80452         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
80453         For some reason libc prefers K&R style defns for external functions.
80454         (regerror) [!defined _LIBC]: Likewise.
80455         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
80456         (seek_collating_symbol_entry, lookup_collation_sequence_value):
80457         (build_range_exp, build_collating_symbol):
80458         Use K&R-style defn.
80459         (re_compile_fastmap): Use '\0' to memset, not 0.
80460         (utf8_sb_map): Make the calculations more obvious.
80461         (init_dfa, parse_bracket_exp, build_charclass_op):
80462         Call calloc and cast result, as glibc does.
80463         (init_word_char, fetch_token, peek_token, peek_token_bracket):
80464         (build_range_exp, build_collating_symbol):
80465         Now internal functions.
80466
80467         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
80468
80469         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
80470         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
80471         Don't depend on VMS; depend on __VMS instead, for POSIX
80472         namespace cleanness.
80473         (regoff_t): Define to ssize_t, not long int.
80474
80475         Remove the REG_ macros named below.  Instead, make the old names
80476         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
80477         __USE_GNU_REGEX.
80478         (REG_BACKSLASH_ESCAPE_IN_LISTS):
80479         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
80480         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
80481         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
80482         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
80483         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
80484         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
80485         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
80486         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
80487         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
80488         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
80489         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
80490         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
80491         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
80492         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
80493         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
80494         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
80495         (REG_NREGS):
80496         Remove.  All uses replaced by the old RE_* names.
80497         (RE_BACKSLASH_ESCAPE_IN_LISTS):
80498         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
80499         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
80500         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
80501         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
80502         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
80503         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
80504         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
80505         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
80506         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
80507         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
80508         Don't bother having these macros be independent of each others'
80509         values, since they no longer exist in the POSIX name space.
80510
80511         Rename the following member names back to their old names,
80512         unless !__USE_GNU_REGEX.  All uses changed back.
80513         (buffer): Renamed from re_buffer.
80514         (allocated): Renamed from re_allocated.
80515         (used): Renamed from re_used.
80516         (syntax): Renamed from re_syntax.
80517         (fastmap): Renamed from re_fastmap.
80518         (translate): Renamed from re_translate.
80519         (can_be_null): Renamed from re_can_be_null.
80520         (regs_allocated): Renamed from re_regs_allocated.
80521         (fastmap_accurate): Renamed from re_fastmap_accurate.
80522         (no_sub): Renamed from re_no_sub.
80523         (not_bol): Renamed from re_not_bol.
80524         (not_eol): Renamed from re_not_eol.
80525         (newline_anchor): Renamed from re_newline_anchor.
80526         (num_regs): Renamed from rm_num_regs.
80527         (start): Renamed from rm_start.
80528         (end): Renamed from rm_end.
80529
80530         (free_state): Move up a bit.
80531
80532         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
80533         #define to be empty.
80534         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
80535         when that is what is intended.
80536         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
80537         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
80538         (MAX): New macro.
80539         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
80540         All uses changed back to re_malloc, etc.  It's now the caller's
80541         responsibility to check for overflow; all callers changed.
80542         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
80543         (re_x2nrealloc): Remove.
80544         (free_state): Remove decl.
80545
80546         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
80547         (re_set_registers, re_exec):
80548         Use K&R-style defn.
80549
80550         2006-01-31  Roland McGrath  <roland@redhat.com>
80551
80552         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
80553         Reported by Mike Frysinger <vapier@gentoo.org>.
80554
80555         2006-01-15  Andreas Jaeger  <aj@suse.de>
80556
80557         [BZ #1950]
80558         * lib/regex_internal.c (re_string_reconstruct): Adjust for
80559         build_wcs_upper_buffer change.
80560         (build_wcs_upper_buffer): Change return type.
80561
80562         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
80563
80564         * lib/regex_internal.h: Include <stdint.h> if available.
80565
80566         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
80567
80568         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
80569
80570         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
80571
80572         * lib/regcomp.c: Adjust for changed secondary hash function.
80573
80574         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
80575
80576         * lib/regex.h: Pretty printing.
80577         Clean up namespace a bit.
80578
80579         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
80580
80581         * lib/regexec.c (update_cur_sifted_state, check_arrival,
80582         check_arrival_add_next_nodes): Avoid using uninitialized variable.
80583
80584         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
80585                     Ulrich Drepper  <drepper@redhat.com>
80586
80587         [BZ #1302]
80588         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
80589         changed.
80590         (bitset_word_t): Renamed from bitset_word.  All uses changed.
80591
80592         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
80593
80594         [BZ #281]
80595         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
80596         * lib/regcomp.c: Remove unnecessary uses of
80597         unsigned RE_TRANSLATE_TYPE.
80598         * lib/regex_internal.h: Likewise.
80599         * lib/regex_internal.c: Likewise.
80600         * lib/regexec.c: Likewise.
80601         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
80602
80603         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
80604
80605         * lib/regexec.c (find_recover_state): Remove unnecessary
80606         initialization.
80607         (transit_state_bkref): Make DFA a const pointer.
80608         (get_subexp): Likewise.
80609         (check_arrival): Likewise.
80610         (update_cur_sifted_state): Likewise.
80611         (re_search_internal): Likewise.
80612         (prune_impossible_nodes): Likewise.
80613         (acquire_init_state_context): Likewise.
80614         (proceed_next_node): Likewise.
80615         (set_regs): Likewise.
80616         (free_fail_stack_return): Likewise.
80617         (check_arrival_expand_ecl): Mark DFA parameter as const.
80618         (check_arrival_expand_ecl_sub): Likewise.
80619         (check_subexp_limits): Likewise.
80620         (sub_epsilon_src_nodes):  Likewise.
80621         (add_epsilon_src_nodes):  Likewise.
80622         (merge_state_array): Likewise.
80623         (update_regs): Likewise.
80624         (build_trtable): Likewise.
80625         (sift_states_backward): Mark MCTX parameter as const.
80626         (build_sifted_states): Likewise.
80627         (update_cur_sifted_state): Likewise.
80628         (sift_states_mkref): Likewise.
80629         (check_arrival_expand_ecl): Mark eclosure as const.
80630         (check_dst_limits_calc_pos_1): Likewise.
80631         * lib/regex_internal.h (re_match_context_t): Make dfa a const
80632         pointer.
80633
80634         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
80635
80636         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
80637         (transit_state_sb): Likewise.
80638         (transit_state_mb): Likewise.
80639         (sift_states_iter_mb): Likewise.
80640         (check_arrival_add_next_nodes): Likewise.
80641         (check_node_accept_bytes): Change first parameter to pointer-to-const.
80642         [_LIBC] (re_search_2_stub): Use mempcpy.
80643
80644         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
80645         mbrtowc for very simple UTF-8 case.
80646
80647         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
80648         a pointer-to-const.
80649         (re_acquire_state_context): Likewise.
80650         * lib/regex_internal.h: Adjust prototypes.
80651
80652         * lib/regex.c: Prevent using C++ compilers.
80653
80654         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
80655         (re_acquire_state_context): Likewise.
80656
80657 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
80658
80659         * modules/regex (Depends-on): Add ssize_t.
80660
80661 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
80662
80663         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
80664         translation table.
80665
80666 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
80667
80668         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
80669
80670 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
80671             Bruno Haible  <bruno@clisp.org>
80672
80673         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
80674         <sys/types.h> and <inttypes.h>.
80675
80676 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80677
80678         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
80679         `__error_t_defined', so argp.h will not typedef the former.
80680
80681 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
80682
80683         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
80684         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
80685         glibc names.  Even if glibc is changed to conform to POSIX, the
80686         traditional names will be available anyway, since regex depends on
80687         the extensions module.  Also, fix a longstanding typo in the
80688         implementation of Spencer ERE test #75 from grep 2.3.  Problems
80689         reported by Emanuele Giaquinta.  Also, change sense of cached
80690         variable, so that the message makes sense.
80691
80692 2006-03-24  Simon Josefsson  <jas@extundo.com>
80693
80694         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
80695         including some doc fixes.
80696         (base64_encode_alloc): Fix +1 bug on allocation failures.
80697
80698 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80699
80700         * lib/base64.c (base64_encode): Do not read past end of array with
80701         unsanitized input on systems with CHAR_BIT > 8.
80702
80703 2006-03-24  Eric Blake  <ebb9@byu.net>
80704
80705         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
80706
80707 2006-03-22  Karl Berry  <karl@gnu.org>
80708
80709         * config/srclist.txt (*setenv.[ch]): get from coreutils.
80710         * config/srclistvars.sh (COREUTILS): new var.
80711
80712 2006-03-17  Jim Meyering  <jim@meyering.net>
80713
80714         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
80715         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
80716
80717 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
80718
80719         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
80720         no longer needs it.  Instead, check that regoff_t is as least
80721         as wide as ptrdiff_t.
80722
80723         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
80724         so that our regex.h stays compatible with the installed regex.
80725         This is helpful for installers who configure --without-included-regex.
80726         Problem reported by Emanuele Giaquinta.
80727
80728 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
80729
80730         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
80731         Typedef to long int, not to off_, as POSIX will likely change
80732         in that direction.
80733
80734 2006-03-15  Eric Blake  <ebb9@byu.net>
80735
80736         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
80737
80738 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
80739
80740         * lib/argp-help.c (validate_uparams): Fix typo
80741         * lib/argp-parse.c (argp_default_options): Consistently begin help
80742         messages with a lowercase letter.
80743
80744 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
80745
80746         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
80747         overrun buffers and shouldn't be used (much as gets shouldn't be
80748         used).
80749         * lib/time_r.c (asctime_r, ctime_r): Likewise.
80750
80751 2006-03-08  Simon Josefsson  <jas@extundo.com>
80752
80753         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
80754         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
80755
80756 2006-03-08  Simon Josefsson  <jas@extundo.com>
80757
80758         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
80759         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
80760
80761 2006-03-08  Simon Josefsson  <jas@extundo.com>
80762
80763         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
80764         signal that configure disabled the device.
80765
80766 2006-03-08  Simon Josefsson  <jas@extundo.com>
80767
80768         * build-aux/maint.mk: Fix refresh-po, to handle no translated
80769         languages.
80770
80771 2006-03-07  Simon Josefsson  <jas@extundo.com>
80772
80773         * modules/getopt (Depends-on): Add unistd.
80774
80775         * modules/unistd: New file.
80776
80777 2006-03-07  Simon Josefsson  <jas@extundo.com>
80778
80779         * modules/gc-random: New file.
80780
80781 2006-03-07  Simon Josefsson  <jas@extundo.com>
80782
80783         * m4/unistd_h.m4: New file.
80784
80785 2006-03-07  Simon Josefsson  <jas@extundo.com>
80786
80787         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
80788         test to be side-effect free by storing the result in the cache
80789         variable gl_cv_lib_readline, and moving the assignment of
80790         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
80791         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
80792
80793 2006-03-07  Simon Josefsson  <jas@extundo.com>
80794
80795         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
80796         error on missing devices (the functions will return an error).
80797
80798         * m4/gc.m4: Move random stuff to gc-random.m4
80799
80800 2006-03-07  Simon Josefsson  <jas@extundo.com>
80801
80802         * lib/unistd_.h: New file.
80803
80804 2006-03-07  Simon Josefsson  <jas@extundo.com>
80805
80806         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
80807
80808 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
80809
80810         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
80811         Problem reported by Juan Manuel Guerrero.
80812
80813 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
80814
80815         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
80816         the unistd module.
80817         * lib/getlogin_r.c: Likewise.
80818         * lib/getlogin_r.h: Likewise.
80819         * lib/glob.c: Likewise.
80820         * lib/pagealign_alloc.c: Likewise.
80821         * lib/unistd_.h: Remove; no longer needed.
80822
80823 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
80824
80825         * MODULES.html.sh (Support for systems lacking POSIX:2001):
80826         Add unistd.
80827         * modules/c-stack (Depends-on): Add unistd.
80828         * modules/getlogin_r: Likewise.
80829         * modules/glob: Likewise.
80830         * modules/pagealign_alloc: Likewise.
80831         * modules/unistd (Files): Remove lib/unistd_.h.
80832         (EXTRA_DIST): Remove.
80833         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
80834         need unistd_.h.
80835         (MOSTLYCLEANFILES): Remove unistd.h-t.
80836
80837 2006-03-03  Simon Josefsson  <jas@extundo.com>
80838
80839         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
80840
80841 2006-03-03  Simon Josefsson  <jas@extundo.com>
80842
80843         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
80844         libidn and bison.
80845
80846 2006-03-03  Simon Josefsson  <jas@extundo.com>
80847
80848         * build-aux/maint.mk: Add indent target.
80849
80850 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
80851
80852         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
80853         our replacement poll.h in any case, to avoid a differing
80854         declaration from a system header.  Seen on AIX.
80855
80856 2006-03-01  Simon Josefsson  <jas@extundo.com>
80857
80858         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
80859         <kasal@ucw.cz>.
80860
80861 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
80862
80863         * modules/gettime (Depends-on): Add extensions module.
80864         * modules/nanosleep (Depends-on): Likewise.
80865         * modules/settime (Depends-on): Likewise.
80866
80867 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
80868
80869         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
80870         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
80871         pedantically.
80872         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
80873         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
80874
80875         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
80876         not "==".  Reported by Ralf Wildenhues.
80877
80878 2006-03-01  Karl Berry  <karl@gnu.org>
80879
80880         * doc/Copyright/request-*: new files, synced from gnuorg.
80881
80882 2006-03-01  Karl Berry  <karl@gnu.org>
80883
80884         * config/srclist.txt (Copyright/*): new entries.
80885
80886 2006-02-28  Simon Josefsson  <jas@extundo.com>
80887
80888         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
80889
80890 2006-02-27  Simon Josefsson  <jas@extundo.com>
80891
80892         * lib/base64.h: Indent #define's.  From Jim Meyering
80893         <jim@meyering.net>.
80894
80895 2006-02-27  Jim Meyering  <jim@meyering.net>
80896
80897         Revert the change of 2006-02-24, so these files can continue
80898         to be sync'd from gettext.
80899         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
80900         of `config.h'.
80901
80902 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
80903
80904         * modules/intprops: New file.
80905         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
80906         Add intprops.
80907         * modules/getloadavg (Files): Remove lib/intprops.h.
80908         (Depends-on): Add intprops.
80909         * modules/human: Likewise.
80910         * modules/inttostr: Likewise.
80911         * modules/openat: Likewise.
80912         * modules/sig2str: Likewise.
80913         * modules/userspec: Likewise.
80914         * modules/utimecmp: Likewise.
80915         * modules/xnanosleep: Likewise.
80916         * modules/xstrtol: Likewise.
80917
80918 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
80919
80920         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
80921         * modules/lock-tests (TESTS): Use $(EXEEXT).
80922         * modules/tls-tests: Likewise.
80923         * modules/argp-tests: Likewise.
80924         (check_PROGRAMS): New var, replacing...
80925         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
80926
80927 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80928
80929         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
80930         `config.h'.
80931
80932 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
80933
80934         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
80935
80936 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80937
80938         Sync from coreutils.
80939         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
80940         gl_CHDIR_SAFER.
80941
80942 2006-02-22  Jim Meyering  <jim@meyering.net>
80943
80944         Sync from coreutils.
80945         * m4/chdir-safer.m4: New file.
80946
80947 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
80948
80949         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
80950         AT_FDCWD exceeds INT_MAX.
80951         * lib/openat.h (AT_FDCWD): Likewise.
80952
80953 2006-02-17  Eric Blake  <address@hidden>
80954
80955         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
80956
80957 2006-02-16  Simon Josefsson  <jas@extundo.com>
80958
80959         * modules/getaddrinfo (Depends-on): Add sys_socket.
80960
80961 2006-02-15  Simon Josefsson  <jas@extundo.com>
80962
80963         * build-aux/maint.mk: Add dsyntax-check rule.
80964
80965 2006-02-15  Eric Blake  <ebb9@byu.net>
80966
80967         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
80968         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
80969         'present but cannot compile' warnings on cygwin.
80970         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
80971         use ws2tcpip.h if sys/socket.h works.
80972         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
80973         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
80974
80975 2006-02-14  Simon Josefsson  <jas@extundo.com>
80976
80977         * modules/maintainer-makefile (Files): Rename.
80978
80979         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
80980         and (the local) Makefile.cfg to maint-cfg.mk.
80981
80982         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
80983         to the latter.
80984
80985         * modules/maintainer-makefile: New module.
80986
80987         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
80988         severaly stripped to make it possible to build it up from scratch
80989         with reliable tests.
80990
80991         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
80992         fixes to permit overriding the default actions when configure and
80993         makefile are not available.
80994
80995 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
80996
80997         Sync from coreutils.
80998         * modules/lstat (Depends-on): Don't depend on xalloc.
80999         (License): Change from GPL to LGPL, since this is now simply a
81000         replacement for a libc function.
81001
81002 2006-02-14  Jim Meyering  <jim@meyering.net>
81003
81004         Sync from coreutils.
81005
81006         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
81007         failure on deficient systems, and simplify gnulib lgpl dependencies.
81008         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
81009         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
81010
81011         * lib/xalloc-die.c: Remove unused definition of N_.
81012
81013 2006-02-14  Jim Meyering  <jim@meyering.net>
81014
81015         Sync from coreutils.
81016         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
81017         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
81018         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
81019         double-quote uses of that variable, to accommodate the rare case in
81020         which getmntent is available in none of the libraries checked.  This
81021         happens at least on FreeBSD 5.0.
81022
81023 2006-02-13  Simon Josefsson  <jas@extundo.com>
81024
81025         * gnulib-tool (Usage): Fix --import, from
81026         karl@freefriends.org (Karl Berry).
81027
81028 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
81029
81030         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
81031
81032 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
81033
81034         * lib/argp-namefrob.h: Restore changes accidentally lost during the
81035         "autoupdate" on 2005-12-12.
81036
81037 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
81038
81039         * modules/closeout (Depends-on): Remove atexit.
81040
81041 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
81042
81043         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
81044         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
81045
81046 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
81047
81048         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
81049         __EXTENSIONS__ if this causes compilation to fail.  Problem
81050         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
81051         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
81052
81053 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
81054
81055         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
81056         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
81057         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
81058         All uses changed.
81059
81060 2006-01-26  Simon Josefsson  <jas@extundo.com>
81061
81062         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
81063         prototype is visible on mingw32.
81064
81065         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
81066         for mingw32.
81067
81068         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
81069         mingw32).
81070
81071 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
81072
81073         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
81074         attempt to open for write; this always fails, at least on POSIX
81075         hosts.  This reinstates the 2006-01-09 change, which was
81076         inadvertently removed.
81077
81078 2006-01-26  Bruno Haible  <bruno@clisp.org>
81079
81080         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
81081         Reported by Paul Eggert.
81082
81083 2006-01-26  Bruno Haible  <bruno@clisp.org>
81084             Paul Eggert  <eggert@cs.ucla.edu>
81085
81086         * lib/stdbool_.h (_Bool)
81087         [(! (defined __cplusplus || defined __BEOS__)
81088           && !defined __GNUC__
81089           && !(defined __HP_cc || defined __xlc__
81090                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
81091                || defined __sgi))]:
81092         #define to signed char in these cases too; this simplifies
81093         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
81094         etc., separately) and makes it more conservative.
81095
81096 2006-01-25  Simon Josefsson  <jas@extundo.com>
81097
81098         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
81099         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
81100         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
81101
81102 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
81103
81104         * lib/argp-namefrob.h: Bugfix. Remove stray #
81105
81106 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
81107
81108         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
81109         so that we test the test.
81110         Check for yet another HP-UX cc bug involving *bool |= bool.
81111
81112 2006-01-25  Karl Berry  <karl@gnu.org>
81113
81114         * config/srclist.txt (vasnprintf.c): sync lost.
81115
81116 2006-01-25  Jim Meyering  <jim@meyering.net>
81117
81118         Sync from the stable (b5) branch of coreutils:
81119
81120         * lib/fts.c (fts_children): Don't let close() clobber errno from
81121         failed fchdir().
81122
81123         * lib/fts.c (fts_stat): When following a symlink-to-directory,
81124         don't necessarily interpret stat-fails+lstat-succeeds as indicating
81125         a dangling symlink.  That can also happen at least for ELOOP.
81126         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
81127         FYI, this bug predates the inclusion of fts.c in coreutils.
81128
81129         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
81130         in their own block, so pre-c99 compilers don't object.
81131
81132         Avoid the double-free (first in fts_read, second in fts_close) that
81133         would occur when an `active' directory is made inaccessible (e.g.,
81134         via chmod a-x) during a traversal.
81135         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
81136         before returning.  Reproduce this failure by
81137         mkdir -p a/b; cd a; chmod a-x . b
81138         Reported by Stavros Passas.
81139
81140 2006-01-25  Jim Meyering  <jim@meyering.net>
81141
81142         * lib/fileblocks.c: Remove more useless parentheses.
81143         * lib/readutmp.h: Likewise.
81144
81145 2006-01-25  Bruno Haible  <bruno@clisp.org>
81146
81147         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
81148         warnings.
81149         Reported by Paul Eggert.
81150
81151 2006-01-25  Bruno Haible  <bruno@clisp.org>
81152
81153         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
81154         rid of a trap command. For Solaris sh.
81155         Reported by Mark D. Baushke <mdb@gnu.org>.
81156
81157 2006-01-24  Simon Josefsson  <jas@extundo.com>
81158
81159         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
81160         Bruno.
81161
81162 2006-01-24  Karl Berry  <karl@gnu.org>
81163
81164         * config/srclist.txt (argp-namefrob.h): sync lost.
81165
81166 2006-01-24  Jim Meyering  <jim@meyering.net>
81167
81168         * modules/openat (Files): Add lib/intprops.h.
81169         From Mark D. Baushke.
81170
81171 2006-01-24  Jim Meyering  <jim@meyering.net>
81172
81173         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
81174         Reported by Mark D. Baushke.
81175
81176 2006-01-24  Jim Meyering  <jim@meyering.net>
81177
81178         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
81179
81180 2006-01-24  Bruno Haible  <bruno@clisp.org>
81181
81182         * modules/strnlen (Maintainer): Change from glibc to all.
81183
81184 2006-01-24  Bruno Haible  <bruno@clisp.org>
81185
81186         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
81187         Patch by Paul Eggert.
81188
81189 2006-01-24  Bruno Haible  <bruno@clisp.org>
81190
81191         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
81192         already has it.
81193         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
81194         2005-11-26.
81195
81196         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
81197         'signed char' to avoid problems with the built-in _Bool type.
81198         Reported by Paul Eggert on 2005-11-26.
81199
81200 2006-01-24  Bruno Haible  <bruno@clisp.org>
81201
81202         * gnulib-tool (func_import): Avoid constructing complicated sed
81203         expressions inside backquote.
81204         Report and solution by Mark D. Baushke <mdb@gnu.org>.
81205
81206 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
81207
81208         These changes imported from libc.
81209         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
81210         test and two separate function calls.
81211         * lib/strndup.c (__strndup): Add libc_hidden_def.
81212
81213 2006-01-23  Simon Josefsson  <jas@extundo.com>
81214
81215         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
81216         Remove the test_*_SOURCES variable: automake infers it by default.
81217         * modules/tls-tests: Likewise.
81218
81219 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
81220
81221         Work around porting bugs reported by Dieter in
81222         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
81223         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
81224         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
81225         Include "getopt.h" first, to check interface.
81226         (getenv): Declare only if defined HAVE_DECL_GETENV &&
81227         !HAVE_DECL_GETENV.
81228         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
81229         (__strndup): Revert to K&R-style function dfns, the glibc style.
81230         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
81231         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
81232         Include strnlen.h first, to get prototype properly.
81233         (strnlen): Renamed from __strnlen.
81234         Remove weak alias.
81235
81236 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
81237
81238         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
81239
81240 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
81241
81242         * config/srclist.txt: Adjust to reflect glibc reorganization.
81243         This affects only comments.
81244
81245 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
81246
81247          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
81248          Reported by Bruce Korb <bkorb@gnu.org>.
81249
81250 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
81251
81252         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
81253         to pacify gcc -Wswitch-default.
81254
81255 2006-01-22  Bruno Haible  <bruno@clisp.org>
81256
81257         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
81258         temporary buffer for sprintf, take into account the precision also
81259         for 'd', 'i', 'u', 'o', 'x', 'X'.
81260
81261 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
81262
81263         * modules/argp-tests: New module
81264         * tests/test-argp.c: New file
81265         * tests/test-argp-2.sh: New file
81266
81267 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
81268
81269         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
81270         (__argp_base_name): Removed
81271         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
81272         typo.
81273         (__argp_base_name): Provide macro definition or extern declaration
81274         depending on the configuration
81275
81276 2006-01-20  Simon Josefsson  <jas@extundo.com>
81277
81278         * modules/inet_ntop (Depends-on): Depend on sys_socket.
81279
81280 2006-01-20  Simon Josefsson  <jas@extundo.com>
81281
81282         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
81283
81284 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
81285
81286         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
81287         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
81288         Suggested by Bruno Haible.
81289
81290 2006-01-20  Karl Berry  <karl@gnu.org>
81291
81292         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
81293         until changes propagate, I guess.
81294
81295 2006-01-19  Simon Josefsson  <jas@extundo.com>
81296
81297         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
81298
81299 2006-01-19  Simon Josefsson  <jas@extundo.com>
81300
81301         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
81302
81303 2006-01-19  Simon Josefsson  <jas@extundo.com>
81304
81305         * gnulib-tool: Set check_PROGRAMS.
81306
81307         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
81308         modules/des-tests, modules/gc-arcfour-tests,
81309         modules/gc-arctwo-tests, modules/gc-des-tests,
81310         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
81311         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
81312         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
81313         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
81314         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
81315         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
81316         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
81317         test_*_SOURCES.
81318
81319 2006-01-18  Simon Josefsson  <jas@extundo.com>
81320
81321         * modules/socklen (Depends-on): Depend on sys_socket.
81322
81323 2006-01-18  Simon Josefsson  <jas@extundo.com>
81324
81325         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
81326         modules/des-tests, modules/gc-arcfour-tests,
81327         modules/gc-arctwo-tests, modules/gc-des-tests,
81328         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
81329         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
81330         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
81331         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
81332         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
81333         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
81334         $(EXEEXT) to automake TESTS variable, for mingw32.
81335
81336 2006-01-17  Simon Josefsson  <jas@extundo.com>
81337
81338         * modules/socklen (Include): Need sys/socket.h.
81339
81340 2006-01-17  Bruno Haible  <bruno@clisp.org>
81341
81342         * modules/ssize_t (Include): Add <sys/types.h>.
81343
81344 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
81345
81346         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
81347         it's not portable and it doesn't work with cross-compiles.
81348         Problem reported by Bruno Haible.  Fix missing-$ typo in
81349         'test "gl_cv_ignore_unused_libraries" ...' that prevented
81350         -zignore from being used with Sun's C compiler.
81351
81352 2006-01-12  Simon Josefsson  <jas@extundo.com>
81353
81354         * lib/base64.c: Fix warning, reported by Bruno Haible
81355         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
81356
81357 2006-01-12  Bruno Haible  <bruno@clisp.org>
81358
81359         * modules/ldd: New file.
81360         * build-aux/ldd.sh.in: New file.
81361         * MODULES.html.sh (Support for building libraries and executables): Add
81362         ldd.
81363
81364 2006-01-12  Bruno Haible  <bruno@clisp.org>
81365
81366         * m4/ldd.m4: New file.
81367
81368 2006-01-12  Bruno Haible  <bruno@clisp.org>
81369
81370         * gnulib-tool (func_import, func_create_testdir): Don't go into an
81371         endless loop while replacing $auxdir with build-aux.
81372
81373 2006-01-11  Simon Josefsson  <jas@extundo.com>
81374
81375         * lib/stdint_.h (SIZE_MAX): Add missing (.
81376
81377 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
81378
81379         Sync from coreutils.
81380         * lib/md5.c: Fix commentary typos.
81381         (alignof, UNALIGNED_P): No need for a GCC-specific version.
81382         * lib/md5.h (__attribute__): Remove; unused.
81383         * lib/sha1.c: Fix commentary to match md5 better.
81384         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
81385         so that we don't need to worry about alignment.  All uses changed.
81386         This merges the 2005-10-28 md5 change into sha1.
81387
81388 2006-01-11  Jim Meyering  <jim@meyering.net>
81389
81390         Sync from coreutils.
81391         * lib/md5.c (OP): Fix spacing.
81392
81393 2006-01-11  Bruno Haible  <bruno@clisp.org>
81394
81395         Ensure automatic ordering between gl_LOCK and gl_ARGP.
81396         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
81397         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
81398
81399 2006-01-11  Bruno Haible  <bruno@clisp.org>
81400
81401         Ensure automatic ordering between gl_LOCK and gl_ARGP.
81402         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
81403         the "early" section as well.
81404
81405 2006-01-11  Bruno Haible  <bruno@clisp.org>
81406
81407         Avoid "ar: no archive members specified" error on MacOS X.
81408         * gnulib-tool (func_modules_add_dummy): New function.
81409         (func_import, func_create_testdir): Invoke it.
81410
81411 2006-01-11  Bruno Haible  <bruno@clisp.org>
81412
81413         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
81414         with $auxdir in AC_CONFIG_FILES statements.
81415
81416 2006-01-11  Bruno Haible  <bruno@clisp.org>
81417
81418         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
81419         Initialize also noinst_HEADERS to empty.
81420
81421 2006-01-11  Bruno Haible  <bruno@clisp.org>
81422
81423         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
81424         variables.
81425         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
81426         autoreconf.
81427
81428 2006-01-11  Bruno Haible  <bruno@clisp.org>
81429
81430         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
81431         overridable by the user.
81432         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
81433
81434 2006-01-10  Simon Josefsson  <jas@extundo.com>
81435
81436         * modules/sys_socket: New file.
81437
81438 2006-01-10  Simon Josefsson  <jas@extundo.com>
81439
81440         * m4/sys_socket_h.m4: New file.
81441
81442 2006-01-10  Simon Josefsson  <jas@extundo.com>
81443
81444         * lib/socket_.h: New file.
81445
81446 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
81447
81448         * modules/readutmp (Maintainer): Add myself.
81449
81450 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
81451
81452         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
81453         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
81454         People who are still concerned with buggy memcmp implementations
81455         can invoke gl_FUNC_MEMCMP themselves.
81456
81457 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
81458
81459         * lib/regex_internal.h (BITSET_WORD_BITS):
81460         Work around a bug in 64-bit PGC (before version 6.1-2), where the
81461         preprocessor mishandles large unsigned values as if they were signed.
81462         Problem reported by Claudio Fontana in
81463         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
81464
81465 2006-01-10  Jim Meyering  <jim@meyering.net>
81466
81467         Avoid the double-free (first in fts_read, second in fts_close) that
81468         would occur when an `active' directory is made inaccessible (e.g.,
81469         via chmod a-x) during a traversal.
81470         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
81471         before returning.  Reproduce this failure by
81472         mkdir -p a/b; cd a; chmod a-x . b
81473         Reported by Stavros Passas.
81474
81475         Sync from coreutils.
81476         * lib/sha1.c: Tweak grammar in a comment.
81477
81478 2006-01-10  Jim Meyering  <jim@meyering.net>
81479
81480         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
81481         Patch by Joerg Sonnenberger.
81482
81483 2006-01-10  Bruno Haible  <bruno@clisp.org>
81484
81485         * modules/readutmp: Depend on module free.
81486         * modules/strtok_r: Depend on module restrict.
81487
81488 2006-01-10  Bruno Haible  <bruno@clisp.org>
81489
81490         * modules/gettext (configure.ac): Add an invocation of
81491         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
81492
81493 2006-01-10  Bruno Haible  <bruno@clisp.org>
81494
81495         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
81496         Reported by Werner Lemberg <wl@gnu.org>.
81497
81498 2006-01-10  Bruno Haible  <bruno@clisp.org>
81499
81500         * lib/localcharset.c: Update from GNU gettext.
81501
81502 2006-01-10  Bruno Haible  <bruno@clisp.org>
81503
81504         * lib/argp.h (__const): Remove macro. Use const instead.
81505         * lib/argp-fmtstream.h (__const): Likewise.
81506         * lib/glob_.h (__const): Remove macro.
81507         * lib/glob-libc.h: Use const instead of __const.
81508
81509 2006-01-10  Bruno Haible  <bruno@clisp.org>
81510
81511         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
81512         variable.
81513         Needed to avoid an automake error regarding the 'gettext' module.
81514
81515 2006-01-09  Simon Josefsson  <jas@extundo.com>
81516
81517         * modules/inet_ntop (Depends-on): Add restrict.
81518
81519 2006-01-09  Simon Josefsson  <jas@extundo.com>
81520
81521         * modules/gc-rijndael-tests (License): Put under LGPL.
81522
81523         * modules/gc-des-tests (License): Likewise.
81524
81525         * modules/gc-arcfour-tests (License): Likewise.
81526
81527         * modules/gc-arctwo-tests (License): Likewise.
81528
81529         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
81530
81531         * modules/gc-hmac-sha1-tests (Files): Likewise.
81532
81533         * modules/gc-hmac-md5-tests (License): Likewise.
81534
81535         * modules/gc-sha1-tests (License): Likewise.
81536
81537         * modules/gc-md5-tests (License): Likewise.
81538
81539         * modules/gc-md4-tests (License): Likewise.
81540
81541         * modules/gc-md2-tests (License): Likewise.
81542
81543         * modules/gc-tests (License): Likewise.
81544
81545         * modules/des-tests (License): Likewise.
81546
81547         * modules/md4-tests (License): Likewise.
81548
81549         * modules/md2-tests (License): Likewise.
81550
81551 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
81552
81553         Sync from coreutils:
81554
81555         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
81556         * modules/lib-ignore: New file.
81557         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
81558         chdir-safer.m4, lchmod.m4.
81559         * modules/openat: Add mkdirat.c, openat-priv.h.
81560
81561 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
81562
81563         Sync from coreutils.
81564         * m4/lib-ignore.m4: New file.
81565         * m4/lchmod.m4: New file.
81566
81567 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
81568
81569         Sync from coreutils.
81570         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
81571         for write access: POSIX says that must fail.
81572         * lib/fts.c (diropen): Likewise.
81573         * lib/save-cwd.c (save_cwd): Likewise.
81574         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
81575         well, for minor improvements on hosts that lack O_DIRECTORY.
81576         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
81577         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
81578         Fall back on chown if open failed with EACCES.
81579
81580         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
81581         Report an error at compile-time if only a 1-second nominal clock
81582         resolution is found.
81583
81584         * lib/lchmod.h: New file.
81585         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
81586         (make_dir_parents): Use lchown rather than chown, and
81587         lchmod rather than chmod.
81588
81589         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
81590         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
81591         "proc" reported by n0dalus.
81592
81593         * lib/mountlist.c: Include <limits.h>.
81594         (dev_from_mount_options)
81595         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
81596         New function.  It no longer assumes "dev=" has the System V meaning
81597         on Linux (since it doesn't).  It also parses "dev=" more carefully.
81598         (read_file_system_list)
81599         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
81600         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
81601         dev= in that case.
81602
81603         * lib/posixtm.h (PDS_PRE_2000): New macro.
81604         * lib/posixtm.c (year): Arg is now syntax_bits rather than
81605         allow_century.  All usages changed.  Reject dates outside the range
81606         1969-1999 if PDS_PRE_2000 is used.
81607
81608 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
81609
81610         Sync from coreutils.
81611         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
81612         (Time of day items): Mention the possibility of leap seconds.
81613         Problem reported by Dr. David Alan Gilbert.
81614
81615 2006-01-09  Jim Meyering  <jim@meyering.net>
81616
81617         Sync from coreutils.
81618
81619         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
81620
81621         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
81622
81623         * lib/modechange.c (mode_compile): Reject an invalid mode string
81624         that starts with an octal digit.  From Andreas Gruenbacher.
81625
81626         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
81627         and dup to open_safer and dup_safer, respectively.
81628         (openat_permissive): Fix typo in comment.
81629
81630         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
81631         "gettext.h"; either no longer needed or are guaranteed by openat.h.
81632         (_): Remove; no longer needed.
81633         (openat): Renamed from rpl_openat; no need for rpl_openat
81634         since openat.h renames openat for us.
81635         Replace most of the body with a call to openat_permissive,
81636         to avoid duplicate code.
81637         Port to (probably hypothetical) environments were mode_t is
81638         wider than int.
81639         (openat_permissive): Require mode arg, so that we can check
81640         types better.  Put it just after flags.  Change cwd failure
81641         indicator from pointer-to-bool to pointer-to-errno-value.
81642         All callers changed.
81643         Invoke openat_save_fail and/or openat_restore_fail if
81644         cwd_errno is null, so that openat can call us.
81645         (openat_permissive, fdopendir, fstatat, unlinkat):
81646         Simplify errno handling to avoid some duplicate code,
81647         as it's OK to set errno on success.
81648         * lib/openat.h: Revamp code so that function macros depend on
81649         __OPENAT_PREFIX only, not also on AT_FDCWD.
81650         (openat_ro): Remove.  Caller changed to use openat_permissive.
81651         (openat_permissive): Now a macro, if not a function.
81652         (openat_restore_fail, openat_save_fail): Now always functions,
81653         since mkdirat needs them even if __OPENAT_PREFIX is defined.
81654
81655         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
81656         and openat.c.
81657         * lib/mkdirat.c: Include openat-priv.h.
81658         Remove definitions of macros defined therein.
81659         * lib/openat.c: Likewise.
81660
81661         * lib/mkdirat.c (mkdirat): New file and function.
81662         * lib/openat.h (mkdirat): Declare.
81663
81664         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
81665
81666         * lib/openat.h (openat_permissive): Declare.
81667         (openat_ro): Define.
81668
81669         * lib/openat.c (EXPECTED_ERRNO): New macro.
81670         (openat_permissive): New function -- used in remove.c rewrite.
81671         (all functions): Set errno just before returning, only if there
81672         was an actual failure.
81673         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
81674
81675         Emulate openat-family functions using Linux's procfs, if possible.
81676         Idea and some code based on Ulrich Drepper's glibc changes.
81677
81678         * lib/openat.c: (BUILD_PROC_NAME): New macro.
81679         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
81680         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
81681         before falling back on save_cwd and restore_cwd.
81682         (fdopendir, fstatat, unlinkat): Likewise.
81683
81684         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
81685         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
81686
81687         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
81688         as second argument to va_arg.  Otherwise, some versions of gcc
81689         warn that `if this code is reached, the program will abort'.
81690
81691 2006-01-09  Jim Meyering  <jim@meyering.net>
81692
81693         Sync from coreutils.
81694         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
81695         Require openat-priv.h.
81696
81697 2006-01-09  Bruno Haible  <bruno@clisp.org>
81698
81699         * modules/strnlen (Include): Use strnlen.h.
81700
81701 2006-01-09  Bruno Haible  <bruno@clisp.org>
81702
81703         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
81704
81705 2006-01-09  Bruno Haible  <bruno@clisp.org>
81706
81707         * lib/sysexit_.h (EX_OK): New macro.
81708         Suggested by Martin Lambers <marlam@marlam.de>.
81709
81710 2006-01-09  Bruno Haible  <bruno@clisp.org>
81711
81712         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
81713         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
81714
81715 2006-01-09  Bruno Haible  <bruno@clisp.org>
81716
81717         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
81718         numbers.
81719
81720 2006-01-09  Bruno Haible  <bruno@clisp.org>
81721
81722         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
81723         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
81724         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
81725         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
81726
81727 2006-01-09  Bruno Haible  <bruno@clisp.org>
81728
81729         * build-aux/javacomp.sh.in: New file, moved from lib/.
81730         * modules/javacomp-script (Files): Update.
81731         (configure.ac): Add AC_CONFIG_FILES invocation.
81732         (EXTRA_DIST): Remove variable.
81733
81734         * build-aux/javaexec.sh.in: New file, moved from lib/.
81735         * modules/javaexec (Files): Update.
81736         (configure.ac): Add AC_CONFIG_FILES invocation.
81737         (EXTRA_DIST): Remove javaexec.sh.in.
81738
81739         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
81740         * modules/csharpcomp-script (Files): Update.
81741         (configure.ac): Add AC_CONFIG_FILES invocation.
81742         (EXTRA_DIST): Remove variable.
81743
81744         * build-aux/csharpexec.sh.in: New file, moved from lib/.
81745         * modules/csharpexec (Files): Update.
81746         (configure.ac): Add AC_CONFIG_FILES invocation.
81747         (EXTRA_DIST): Remove csharpexec.sh.in.
81748
81749 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
81750
81751         Sync from coreutils.
81752
81753         Add POSIX ACL support
81754         * lib/acl.h (copy_acl, set_acl): Add declarations.
81755         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
81756         systems other than Linux.
81757         (chmod_or_fchmod): New function: use fchmod when possible,
81758         and chmod otherwise.
81759         (file_has_acl): Add a POSIX ACL implementation, with a
81760         Linux-specific subcase.
81761         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
81762         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
81763         acls are unsupported.
81764         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
81765         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
81766         are unsupported.
81767
81768 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
81769
81770         Sync from coreutils.
81771         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
81772
81773 2006-01-07  Bruno Haible  <bruno@clisp.org>
81774
81775         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
81776         gl_EARLY.
81777
81778 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
81779
81780         * lib/strftime.c (tzname): Don't declare if it is already #defined.
81781         Problem reported for Mingw by Mark Junker.
81782
81783 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
81784
81785         * README: Gnulib normally doesn't generate a tarball.
81786
81787 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
81788
81789         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
81790         long int, not int, for nanosecond counts, so that people who are
81791         used to POSIX struct timespec won't be surprised.  Reported by Jim
81792         Meyering.
81793
81794 2005-12-28  Bruno Haible  <bruno@clisp.org>
81795
81796         * build-aux/config.rpath: Update from GNU gettext.
81797
81798 2005-12-16  Jim Meyering  <jim@meyering.net>
81799
81800         * modules/fprintftime: New module.
81801         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
81802
81803 2005-12-16  Jim Meyering  <jim@meyering.net>
81804
81805         * m4/fprintftime.m4: New file.
81806
81807 2005-12-16  Jim Meyering  <jim@meyering.net>
81808
81809         * lib/fprintftime.c, lib/fprintftime.h: New files.
81810
81811 2005-12-15  Simon Josefsson  <jas@extundo.com>
81812
81813         * modules/socklen (configure.ac): Fix M4 macro name, to align with
81814         new m4/socklen.m4.
81815
81816 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
81817
81818         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
81819         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
81820
81821 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
81822
81823         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
81824         * lib/argp-help.c (fill_in_uparams): Check if the constructed
81825         struct uparams is valid. Fall back to the default values if it is
81826         not.
81827
81828 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
81829
81830         * modules/argp (Files): Add argp-pin.c
81831         (Depends-on): dirname
81832         (lib_SOURCES): Add argp-pin.c
81833
81834 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
81835
81836         * m4/argp.m4:  Check if program_invocation_name and
81837         program_invocation_short_name are declared and define appropriate
81838         macros if they are not.
81839
81840 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
81841
81842         * lib/argp-help.c (__argp_base_name): New function
81843         (__argp_short_program_name): Rewrite using __argp_base_name
81844         * lib/argp-namefrob.h: Define program_invocation_name and
81845         program_invocation_short_name if requested
81846         (__argp_base_name): Add prototype
81847         * lib/argp-parse.c (argp_def): Use gettext wrappers
81848         (argp_default_parser): Use __argp_base_name
81849         * lib/argp-pin.c: New file. Defines program_invocation_name and
81850         program_invocation_short_name on systems that lack them.
81851
81852 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
81853
81854         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
81855         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
81856         porting problem reported by Georg Schwarz in
81857         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
81858
81859 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
81860
81861         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
81862         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
81863         porting problem reported by Georg Schwarz in
81864         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
81865
81866 2005-12-05  Bruno Haible  <bruno@clisp.org>
81867
81868         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
81869         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
81870         Reported by Mark Junker <mjscod@gmx.de>.
81871
81872 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
81873
81874         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
81875         Use implementation from Albert Chin, with some
81876         comments/corrections by Stepan Kasal and myself.
81877
81878 2005-12-02  Bruno Haible  <bruno@clisp.org>
81879
81880         * gnulib-tool (func_import): Accept GPLed build tool modules when
81881         --lgpl is given.
81882         * modules/csharpcomp-script: New file.
81883         * modules/csharpcomp: Depend on it.
81884         * modules/javacomp-script: New file.
81885         * modules/javacomp: Depend on it.
81886         Suggested by Simon Josefsson.
81887
81888 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
81889
81890         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
81891         statement, to work around an HP-UX 10.20 compiler bug reported by
81892         Peter O'Gorman.
81893
81894 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
81895
81896         * modules/savedir (Depends-on): Add openat.
81897
81898 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
81899
81900         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
81901         (uintmax_t) [defined uintmax_t]: Do not declare.
81902         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
81903         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
81904         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
81905         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
81906         sake of portability to weird hosts that C allows (though we don't
81907         know of any practical examples).
81908
81909         * lib/savedir.h (fdsavedir): New decl.
81910         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
81911         contains most of the former guts of savedir.
81912         (savedir): Use savedirstream.
81913         Include "openat.h".
81914
81915 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
81916
81917         * modules/obstack (Files): Add m4/ulonglong.m4.
81918         Problem reported by Davide Angelocola.
81919
81920 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
81921
81922         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
81923         coreutils no longer futzes with rounding modes.
81924
81925 2005-11-14  Jim Meyering  <jim@meyering.net>
81926
81927         * lib/mkstemp-safer.c: Include <config.h>, required for possible
81928         replacement of mkstemp.
81929
81930 2005-11-10  Simon Josefsson  <jas@extundo.com>
81931
81932         * lib/readline.c: Remove EOL.
81933
81934 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
81935
81936         * modules/gethrxtime (Depends-on): Add gettime.
81937
81938 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
81939
81940         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
81941         or gettimeofday; no longer needed.
81942
81943 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
81944
81945         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
81946         time business.
81947         (gethrxtime) [! (HAVE_NANOUPTIME
81948         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
81949         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
81950         our own approximation.
81951
81952 2005-11-08  Eric Blake  <ebb9@byu.net>
81953
81954         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
81955
81956 2005-11-08  Eric Blake  <ebb9@byu.net>
81957
81958         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
81959
81960 2005-11-04  Bruno Haible  <bruno@clisp.org>
81961
81962         * gnulib-tool: Implement --update mode.
81963
81964 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
81965
81966         Fix porting problem reported by Theodoros V. Kalamatianos.
81967         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
81968         Don't assume that futimes failing means we must fail.
81969
81970 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
81971
81972         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
81973         variables to suggest the intended function of the PATH_MAX check.
81974
81975 2005-10-30  Kean Johnston  <jkj@sco.com>
81976
81977         Trivial changes to support SCO systems.
81978         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
81979         as PATH_MAX.
81980         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
81981         where __ptr is null when no I/O is pending.
81982
81983 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
81984
81985         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
81986         leave errno alone.  Problem reported by Dmitry V. Levin.
81987
81988 2005-10-28  Simon Josefsson  <jas@extundo.com>
81989
81990         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
81991         Test more.
81992
81993         * tests/test-gc-md2.c, tests/test-md2.c: New files.
81994
81995         * modules/md2, modules/md2-tests: New files.
81996
81997 2005-10-28  Simon Josefsson  <jas@extundo.com>
81998
81999         * m4/inet_ntop.m4: More tests.
82000
82001         * m4/gc-md2.m4, md2.m4: New file.
82002
82003 2005-10-28  Simon Josefsson  <jas@extundo.com>
82004
82005         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
82006         "restrict" keywords, as per POSIX.  Protect the function
82007         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
82008         Don't use K&R prototypes.  Check the sprintf return values.
82009         Re-define EAFNOSUPPORT if not present.  Indent.
82010
82011         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
82012         suggested by Bruno Haible <bruno@clisp.org>.
82013
82014         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
82015
82016         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
82017
82018         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
82019         libgcrypt).
82020
82021         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
82022
82023         * lib/md2.h, lib/md2.c: New files.
82024
82025 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
82026
82027         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
82028         errno alone.  Problem reported by Frederic Jolliton.
82029
82030 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
82031
82032         * modules/verify (License): Change from GPL to LGPL.  This is a
82033         tiny module and there are apparently near-equivalents that are
82034         under the BSD license.
82035
82036 2005-10-24  Simon Josefsson  <jas@extundo.com>
82037
82038         * modules/sha1: Relicense to LGPL.
82039
82040 2005-10-24  Simon Josefsson  <jas@extundo.com>
82041
82042         * lib/md4.h: Shrink buffer size, now that we changed the type.
82043
82044 2005-10-23  Simon Josefsson  <jas@extundo.com>
82045
82046         * gnulib-tool (func_import): Fix --tests-base.
82047
82048 2005-10-22  Simon Josefsson  <jas@extundo.com>
82049
82050         * modules/arcfour (Depends-on): Need stdint.
82051
82052 2005-10-22  Simon Josefsson  <jas@extundo.com>
82053
82054         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
82055         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
82056
82057 2005-10-22  Simon Josefsson  <jas@extundo.com>
82058
82059         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
82060         suggested by Bruno Haible <bruno@clisp.org>.
82061
82062 2005-10-22  Simon Josefsson  <jas@extundo.com>
82063
82064         * lib/crc.h: Include stddef.h, for size_t.
82065
82066 2005-10-22  Simon Josefsson  <jas@extundo.com>
82067
82068         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
82069         arcfour_context struct (simplify test vector testing in GNU
82070         Shishi).
82071
82072 2005-10-21  Simon Josefsson  <jas@extundo.com>
82073
82074         * modules/des, modules/des-tests: New files.
82075
82076         * modules/gc-des, modules/gc-des-tests: New files.
82077
82078         * tests/test-des.c, tests/test-gc-des.c: New file.
82079
82080 2005-10-21  Simon Josefsson  <jas@extundo.com>
82081
82082         * modules/arctwo, modules/arctwo-tests: New files.
82083
82084         * tests/test-arctwo.c: New file.
82085
82086         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
82087
82088         * tests/test-gc-arctwo.c: New file.
82089
82090 2005-10-21  Simon Josefsson  <jas@extundo.com>
82091
82092         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
82093         Bruno Haible <bruno@clisp.org>.
82094
82095         * m4/gc-des.m4: New file.
82096
82097 2005-10-21  Simon Josefsson  <jas@extundo.com>
82098
82099         * m4/arctwo.m4: New file.
82100
82101         * m4/gc-arctwo.m4: New file.
82102
82103 2005-10-21  Simon Josefsson  <jas@extundo.com>
82104
82105         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
82106         block.
82107
82108 2005-10-21  Simon Josefsson  <jas@extundo.com>
82109
82110         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
82111         <bruno@clisp.org>.
82112
82113         * lib/hmac-sha1.c (hmac_sha1): Likewise.
82114
82115         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
82116         Bruno Haible <bruno@clisp.org>.
82117
82118         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
82119         <bruno@clisp.org>.
82120
82121 2005-10-21  Simon Josefsson  <jas@extundo.com>
82122
82123         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
82124
82125 2005-10-21  Simon Josefsson  <jas@extundo.com>
82126
82127         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
82128
82129 2005-10-21  Simon Josefsson  <jas@extundo.com>
82130
82131         * lib/des.h, lib/des.c: New files.
82132
82133         * lib/gc-gnulib.c: Support DES.c
82134
82135 2005-10-21  Simon Josefsson  <jas@extundo.com>
82136
82137         * lib/arctwo.h, lib/arctwo.c: New files.
82138
82139         * lib/gc-gnulib.c: Support ARCTWO.
82140
82141 2005-10-21  Simon Josefsson  <jas@extundo.com>
82142
82143         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
82144         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
82145
82146 2005-10-21  Simon Josefsson  <jas@extundo.com>
82147
82148         * gnulib-tool (func_import, func_create_testdir): Define automake
82149         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
82150         Makefile.am snippet),
82151         suggested by Bruno Haible <bruno@clisp.org>.
82152
82153         * modules/gc (Makefile.am): Use it.
82154
82155 2005-10-21  Bruno Haible  <bruno@clisp.org>
82156
82157         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
82158         patch.
82159
82160 2005-10-19  Simon Josefsson  <jas@extundo.com>
82161
82162         * tests/test-gc-rijndael.c: New file.
82163
82164         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
82165
82166 2005-10-19  Simon Josefsson  <jas@extundo.com>
82167
82168         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
82169         interface too.
82170
82171 2005-10-19  Simon Josefsson  <jas@extundo.com>
82172
82173         * tests/test-gc-arcfour.c: New file.
82174
82175         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
82176
82177 2005-10-19  Simon Josefsson  <jas@extundo.com>
82178
82179         * modules/gc-md4, modules/gc-md4-tests: New file.
82180
82181         * tests/test-gc-md4.c: New file.
82182
82183 2005-10-19  Simon Josefsson  <jas@extundo.com>
82184
82185         * m4/gc-md4.m4: New file.
82186
82187 2005-10-19  Simon Josefsson  <jas@extundo.com>
82188
82189         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
82190         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
82191         <kasal@ucw.cz>.
82192
82193 2005-10-19  Simon Josefsson  <jas@extundo.com>
82194
82195         * m4/gc-arcfour.m4: New file.
82196
82197         * m4/gc-rijndael.m4: New file.
82198
82199 2005-10-19  Simon Josefsson  <jas@extundo.com>
82200
82201         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
82202
82203 2005-10-19  Simon Josefsson  <jas@extundo.com>
82204
82205         * lib/gc-gnulib.c: Support ARCFOUR.
82206
82207 2005-10-19  Simon Josefsson  <jas@extundo.com>
82208
82209         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
82210         support.
82211
82212         * lib/gc.h: Add ECB enum type.
82213
82214         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
82215
82216 2005-10-18  Simon Josefsson  <jas@extundo.com>
82217
82218         * tests/test-md5.c: New file.
82219
82220         * modules/md5-tests: New file.
82221
82222 2005-10-18  Simon Josefsson  <jas@extundo.com>
82223
82224         * tests/test-md4.c: New file.
82225
82226         * modules/md4, modules/md4-tests: New files.
82227
82228 2005-10-18  Simon Josefsson  <jas@extundo.com>
82229
82230         * m4/md4.m4: New file.
82231
82232 2005-10-18  Simon Josefsson  <jas@extundo.com>
82233
82234         * lib/md4.h, lib/md4.c: New files, based on md5.?.
82235
82236 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
82237
82238         * gnulib-tool (func_create_testdir): Omit the second check whether
82239         BUILT_SOURCES in nonempty.
82240
82241 2005-10-17  Simon Josefsson  <jas@extundo.com>
82242
82243         * tests/test-rijndael.c: New file.
82244
82245 2005-10-17  Simon Josefsson  <jas@extundo.com>
82246
82247         * modules/sha1: Depend on stdint instead of md5.
82248
82249         * modules/md5: Depend on stdint, remove uint32_t.
82250
82251 2005-10-17  Simon Josefsson  <jas@extundo.com>
82252
82253         * modules/gc-sha1-tests: New file.
82254
82255         * tests/test-gc-sha1.c: New file.
82256
82257 2005-10-17  Simon Josefsson  <jas@extundo.com>
82258
82259         * m4/md5.m4: Remove call to uint32_t.m4.
82260
82261 2005-10-17  Simon Josefsson  <jas@extundo.com>
82262
82263         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
82264
82265         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
82266         md5.h.
82267
82268         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
82269
82270         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
82271
82272 2005-10-17  Simon Josefsson  <jas@extundo.com>
82273
82274         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
82275
82276 2005-10-17  Simon Josefsson  <jas@extundo.com>
82277
82278         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
82279
82280 2005-10-17  Simon Josefsson  <jas@extundo.com>
82281
82282         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
82283
82284         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
82285
82286 2005-10-17  Bruno Haible  <bruno@clisp.org>
82287
82288         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
82289         that it can also be used in a test.
82290
82291 2005-10-16  Bruno Haible  <bruno@clisp.org>
82292
82293         * gnulib-tool (func_emit_tests_Makefile_am): Also define
82294         TESTS_ENVIRONMENT, so that individual tests can augment it.
82295
82296         * gnulib-tool (func_create_testdir): Use an intermediate target for
82297         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
82298         macros, like $(ALLOCA_H), which cannot be passed through the command
82299         line.
82300
82301 2005-10-15  Simon Josefsson  <jas@extundo.com>
82302
82303         * modules/rijndael-tests: New file.
82304
82305         * modules/rijndael: New file.
82306
82307 2005-10-15  Simon Josefsson  <jas@extundo.com>
82308
82309         * m4/rijndael.m4: New file.
82310
82311 2005-10-15  Simon Josefsson  <jas@extundo.com>
82312
82313         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
82314
82315         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
82316
82317 2005-10-14  Simon Josefsson  <jas@extundo.com>
82318
82319         * tests/test-arcfour.c: New file.
82320
82321         * modules/arcfour, modules/arcfour-tests: New files.
82322
82323 2005-10-14  Simon Josefsson  <jas@extundo.com>
82324
82325         * m4/arcfour.m4: New file.
82326
82327 2005-10-14  Simon Josefsson  <jas@extundo.com>
82328
82329         * lib/arcfour.h, lib/arcfour.c: New files.
82330
82331 2005-10-14  Roland McGrath  <roland@redhat.com>
82332
82333         Import from libc.  [BZ #1331]
82334         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
82335         macro argument.
82336         Reported by Matej Vela <vela@debian.org>.
82337
82338 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
82339
82340         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
82341         include <wchar.h>; no longer needed.
82342
82343 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
82344
82345         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
82346
82347 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
82348         and  Ulrich Drepper  <drepper@redhat.com>
82349
82350         Import from libc.
82351         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
82352         instead of inline stream orientation test and two separate
82353         function calls.  Pay no attention to USE_IN_LIBIO.
82354
82355 2005-10-13  Simon Josefsson  <jas@extundo.com>
82356
82357         * modules/gc-hmac-md5-tests: New file.
82358
82359         * tests/test-gc-hmac-sha1.c: New file.
82360
82361         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
82362
82363         * modules/gc-hmac-md5-tests: New file.
82364
82365         * tests/test-gc-md5.c: New file.
82366
82367         * modules/gc-md5-tests: New file.
82368
82369 2005-10-13  Simon Josefsson  <jas@extundo.com>
82370
82371         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
82372         Move memory allocation outside of loop.
82373
82374 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
82375
82376         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
82377         intermediate directory is in a read-only file system.  Problem
82378         reported by Eric Blake.
82379
82380 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
82381
82382         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
82383
82384 2005-10-12  Simon Josefsson  <jas@extundo.com>
82385
82386         * tests/test-hmac-sha1.c: New file.
82387
82388         * modules/hmac-sha1-tests: New file.
82389
82390         * modules/hmac-sha1: New file.
82391
82392 2005-10-12  Simon Josefsson  <jas@extundo.com>
82393
82394         * modules/gc-sha1: New file.
82395
82396 2005-10-12  Simon Josefsson  <jas@extundo.com>
82397
82398         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
82399
82400         * tests/test-gc-pbkdf2-sha1.c: New file.
82401
82402 2005-10-12  Simon Josefsson  <jas@extundo.com>
82403
82404         * modules/gc-md5, modules/gc-hmac-md5: New files.
82405
82406         * modules/gc (Files): Remove md5, memxor and hmac files.
82407
82408 2005-10-12  Simon Josefsson  <jas@extundo.com>
82409
82410         * m4/gc-pbkdf2-sha1.m4: New file.
82411
82412         * m4/gc-hmac-sha1.m4: New file.
82413
82414         * m4/gc-sha1: New file.
82415
82416         * m4/hmac-sha1.m4: New file.
82417
82418 2005-10-12  Simon Josefsson  <jas@extundo.com>
82419
82420         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
82421
82422         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
82423
82424 2005-10-12  Simon Josefsson  <jas@extundo.com>
82425
82426         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
82427         suggested by Bruno Haible <bruno@clisp.org>.
82428
82429 2005-10-12  Simon Josefsson  <jas@extundo.com>
82430
82431         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
82432
82433 2005-10-12  Simon Josefsson  <jas@extundo.com>
82434
82435         * lib/gc-pbkdf2-sha1.c: New file.
82436
82437         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
82438
82439 2005-10-12  Simon Josefsson  <jas@extundo.com>
82440
82441         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
82442
82443         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
82444
82445 2005-10-12  Simon Josefsson  <jas@extundo.com>
82446
82447         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
82448         GC_USE_HMAC_MD5, respectively.
82449
82450         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
82451         (gc_md5): Fix typo.
82452
82453         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
82454
82455         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
82456
82457         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
82458
82459 2005-10-12  Bruno Haible  <bruno@clisp.org>
82460
82461         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
82462         Reported by Stepan Kasal <kasal@ucw.cz>.
82463
82464 2005-10-11  Simon Josefsson  <jas@extundo.com>
82465
82466         * tests/test-crc.c: New file.
82467
82468         * modules/crc, modules/crc-tests: New files.
82469
82470 2005-10-11  Simon Josefsson  <jas@extundo.com>
82471
82472         * m4/crc.m4: New file.
82473
82474 2005-10-11  Simon Josefsson  <jas@extundo.com>
82475
82476         * lib/gc.h: Add gc_hash and gc_hash_buffer.
82477
82478         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
82479
82480         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
82481
82482 2005-10-11  Simon Josefsson  <jas@extundo.com>
82483
82484         * lib/crc.h, lib/crc.c: New files.
82485
82486         * lib/gc.h (gc_hash_buffer): Add doc.
82487
82488 2005-10-11  Bruno Haible  <bruno@clisp.org>
82489
82490         * modules/c-strcasestr: New file.
82491         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
82492
82493 2005-10-11  Bruno Haible  <bruno@clisp.org>
82494
82495         * modules/c-strcase: New file.
82496         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
82497
82498 2005-10-11  Bruno Haible  <bruno@clisp.org>
82499
82500         * lib/strcasecmp.c: Include limits.h.
82501         (strcasecmp): Avoid integer overflow on exotic platforms.
82502         * lib/strncasecmp.c: Include limits.h.
82503         (strncasecmp): Avoid integer overflow on exotic platforms.
82504         Reported by Paul Eggert.
82505
82506 2005-10-11  Bruno Haible  <bruno@clisp.org>
82507
82508         * lib/c-strcasestr.h: New file, from GNU gettext.
82509         * lib/c-strcasestr.c: New file, from GNU gettext.
82510
82511 2005-10-11  Bruno Haible  <bruno@clisp.org>
82512
82513         * lib/c-strcase.h: New file, from GNU gettext.
82514         * lib/c-strcasecmp.c: New file, from GNU gettext.
82515         * lib/c-strncasecmp.c: New file, from GNU gettext.
82516
82517 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
82518
82519         * modules/mempcpy (License): GPL -> LGPL.
82520         * modules/strchrnul (License): Likewise.
82521         * modules/sysexits (License): Likewise.
82522
82523 2005-10-08  Simon Josefsson  <jas@extundo.com>
82524
82525         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
82526
82527 2005-10-07  Simon Josefsson  <jas@extundo.com>
82528
82529         * m4/memxor.m4: Remove gl_C_RESTRICT call.
82530
82531 2005-10-06  Simon Josefsson  <jas@extundo.com>
82532
82533         * tests/test-hmac-md5.c: New file.
82534
82535         * modules/hmac-md5-tests: New file.
82536
82537         * modules/hmac-md5: New file.
82538
82539 2005-10-06  Simon Josefsson  <jas@extundo.com>
82540
82541         * m4/hmac-md5.m4: New file.
82542
82543         * m4/memxor.m4: Require gl_C_RESTRICT.
82544
82545 2005-10-06  Simon Josefsson  <jas@extundo.com>
82546
82547         * lib/memxor.c (memxor): Avoid casts and warnings.
82548
82549 2005-10-06  Simon Josefsson  <jas@extundo.com>
82550
82551         * lib/hmac-md5.c: New file.
82552
82553         * lib/hmac.h: New file.
82554
82555 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
82556
82557         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
82558         promotes to int, not unsigned int, to catch the AIX 5.3
82559         compiler bug.
82560
82561 2005-10-05  Simon Josefsson  <jas@extundo.com>
82562
82563         * modules/memxor: New file.
82564
82565         * modules/iconv (Files): Move config.rpath to havelib, it is used
82566         there.
82567
82568         * modules/havelib (Files): Add config.rpath.
82569
82570 2005-10-05  Simon Josefsson  <jas@extundo.com>
82571
82572         * m4/memxor.m4: New file.
82573
82574 2005-10-05  Simon Josefsson  <jas@extundo.com>
82575
82576         * lib/memxor.c (memxor): Fix compiler error.
82577
82578         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
82579         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
82580
82581         * lib/memxor.h, lib/memxor.c: New files.
82582
82583         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
82584         we assume all systems have it, suggested by Jim Meyering
82585         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
82586         any systems lack sys/socket.h; mingw32 is known to lack it, but we
82587         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
82588         same reasons.
82589
82590 2005-10-05  Simon Josefsson  <jas@extundo.com>
82591
82592         * config/srclist.txt: Add glibc bug 1423 for md5.h.
82593
82594 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
82595
82596         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
82597         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
82598         needed, since the source code now assumes these .h files.
82599
82600 2005-10-05  Derek Price  <derek@ximbiot.com>
82601
82602         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
82603
82604 2005-10-05  Bruno Haible  <bruno@clisp.org>
82605
82606         * modules/stdint (License): Change to LGPL.
82607
82608 2005-10-04  Simon Josefsson  <jas@extundo.com>
82609
82610         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
82611         D. Baushke" <mdb@gnu.org>.
82612
82613 2005-10-04  Bruno Haible  <bruno@clisp.org>
82614
82615         * lib/verify.h (verify_true): Provide alternative definition for C++.
82616
82617 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
82618
82619         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
82620         (SSIZE_MAX): New macro, if not already defined.
82621         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
82622         than 2 GiB.
82623
82624 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
82625
82626         Sync from coreutils.
82627         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
82628         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
82629         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
82630         ULLONG_MAX doesn't work with 2.7.2.1.
82631
82632 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
82633
82634         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
82635         From Ben Pfaff.
82636
82637         * modules/exclude (Depends-on): Depend on verify.
82638         * modules/strtoimax (Depends-on): Likewise.
82639         * modules/utimecmp (Depends-on): Likewise.
82640
82641 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
82642
82643         * lib/exclude.c: Include verify.h.
82644         (verify): Remove.  All callers changed to use verify.h's version.
82645         * lib/strtoimax.c: Likewise.
82646         * lib/utimecmp.c: Likewis.e
82647
82648         Sync from coreutils.
82649         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
82650         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
82651         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
82652         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
82653         bother returning ENOSYS if settimeofday or stime fails; just let
82654         them return whatever errno they want to return.
82655         * lib/utimens.c: Include unistd.h, for dup2.
82656         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
82657         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
82658
82659 2005-10-02  Jim Meyering  <jim@meyering.net>
82660
82661         Sync from coreutils.
82662         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
82663         from glibc-2.2.5 that fails for read-only files.
82664
82665 2005-10-02  Jim Meyering  <jim@meyering.net>
82666
82667         Sync from coreutils.
82668         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
82669         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
82670         `#if HAVE_CONFIG_H'.
82671         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
82672         Remove AT_FDCWD test.
82673         Do not consume the fd unless successful.
82674         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
82675         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
82676         block, so that we don't even try to compile it if settimeofday is
82677         available.  This works around a compilation failure on OSF1 V5.1,
82678         due to stime requiring a `long int*' while tv_sec is `int'.
82679
82680 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
82681
82682         Sync from coreutils.
82683         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
82684         against `yes', rather than just testing for nonempty.
82685
82686 2005-10-01  Simon Josefsson  <jas@extundo.com>
82687
82688         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
82689         and Darwin.
82690
82691         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
82692         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
82693         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
82694         freeaddrinfo and gai_strerror are declared by the POSIX headers.
82695         Check if struct addrinfo is declared.
82696
82697 2005-10-01  Simon Josefsson  <jas@extundo.com>
82698
82699         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
82700         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
82701         AI_* and EAI_* definitions.  Protect function declarations.
82702
82703 2005-10-01  Jim Meyering  <jim@meyering.net>
82704
82705         Sync from coreutils.
82706
82707         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
82708         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
82709         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
82710         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
82711         in the inet and nsl libraries.  Required on Solaris 5.7.
82712
82713 2005-10-01  Jim Meyering  <jim@meyering.net>
82714
82715         Sync from coreutils.
82716         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
82717         in the inet and nsl libraries.  Required on Solaris 5.7.
82718
82719 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
82720
82721         * lib/getdelim.c (getdelim): Remove unused variables.
82722
82723 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
82724
82725         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
82726         so that the code works even with ancient cpp.  Portability problem
82727         with GCC 2.7.2.1 reported by Thomas M.Ott.
82728
82729 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
82730
82731         * modules/regex (Depends-on): Add strcase.
82732
82733         * modules/gethostname (Licence): Change from GPL to LGPL, since
82734         gethostname.c is a trivial implementation of a standard library
82735         function.
82736         * modules/poll (License): Change from GPL to LGPL, since it's
82737         derived from LGPL code.
82738
82739 2005-09-27  Jim Meyering  <jim@meyering.net>
82740
82741         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
82742         HAVE_CONFIG_H.
82743
82744         * lib/intprops.h (signed_type_or_expr__): Define.
82745         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
82746         for unsigned types.
82747
82748 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
82749
82750         * lib/verify.h (verify_expr): Remove, replacing with:
82751         (verify_true): New macro that returns true instead of void.
82752         (verify_type__): Remove.
82753         (verify): Use verify_true rather than verify_type__.
82754
82755 2005-09-26  Bruno Haible  <bruno@clisp.org>
82756
82757         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
82758         is necessary.
82759         (lib_SOURCES): Remove mbchar.c.
82760         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
82761         (Files): Add m4/mbrtowc.m4.
82762         * modules/mbiter: Likewise.
82763         * modules/mbuiter: Likewise.
82764
82765 2005-09-26  Bruno Haible  <bruno@clisp.org>
82766
82767         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
82768         compile mbchar.c if they are not both present.
82769         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
82770         * m4/mbiter.m4 (gl_MBITER): Likewise.
82771         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
82772         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
82773         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
82774
82775 2005-09-25  Jim Meyering  <jim@meyering.net>
82776
82777         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
82778         also uses socklen_t.
82779
82780 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
82781
82782         * lib/utimens.c (ENOSYS): Define if not already defined.
82783         (futimens): Support having a null PATH if the file descriptor
82784         is nonnegative.
82785
82786         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
82787         Remove.
82788         (__attribute): Define to empty unless GCC 3.1 or later.
82789         This works around a core dump on OpenBSD 3.4, which has GCC
82790         2.95.3, which dumps core when given __attribute__(()).  It also
82791         simplifies other tests, since we really don't want to bother with
82792         worrying about which ancient version of GCC supported what.
82793         Original problem reported by Yoann Vandoorselaere, with part of
82794         the fix suggested by Derek Price.
82795
82796 2005-09-24  Jim Meyering  <jim@meyering.net>
82797
82798         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
82799         so we can once again use a positive bitfield width of 1 -- now we
82800         don't have to explain why we were using a bitfield width of 2.
82801
82802 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
82803
82804         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
82805         and similarly for the other external symbols.  Problem reported
82806         by James Gallager.
82807
82808         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
82809         bug reported by Jim Meyering.
82810
82811         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
82812         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
82813         not needed, since socklen is a prerequisite module.
82814
82815 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
82816
82817         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
82818         Problem reported by Eric Blake.
82819         (getaddrinfo): Initialize se so that it's not garbage.
82820         Redo internal storage allocation so that it doesn't make unportable
82821         assumptions about alignment.
82822         Fix a memory leak.
82823
82824         * lib/utimens.c (futimens): Use futimesat if available.
82825         Prefer it to futimes since it doesn't have the futimes bug.
82826
82827         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
82828         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
82829         Instead, declare a function that returns a pointer to an array,
82830         and use verify_type__ to declare the size of the array.
82831         Problem and germ of a solution reported by Bruno Haible.
82832         (verify_type__): Use 2, not 1, for bitfield size, to avoid
82833         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
82834
82835 2005-09-23  Jim Meyering  <jim@meyering.net>
82836
82837         Sync from coreutils.
82838         Correct build failure (socklen_t not defined) on at least
82839         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
82840         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
82841
82842 2005-09-23  Jim Meyering  <jim@meyering.net>
82843
82844         * modules/getaddrinfo (Depends-on): Add socklen.
82845
82846 2005-09-23  Bruno Haible  <bruno@clisp.org>
82847
82848         * tests/test-verify.c: New file.
82849
82850 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
82851
82852         Sync from coreutils.
82853
82854         * modules/argmatch (Depends-on): Add verify.
82855         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
82856         unistd-safer.
82857         * modules/save-cwd (Depends-on): Likewise.
82858
82859         * modules/openat (Files): Add lib/openat-die.c.
82860         (Depends-on): Remove error, exitfail.
82861         Add dirname.
82862
82863         * modules/verify: New file.
82864         * MODULES.html.sh (Diagnostics <assert.h>): New section,
82865         with "verify" module.
82866
82867 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
82868
82869         Sync from coreutils.
82870
82871         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
82872         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
82873         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
82874         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
82875         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
82876         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
82877         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
82878         Don't bother checking for string.h, stdlib.h, unistd.h.
82879         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
82880         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
82881         module's job.
82882         * m4/jm-macros.m4 (gl_MACROS): Likewise.
82883         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
82884
82885         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
82886         (gl_GETDATE): Use it.
82887
82888         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
82889
82890 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
82891
82892         Sync from coreutils.
82893
82894         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
82895         stat-time.h.
82896         * lib/argmatch.h: Include verify.h
82897         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
82898         (ARGMATCH_ASSERT): Remove; unused.
82899         * lib/canonicalize.c: Assume STDC_HEADERS.
82900         * lib/exclude.c: Include "strcase.h".
82901         * lib/regex_internal.h [!defined _LIBC]: Likewise.
82902         * lib/getusershell.c: Include stdio--.h rather than stdio.h
82903         and stdio-safer.h.
82904         (getusershell): Call fopen, not fopen_safer.
82905         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
82906         Do not include unistd-safer.h.
82907         (save_cwd): Don't call fd_safer; no longer needed
82908         now that we include fcntl--.h.
82909
82910         * lib/getdate.y (relative_time): New type.
82911         (RELATIVE_TIME_0): New constant.
82912         (parser_control): Use relative_time instead of doing it ourselves.
82913         (%union): Add new relative_time rel member.
82914         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
82915         Now typeless.
82916         (relunit, relunit_snumber): Now of type rel.
82917         (zone, rel, relunit, get_date): Adjust to above changes.
82918
82919         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
82920         Do not include unistd-safer.h.
82921         (getloadavg): Don't call fd_safer; no longer needed
82922         now that we include fcntl--.h.
82923
82924         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
82925         (make_dir_parents): Treat ENOSYS like EEXIST.
82926
82927         Improve quality of diagnostics on restore_cwd failure.
82928         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
82929         (make_dir_parents): Last arg is now int * (for errno), not bool *.
82930         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
82931         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
82932         each time through the loop.  Do not diagnose restore_cwd failure;
82933         that is the caller's job (and perhaps the caller does not care).
82934
82935         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
82936         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
82937         If the file already exists but is not a directory, don't bother
82938         to try to make its parents.
82939         Close potential file descriptor leak if we can't chdir("/") (!).
82940         Don't always return true if chdir($PWD) fails; return true only
82941         if the requested action was done successfully (except for the
82942         chdir($PWD)).
82943         Don't log final directory unless we actually made it.
82944         Refactor to avoid duplicate code to fix up permissions.
82945         Don't attempt to fix up parent permissions if chdir($PWD) fails.
82946
82947         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
82948         to make it a bit faster and (I hope) clearer.
82949         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
82950         Fix bug in formats like %2N.
82951
82952         * lib/verify.h: New file.
82953
82954 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
82955
82956         Sync from coreutils.
82957         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
82958
82959 2005-09-22  Jim Meyering  <jim@meyering.net>
82960
82961         Sync from coreutils.
82962
82963         * m4/lstat.m4 (gl_FUNC_LSTAT):
82964         Use AC_LIBSOURCES to require lstat.c and lstat.h.
82965         Remove obsolete comment.
82966         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
82967         * m4/xstrtod.m4: Likewise.
82968
82969         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
82970
82971 2005-09-22  Jim Meyering  <jim@meyering.net>
82972
82973         Sync from coreutils.
82974
82975         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
82976
82977         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
82978         the .tm_year member, since otherwise gcc-4.0 would now warn about
82979         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
82980
82981         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
82982         order to avoid an unsuppressible warning from gcc on 64-bit systems.
82983
82984         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
82985         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
82986         when run in a time zone for which daylight savings time is in effect
82987         for the starting date.
82988
82989         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
82990         stop us from restricting permissions of just-created absolute-named
82991         directories.
82992         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
82993         to restore initial working directory.
82994         * lib/mkdir-p.c (make_dir_parents): New parameter:
82995         different_working_dir, to tell caller if/when we change the working
82996         directory and are unable to return to the initial one.
82997         * lib/mkdir-p.h (make_dir_parents): Update prototype.
82998         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
82999         `return false'.  This fixes a bug introduced on 2004-07-30.
83000
83001         * lib/openat.c (fdopendir): Be sure to close the supplied
83002         file descriptor before returning.  This makes our replacement
83003         implementation a little closer to Solaris's, where fdopendir
83004         ties the file descriptor to the returned DIR* pointer.
83005         * lib/openat.c (unlinkat): New function.
83006         * lib/openat.h (unlinkat): Add prototype.
83007         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
83008         (openat_restore_fail): Rename from openat_restore_die.
83009         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
83010
83011         Provide an alternative to exiting immediately upon save_cwd or
83012         restore_cwd failure.  Now, an application can arrange e.g.,
83013         to perform a longjump in that case.
83014         * lib/openat.c: Include dirname.h.
83015         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
83016         (rpl_openat, fdopendir, fstatat): Call openat_save_die
83017         and openat_restore_die rather than calling error directly.
83018         Don't include "error.h" or "exitfail.h"; they're no longer needed.
83019
83020         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
83021         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
83022         define.
83023
83024         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
83025         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
83026                             int utc, int nanoseconds);
83027         Background:
83028         date should not have to allocate a megabyte of virtual memory to
83029         handle a format argument like +%1048575T.  When implemented with
83030         strftime, it must allocate such a buffer, use strftime to fill it
83031         in, print it, then free it.
83032         With fprintftime, it simply prints everything and exits.
83033         With no need for memory allocation, that's one fewer way to fail.
83034         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
83035         optional field width, not before, so we accept %9:z, not %:9z.
83036         (my_strftime): Be sure to use L_('x') for literals.
83037
83038         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
83039         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
83040         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
83041         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
83042         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
83043         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
83044         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
83045         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
83046         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
83047         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
83048         * lib/xgethostname.c, lib/xreadlink.c:
83049         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
83050
83051         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
83052         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
83053         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
83054         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
83055         and don't include <sys/file.h>).
83056
83057 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
83058
83059         Sync from coreutils.
83060
83061         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
83062         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
83063         [!LDAV_DONE]: Avoid unused variable warning.
83064
83065 2005-09-21  Bruno Haible  <bruno@clisp.org>
83066
83067         * lib/unicodeio.h (unicode_to_mb): New declaration.
83068
83069 2005-09-20  Derek Price  <derek@ximbiot.com>
83070
83071         * lib/getaddrinfo.c: Don't include <netdb.h> included from
83072         getaddrinfo.h.
83073
83074 2005-09-20  Bruno Haible  <bruno@clisp.org>
83075
83076         * gnulib-tool: Remove trailing slashes from the values specified for
83077         --source-base, --m4-base, --tests-base, --aux-dir.
83078         Suggested by Simon Josefsson <jas@extundo.com>.
83079
83080 2005-09-20  Bruno Haible  <bruno@clisp.org>
83081
83082         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
83083         func_modules_to_filelist, func_import, func_create_testdir): Make all
83084         sorting results locale-independent, so that gnulib-cache.m4 doesn't
83085         change when gnulib-tool is invoked in a different locale.
83086
83087 2005-09-19  Simon Josefsson  <jas@extundo.com>
83088
83089         * m4/socklen.m4: Fix typo.
83090
83091 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83092
83093         Use a consistent style for including <config.h>.
83094         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
83095         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
83096         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
83097         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
83098         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
83099         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
83100         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
83101         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
83102         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
83103         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
83104         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
83105         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
83106         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
83107         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
83108         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
83109         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
83110         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
83111         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
83112         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
83113         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
83114         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
83115         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
83116         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
83117         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
83118         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
83119         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
83120         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
83121         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
83122         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
83123         lib/xstrtoumax.c, lib/yesno.c:
83124         Standardize inclusion of config.h.
83125         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
83126         lib/inttostr.h:  Removed inclusion of config.h from header files.
83127         * lib/inttostr.c:  Adjusted in-tree users.
83128         * lib/timespec.h: Remove superfluous warning to include config.h.
83129         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
83130         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
83131         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
83132         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
83133         config.h with HAVE_CONFIG_H.
83134
83135 2005-09-19  Jim Meyering  <jim@meyering.net>
83136
83137         * modules/pathmax (License): Change to LGPL.
83138
83139 2005-09-19  Derek Price  <derek@ximbiot.com>
83140
83141         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
83142
83143 2005-09-19  Bruno Haible  <bruno@clisp.org>
83144
83145         * gnulib-tool (import): Provide default for --tests-base.
83146
83147 2005-09-19  Bruno Haible  <bruno@clisp.org>
83148
83149         * doc/quote.texi: New file, extracted from gnulib.texi.
83150         * doc/ctime.texi: New file, extracted from gnulib.texi.
83151         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
83152         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
83153         * doc/gnulib.texi: Include them.
83154
83155 2005-09-18  Bruno Haible  <bruno@clisp.org>
83156
83157         Portability fix.
83158         * gnulib-tool (func_readlink): New function.
83159         (func_ln_if_changed): Use it.
83160
83161 2005-09-18  Bruno Haible  <bruno@clisp.org>
83162
83163         * gnulib-tool: Support --with-tests also with --import.
83164         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
83165         (func_import): Use variables $testsbase and $inctests. Emit a
83166         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
83167         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
83168         SUBDIRS += $testsdir.
83169         (func_create_testdir): Update.
83170
83171 2005-09-18  Bruno Haible  <bruno@clisp.org>
83172
83173         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
83174         instead of $dry_run.
83175         (func_cp_if_changed, func_mv_if_changed): Remove functions.
83176         (func_ln_if_changed): Don't handle dry-run here.
83177         (func_import): In dry-run mode, detect more precisely which actions
83178         would be performed, and don't use "...ing" verbs.
83179
83180 2005-09-18  Bruno Haible  <bruno@clisp.org>
83181
83182         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
83183         (func_import): Use join on two temporary files instead of three nested
83184         loops, in order to determine which files are new or old.
83185
83186 2005-09-18  Bruno Haible  <bruno@clisp.org>
83187
83188         * gnulib-tool (func_import): Comment out code that spits out the
83189         new files with --dry-run.
83190
83191 2005-09-18  Bruno Haible  <bruno@clisp.org>
83192
83193         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
83194
83195 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
83196
83197         * lib/stat-time.h: New file.
83198         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
83199         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
83200         in a different way.
83201         (timespec_cmp): New function.
83202         * lib/utimecmp.c: Include stat-time.h.
83203         (SYSCALL_RESOLUTION): Depend on whether various struct stat
83204         members exist, not on the obsolescent ST_MTIM_NSEC.
83205         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
83206
83207 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
83208
83209         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
83210
83211 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
83212
83213         * MODULES.html.sh (File system functions): Add stat-time.
83214         * modules/stat-time: New file.
83215         * modules/timespec (Files): Remove m4/st_mtim.m4; this
83216         is now done in a different way, by the stat-time module.
83217         * modules/utimecmp (Depends-on): Add stat-time.
83218
83219 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
83220
83221         * m4/st_mtim.m4: Remove.  Superseded by...
83222         * m4/stat-time.m4: New file.
83223         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
83224         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
83225
83226 2005-09-15  Derek Price  <derek@ximbiot.com>
83227
83228         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
83229
83230 2005-09-15  Derek Price  <derek@ximbiot.com>
83231
83232         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
83233         * lib/regex_internal.c: Ditto, using this...
83234         (__GNUC_PREREQ): ...new macro.
83235         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
83236         using...
83237         (__GNUC_PREREQ): ...this new macro.
83238
83239         * lib/strstr.h: Include string.h. Define strstr as a macro here.
83240
83241 2005-09-15  Derek Price  <derek@ximbiot.com>
83242             Paul Eggert  <eggert@cs.ucla.edu>
83243
83244         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
83245         changes, consolidating in...
83246         * lib/regex_internal.h: ...this file.
83247
83248 2005-09-13  Jim Meyering  <jim@meyering.net>
83249
83250         * lib/canon-host.c: Filter through gnu indent and reword comments
83251         slightly.
83252         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
83253
83254 2005-09-13  Derek Price  <derek@ximbiot.com>
83255
83256         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
83257         failure.
83258         Reported by Jim Meyering  <jim@meyering.net>.
83259
83260 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
83261
83262         * lib/base64.c: Typo.
83263         (base64_encode): Put b64str in initialized data section.
83264
83265 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
83266
83267         Merge glibc and coreutils changes into gnulib, plus a few
83268         extra fixes.
83269         * lib/md5.c: Use #error rather than a string.
83270         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
83271         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
83272         (__attribute__): Define to empty for non recent-GCC.
83273         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
83274         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
83275         Renamed from their non-__ counterparts, with new macros replacing
83276         them if not _LIBC.  Add __THROW attribute.
83277         (rol): Remove.
83278         (struct md5_ctx): Align buffer if using GCC.
83279         * lib/sha1.h (struct sha1_ctx): Likewise.
83280         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
83281         The old name was backwards.
83282         (NOTSWAP): Remove; not used.
83283         (rol): New macro, moved here from md5.h.
83284         (sha1_process_block): Remove a FIXME that doesn't make sense.
83285
83286 2005-09-12  Derek Price  <derek@ximbiot.com>
83287
83288         Return usable errors from canon-host.
83289         * lib/canon-host.h: New file.
83290         * lib/canon-host.c (canon_host): Wrap...
83291         (canon_host_r): ...this new function, which now relies exclusively on
83292         getaddrinfo.
83293         (ch_strerror): New function.
83294         (last_cherror): New global.
83295         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
83296         interface.
83297         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
83298         void *.
83299         (freeaddrinfo): Free ai->ai_canonname when set.
83300
83301 2005-09-12  Derek Price  <derek@ximbiot.com>
83302
83303         Make canon-host require getaddrinfo.
83304         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
83305         AC_LIBSOURCE canon-host.h.  Call...
83306         (gl_PREREQ_CANON_HOST): ...this new function, which requires
83307         gl_GETADDRINFO.
83308         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
83309
83310 2005-09-12  Derek Price  <derek@ximbiot.com>
83311
83312         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
83313         LGPL.
83314         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
83315
83316 2005-09-12  Derek Price  <derek@ximbiot.com>
83317
83318         * lib/gai_strerror.c: Include config.h when available.  Include
83319         getaddrinfo.h before other headers to test interface.
83320         Reported by Larry Jones <lawrence.jones@ugs.com>.
83321
83322 2005-09-12  Derek Price  <derek@ximbiot.com>
83323             Paul Eggert  <eggert@cs.ucla.edu>
83324
83325         * modules/glob (Files): Add glob-libc.h.
83326
83327 2005-09-12  Derek Price  <derek@ximbiot.com>
83328             Paul Eggert  <eggert@cs.ucla.edu>
83329
83330         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
83331         glob_.h, glob-libc.h.
83332         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
83333
83334 2005-09-12  Derek Price  <derek@ximbiot.com>
83335             Paul Eggert  <eggert@cs.ucla.edu>
83336
83337         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
83338         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
83339         protecting things that should be done only in gnulib contexts.
83340         * lib/glob_.h: New file, containing only the glob things needed for
83341         gnulib.
83342         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
83343         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
83344         (glob, globfree, glob_pattern_p): Now defined simply in terms of
83345         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
83346         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
83347         and to respect the namespace rules better.
83348
83349 2005-09-08  Simon Josefsson  <jas@extundo.com>
83350
83351         * modules/socklen: New file.
83352
83353 2005-09-08  Simon Josefsson  <jas@extundo.com>
83354
83355         * m4/socklen.m4: New file.
83356
83357 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
83358
83359         * modules/utimens (Files): Add m4/utimbuf.m4, since
83360         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
83361         Reported by Sergey Poznyakoff.
83362
83363 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
83364
83365         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
83366         definitions, since that's the preferred style in glibc.
83367         Fix a minor spacing issue, and update copyright notice to match
83368         glibc's.
83369
83370 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
83371
83372         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
83373
83374 2005-09-06  Simon Josefsson  <jas@extundo.com>
83375
83376         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
83377         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
83378
83379 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
83380
83381         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
83382         warning.
83383
83384 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
83385
83386         * config/srclist.txt: Add glibc bug 1302.
83387
83388 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
83389
83390         Change bitset word type from unsigned int to unsigned long int,
83391         as this has better performance on typical 64-bit hosts.
83392         Port bitset code to hosts with unusual word sizes.
83393         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
83394         (build_collating_symbol):
83395         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
83396         argument is a bitset.  This is merely a style issue, but it makes
83397         it clearer that an entire array is expected.
83398         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
83399         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
83400         Port to the case where bitset_word is not the same as unsigned int.
83401         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
83402         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
83403         Likewise.
83404         * lib/regexec.c (check_dst_limits_calc_pos_1,
83405         check_subexp_matching_top):
83406         (build_trtable, group_nodes_into_DFAstates):
83407         Likewise.
83408         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
83409         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
83410         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
83411         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
83412         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
83413         * lib/regcomp.c (optimize_subexps, lower_subexp):
83414         Work even if bitset_word has holes in its bitwise representation.
83415         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
83416         * lib/regexec.c (check_dst_limits_calc_pos_1,
83417         check_subexp_matching_top):
83418         Likewise.
83419         * lib/regex_internal.c (re_string_reconstruct):
83420         Don't assume UCHAR_MAX == 255.
83421         * lib/regex_internal.h (bitset_set_all): Likewise.
83422         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
83423         All uses changed.
83424         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
83425         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
83426         All uses changed.
83427         (BITSET_WORD_MAX): New macro.
83428         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
83429         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
83430         (bitset_empty, bitset_copy):
83431         Prefer sizeof (bitset) to multiplying it out ourselves.
83432         (bitset_not_merge): Remove; unused.
83433         (bitset_contain): Return bool, not unsigned int with one bit on.
83434         All callers changed.
83435         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
83436         alignment than re_node_set; do this by defining a new internal
83437         type struct dests_alloc and using it to allocate memory.
83438
83439 2005-09-05  Bruno Haible  <bruno@clisp.org>
83440
83441         * gnulib-tool (func_import): Fix comparison in handling of symbolic
83442         links.
83443
83444 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
83445
83446         * modules/size_max (Makefile.am): Add size_max.h
83447
83448 2005-09-04  Derek Price  <derek@ximbiot.com>
83449
83450         * gnulib-tool (func_import): Fix reversed $symbolic logic.
83451
83452 2005-09-03  Simon Josefsson  <jas@extundo.com>
83453
83454         * gnulib-tool: Fix typo.
83455
83456 2005-09-03  Simon Josefsson  <jas@extundo.com>
83457
83458         * config/srclist.txt: Add glibc bug 1293.
83459
83460 2005-09-03  Derek Price  <derek@ximbiot.com>
83461
83462         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
83463         From Larry Jones <lawrence.jones@ugs.com>.
83464
83465 2005-09-02  Simon Josefsson  <jas@extundo.com>
83466
83467         * modules/socklen: New file.
83468
83469 2005-09-02  Simon Josefsson  <jas@extundo.com>
83470
83471         * modules/havelib: New module.
83472
83473         * modules/gettext, modules/iconv, modules/lock, modules/readline:
83474         Use havelib.
83475
83476 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
83477
83478         Check for arithmetic overflow when calculating sizes, to prevent
83479         some buffer-overflow issues.  These patches are conservative, in the
83480         sense that when I couldn't determine whether an overflow was possible,
83481         I inserted a run-time check.
83482         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
83483         macros.
83484         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
83485         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
83486         (re_xnrealloc, re_x2nrealloc): New inline functions.
83487         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
83488         parse_bracket_exp):
83489         (build_equiv_class, build_charclass): Check for arithmetic overflow
83490         in size expression calculations.
83491         * lib/regex_internal.c (re_string_realloc_buffers):
83492         (build_wcs_upper_buffer, re_node_set_add_intersect):
83493         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
83494         (re_dfa_add_node, register_state): Likewise.
83495         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
83496         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
83497         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
83498         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
83499
83500 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
83501
83502         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
83503         m4/ulonglong.m4.  Problem reported by Martin Lambers.
83504
83505 2005-09-02  Bruno Haible  <bruno@clisp.org>
83506
83507         Support for lib vs. lib64 distinction on biarch platforms.
83508         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
83509         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
83510         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
83511
83512 2005-09-02  Bruno Haible  <bruno@clisp.org>
83513
83514         * gnulib-tool (import): In the other first-use case, provide defaults
83515         as well.
83516
83517 2005-09-02  Bruno Haible  <bruno@clisp.org>
83518
83519         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
83520         patches not yet found in the latest gettext release.
83521
83522 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
83523
83524         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
83525         to avoid a collision with bits/local_lim.h in glibc.
83526         All uses changed.  Problem reported by Dmitry V. Levin in
83527         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
83528
83529         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
83530         bugs in int versus size_t comparisons.
83531         (re_string_context_at): Fix bug where the code assumed that
83532         Idx is signed.
83533
83534         Use bool where appropriate.
83535         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
83536         All callers changed.
83537         (calc_eclosure_iter): Likewise, for ROOT arg.
83538         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
83539         (build_charclass_op): Likewise, for NON_MATCH arg.
83540         * lib/regex_internal.c (re_string_allocate, re_string_construct):
83541         (re_string_construct_common): Likewise, for ICASE arg.
83542         * lib/regexec.c (re_search_2_stub, re_search_stub):
83543         Likewise, for RET_LEN arg.
83544         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
83545         (set_regs): Likewise, for FL_BACKTRACK arg.
83546         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
83547         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
83548         (calc_eclosure_iter, parse_bracket_exp):
83549         Use bool for internal variables that are booleans.
83550         * lib/regexec.c (re_search_internal, check_matching,
83551         proceed_next_node):
83552         (set_regs, build_sifted_states, sift_states_bkref):
83553         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
83554         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
83555         (find_collation_sequence_value):
83556         Likewise.
83557         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
83558         (re_node_set_compare):
83559         Return bool, not int. All callers changed.
83560         * lib/regexec.c (check_halt_node_context, check_dst_limits):
83561         (build_trtable, check_node_accept): Likewise.
83562         * lib/regex_internal.h: Include stdbool.h.
83563
83564         Fix bugs uncovered when converting to bool.
83565         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
83566         failure instead of charging ahead blindly.
83567         * lib/regex_internal.c (register_state): Likewise.
83568         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
83569         for freeing internal storage.
83570         (group_nodes_into_DFA_states): Use unsigned int, not int, for
83571         bitset pieces used as boolean, to avoid undefined behavior
83572         on hosts that do int overflow checking.
83573
83574 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
83575
83576         * config/srclist.txt: Add glibc bugs 1285-1287.
83577
83578 2005-09-01  Jim Meyering  <jim@meyering.net>
83579
83580         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
83581         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
83582         Require gl_STAT_MACROS, too.
83583
83584 2005-09-01  Bruno Haible  <bruno@clisp.org>
83585
83586         * gnulib-tool (import): In the first-use case, provide defaults.
83587
83588 2005-09-01  Bruno Haible  <bruno@clisp.org>
83589
83590         * gnulib-tool (func_import): Remove the .tmp files.
83591
83592 2005-09-01  Bruno Haible  <bruno@clisp.org>
83593
83594         * gnulib-tool (func_import): Fix handling of symbolic links.
83595
83596 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
83597
83598         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
83599         old glibc regex code mishandles strings longer than 2**31 bytes.
83600         This patch fixes this when the regex code is used in gnulib
83601         (i.e., outside glibc).
83602
83603         This patch should not affect the use of the regex code inside
83604         glibc.  No doubt this problem also needs to be handled for glibc
83605         as well, but the result will be an incompatible change to the
83606         glibc ABI, and the old ABI will have to be supported too.  That
83607         can be the the subject for another patch.
83608
83609         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
83610         governing whether the rest of this patch is active.  By default,
83611         the macro is disabled and the patch has no effect.
83612         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
83613         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
83614         (struct re_pattern_buffer, re_search, re_search_2, re_match):
83615         (re_match_2, re_set_registers): Use the new types.
83616         * lib/regex_internal.h (Idx, re_hashval_t): New types.
83617         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
83618         New macros.
83619         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
83620         (re_string_context_at, bin_tree_t, re_dfastate_t):
83621         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
83622         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
83623         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
83624         (re_string_char_size_at, re_string_wchar_at):
83625         (re_string_elem_size_at):
83626         Use the new types and macros to port to 64-bit hosts.
83627         Use unsigned types for internal values, so that the code
83628         mostly works even for arrays larger than SSIZE_MAX.
83629         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
83630         (search_duplicated_node, calc_eclosure_iter, fetch_number):
83631         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
83632         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
83633         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
83634         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
83635         (calc_inveclosure, parse_dup_op, build_range_exp):
83636         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
83637         (fetch_number, create_token_tree, mark_opt_subexp):
83638         Likewise.
83639         * lib/regex_internal.c (re_string_construct_common,
83640         create_ci_newstate):
83641         (create_cd_newstate, re_string_allocate, re_string_construct):
83642         (re_string_realloc_buffers, build_wcs_upper_buffer):
83643         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
83644         (re_string_reconstruct, re_string_peek_byte_case):
83645         (re_string_fetch_byte_case, re_string_context_at):
83646         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
83647         (re_node_set_init_copy, re_node_set_add_intersect):
83648         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
83649         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
83650         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
83651         (re_acquire_state, re_acquire_state_context, register_state):
83652         Likewise.
83653         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
83654         search_cur_bkref_entry):
83655         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
83656         (re_search_internal, re_search_2_stub, re_search_stub)
83657         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
83658         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
83659         (update_cur_sifted_state, check_dst_limits):
83660         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
83661         (check_subexp_limits, sift_states_bkref, merge_state_array):
83662         (check_subexp_matching_top, get_subexp, get_subexp_sub):
83663         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
83664         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
83665         (expand_bkref_cache, check_node_accept_bytes):
83666         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
83667         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
83668         (acquire_init_state_context, check_halt_node_context):
83669         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
83670         (sift_states_backward, clean_state_log_if_needed):
83671         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
83672         (find_recover_state, transit_state_sb, transit_state_mb):
83673         (transit_state_bkref, build_trtable, match_ctx_clean):
83674         Likewise.
83675         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
83676         to work around an assumption that REG_MISSING is negative.
83677
83678         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
83679         (seek_collating_symbol_entry) [defined _LIBC]:
83680         (lookup_collation_sequence_value) [defined _LIBC]:
83681         (build_range_exp, build_collating_symbol) [defined _LIBC]:
83682         Use prototypes rather than old-style function definitions.
83683         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
83684         (transit_state_sb) [0]:
83685         (find_collation_sequence_value) [defined _LIBC]: Likewise.
83686
83687         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
83688         rm_eo.
83689
83690         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
83691         (optimize_subexps, lower_subexp):
83692         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
83693         since the signed shift might overflow.  Use 1u<<31 instead.
83694         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
83695         Likewise.
83696         * lib/regexec.c (check_dst_limits_calc_pos_1,
83697         check_subexp_matching_top): Likewise.
83698
83699         * lib/regcomp.c (optimize_subexps, lower_subexp):
83700         Use CHAR_BIT rather than 8, for clarity.
83701         * lib/regexec.c (check_dst_limits_calc_pos_1):
83702         (check_subexp_matching_top): Likewise.
83703         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
83704         have to worry about portability issues when shifting it left.
83705         Remove no-longer-needed test for table_size > 0.
83706         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
83707         in a word, as the resulting behavior is undefined.
83708         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
83709         in one case, a <= should have been an <, and in another case the
83710         whole test was missing.
83711         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
83712         the standard name CHAR_BIT.
83713         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
83714         this is not true on one's complement and signed-magnitude hosts.
83715
83716         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
83717         next_last_offset.
83718         (struct re_dfa_t): Remove unused member states_alloc.
83719         * lib/regcomp.c (init_dfa): Don't initialize unused members.
83720
83721 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
83722
83723         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
83724         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
83725         and large-file glibc and in 32-bit large-file Solaris.
83726
83727 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
83728
83729         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
83730         lengths fit in regoff_t; this isn't true if regoff_t is the same
83731         width as size_t.
83732         * lib/regex.c (re_search_internal): 5th arg is LAST_START
83733         (= START + RANGE) instead of RANGE.  This avoids overflow
83734         problems when regoff_t is the same width as size_t.
83735         All callers changed.
83736         (re_search_2_stub): Check for overflow when adding the
83737         sizes of the two strings.
83738         (re_search_stub): Check for overflow when adding START
83739         to RANGE; if it occurs, substitute the extreme value.
83740
83741 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
83742
83743         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
83744
83745 2005-08-31  Jim Meyering  <jim@meyering.net>
83746
83747         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
83748         a pointer-to-const.
83749         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
83750         (register_state): Likewise.
83751         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
83752         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
83753         (group_nodes_into_DFAstates): Likewise.
83754
83755 2005-08-31  Jim Meyering  <jim@meyering.net>
83756
83757         * check-module: Add a FIXME comment.
83758
83759 2005-08-31  Eric Blake  <ebb9@byu.net>
83760
83761         * modules/unistd-safer (Files): Add unistd--.h.
83762         * modules/stdio-safer (Files): Add stdio--.h.
83763
83764 2005-08-31  Derek Price  <derek@ximbiot.com>
83765
83766         * lib/getdelim.c (getdelim): Return EOF on EOF.
83767         Reported by Larry Jones <lawrence.jones@ugs.com>.
83768
83769 2005-08-31  Bruno Haible  <bruno@clisp.org>
83770
83771         Avoid unnecessary diffs in the generated lib/Makefile.am.
83772         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
83773         the generated files.
83774         (func_import): Don't set cmd.
83775
83776 2005-08-31  Bruno Haible  <bruno@clisp.org>
83777
83778         * lib/strstr.c: Include <stddef.h>, for NULL.
83779         * lib/strcasestr.c: Likewise.
83780         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
83781
83782 2005-08-31  Bruno Haible  <bruno@clisp.org>
83783
83784         * gnulib-tool: New option --macro-prefix.
83785         (func_import): Use macro_prefix.
83786         (import): Handle option --macro-prefix.
83787
83788 2005-08-31  Bruno Haible  <bruno@clisp.org>
83789
83790         * gnulib-tool (import): Rename most ac_* variables to cached_*.
83791         Also use new variables cached_lgpl, cached_libtool.
83792
83793 2005-08-31  Bruno Haible  <bruno@clisp.org>
83794
83795         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
83796         always instantiating them.
83797
83798 2005-08-31  Bruno Haible  <bruno@clisp.org>
83799
83800         * gnulib-tool (func_import): Read the previous cached settings
83801         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
83802         earlier added by gnulib but are now dropped. Warn when a gnulib file
83803         overwrites a non-gnulib file.
83804
83805 2005-08-31  Bruno Haible  <bruno@clisp.org>
83806
83807         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
83808         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
83809         projects that don't keep autogenerated files in CVS. Put into
83810         actioncmd only the specified modules, not the transitive closure.
83811
83812 2005-08-31  Bruno Haible  <bruno@clisp.org>
83813
83814         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
83815         Create directories that shall be filled.
83816         (import): Don't look for gl_* macros in configure.ac. Recurse across
83817         all directories containing a gnulib-cache.m4 files, if meaningful.
83818
83819 2005-08-31  Bruno Haible  <bruno@clisp.org>
83820
83821         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
83822         (import): Set seen_libtool when we see gl_LIBTOOL.
83823
83824 2005-08-31  Bruno Haible  <bruno@clisp.org>
83825
83826         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
83827         declaration macro definitions from generated gnulib.m4.
83828
83829 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
83830
83831         * lib/iconvme.h: Add prototype for iconv_alloc.
83832
83833 2005-08-29  Simon Josefsson  <jas@extundo.com>
83834
83835         * lib/iconvme.c: Fix errno.
83836
83837 2005-08-29  Bruno Haible  <bruno@clisp.org>
83838
83839         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
83840         that it works when the directory contains spaces.
83841
83842 2005-08-29  Bruno Haible  <bruno@clisp.org>
83843
83844         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
83845
83846 2005-08-29  Bruno Haible  <bruno@clisp.org>
83847
83848         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
83849         Emit more advice.
83850
83851 2005-08-29  Bruno Haible  <bruno@clisp.org>
83852         and Stepan Kasal  <kasal@ucw.cz>
83853
83854         * check-module: If more parameters are given, check each of them
83855         separately; add more exceptions, as noted by Jim Meyering.
83856         (check_module): New procedure.
83857         (%exempt_header): Now contains all exceptions.
83858
83859 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
83860
83861         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
83862
83863 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
83864
83865         * lib/iconvme.c: Split iconv_string into iconv_alloc.
83866
83867 2005-08-28  Bruno Haible  <bruno@clisp.org>
83868
83869         * m4/gnulib-tool.m4: New file.
83870
83871 2005-08-27  Jim Meyering  <jim@meyering.net>
83872
83873         * modules/unistd-safer (Files): Add pipe-safer.c.
83874         * modules/fcntl-safer (Files): Add creat-safer.c.
83875
83876 2005-08-27  Jim Meyering  <jim@meyering.net>
83877
83878         * m4/stdlib-safer.m4: New file.  From coreutils.
83879         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
83880         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
83881         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
83882         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
83883         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
83884
83885 2005-08-27  Jim Meyering  <jim@meyering.net>
83886
83887         * lib/fopen-safer.c: Merge minor changes from coreutils.
83888         * lib/dup-safer.c: Likewise.
83889         * lib/fd-safer.c: Likewise.
83890
83891         Merge from coreutils.
83892         * lib/stdio--.h: New file.
83893         * lib/stdlib--.h: New file.
83894         * lib/mkstemp-safer.c: New file.
83895
83896         GNU tar needs these.
83897         * lib/pipe-safer.c: New file.
83898         * lib/creat-safer.c: New file.
83899         * lib/fcntl--.h (creat): Define to creat_safer.
83900         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
83901         * lib/unistd--.h (pipe): Define to pipe_safer.
83902         * lib/unistd-safer.h: Declare pipe_safer.
83903
83904 2005-08-26  Simon Josefsson  <jas@extundo.com>
83905
83906         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
83907         Haible <bruno@clisp.org>.
83908
83909 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
83910
83911         * lib/regex_internal.h: Remove all references to
83912         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
83913         or better.
83914         (bitset_not, bitset_merge, bitset_not_merge):
83915         (bitset_mask, re_string_allocate, re_string_construct):
83916         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
83917         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
83918         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
83919         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
83920         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
83921         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
83922         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
83923         (re_acquire_state_context):
83924         Remove unnecessary forward decls.
83925         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
83926         Put __attribute at function definition,
83927         now that the function decl has been removed.
83928         * lib/regex_internal.c (re_string_peek_byte_case):
83929         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
83930         Likewise.
83931
83932 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
83933
83934         * m4/regex.m4: Add AC_PREREQ(2.50).
83935         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
83936
83937 2005-08-25  Simon Josefsson  <jas@extundo.com>
83938
83939         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
83940         __fsetlocking.
83941
83942 2005-08-25  Simon Josefsson  <jas@extundo.com>
83943
83944         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
83945         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
83946         GLIBC specific code.
83947
83948 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
83949
83950         Make regex safe for g++.  This fixes one real bug (an "err"
83951         that should have been "*err").  g++ problem reported by
83952         Sam Steingold.
83953         * lib/regex_internal.h (re_calloc): New macro, consistent with
83954         re_malloc etc.  All callers of calloc changed to use re_calloc.
83955         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
83956         not int.  All callers changed.
83957         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
83958         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
83959         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
83960         (find_recover_state): Change "err" to "*err"; this fixes what
83961         appears to be a real bug.
83962         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
83963         versus int.
83964
83965 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
83966
83967         * modules/regex (Depends-on): Add malloc, since the code
83968         assumes that !malloc(0) means failure.
83969
83970 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
83971
83972         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
83973
83974         alloca modernization/simplification for regex.
83975         * lib/regex.c: Remove portability cruft for alloca.  This no longer
83976         needs to be at the start of the file, and can be moved into
83977         regex_internal.h and simplified.
83978         * lib/regex_internal.h: Include <alloca.h>.
83979         (__libc_use_alloca) [!defined _LIBC]: New macro.
83980         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
83981         now works outside glibc.
83982
83983 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
83984
83985         * config/srclist.txt: Add glibc bugs 1241, 1245.
83986
83987 2005-08-25  Jim Meyering  <jim@meyering.net>
83988
83989         * lib/open-safer.c: Include <config.h>.
83990         Otherwise, we'd lose LARGEFILE support in any file using
83991         e.g. "fcntl--.h"
83992
83993 2005-08-25  Bruno Haible  <bruno@clisp.org>
83994
83995         * m4/minmax.m4: Require autoconf 2.52.
83996         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
83997         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
83998         alternatives of translit over the alphabet.
83999         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
84000
84001 2005-08-24  Simon Josefsson  <jas@extundo.com>
84002
84003         * tests/test-getpass.c: New file.
84004
84005 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
84006
84007         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
84008         for GNU regex features.
84009
84010 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
84011
84012         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
84013         * lib/regex.h (regerror): Likewise.
84014
84015         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
84016         requires this.  (The code never needed it.)
84017
84018         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
84019         All uses of recently-renamed identifiers changed to use the new,
84020         POSIX-compliant names.  The code will build and run just fine
84021         without these changes, but it's better to eat our own dog food
84022         and use the standard-conforming names.
84023
84024         * lib/regex.h: Fix a multitude of POSIX name space violations.
84025         These changes have an effect only for programs that define
84026         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
84027         do not change anything for programs compiled in the normal way.
84028         Also, there is no effect on the ABI.
84029
84030         (_REGEX_SOURCE): New macro.
84031         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
84032         defined and _GNU_SOURCE is not; this fixes a name space violation.
84033
84034         Rename the following macros to obey POSIX requirements.
84035         The old names are still visible as macros if _REGEX_SOURCE is defined.
84036         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
84037         RE_BACKSLASH_ESCAPE_IN_LISTS.
84038         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
84039         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
84040         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
84041         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
84042         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
84043         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
84044         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
84045         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
84046         (REG_INTERVALS): renamed from RE_INTERVALS.
84047         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
84048         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
84049         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
84050         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
84051         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
84052         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
84053         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
84054         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
84055         RE_UNMATCHED_RIGHT_PAREN_ORD.
84056         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
84057         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
84058         (REG_DEBUG): renamed from RE_DEBUG.
84059         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
84060         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
84061         unusual, since we can't clash with the POSIX REG_ICASE.
84062         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
84063         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
84064         (REG_NO_SUB): renamed from RE_NO_SUB.
84065         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
84066         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
84067         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
84068         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
84069         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
84070         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
84071         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
84072         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
84073         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
84074         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
84075         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
84076         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
84077         RE_SYNTAX_POSIX_MINIMAL_BASIC.
84078         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
84079         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
84080         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
84081         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
84082         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
84083         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
84084         (REG_FIXED): Renamed from REGS_FIXED.
84085         (REG_NREGS): Renamed from RE_NREGS.
84086
84087         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
84088         of other REG_* macros, since POSIX says the user is allowed to
84089         #undef these macros selectively.
84090
84091         (reg_errcode_t): Update comment stating what other tables need
84092         to be consistent.
84093
84094         Rename the following enum values to obey POSIX requirements.
84095         The old names are still visible as macros.
84096         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
84097         is not defined, since GNU is supposed to be a superset of POSIX as
84098         much as possible, and since we want reg_errcode_t to be a signed
84099         type for implementation consistency.
84100         (_REG_NOERROR): Renamed from REG_NOERROR.
84101         (_REG_NOMATCH): Renamed from REG_NOMATCH.
84102         (_REG_BADPAT): Renamed from REG_BADPAT.
84103         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
84104         (_REG_ECTYPE): Renamed from REG_ECTYPE.
84105         (_REG_EESCAPE): Renamed from REG_EESCAPE.
84106         (_REG_ESUBREG): Renamed from REG_ESUBREG.
84107         (_REG_EBRACK): Renamed from REG_EBRACK.
84108         (_REG_EPAREN): Renamed from REG_EPAREN.
84109         (_REG_EBRACE): Renamed from REG_EBRACE.
84110         (_REG_BADBR): Renamed from REG_BADBR.
84111         (_REG_ERANGE): Renamed from REG_ERANGE.
84112         (_REG_ESPACE): Renamed from REG_ESPACE.
84113         (_REG_BADRPT): Renamed from REG_BADRPT.
84114         (_REG_EEND): Renamed from REG_EEND.
84115         (_REG_ESIZE): Renamed from REG_ESIZE.
84116         (_REG_ERPAREN): Renamed from REG_ERPAREN.
84117         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
84118         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
84119         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
84120         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
84121
84122         (_REG_RE_NAME, _REG_RM_NAME): New macros.
84123         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
84124         changed.  But support the old name if the new one is not defined
84125         and if _REGEX_SOURCE.
84126
84127         Change the following member names in struct re_pattern_buffer.
84128         The old names are still supported if !_REGEX_SOURCE.
84129         The new names are always supported, regardless of _REGEX_SOURCE.
84130         (re_buffer): Renamed from buffer.
84131         (re_allocated): Renamed from allocated.
84132         (re_used): Renamed from used.
84133         (re_syntax): Renamed from syntax.
84134         (re_fastmap): Renamed from fastmap.
84135         (re_translate): Renamed from translate.
84136         (re_can_be_null): Renamed from can_be_null.
84137         (re_regs_allocated): Renamed from regs_allocated.
84138         (re_fastmap_accurate): Renamed from fastmap_accurate.
84139         (re_no_sub): Renamed from no_sub.
84140         (re_not_bol): Renamed from not_bol.
84141         (re_not_eol): Renamed from not_eol.
84142         (re_newline_anchor): Renamed from newline_anchor.
84143
84144         Change the following member names in struct re_registers.
84145         The old names are still supported if !_REGEX_SOURCE.
84146         The new names are always supported, regardless of _REGEX_SOURCE.
84147         (rm_num_regs): Renamed from num_regs.
84148         (rm_start): Renamed from start.
84149         (rm_end): Renamed from end.
84150
84151         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
84152         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
84153         Prepend __ to parameter names.
84154
84155         Undo yesterday's changes.
84156
84157 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
84158
84159         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
84160         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
84161         lib/regex.c.
84162
84163 2005-08-24  Jim Meyering  <jim@meyering.net>
84164
84165         Sync from coreutils.
84166         * m4/fcntl-safer.m4: New file.
84167
84168         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
84169         and object files for this module.
84170
84171 2005-08-24  Jim Meyering  <jim@meyering.net>
84172
84173         Sync from coreutils.
84174         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
84175
84176 2005-08-24  Jim Meyering  <jim@meyering.net>
84177
84178         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
84179         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
84180
84181 2005-08-24  Jim Meyering  <jim@meyering.net>
84182
84183         * modules/fcntl-safer: New module.
84184         * modules/fts (Depends-on): Add fcntl-safer.
84185         * MODULES.html.sh (File descriptor based Input/Output):
84186         Add fcntl-safer.
84187
84188 2005-08-24  Bruno Haible  <bruno@clisp.org>
84189
84190         Support for unit test modules.
84191         * modules/README: Mention tests modules.
84192         * modules/TEMPLATE-TESTS: New file.
84193         * gnulib-tool: New options --extract-tests-module, --with-tests and
84194         --tests-base (unused for the moment).
84195         (testsbase, inctests): New variables.
84196         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
84197         (func_verify_module): Exclude TEMPLATE-TESTS.
84198         (func_verify_nontests_module, func_verify_tests_module): New functions.
84199         (func_get_dependencies): Add implicit dependency for tests modules.
84200         (func_get_tests_module): New function.
84201         (func_modules_transitive_closure): When --with-tests was specified,
84202         include the unit tests as well, unless explicitly avoided.
84203         (func_emit_lib_Makefile_am): Ignore the tests modules here.
84204         (func_emit_tests_Makefile_am): New function.
84205         (func_create_testdir): When --with-tests was specified, emit a
84206         tests/ directory.
84207         * MODULES.html.sh (Future developments): Update.
84208
84209 2005-08-24  Bruno Haible  <bruno@clisp.org>
84210
84211         * modules/tls-tests: New file.
84212         * tests/test-tls.c: New file, from GNU gettext.
84213
84214 2005-08-24  Bruno Haible  <bruno@clisp.org>
84215
84216         * modules/lock-tests: New file.
84217         * tests/test-lock.c: New file, from GNU gettext.
84218
84219 2005-08-24  Bruno Haible  <bruno@clisp.org>
84220
84221         * lib/lock.h: Add multiple inclusion guard.
84222         * lib/tls.h: Add multiple inclusion guard.
84223
84224 2005-08-24  Bruno Haible  <bruno@clisp.org>
84225
84226         * gnulib-tool: Add support for the --aux-dir option to
84227         --create-testdir, --create-megatestdir, --test, --megatest.
84228         (func_create_testdir, func_create_megatestdir): Optionally emit a
84229         AC_CONFIG_AUX_DIR directive.
84230         (create-testdir, create-megatestdir, test, megatest): Provide a
84231         default value for $auxdir.
84232
84233 2005-08-24  Bruno Haible  <bruno@clisp.org>
84234
84235         * gnulib-tool (import): Use compound statement instead of subshell
84236         where possible.
84237
84238 2005-08-24  Bruno Haible  <bruno@clisp.org>
84239
84240         * gnulib-tool (import): Change --aux-dir default to "build-aux".
84241
84242 2005-08-24  Bruno Haible  <bruno@clisp.org>
84243
84244         * gnulib-tool (func_version): Update.
84245
84246 2005-08-24  Bruno Haible  <bruno@clisp.org>
84247
84248         * gnulib-tool (func_import, func_create_testdir,
84249         func_create_megatestdir): Quote all autoconf macro arguments.
84250
84251 2005-08-24  Bruno Haible  <bruno@clisp.org>
84252
84253         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
84254         option --force, because --force causes the aclocal.m4 of each
84255         subdirectory to be newer than the corresponding config.h.in.
84256
84257 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
84258
84259         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
84260         All contents moved to gl_REGEX.
84261         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
84262         assume that it does.
84263
84264 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
84265
84266         * lib/regex.h (REG_NOSYS)
84267         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
84268         Define, since POSIX requires it as of 2001.
84269         (_REG_ENOSYS)
84270         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
84271         New private symbol, used to keep the enum signed in all cases.
84272         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
84273         Youngman in
84274         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
84275
84276         * lib/regex_internal.c (re_string_skip_chars, register_state):
84277         (calc_state_hash):
84278         Remove forward decls; no longer needed now that we use prototypes.
84279         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
84280         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
84281         (clean_state_log_if_needed): Likewise.
84282
84283 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
84284
84285         * config/srclist.txt: Add glibc bugs 1231-1233.
84286
84287 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
84288
84289         Fix problems reported by Sam Steingold in
84290         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
84291         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
84292         assumed that reg_errcode_t is a signed type, which is not
84293         necessarily true if _XOPEN_SOURCE is not defined.
84294         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
84295         since some compilers warn about it otherwise.
84296
84297 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
84298
84299         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
84300         (init_word_char, create_initial_state, duplicate_node_closure):
84301         (fetch_token, peek_token_bracket, build_range_exp):
84302         (build_collating_symbol): Remove forward decls; no longer needed
84303         now that we use prototypes.
84304
84305         * lib/regcomp.c:
84306         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
84307         (re_compile_fastmap_iter, regcomp, regerror, regfree):
84308         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
84309         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
84310         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
84311         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
84312         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
84313         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
84314         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
84315         (build_range_exp, build_collating_symbol, parse_bracket_exp):
84316         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
84317         (build_charclass, build_charclass_op, fetch_number, create_tree):
84318         (create_token_tree, mark_opt_subexp, duplicate_tree):
84319         Use prototypes rather than old-style definitions.
84320
84321         * lib/regex_internal.c:
84322         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
84323         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
84324         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
84325         (re_string_reconstruct, re_string_peek_byte_case):
84326         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
84327         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
84328         (re_node_set_init_copy, re_node_set_add_intersect):
84329         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
84330         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
84331         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
84332         (re_acquire_state, re_acquire_state_context, register_state):
84333         (create_ci_newstate, create_cd_newstate, free_state):
84334         Likewise.
84335         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
84336         re_search_2):
84337         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
84338         (re_search_internal, prune_impossible_nodes):
84339         (acquire_init_state_context, check_matching, static):
84340         (check_halt_node_context, check_halt_state_context, proceed_next_node):
84341         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
84342         (update_regs, sift_states_backward, build_sifted_states):
84343         (clean_state_log_if_needed, merge_state_array):
84344         (update_cur_sifted_state, add_epsilon_src_nodes):
84345         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
84346         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
84347         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
84348         (find_recover_state, check_subexp_matching_top, transit_state_mb):
84349         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
84350         (check_arrival, check_arrival_add_next_nodes):
84351         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
84352         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
84353         (check_node_accept_bytes, check_node_accept, extend_buffers):
84354         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
84355         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
84356         (sift_ctx_init):
84357         Likewise.
84358
84359         * lib/regex_internal.h:
84360         (re_string_allocate, re_string_construct, re_string_reconstruct):
84361         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
84362         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
84363         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
84364         (re_string_context_at, re_string_peek_byte_case):
84365         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
84366         is defined, since we now use prototypes always.
84367
84368         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
84369         C89 or better.  All uses removed.
84370
84371 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
84372
84373         * config/srclist.txt: Add glibc bugs 1220-1227.
84374
84375 2005-08-20  Jim Meyering  <jim@meyering.net>
84376
84377         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
84378         of unused local, dfa.
84379
84380 2005-08-20  Bruno Haible  <bruno@clisp.org>
84381
84382         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
84383
84384 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
84385
84386         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
84387         (re_node_set_insert_last, re_dfa_add_node):
84388         Rename local variables to avoid GCC shadowing warnings.
84389
84390 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
84391
84392         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
84393         [defined lint]: Suppress bogus uninitialized-variable warnings.
84394
84395         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
84396         and let the caller return REG_ESPACE if out of space.  This
84397         removes an uninitialied-variable warning with GCC 4.0.1, and also
84398         avoids taking the address of a local variable.  All callers
84399         changed.
84400
84401 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
84402
84403         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
84404         $LIBCSRC/posix/regexec.c.
84405         Add glibc bug 1217 for regcomp.c.
84406
84407 2005-08-19  Jim Meyering  <jim@meyering.net>
84408
84409         * lib/regexec.c (proceed_next_node): Redo local variables to
84410         avoid GCC shadowing warnings.
84411
84412 2005-08-18  Bruno Haible  <bruno@clisp.org>
84413
84414         * lib/strstr.c (strstr): Fix return value in multibyte case.
84415         * lib/strcasestr.c (strcasestr): Likewise.
84416
84417 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
84418
84419         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
84420
84421 2005-08-17  Jim Meyering  <jim@meyering.net>
84422
84423         Make the %s format (seconds since the epoch) work for a negative
84424         number and when used with a zero-padded field width, e.g. %015s.
84425
84426         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
84427         label so that it precedes the code to set `digits'.  Otherwise,
84428         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
84429         print `00-22'.  Now, it prints `-0022', as it should.
84430
84431 2005-08-17  Bruno Haible  <bruno@clisp.org>
84432
84433         * modules/strstr (Files): Add m4/mbrtowc.m4.
84434         (Depends-on): Add mbuiter.
84435
84436 2005-08-17  Bruno Haible  <bruno@clisp.org>
84437
84438         * modules/strcasestr: New file.
84439         * MODULES.html.sh (String handling, based on ANSI C 89): Add
84440         strcasestr.
84441
84442 2005-08-17  Bruno Haible  <bruno@clisp.org>
84443
84444         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
84445
84446 2005-08-17  Bruno Haible  <bruno@clisp.org>
84447
84448         * modules/mbuiter: New file.
84449         * MODULES.html.sh (Extended multibyte and wide character utilities):
84450         Add mbuiter.
84451
84452 2005-08-17  Bruno Haible  <bruno@clisp.org>
84453
84454         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
84455         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
84456
84457 2005-08-17  Bruno Haible  <bruno@clisp.org>
84458
84459         * m4/strcasestr.m4: New file.
84460
84461 2005-08-17  Bruno Haible  <bruno@clisp.org>
84462
84463         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
84464         * lib/strstr.c: Completely rewritten, with multibyte locale support.
84465
84466 2005-08-17  Bruno Haible  <bruno@clisp.org>
84467
84468         * lib/strcasestr.h: New file.
84469         * lib/strcasestr.c: New file.
84470
84471 2005-08-17  Bruno Haible  <bruno@clisp.org>
84472
84473         * lib/strcasecmp.c: Use mbuiter.h.
84474
84475 2005-08-17  Bruno Haible  <bruno@clisp.org>
84476
84477         * lib/mbuiter.h: New file.
84478
84479 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
84480
84481         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
84482         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
84483         and gl_GETOPT are both invoked via different paths (as happens
84484         with GNU tar CVS because it uses both argp and getopt), the former
84485         wins.
84486
84487 2005-08-16  Bruno Haible  <bruno@clisp.org>
84488
84489         * modules/tls: New file.
84490         * MODULES.html.sh (Multithreading): Add tls.
84491
84492 2005-08-16  Bruno Haible  <bruno@clisp.org>
84493
84494         * modules/strnlen1: New file.
84495         * MODULES.html.sh (String handling): Add strnlen1.
84496
84497 2005-08-16  Bruno Haible  <bruno@clisp.org>
84498
84499         * modules/strcase (Files): Add m4/mbrtowc.m4.
84500         (Depends-on): Add strnlen1, mbchar.
84501
84502 2005-08-16  Bruno Haible  <bruno@clisp.org>
84503
84504         * modules/mbiter: New file.
84505         * MODULES.html.sh (Extended multibyte and wide character utilities):
84506         Add mbiter.
84507
84508 2005-08-16  Bruno Haible  <bruno@clisp.org>
84509
84510         * modules/mbfile: New file.
84511         * MODULES.html.sh (Extended multibyte and wide character utilities):
84512         Add mbfile.
84513
84514 2005-08-16  Bruno Haible  <bruno@clisp.org>
84515
84516         * modules/mbchar: New file.
84517         * MODULES.html.sh (Extended multibyte and wide character utilities):
84518         New section.
84519
84520 2005-08-16  Bruno Haible  <bruno@clisp.org>
84521
84522         * m4/tls.m4: New file, from GNU gettext.
84523
84524 2005-08-16  Bruno Haible  <bruno@clisp.org>
84525
84526         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
84527         always.
84528         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
84529
84530 2005-08-16  Bruno Haible  <bruno@clisp.org>
84531
84532         * m4/mbiter.m4: New file.
84533
84534 2005-08-16  Bruno Haible  <bruno@clisp.org>
84535
84536         * m4/mbfile.m4: New file.
84537
84538 2005-08-16  Bruno Haible  <bruno@clisp.org>
84539
84540         * m4/mbchar.m4: New file.
84541
84542 2005-08-16  Bruno Haible  <bruno@clisp.org>
84543
84544         * lib/tls.h: New file, from GNU gettext.
84545         * lib/tls.c: New file, from GNU gettext.
84546
84547 2005-08-16  Bruno Haible  <bruno@clisp.org>
84548
84549         * lib/strnlen1.h: New file.
84550         * lib/strnlen1.c: New file.
84551
84552 2005-08-16  Bruno Haible  <bruno@clisp.org>
84553
84554         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
84555         (mbi_init): Update.
84556         (mbi_avail, mbi_advance): Let the iteration end before the terminating
84557         NUL byte, not after it.
84558
84559 2005-08-16  Bruno Haible  <bruno@clisp.org>
84560
84561         * lib/strcase.h (strcasecmp): Add note in comments.
84562         * lib/strncasecmp.c: Use code from strcasecmp.c.
84563         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
84564         (strcasecmp): Work correctly in multibyte locales.
84565
84566 2005-08-16  Bruno Haible  <bruno@clisp.org>
84567
84568         * lib/mbiter.h: New file.
84569
84570 2005-08-16  Bruno Haible  <bruno@clisp.org>
84571
84572         * lib/mbfile.h: New file.
84573
84574 2005-08-16  Bruno Haible  <bruno@clisp.org>
84575
84576         * lib/mbchar.h: New file.
84577         * lib/mbchar.c: New file.
84578
84579 2005-08-16  Bruno Haible  <bruno@clisp.org>
84580
84581         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
84582         the valid ones. Makes the comparison operations transitive:
84583         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
84584         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
84585
84586 2005-08-15  Simon Josefsson  <jas@extundo.com>
84587
84588         * modules/ssize_t (License): Change to 'unlimited'.
84589
84590         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
84591
84592 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
84593
84594         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
84595         Add comments for each pending glibc patch.
84596
84597 2005-08-15  Bruno Haible  <bruno@clisp.org>
84598
84599         * lib/regex.h (__restrict_arr): Don't define to __restrict if
84600         __cplusplus is defined.
84601
84602 2005-08-14  Jim Meyering  <jim@meyering.net>
84603
84604         Sync from coreutils.
84605
84606         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
84607         Use the hash-table-based cycle-detection code not just when
84608         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
84609         Reported by James Youngman in
84610         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
84611         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
84612         FTS_TIGHT_CYCLE_CHECK.
84613         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
84614         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
84615         once again.
84616         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
84617         * lib/fts.c (fd_safer): Remove decl.
84618         Include fcntl--.h rather than unistd-safer.h
84619         (fts_safe_changedir): Don't call fd_safer; no longer needed
84620         now that we include fcntl--.h.
84621
84622 2005-08-12  Simon Josefsson  <jas@extundo.com>
84623
84624         * modules/getndelim2: Use ssize_t module.
84625         * modules/getnline: Likewise.
84626         * modules/safe-read: Likewise.
84627         * modules/xreadlink: Likewise.
84628
84629         * modules/ssize_t: New file.
84630
84631 2005-08-12  Simon Josefsson  <jas@extundo.com>
84632
84633         * m4/readline.m4: Look for termcap, curses or ncurses if required.
84634
84635 2005-08-12  Simon Josefsson  <jas@extundo.com>
84636
84637         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
84638         ssize_t.
84639
84640 2005-08-12  Simon Josefsson  <jas@extundo.com>
84641
84642         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
84643         readline, getdelim and check_version.
84644         (Support for systems lacking ISO C 99: Sizes of integer types):
84645         Add size_max.
84646
84647 2005-08-12  Bruno Haible  <bruno@clisp.org>
84648
84649         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
84650
84651 2005-08-11  Simon Josefsson  <jas@extundo.com>
84652
84653         * modules/readline: New file.
84654
84655         * modules/strnlen (Files): Add strnlen.h.
84656
84657 2005-08-11  Simon Josefsson  <jas@extundo.com>
84658
84659         * m4/readline.m4: New file.
84660
84661 2005-08-11  Simon Josefsson  <jas@extundo.com>
84662
84663         * lib/readline.h, readline.c: New file.
84664
84665 2005-08-11  Simon Josefsson  <jas@extundo.com>
84666
84667         * doc/gnulib.texi (Initial import, Finishing touches): Mention
84668         gl_AVOID.
84669
84670 2005-08-11  Bruno Haible  <bruno@clisp.org>
84671
84672         * lib/strnlen.h (strnlen): Change parameter name to match comment.
84673
84674 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
84675
84676         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
84677
84678 2005-08-10  Simon Josefsson  <jas@extundo.com>
84679
84680         * tests/test-iconvme.c: New file.
84681
84682 2005-08-10  Simon Josefsson  <jas@extundo.com>
84683
84684         * m4/strnlen.m4: New file.
84685
84686         * m4/strndup.m4: Don't check for strnlen declaration, done in
84687         strnlen.m4.
84688
84689 2005-08-10  Simon Josefsson  <jas@extundo.com>
84690
84691         * lib/strndup.c: Use strnlen.h.
84692
84693         * lib/strnlen.h: New file.
84694
84695 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
84696
84697         * README: Typos.
84698
84699 2005-08-02  Simon Josefsson  <jas@extundo.com>
84700
84701         * modules/readline: New file.
84702
84703 2005-08-02  Simon Josefsson  <jas@extundo.com>
84704
84705         * modules/getdelim: New file.
84706
84707         * modules/getline: Rewrite, don't use getndelim2.
84708
84709 2005-08-02  Simon Josefsson  <jas@extundo.com>
84710
84711         * m4/getline.m4: Separate out getdelim stuff into separate module.
84712
84713         * m4/getdelim.m4: New file.
84714
84715 2005-08-02  Simon Josefsson  <jas@extundo.com>
84716
84717         * lib/getline.h, getline.c: Rewrite.
84718
84719         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
84720
84721 2005-07-31  Bruno Haible  <bruno@clisp.org>
84722
84723         * lib/lock.h (gl_lock_initializer): New macro.
84724         (gl_lock_define_initialized): Use it.
84725         (gl_rwlock_initializer): New macro.
84726         (gl_rwlock_define_initialized): Use it.
84727         (gl_recursive_lock_initializer): New macro.
84728         (gl_recursive_lock_define_initialized): Use it.
84729
84730 2005-07-30  Karl Berry  <karl@gnu.org>
84731
84732         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
84733         Report from Ben Pfaff, regarding getopt.
84734
84735 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
84736
84737         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
84738         normal way.
84739         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
84740         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
84741         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
84742         (gl_GETOPT): Use the new macros.  Most of the implementation
84743         is moved to the new macros.  This is for programs like Emacs
84744         that don't want all the functionality of gl_GETOPT.
84745
84746 2005-07-26  Bruno Haible  <bruno@clisp.org>
84747
84748         * m4/lock.m4: Update from GNU gettext.
84749
84750 2005-07-26  Bruno Haible  <bruno@clisp.org>
84751
84752         * lib/lock.h: Update from GNU gettext.
84753         * lib/lock.c: Update from GNU gettext.
84754
84755 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
84756
84757         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
84758         obsolescent AC_TRY_RUN.  Include the default includes files, for
84759         'exit'.
84760
84761 2005-07-24  Bruno Haible  <bruno@clisp.org>
84762
84763         * modules/visibility: New file.
84764         * MODULES.html.sh (Misc): Add visibility.
84765
84766 2005-07-24  Bruno Haible  <bruno@clisp.org>
84767
84768         * m4/visibility.m4: New file.
84769
84770 2005-07-24  Bruno Haible  <bruno@clisp.org>
84771
84772         * doc/visibility.texi: New file.
84773
84774 2005-07-22  Bruno Haible  <bruno@clisp.org>
84775
84776         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
84777         $(ALLOCA_H), redundant through BUILT_SOURCES.
84778         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
84779         redundant through BUILT_SOURCES.
84780         * modules/byteswap (Makefile.am): Remove explicit dependency on
84781         $(BYTESWAP_H), redundant through BUILT_SOURCES.
84782         * modules/fnmatch (Makefile.am): Remove explicit dependency on
84783         $(FNMATCH_H), redundant through BUILT_SOURCES.
84784         * modules/getopt (Makefile.am): Remove explicit dependency on
84785         $(GETOPT_H), redundant through BUILT_SOURCES.
84786         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
84787         redundant through BUILT_SOURCES.
84788         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
84789         redundant through BUILT_SOURCES.
84790         * modules/stdbool (Makefile.am): Remove explicit dependency on
84791         $(STDBOOL_H), redundant through BUILT_SOURCES.
84792         * modules/stdint (Makefile.am): Remove explicit dependency on
84793         $(STDINT_H), redundant through BUILT_SOURCES.
84794         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
84795         Remove explicit dependency on $(SYSEXITS_H).
84796         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
84797
84798 2005-07-18  Simon Josefsson  <jas@extundo.com>
84799
84800         * lib/check-version.c (check_version): Accept identical versions too.
84801
84802 2005-07-18  Bruno Haible  <bruno@clisp.org>
84803
84804         * modules/lock: New file.
84805         * MODULES.html.sh (Multithreading): New section.
84806
84807 2005-07-18  Bruno Haible  <bruno@clisp.org>
84808
84809         * m4/lock.m4: New file, from GNU gettext.
84810
84811 2005-07-18  Bruno Haible  <bruno@clisp.org>
84812
84813         * lib/lock.h: New file, from GNU gettext.
84814         * lib/lock.c: New file, from GNU gettext.
84815
84816 2005-07-18  Bruno Haible  <bruno@clisp.org>
84817
84818         * lib/lock.h (gl_once_t): New type.
84819         (gl_once_define, gl_once): New macros.
84820         * lib/lock.c (fresh_once): New variable.
84821         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
84822         functions.
84823
84824 2005-07-16  Simon Josefsson  <jas@extundo.com>
84825
84826         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
84827         workaround, suggested by Bruno.
84828
84829 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
84830
84831         * modules/xalloc (Depends-on): Add xalloc-die.
84832         * modules/xvasprintf (Depends-on): Add xalloc-die.
84833
84834 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
84835
84836         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
84837         with a minor change.
84838
84839 2005-07-15  Bruno Haible  <bruno@clisp.org>
84840
84841         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
84842         When using lib/poll.c, define poll as rpl_poll.
84843
84844 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
84845
84846         * modules/argp (Depends-on): Remove unlocked-io.
84847
84848 2005-07-14  Derek Price  <derek@ximbiot.com>
84849
84850         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
84851         for glob symlink bug.
84852
84853 2005-07-14  Bruno Haible  <bruno@clisp.org>
84854
84855         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
84856         Instead, test for *_unlocked function declarations directly.
84857
84858 2005-07-11  Simon Josefsson  <jas@extundo.com>
84859
84860         * modules/size_max: New file.
84861
84862         * modules/xsize: Depend on size_max module for size_max.m4.
84863
84864 2005-07-11  Simon Josefsson  <jas@extundo.com>
84865
84866         * lib/size_max.h: New file.
84867
84868 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
84869
84870         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
84871         copyright symbol and the year.
84872         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
84873         (version_etc_va): Use parameterized copyright notice.
84874         Reword to conform to the current GNU coding standards.
84875
84876 2005-07-11  Karl Berry  <karl@gnu.org>
84877
84878         * doc/gnulib.texi (Quoting): new node.
84879         (Initial import): more info, from Patrice.
84880
84881 2005-07-11  Bruno Haible  <bruno@clisp.org>
84882
84883         * gnulib-tool (func_usage): Document option --avoid.
84884         (Command line options): Handle --avoid.
84885         (func_acceptable): New function.
84886         (func_modules_transitive_closure): Use it.
84887
84888 2005-07-11  Bruno Haible  <bruno@clisp.org>
84889
84890         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
84891         Reported by Jim Meyering.
84892
84893 2005-07-10  Bruno Haible  <bruno@clisp.org>
84894
84895         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
84896         Needed when size_t is smaller than 'unsigned int'.
84897         Reported by Paul Eggert.
84898
84899 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
84900
84901         * modules/argp (Depends-on): Add unlocked-io
84902
84903 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
84904
84905         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
84906         block of defines.
84907
84908 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
84909
84910         * config/srclist.txt: Comment out regcomp.c, since we have a porting
84911         fix now.
84912
84913 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
84914         and Paul Eggert  <eggert@cs.ucla.edu>
84915
84916         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
84917         in wint_t, not wchar_t.  Remove now-unnecessary cast.
84918
84919 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
84920
84921         * modules/regex (Files): Add lib/regex_internal.c,
84922         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
84923         (Depends-on): Add extensions.
84924         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
84925
84926 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
84927
84928         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
84929         pathconf.
84930         * m4/same.m4 (gl_SAME): Likewise.
84931         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
84932
84933         * m4/regex.m4: Adjust to new libc regex implementation.
84934         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
84935         all the .c and .h parts of (the new) regex.
84936         Quote the m4 stuff better.
84937         Check for RE_ICASE bug of old gnulib.
84938         Check for REG_STARTEND of recent libc.
84939         Rename local variables from jm_* to gl_*.
84940         Quote operand of "test -f".
84941         Say "recent enough" version of libc, not "version 2".
84942         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
84943         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
84944         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
84945         Remove check for btowc, isascii.
84946         Require AM_LANGINFO_CODESET.
84947
84948 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
84949
84950         * lib/regex.c, regex.h: Sync from libc.
84951         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
84952         * lib/regexec.c:
84953         New files, synced from libc, except that regex_internal.h
84954         currently has a small porting fix.
84955
84956 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
84957
84958         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
84959         regex_internal.c, regexec.c.
84960         Add regex_internal.h too, but as a comment, since the libc version
84961         is currently broken in gnulib mode.
84962
84963 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
84964
84965         Support programs like Emacs that use gnulib but not gettext.
84966         * MODULES.html.sh (Internationalization functions): Add gettext-h.
84967         * modules/gettext-h: New file.
84968         * modules/gettext (Files): Remove lib/gettext.h.
84969         (Depends-on): Add gettext-h.
84970         (Makefile.am): Remove lib_SOURCES.
84971         * modules/argmatch, modules/c-stack, modules/closeout:
84972         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
84973         * modules/execute, modules/file-type, modules/getaddrinfo:
84974         * modules/getopt, modules/human, modules/javacomp:
84975         * modules/javaexec, modules/mkdir-p, modules/obstack:
84976         * modules/openat, modules/pagealign_alloc, modules/pipe:
84977         * modules/quotearg, modules/regex, modules/rpmatch:
84978         * modules/unicodeio, modules/userspec, modules/version-etc:
84979         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
84980         * modules/xsetenv:
84981         Depend on gettext-h, not gettext.
84982
84983 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
84984
84985         * gnulib-tool (func_import): Add support for 'public domain' license.
84986         * modules/alloca, modules/atexit, modules/memmove:
84987         Now public domain, not GPL.
84988         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
84989         * modules/realloc, modules/strerror, modules/strtod:
84990         Now LGPL, not GPL.
84991
84992 2005-07-05  Bruno Haible  <bruno@clisp.org>
84993
84994         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
84995         autoconf CVS. Needed for mingw.
84996
84997 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
84998
84999         Remove the dependency of the strftime module on the tzset module.
85000         * modules/strftime (Depends-on): Remove dependency on tzset.
85001
85002 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
85003
85004         Remove the dependency of the strftime module on the tzset module.
85005         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
85006         gl_FUNC_TZSET_CLOBBER.
85007
85008 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
85009
85010         Remove the dependency of the strftime module on the tzset module.
85011         * lib/strftime.c (my_strftime)
85012         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
85013         Copy the input structure, to work around some of the bug with
85014         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
85015         Solaris releases, you should also use the tzset module, but we won't
85016         require it as a dependency any more since we don't want LGPLed code
85017         to depend on GPLed code.
85018
85019 2005-07-02  Jim Meyering  <jim@meyering.net>
85020
85021         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
85022         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
85023         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
85024         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
85025
85026 2005-07-02  Jim Meyering  <jim@meyering.net>
85027
85028         * lib/backupfile.c (backup_args): Change a `0' to NULL.
85029
85030 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
85031
85032         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
85033         declares only 'struct timespec;' (!).
85034
85035 2005-07-01  Jim Meyering  <jim@meyering.net>
85036
85037         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
85038         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
85039         * lib/save-cwd.c, tempname.c:
85040         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
85041         and don't include <sys/file.h>).
85042
85043 2005-06-29  Jim Meyering  <jim@meyering.net>
85044
85045         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
85046         type name.  Use the variable name instead.
85047         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
85048         Likewise.
85049
85050 2005-06-28  Simon Josefsson  <jas@extundo.com>
85051
85052         * modules/check-version (Files): Add check-version.m4.
85053
85054 2005-06-28  Simon Josefsson  <jas@extundo.com>
85055
85056         * m4/check-version.m4: New file, suggested by Jim Meyering
85057         <jim@meyering.net>.
85058
85059 2005-06-28  Simon Josefsson  <jas@extundo.com>
85060
85061         * lib/check-version.h, lib/check-version.c: New files.
85062
85063 2005-06-28  Simon Josefsson  <jas@extundo.com>
85064
85065         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
85066         collision with global variable.  Better indentation.  Don't
85067         increment buffer pointer beyond buffer end.  Based on comments
85068         from Paul Eggert <eggert@cs.ucla.edu>.
85069
85070         * lib/base64.h: Indent.
85071
85072 2005-06-28  Simon Josefsson  <jas@extundo.com>
85073
85074         * doc/gnulib.texi (Library version handling): New section.
85075
85076 2005-06-28  Jim Meyering  <jim@meyering.net>
85077
85078         * check-module (find_included_lib_files): Hard-code another
85079         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
85080         but modules/fts-lgpl (correctly) does not list those files.
85081
85082         * modules/canonicalize (Files): Add lib/pathmax.h.
85083
85084 2005-06-25  Simon Josefsson  <jas@extundo.com>
85085
85086         * modules/check-version: New file.
85087
85088 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
85089
85090         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
85091         initializer of struct addrinfo, as an indication that we don't
85092         care how many members the structure has.
85093
85094 2005-06-24  Derek Price  <derek@ximbiot.com>
85095         and Bruno Haible  <bruno@clisp.org>
85096
85097         Remove stat module & update lstat.
85098         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
85099         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
85100         * m4/stat.m4: Remove this file.
85101
85102 2005-06-24  Derek Price  <derek@ximbiot.com>
85103         and Bruno Haible  <bruno@clisp.org>
85104
85105         Remove stat module & update lstat.
85106         * lib/stat.c: Remove this file...
85107         (slash_aware_lstat): ...moving this content and its support...
85108         * lib/lstat.c (rpl_lstat): ...into here.
85109         * lib/lstat.h: New file.
85110
85111 2005-06-24  Derek Price  <derek@ximbiot.com>
85112         and Bruno Haible  <bruno@clisp.org>
85113
85114         Remove stat module & update lstat.
85115         * config/srclist.txt (libc sources): Remove stat.
85116
85117 2005-06-24  Derek Price  <derek@ximbiot.com>
85118         and Bruno Haible  <bruno@clisp.org>
85119
85120         Remove stat module & update lstat.
85121         * MODULES.html.sh (stat): Remove.
85122         * MODULES.html: Regenerated.
85123         * modules/lstat (Description): Correct function name.
85124         (Files): Add "lstat.h".
85125         (Depends-on): Remove stat, add xalloc, stat-macros.
85126         * modules/stat: Remove this file.
85127         (Include): Add "lstat.h", remove <sys/stat.h>.
85128
85129 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
85130
85131         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
85132         (ranged_convert): Don't save conversion in a temporary struct.
85133         This causes a warning with GCC 4.0.0, and anyway in the typical
85134         case it's not worth the extra 100 bytes or so of code.
85135         (ranged_convert, __mktime_internal): When calling a function via a
85136         pointer P, use P () rather than (*P) (), as we now assume C89 or
85137         better.
85138
85139 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
85140
85141         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
85142         "who -r" failed to give output.  Problem reported by Tim Waugh.
85143
85144         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
85145         (xcalloc): Use it to avoid needless tests.
85146         Problem reported by Jim Meyering.
85147
85148 2005-06-20  Derek Price  <derek@ximbiot.com>
85149
85150         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
85151         unnecessary for Autoconfs > 2.59c.
85152
85153 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85154
85155         * lib/argp.h (__option_is_short): Check upper limit of
85156         __key. Isprint() requires its argument to have the value
85157         of an unsigned char or EOF.
85158
85159 2005-06-16  Jim Meyering  <jim@meyering.net>
85160
85161         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
85162         when either N or S is zero.
85163
85164 2005-06-16  Derek Price  <derek@ximbiot.com>
85165
85166         * m4/bison.m4: Declare YACC & YFLAGS precious.
85167
85168 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
85169
85170         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
85171         multibyte string or pattern, fall back on unibyte matching.
85172         Problem reported by James Youngman.
85173
85174 2005-06-08  Bruno Haible  <bruno@clisp.org>
85175
85176         * modules/csharpcomp: New file.
85177         * MODULES.html.sh (C#): Add csharpcomp.
85178
85179 2005-06-08  Bruno Haible  <bruno@clisp.org>
85180
85181         * m4/csharpcomp.m4: New file, from GNU gettext.
85182
85183 2005-06-08  Bruno Haible  <bruno@clisp.org>
85184
85185         * lib/csharpcomp.h: New file, from GNU gettext.
85186         * lib/csharpcomp.c: New file, from GNU gettext.
85187         * lib/csharpcomp.sh.in: New file, from GNU gettext.
85188
85189 2005-06-08  Bruno Haible  <bruno@clisp.org>
85190
85191         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
85192         warning on mingw.
85193
85194 2005-06-07  Derek Price  <derek@ximbiot.com>
85195
85196         Sync from CVS.
85197         * lib/glob_.h: Indent nested #ifdef.
85198
85199 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
85200
85201         Sync from coreutils.
85202         Use "file name" when talking about file names, instead of "filename"
85203         or "path", as per the GNU coding standards.
85204         * lib/mkdir-p.c: Renamed from makepath.c.
85205         (make_dir_parents): Renamed from make_path.  All callers changed.
85206         * lib/mkdir-p.h: Likewise.  All includers changed.
85207         * lib/filenamecat.c: Renamed from path-concat.c.
85208         (file_name_concat): Renamed from path_concat.  All callers changed.
85209         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
85210         * lib/filenamecat.h: Likewise.  All includers changed.
85211         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
85212         in comments or local variable names.
85213         * lib/basename.c: Likewise.
85214         * lib/canonicalize.c, canonicalize.h: Likewise.
85215         * lib/dirname.c, dirname.h: Likewise.
85216         * lib/euidaccess.c: Likewise.
85217         * lib/exclude.c: Likewise
85218         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
85219         * lib/fsusage.c, fsuage.h: Likewise.
85220         * lib/fts.c, fts_.h: Likewise.
85221         * lib/getcwd.c: Likewise.
85222         * lib/getloadavg.c: Likewise.
85223         * lib/mkstemp.c: Likewise.
85224         * lib/mountlist.c, mountlist.h: Likewise.
85225         * lib/openat.c, openat.h: Likewise.
85226         * lib/readlink-stub.c: Likewise.
85227         * lib/readutmp.c, readutmp.h: Likewise.
85228         * lib/rename.c: Likewise.
85229         * lib/rmdir.c: Likewise.
85230         * lib/same.c: Likewise.
85231         * lib/savedir.c: Likewise.
85232         * lib/stripslash.c: Likewise.
85233         * lib/tempname.c: Likewise.
85234         * lib/xreadlink.c: Likewise.
85235         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
85236         All uses changed.
85237         * lib/exclude.h: Likewise.
85238
85239         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
85240         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
85241         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
85242         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
85243         * lib/pathmax.h: Include <limits.h> unconditionally, since other
85244         files have been getting away with it for years (MORE/BSD 4.3
85245         is extinct now).
85246         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
85247         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
85248
85249         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
85250         Define to 256, not 255, as per modern POSIX.
85251
85252 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
85253
85254         Sync from coreutils.
85255         Use "file name" when talking about file names, instead of "filename"
85256         or "path", as per the GNU coding standards.
85257         * MODULES.html.sh: mkdir-p renamed from makepath.
85258         filenamecat renamed from path-concat.
85259         * modules/filenamecat: Renamed from modules/path-concat.
85260         (Files): filenamecat.h and filenamecat.c renamed from
85261         path-concat.h and path-concat.c.
85262         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
85263         (Include): filenamecat.h, not path-concat.h.
85264         * modules/mkdir-p: Renamed from modules/makepath.
85265         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
85266         makepath.c.
85267         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
85268         (Include): mkdir-p.h, not makepath.h.
85269
85270 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
85271
85272         Sync from coreutils.
85273         * m4/mkdir-p.m4: Renamed from makepath.m4.
85274         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
85275         Rename files from makepath.c to mkdir-p.c, and from
85276         makepath.h to mkdir-p.h.
85277         * m4/filenamecat.m4: Renamed from path-concat.m4.
85278         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
85279         Rename files from path-concat.c to filenamecat.c,
85280         and from path-concat.h to filenamecat.h.
85281         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
85282         "file name" in local variables or comments.
85283         * m4/rename.m4: Likewise.
85284
85285 2005-06-01  Bruno Haible  <bruno@clisp.org>
85286
85287         * modules/csharpexec: New file.
85288         * MODULES.html.sh (C#): New section.
85289
85290 2005-06-01  Bruno Haible  <bruno@clisp.org>
85291
85292         * m4/csharp.m4: New file, from GNU gettext.
85293         * m4/csharpexec.m4: New file, from GNU gettext.
85294
85295 2005-06-01  Bruno Haible  <bruno@clisp.org>
85296
85297         * lib/csharpexec.h: New file, from GNU gettext.
85298         * lib/csharpexec.c: New file, from GNU gettext.
85299         * lib/csharpexec.sh.in: New file, from GNU gettext.
85300
85301 2005-05-31  Derek Price  <derek@ximbiot.com>
85302             Paul Eggert  <eggert@cs.ucla.edu>
85303
85304         Sync from cvs.
85305         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
85306
85307 2005-05-31  Derek Price  <derek@ximbiot.com>
85308             Paul Eggert  <eggert@cs.ucla.edu>
85309
85310         Sync from cvs.
85311         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
85312
85313 2005-05-29  Derek Price  <derek@ximbiot.com>
85314
85315         * config/srclist.txt (glob_.h, glob.c): Add these files.
85316
85317 2005-05-29  Derek Price  <derek@ximbiot.com>
85318
85319         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
85320         * modules/glob: New file.
85321         * modules/getlogin_r: Add link to POSIX spec in description.
85322
85323 2005-05-29  Derek Price  <derek@ximbiot.com>
85324             Paul Eggert  <eggert@cs.ucla.edu>
85325
85326         * m4/glob.m4: New file.
85327
85328 2005-05-29  Derek Price  <derek@ximbiot.com>
85329             Paul Eggert  <eggert@cs.ucla.edu>
85330
85331         * lib/glob_.h, lib/glob.c: New files.
85332
85333 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
85334
85335         * modules/fts (Files): Remove m4/inttypes-pri.m4.
85336         * modules/fts-lgpl (Depends-on): Remove gettext.
85337
85338 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
85339
85340         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
85341         and don't require gt_INTTYPES_PRI.
85342
85343 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
85344
85345         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
85346
85347         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
85348         the configuration hassle isn't worth it.
85349         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
85350         (LONGEST_MODIFIER, PRIuMAX): Remove.
85351
85352 2005-05-27  Bruno Haible  <bruno@clisp.org>
85353
85354         * lib/getlogin_r.h: Remove second include of <stddef.h>.
85355
85356 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
85357
85358         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
85359         _POSIX_PTHREAD_SEMANTICS for Solaris.
85360
85361 2005-05-25  Derek Price  <derek@ximbiot.com>
85362
85363         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
85364
85365 2005-05-25  Derek Price  <derek@ximbiot.com>
85366             Paul Eggert  <eggert@cs.ucla.edu>
85367
85368         * modules/getlogin_r, m4/getlogin_r.m4: New files.
85369         * lib/getlogin_r.c, getlogin_r.h: New files.
85370
85371 2005-05-25  Bruno Haible  <bruno@clisp.org>
85372             Derek Price  <derek@ximbiot.com>
85373
85374         * lib/getlogin_r.h: Simplify API documentation.
85375
85376 2005-05-23  Derek Price  <derek@ximbiot.com>
85377
85378         * modules/minmax (Files): Add m4/minmax.m4.
85379         (configure.ac): Add gl_MINMAX.
85380
85381 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
85382
85383         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
85384         so that unistd-safer.h (GPL'ed code) need not be included.
85385
85386 2005-05-22  Bruno Haible  <bruno@clisp.org>
85387
85388         * m4/minmax.m4: New file.
85389         Based on a patch by Derek Price <derek@ximbiot.com>.
85390
85391 2005-05-22  Bruno Haible  <bruno@clisp.org>
85392
85393         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
85394         (INT64_MIN): Fix definition.
85395         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
85396
85397         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
85398         NEED_SIGNED_INT_TYPES.
85399
85400         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
85401         HAVE_SYSTEM_INTTYPES.
85402
85403 2005-05-22  Bruno Haible  <bruno@clisp.org>
85404
85405         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
85406         Also include <sys/param.h> if it defines MIN, MAX.
85407         Based on a patch by Derek Price <derek@ximbiot.com>.
85408
85409 2005-05-21  Jim Meyering  <jim@meyering.net>
85410
85411         * modules/fts (Files): Add m4/inttypes-pri.m4.
85412         (Depends-on): Add lstat and remove gettext.  Alphabetize.
85413
85414 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
85415
85416         New fts module.
85417         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
85418         (setup_dir, free_dir): New functions.
85419         (enter_dir, leave_dir): Define trivial
85420         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
85421         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
85422         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
85423         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
85424         Move to fts-cycle.c.
85425         (fts_open): Use setup_dir.
85426         (fts_close): Use free_dir.
85427         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
85428         This adds a label and some gotos, but the alternatives were messier.
85429         Check for memory allocation failure when entering a dir.
85430         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
85431         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
85432         (FTS): New member fts_cycle, that is a union that contains the
85433         old active_dir_ht and cycle_state.  All uses changed to mention
85434         fts_cycle.ht and fts_cycle.state.
85435         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
85436         fts.c, with the following changes:
85437         (setup_dir, free_dir): New functions.
85438         (enter_dir): Now returns bool.  Return true if successful, false
85439         if memory exhausted.  All callers changed.
85440         Do not bother partly cleaning up on
85441         memory allocation failure; that is free_dir's job.
85442         However, free ad if hash_insert fails, to avoid memory leak.
85443         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
85444         fts->fts_options to see which union member to use.
85445
85446 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
85447
85448         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
85449         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
85450
85451 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
85452
85453         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
85454
85455 2005-05-20  Jim Meyering  <jim@meyering.net>
85456
85457         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
85458         Now a macro, to pacify GCC.
85459
85460 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
85461
85462         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
85463         of -1.
85464
85465 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
85466
85467         * lib/chown.c (rpl_chown): Return -1 on failure.
85468
85469 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
85470
85471         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
85472         Don't check for stddef.h.
85473         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
85474         don't use its results.
85475         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
85476         since we include them unconditionally.  Don't require
85477         AM_STDBOOL_H, since stdbool is a prerequisite.
85478         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
85479         since we assume C89 or better.
85480         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
85481         as we don't use their results.
85482         Don't check for fchdir, memmove, memset, strrchr, as we use
85483         them unconditionally.
85484         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
85485         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
85486
85487 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
85488
85489         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
85490         Include <stddef.h> unconditionally, since we assume C89 now.
85491         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
85492         * lib/fts.c: Include fts_.h first, to check interface.
85493         Do not include intprops.h; no longer needed.
85494         Include cycle-check.h and hash.h, since fts_.h no longer does.
85495         Remove unnecessary casts of closedir to void.
85496         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
85497         decide whether to decrement nlinks.
85498         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
85499         (FTS): Use struct hash_table * instead of Hash_table, so that
85500         we no longer need to include hash.h here.
85501
85502 2005-05-18  Jim Meyering  <jim@meyering.net>
85503
85504         * modules/dirfd (License): Change to LGPL.  Most of the code
85505         is already in the public domain.
85506
85507 2005-05-18  Jim Meyering  <jim@meyering.net>
85508
85509         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
85510         Reported by Yoann Vandoorselaere.
85511
85512 2005-05-17  Jim Meyering  <jim@meyering.net>
85513
85514         * m4/fts.m4: New file, from coreutils.
85515
85516 2005-05-17  Jim Meyering  <jim@meyering.net>
85517
85518         * lib/fts.c, lib/fts_.h: New files, from coreutils.
85519
85520 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
85521
85522         Sync from coreutils.
85523         * m4/unlinkdir.m4: New file.
85524
85525 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
85526
85527         Sync from coreutils.
85528         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
85529         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
85530         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
85531         White space changes only.
85532         * lib/makepath.c (make_path): Port to hosts where leading "//" is
85533         special.
85534         * lib/yesno.c: Include getline.h, not ctype.h.
85535         (yesno): Don't remove leading white space; POSIX doesn't allow it.
85536         Use getline to remove arbitrary restriction on response length.
85537
85538 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
85539
85540         * config/srclist-update: Spell out "Street" in FSF postal
85541         mail address; this is the style the FSF seems to prefer.
85542
85543         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
85544         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
85545         this updates FSF postal mail address.
85546
85547         Sync from coreutils.
85548         * modules/unlinkdir: New file.
85549         * modules/yesno (Depends-on): Add getline.
85550         * MODULES.html.sh (File system functions): Add unlinkdir.
85551
85552 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
85553
85554         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
85555         lib/strsep.h:
85556         Change the initial comment to refer to GPL, not LGPL.
85557         gnulib-tool will change it to LGPL as needed.
85558
85559         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
85560         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
85561         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
85562         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
85563         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
85564         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
85565         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
85566         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
85567         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
85568         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
85569         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
85570         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
85571         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
85572         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
85573         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
85574         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
85575         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
85576         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
85577         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
85578         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
85579         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
85580         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
85581         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
85582         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
85583         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
85584         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
85585         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
85586         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
85587         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
85588         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
85589         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
85590         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
85591         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
85592         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
85593         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
85594         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
85595         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
85596         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
85597         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
85598         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
85599         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
85600         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
85601         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
85602         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
85603         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
85604         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
85605         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
85606         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
85607         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
85608         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
85609         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
85610         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
85611         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
85612         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
85613         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
85614         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
85615         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
85616         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
85617         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
85618         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
85619         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
85620         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
85621         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
85622         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
85623         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
85624         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
85625         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
85626         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
85627         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
85628         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
85629         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
85630         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
85631         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
85632         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
85633         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
85634         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
85635         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
85636         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
85637         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
85638         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
85639         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
85640         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
85641         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
85642         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
85643         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
85644         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
85645         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
85646         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
85647         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
85648         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
85649         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
85650         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
85651         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
85652         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
85653         lib/yesno.c, lib/yesno.h:
85654         Update FSF postal mail address.
85655
85656 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
85657
85658         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
85659         tests/test-memmem.c, tests/test-stpncpy.c:
85660         Update FSF postal mail address.
85661
85662 2005-05-13  Bruno Haible  <bruno@clisp.org>
85663
85664         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
85665         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
85666         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
85667         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
85668         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
85669         Add support for 64-bit integers in the MSVC compiler.
85670
85671 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85672
85673         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
85674
85675 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
85676
85677         * gnulib-tool (func_import): Sort and uniquify recommended includes.
85678
85679 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
85680
85681         * doc/getdate.texi (General date syntax): Don't say that date
85682         date --iso-8601=ns generates acceptable dates; it doesn't yet.
85683         Problem reported by Nic Ferrier.
85684
85685 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
85686
85687         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
85688         specified in ai_socktype. Fix invalid ai_protocol
85689         check. ai_protocol is usually set to 0 or depending on
85690         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
85691         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
85692         ai_socktype / ai_protocol in the returned addrinfo structure.
85693
85694 2005-05-10  Simon Josefsson  <jas@extundo.com>
85695
85696         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
85697         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
85698
85699 2005-05-10  Karl Berry  <karl@gnu.org>
85700
85701         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
85702         (from http://www.gnu.org/licenses).
85703         * doc/COPYING.LIB: also rename to COPYING.LESSER.
85704         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
85705         fdl.texi suffices.
85706
85707 2005-05-10  Karl Berry  <karl@gnu.org>
85708
85709         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
85710         (COPYING.DOC): remove.
85711
85712         * config/srclist-update: new FSF address.
85713
85714 2005-05-10  Derek Price  <derek@ximbiot.com>
85715
85716         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
85717         possible.
85718
85719 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
85720             Bruno Haible  <bruno@clisp.org>
85721
85722         * modules/inet_ntop: New file.
85723         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
85724         inet_ntop.
85725
85726 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
85727             Bruno Haible  <bruno@clisp.org>
85728
85729         * m4/inet_ntop.m4: New file.
85730
85731 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
85732             Bruno Haible  <bruno@clisp.org>
85733
85734         * lib/inet_ntop.h: New file.
85735         * lib/inet_ntop.c: New file, from glibc with modifications.
85736
85737 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
85738
85739         * modules/time_r (License): Change to LGPL.
85740         * modules/extensions (License): Change to LGPL.  Actually,
85741         the license is more permissive than that, but currently gnulib-tool
85742         doesn't know how to handle more-permissive licenses.
85743
85744         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
85745         Problem reported by Dave Love.
85746
85747 2005-05-08  Jim Meyering  <jim@meyering.net>
85748
85749         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
85750         blank.
85751
85752 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
85753
85754         * modules/argmatch (Depends-on): Add stdbool.
85755         * modules/backupfile (Depends-on): Likewise.
85756         * modules/chdir-long (Depends-on): Likewise.
85757         * modules/closeout (Depends-on): Likewise.
85758         * modules/cycle-check (Depends-on): Likewise.
85759         * modules/dirname (Depends-on): Likewise.
85760         * modules/fnmatch (Depends-on): Likewise.
85761         * modules/fsusage (Depends-on): Likewise.
85762         * modules/fwriteerror (Depends-on): Likewise.
85763         * modules/getcwd (Depends-on): Likewise.
85764         * modules/getloadavg (Depends-on): Likewise.
85765         * modules/hard-locale (Depends-on): Likewise.
85766         * modules/makepath (Depends-on): Likewise.
85767         * modules/mountlist (Depends-on): Likewise.
85768         * modules/nanosleep (Depends-on): Likewise.
85769         * modules/posixtm (Depends-on): Likewise.
85770         * modules/quotearg (Depends-on): Likewise.
85771         * modules/readtokens (Depends-on): Likewise.
85772         * modules/readtokens0 (Depends-on): Likewise.
85773         * modules/readutmp (Depends-on): Likewise.
85774         * modules/save-cwd (Depends-on): Likewise.
85775         * modules/strftime (Depends-on): Likewise.
85776         * modules/userspec (Depends-on): Likewise.
85777         * modules/utimecmp (Depends-on): Likewise.
85778         * modules/xgetcwd (Depends-on): Likewise.
85779         * modules/xnanosleep (Depends-on): Likewise.
85780         * modules/xstrtod (Depends-on): Likewise.
85781         * modules/yesno (Depends-on): Likewise.
85782
85783 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
85784
85785         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
85786         needless checks.
85787
85788 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
85789
85790         Merge from coreutils.  Among other things,
85791         add bulletproofing for cases where stdin, stdout, or stderr are closed.
85792         * lib/fd-safer.c: New file.
85793         * lib/fcntl-safer.h, open-safer.c: Remove.
85794         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
85795         * lib/dup-safer.c: Include unistd-safer.h first.
85796         Don't include errno.h.
85797         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
85798         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
85799         * lib/file-type.c: Rely on file-type.h change.
85800         * lib/getloadavg.c: Include unistd-safer.h.
85801         (getloadavg): Use safer open.
85802         * lib/getusershell.c: Include "stdio-safer.h".
85803         (getusershell): Use safer fopen.
85804         * lib/long-options.c (long_options): Use NULL rather than 0.
85805         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
85806         'free'.
85807         * lib/modechange.c: Likewise.
85808         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
85809         (MODE_DONE): New constant.
85810         (struct mode_change): Remove 'next' member.
85811         (make_node_op_equals): New function; like the old one of the
85812         same name, except it allocates an array.
85813         (mode_compile, mode_create_from_ref): Use it.
85814         (mode_compile): Allocate result as an array, not a linked list.
85815         Parse octal string ourself, so that we catch mistakes like "+0".
85816         (mode_adjust): Arg is an array, not a linked list.
85817         * lib/modechange.c: Include stat-macros.h, xalloc.h.
85818         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
85819         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
85820         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
85821         Remove.  This is now stat-macros.h's job.
85822         (talloc): Remove.  All callers replaced by xalloc, so that
85823         our invokers don't have to worry about reporting memory failures.
85824         (make_node_op_equals): Remove.
85825         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
85826         New constants.
85827         (struct mode_change): Moved here from modechange.h.
85828         (mode_append_entry): Remove.
85829         (mode_compile): Remove MASKED_OPS arg, since it encouraged
85830         apps to have incorrect behavior.  Use simpler algorithm for head
85831         and tail.  Don't futz with umask; that's now the job of mode_adjust.
85832         Detect more invalid usages rather than having somewhat-random behavior.
85833         Don't insert an "a=" action, as that leads to incorrect behavior.
85834         (mode_compile, mode_create_from_ref): Return NULL on error instead
85835         of an enum, since now there's only one way to have an error.  All
85836         callers changed.
85837         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
85838         at the correct time.  Simplify calculation of "+u" and its ilk.
85839         Don't mishandle "+X".
85840         (mode_free): Remove "register" and localize decls.
85841         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
85842         (struct mode_change): Move to modechange.c; callers don't
85843         need to see this stuff.
85844         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
85845         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
85846         (mode_change, mode_adjust): Reflect the new signatures noted above.
85847         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
85848         that might redefine system include files.
85849         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
85850         (my_usleep): Use NULL rather than (void *) 0.
85851         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
85852         Use siginterrupt to specify that system calls should be interrupted.
85853         (rpl_nanosleep): Move initialization of suspended closer to call of
85854         my_usleep.
85855         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
85856         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
85857         (desirable_utmp_entry): New function.
85858         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
85859         using x2nrealloc, to simplify logic.
85860         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
85861         size calculation.  Do not assume utmp file is a regular file.
85862         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
85863         (READ_UTMP_CHECK_PIDS): New constant.
85864         * lib/save-cwd.c: Include unistd-safer.h.
85865         (save_cwd): Use fd_safer.
85866         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
85867         [!_LIBC] Include "stat-macros.h" instead.
85868         * lib/unistd-safer.h (fd_safer): New decl.
85869
85870 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
85871
85872         * modules/getloadavg (Depends-on): Add unistd-safer.
85873         * modules/getusershell (Depends-on): Add stdio-safer.
85874         * modules/lstat (Depends-on): Remove xalloc.
85875         * modules/mkstemp (Depends-on): Add stat-macros.
85876         * modules/modechange (Depends-on): Remove xstrtol.
85877         Add stat-macros, xalloc.
85878         * modules/save-cwd (Depends-on): Add unistd-safer.
85879         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
85880         * modules/unistd-safer (Files): Add lib/fd-safer.c
85881         (Makefile.am): Remove lib_SOURCES.
85882
85883         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
85884         Remove fcntl-safer; unistd-safer supersedes it.
85885
85886 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
85887
85888         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
85889         AC_HEADER_STAT.
85890         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
85891         (gl_PREREQ_CHOWN): Remove.
85892         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
85893         it.  Don't require AC_HEADER_STAT.
85894         (gl_PREREQ_LSTAT): Remove.
85895         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
85896         Don't require AC_HEADER_STAT.
85897         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
85898         (gl_PREREQ_RMDIR): Remove.
85899         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
85900         mention stat-macros.h or AC_HEADER_STAT, since we'll make
85901         the stat-macros module a prerequisite.
85902         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
85903         * m4/filemode.m4 (gl_FILEMODE): Likewise.
85904         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
85905         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
85906         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
85907         variable names.
85908         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
85909         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
85910         variable prefixes.
85911         * m4/fcntl-safer.m4: Remove.
85912         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
85913         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
85914         Invoke gl_PREREQ_FD_SAFER.
85915         (gl_PREREQ_FD_SAFER): New macro.
85916         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
85917         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
85918         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
85919         Remove duplicate call to AC_LIBOBJ(readutmp).
85920         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
85921
85922         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
85923         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
85924
85925 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
85926
85927         * MODULES.html.sh (Misc): Add byteswap.
85928
85929 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
85930
85931         * modules/getcwd (Depends-on): Add extensions.
85932         * modules/openat (Depends-on): Likewise.
85933
85934 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
85935
85936         * modules/byteswap: New file.
85937
85938 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
85939
85940         * m4/byteswap.m4: New file.
85941
85942 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
85943
85944         * lib/byteswap_.h: New file.
85945
85946 2005-04-25  Karl Berry  <karl@gnu.org>
85947
85948         * m4/gettext.m4: Update from GNU gettext 0.14.4.
85949
85950 2005-04-25  Albert Chin  <china@thewrittenword.com>
85951
85952         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
85953         Toolkit C bug.
85954
85955 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
85956
85957         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
85958         (func_ln_if_changed): Remove forcibly for no error message
85959         in case file does not exist.
85960
85961 2005-04-19  Simon Josefsson  <jas@extundo.com>
85962
85963         * gnulib-tool (Options): Make --symlink mean --symbolic.
85964
85965 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
85966
85967         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
85968
85969 2005-04-16  Simon Josefsson  <jas@extundo.com>
85970
85971         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
85972
85973 2005-04-15  Simon Josefsson  <jas@extundo.com>
85974
85975         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
85976
85977 2005-04-15  Simon Josefsson  <jas@extundo.com>
85978
85979         * gnulib-tool: Rename --symlink to --symbolic.
85980
85981 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
85982
85983         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
85984         symbolic links to files instead of copying/moving.  Add --aux-dir,
85985         specifying directory relative --dir where auxiliary build tools
85986         are placed.
85987
85988 2005-04-14  Bruno Haible  <bruno@clisp.org>
85989
85990         * modules/allocsa (License): Change to LGPL.
85991         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
85992
85993 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
85994
85995         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
85996         that "UTC +1 second" continues to work.  Problem reported
85997         by Dmitry V. Levin.
85998         (relunit_snumber): New rule.
85999         (relunit): Use it.
86000
86001 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
86002
86003         * lib/getdate.y (universal_time_zone_table): New constant.
86004         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
86005         universal_time_zone_table.
86006         (lookup_zone): Prefer universal_time_zone_table to
86007         local_time_zone_table, so that "GMT" time stamps are allowed in
86008         London during the summer.  Problem reported by Ian Abbott.
86009
86010 2005-04-12  Jim Meyering  <jim@meyering.net>
86011
86012         * lib/human.c (humblock): Set *options even when returning due to
86013         xstrtoumax conversion failure.  Thanks to a used-uninitialized
86014         warning from gcc-4.
86015
86016 2005-04-09  Jim Meyering  <jim@meyering.net>
86017
86018         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
86019         -Wuninitialized: initialize tm0.tm_year.
86020
86021 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
86022
86023         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
86024         count, since there's no maximum.  All uses changed.
86025         Add member dsts_seen.
86026         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
86027         not being INT_MAX.
86028         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
86029         Use pc_rels_seen to decide whether a date is absolute.
86030
86031         * lib/getdate.y (number): Don't overwrite year.
86032         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
86033         check.
86034
86035 2005-04-02  Simon Josefsson  <jas@extundo.com>
86036
86037         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
86038         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
86039
86040 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
86041
86042         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
86043         where no absolute path name can be longer than PATH_MAX.
86044
86045 2005-03-27  Jim Meyering  <jim@meyering.net>
86046
86047         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
86048
86049 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
86050
86051         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
86052         "one's complement" -> "ones' complement" in comment, as per Knuth.
86053         "value of type" -> "type or expression" in comment.
86054         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
86055
86056 2005-03-26  Jim Meyering  <jim@meyering.net>
86057
86058         Comment nits.
86059         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
86060         Correct typos: s/or/of/.
86061
86062 2005-03-26  Jim Meyering  <jim@meyering.net>
86063
86064         * modules/check-include-files: Move to ../ and rename to...
86065         * check-module: ...this.
86066
86067 2005-03-25  Jim Meyering  <jim@meyering.net>
86068
86069         * modules/xvasprintf (Files): Add xalloc.h.
86070
86071 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
86072
86073         * modules/gettext (Files): config/config.rpath ->
86074         build-aux/config.rpath
86075         * modules/iconv (Files): Likewise.
86076         Problem reported by Oskar Liljeblad.
86077
86078 2005-03-23  Jim Meyering  <jim@meyering.net>
86079
86080         * modules/check-include-files: New script to check for
86081         missing dependencies, multiple includes, etc.
86082
86083         * modules/c-strtold (Depends-on): Add xalloc.
86084         * modules/c-strtod (Depends-on): Add xalloc.
86085         * modules/hash (Depends-on): Add xalloc.
86086         (Files): Remove lib/xalloc.h.
86087
86088         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
86089         * modules/userspec (Files): Add lib/inttostr.h.
86090
86091 2005-03-23  Jim Meyering  <jim@meyering.net>
86092
86093         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
86094
86095 2005-03-22  Jim Meyering  <jim@meyering.net>
86096
86097         * modules/stat-macros: New module.
86098         * modules/canonicalize, modules/euidaccess, modules/file-type,
86099         * modules/filemode, modules/lchown, modules/makepath,
86100         * modules/rmdir, modules/stat: Depend on new stat-macros module
86101         rather than listing lib/stat-macros.h manually.
86102         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
86103
86104 2005-03-22  Jim Meyering  <jim@meyering.net>
86105
86106         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
86107
86108 2005-03-22  Bruno Haible  <bruno@clisp.org>
86109
86110         * config/srclist.txt: Replace target directory 'config' with
86111         'build-aux'.
86112         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
86113         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
86114         ../build-aux/.
86115
86116 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
86117
86118         * modules/chdir-long (Depends-on): Add mempcpy.
86119
86120         * modules/acl, modules/backupfile, modules/c-strtod,
86121         modules/c-strtold, modules/canon-host, modules/canonicalize,
86122         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
86123         modules/exclude, modules/exitfail, modules/file-type,
86124         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
86125         modules/getdate, modules/getline, modules/getpagesize,
86126         modules/getpass, modules/getugroups, modules/group-member,
86127         modules/hard-locale, modules/hash, modules/human, modules/idcache,
86128         modules/inttostr, modules/long-options, modules/makepath,
86129         modules/md5, modules/memcasecmp, modules/memcoll,
86130         modules/modechange, modules/mountlist, modules/path-concat,
86131         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
86132         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
86133         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
86134         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
86135         modules/strftime, modules/strndup, modules/strverscmp,
86136         modules/timespec, modules/unlocked-io, modules/userspec,
86137         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
86138         modules/yesno:
86139         Remove lib_SOURCES line from Makefile.am section, as this is now
86140         done automatically by the corresponding Autoconf macro.
86141
86142 2005-03-21  Jim Meyering  <jim@meyering.net>
86143
86144         Changes imported from coreutils.
86145
86146         * lib/cycle-check.c: Don't include xalloc.h.
86147
86148         * lib/path-concat.c: Don't include assert.h.
86149         (path_concat): Remove assertion that would have triggered
86150         for ABASE starting with more than one slash.
86151         Reported by Andreas Schwab.
86152
86153         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
86154         properly when ABASE is an absolute file name.
86155         Correct the description of this function.
86156         Include <assert.h>.
86157         Add an assertion and a test driver.
86158         This fixes a bug introduced on 2004-07-02.
86159         Andreas Schwab reported the resulting failure of cp --parents:
86160         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
86161
86162 2005-03-21  Jim Meyering  <jim@meyering.net>
86163
86164         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
86165         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
86166
86167 2005-03-21  Jim Meyering  <jim@meyering.net>
86168         and  Paul Eggert  <eggert@cs.ucla.edu>
86169
86170         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
86171         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
86172         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
86173         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
86174         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
86175         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
86176         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
86177         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
86178         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
86179         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
86180         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
86181         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
86182         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
86183         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
86184         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
86185         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
86186         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
86187         for these modules.
86188
86189 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
86190
86191         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
86192         (which shouldn't happen), generate nothing instead of returning 0
86193         immediately, so that nstrftime (NULL, ...) doesn't return 0.
86194
86195 2005-03-16  Bruno Haible  <bruno@clisp.org>
86196
86197         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
86198         HAVE_LONGLONG_64BIT.
86199
86200 2005-03-16  Bruno Haible  <bruno@clisp.org>
86201
86202         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
86203         HAVE_LONGLONG_64BIT.
86204
86205 2005-03-16  Bruno Haible  <bruno@clisp.org>
86206
86207         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
86208         HAVE_LONGLONG_64BIT.
86209
86210 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
86211
86212         * lib/strftime.c (my_strftime): Prepend space to format so that we can
86213         reliably distinguish strftime failure from empty output on POSIX
86214         hosts.
86215
86216 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
86217
86218         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
86219         (iconv_string): Don't guess a size-zero buffer, as that might cause
86220         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
86221         result would be 'too large', where 'too large' is (heuristically)
86222         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
86223         overflow concerns.  This will prevent some unwanted malloc failures
86224         when the inputs are very large.
86225
86226 2005-03-15  Karl Berry  <karl@gnu.org>
86227
86228         * config/srclist.txt (config.rpath): from gettext.
86229         * config/config.rpath: update.
86230
86231 2005-03-15  Bruno Haible  <bruno@clisp.org>
86232
86233         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
86234         to 'negate'.
86235
86236         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
86237         variable.
86238
86239         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
86240         results.
86241
86242 2005-03-14  Simon Josefsson  <jas@extundo.com>
86243
86244         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
86245         <fx@gnu.org>.
86246
86247 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
86248
86249         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
86250         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
86251         intprops.h.
86252         * lib/strtol.c: Likewise.
86253
86254 2005-03-14  Jim Meyering  <jim@meyering.net>
86255
86256         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
86257         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
86258         to be nonzero so that we (and caller) can detect the difference
86259         between a valid zero-length expansion and an error return, even
86260         when the underlying strftime fails before writing anything into
86261         that location.
86262
86263 2005-03-14  Bruno Haible  <bruno@clisp.org>
86264
86265         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
86266         Update from GNU gettext 0.14.3.
86267
86268 2005-03-10  Jim Meyering  <jim@meyering.net>
86269
86270         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
86271
86272 2005-03-10  Jim Meyering  <jim@meyering.net>
86273
86274         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
86275         so that this module works on systems without fchdir.
86276
86277 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
86278
86279         Factor int-properties macros into a single file, except for
86280         glibc-related files.
86281         * lib/intprops.h: New file.
86282         * lib/getloadavg.c: Include it instead of limits.h.
86283         (INT_STRLEN_BOUND): Remove.
86284         * lib/human.c: Include intprops.h.
86285         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
86286         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
86287         302/1000.
86288         * lib/inttostr.h: Include intprops.h instead of limits.h.
86289         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
86290         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
86291         for consistency with intprops.h.
86292         (time_t_is_integer, twos_complement_arithmetic): Use them.
86293         * lib/sig2str.h: Include <signal.h>, intprops.h.
86294         (INT_STRLEN_BOUND): Remove.
86295         * lib/strftime.c (TYPE_SIGNED): Remove.
86296         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
86297         * lib/strtol.c: Adjust comments to match intprops.h.
86298         * lib/userspec.c: Include intprops.h.
86299         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
86300         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
86301         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
86302         instead of rolling our own expressions.
86303         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
86304
86305         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
86306         instead of int.
86307         (my_strftime): Do not mishandle years close to INT_MAX, by doing
86308         the right thing even if adding 1900 would overflow.  Similarly
86309         for tm_mon + 1 and tm_yday + 1.
86310         Make %Y always equivalent to %C%y, and similarly for %G and %g.
86311         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
86312         (DO_SIGNED_NUMBER): New macro.
86313         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
86314
86315 2005-03-07  Bruno Haible  <bruno@clisp.org>
86316
86317         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
86318
86319 2005-03-07  Bruno Haible  <bruno@clisp.org>
86320
86321         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
86322
86323 2005-03-04  Derek R. Price  <derek@ximbiot.com>
86324
86325         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
86326         (func_import): Only replace files via --import when they have actually
86327         changed.
86328
86329 2005-03-03  Derek R. Price  <derek@ximbiot.com>
86330
86331         * m4/mmap-anon.m4: New file.
86332         * m4/pagealign_alloc.m4: New file.
86333
86334 2005-03-03  Derek R. Price  <derek@ximbiot.com>
86335             Bruno Haible  <bruno@clisp.org>
86336
86337         * modules/pagealign_alloc: New file.
86338         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
86339
86340 2005-03-03  Derek R. Price  <derek@ximbiot.com>
86341             Bruno Haible  <bruno@clisp.org>
86342
86343         * lib/pagealign_alloc.h: New file.
86344         * lib/pagealign_alloc.c: New file.
86345
86346 2005-03-03  Bruno Haible  <bruno@clisp.org>
86347
86348         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
86349         Use an all-permissive copyright notice, recommended by RMS.
86350
86351 2005-03-02  Bruno Haible  <bruno@clisp.org>
86352
86353         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
86354         of AIX, the replacement has to be done only after <string.h> is
86355         included, therefore not in config.h. stpncpy.h does the replacement,
86356         and stpncpy.c uses it.
86357
86358 2005-03-02  Bruno Haible  <bruno@clisp.org>
86359
86360         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
86361         stpncpy.c uses it.
86362
86363 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
86364
86365         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
86366         The workaround isn't strictly needed for POSIX conformance, and
86367         it's too much of a pain to configure and maintain.  We'll ask
86368         people to fix their kernels instead.
86369         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
86370         (NANOSLEEP_BUG_WORKAROUND): Remove.
86371         (xnanosleep): Remove the workaround.
86372
86373 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
86374
86375         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
86376         Reported by Derek Price.
86377         (Include): Add "timespec.h".
86378
86379         * modules/xnanosleep (Depends-on): Remove gethrxtime.
86380
86381 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
86382
86383         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
86384         to detect nanosleep bug.
86385
86386 2005-03-01  Bruno Haible  <bruno@clisp.org>
86387
86388         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
86389
86390 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
86391
86392         * modules/gethrxtime: New file.
86393         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
86394         (Depends-on): Add gethrxtime.
86395         (configure.ac): Add gl_XNANOSLEEP.
86396         (Makefile.am): Remove lib_SOURCES line.
86397
86398 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
86399
86400         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
86401         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
86402
86403 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
86404
86405         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
86406         * lib/timespec.h (gettime): Return void, since it always
86407         succeeds now.  All uses changed.
86408         * lib/gettime.c (gettime): Likewise.
86409         [HAVE_NANOTIME]: Prefer nanotime.
86410         Assume gettimeofday succeeds, as POSIX requires.
86411         Assime time () succeeds, since other code already does.
86412         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
86413         (timespec_subtract): Remove.
86414         (NANOSLEEP_BUG_WORKAROUND): New constant.
86415         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
86416         things considerably.  Use it only on GNU/Linux hosts, since the
86417         workaround shouldn't be needed elsewhere.
86418
86419 2005-02-24  Bruno Haible  <bruno@clisp.org>
86420
86421         * modules/gettext (Files): Add m4/glibc2.m4.
86422
86423 2005-02-24  Bruno Haible  <bruno@clisp.org>
86424
86425         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
86426         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
86427         * m4/progtest.m4:
86428         Update from GNU gettext 0.14.2.
86429         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
86430
86431 2005-02-24  Bruno Haible  <bruno@clisp.org>
86432
86433         * lib/localcharset.c: Update from GNU gettext 0.14.2.
86434         * lib/config.charset: Update from GNU gettext 0.14.2.
86435
86436 2005-02-24  Bruno Haible  <bruno@clisp.org>
86437
86438         * lib/gettext.h: Update from GNU gettext 0.14.2.
86439
86440 2005-02-23  Simon Josefsson  <jas@extundo.com>
86441
86442         * m4/iconvme.m4: New file.
86443
86444 2005-02-23  Jim Meyering  <jim@meyering.net>
86445
86446         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
86447         change.
86448         Thanks to Bruno Haible for catching it.
86449
86450 2005-02-22  Simon Josefsson  <jas@extundo.com>
86451
86452         * modules/iconvme: New file.
86453
86454         * MODULES.html.sh: Add iconvme.
86455
86456 2005-02-22  Simon Josefsson  <jas@extundo.com>
86457
86458         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
86459
86460 2005-02-22  Simon Josefsson  <jas@extundo.com>
86461
86462         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
86463
86464 2005-02-22  Jim Meyering  <jim@meyering.net>
86465
86466         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
86467         s/ifndef/ifdef/.
86468
86469 2005-02-20  Neil Conway  <neilc@samurai.com>
86470
86471         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
86472         returned by OSX/Darwin if the specified buffer is not large
86473         enough for the hostname.
86474
86475 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
86476
86477         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
86478         pass it to _help, otherwise the latter coredumps trying to
86479         dereference state.root_argp.
86480
86481 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
86482
86483         * modules/chdir-long (Depends-on): Add memrchr.
86484         * modules/memrchr (Files): Add lib/memrchr.h.
86485         (Include): "memrchr.h".
86486
86487 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
86488
86489         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
86490
86491 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
86492
86493         * lib/memrchr.h: New file.
86494         * lib/chdir-long.c: Include it.
86495         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
86496         Don't bother including stddef.h.
86497
86498 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
86499
86500         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
86501         inclusion.
86502         Include <sys/types.h>, for dev_t.
86503         (ME_DUMMY, ME_REMOTE): Move from here....
86504         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
86505         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
86506         Dmitry V. Levin.
86507         Include mountlist.h first, to test the interface.
86508
86509 2005-01-29  Bruno Haible  <bruno@clisp.org>
86510
86511         * lib/progname.c (program_name): Initialize.
86512         Needed when linking statically on MacOS X.
86513
86514 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
86515
86516         Sync from coreutils.
86517         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
86518         (Depends-on): Add c-strtod.
86519         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
86520
86521 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
86522
86523         Sync from coreutils.
86524         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
86525
86526         Remove files that are specific to coreutils.
86527         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
86528
86529 2005-01-28  Bruno Haible  <bruno@clisp.org>
86530
86531         * modules/javacomp: New file.
86532         * MODULES.html.sh (Java): Add javacomp.
86533
86534 2005-01-28  Bruno Haible  <bruno@clisp.org>
86535
86536         * m4/javacomp.m4: New file, from GNU gettext.
86537
86538 2005-01-28  Bruno Haible  <bruno@clisp.org>
86539
86540         * lib/javacomp.sh.in: New file, from GNU gettext.
86541         * lib/javacomp.h: New file, from GNU gettext.
86542         * lib/javacomp.c: New file, from GNU gettext.
86543
86544 2005-01-26  Simon Josefsson  <jas@extundo.com>
86545
86546         * lib/gai_strerror.c: Use GPL in header.
86547
86548 2005-01-26  Bruno Haible  <bruno@clisp.org>
86549
86550         * modules/javaexec: New file.
86551         * MODULES.html.sh (Java): Add javaexec.
86552
86553 2005-01-26  Bruno Haible  <bruno@clisp.org>
86554
86555         * m4/javaexec.m4: New file, from GNU gettext.
86556
86557 2005-01-26  Bruno Haible  <bruno@clisp.org>
86558
86559         * lib/javaexec.sh.in: New file, from GNU gettext.
86560         * lib/javaexec.h: New file, from GNU gettext.
86561         * lib/javaexec.c: New file, from GNU gettext.
86562
86563 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
86564
86565         * modules/lchown (Depends-on): Remove lchown.h
86566
86567 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
86568
86569         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
86570         must be defined if the header file was not found, in order
86571         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
86572
86573 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
86574
86575         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
86576         initializers for struct pentry_state.
86577         (__argp_error): Check return value of __asprintf
86578         (__argp_failure): Translate error message
86579
86580         * lib/argp-parse.c: Removed braces around the expansion of N_()
86581
86582 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
86583
86584         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
86585         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
86586         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
86587         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
86588         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
86589         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
86590         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
86591         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
86592         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
86593         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
86594         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
86595         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
86596         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
86597         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
86598         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
86599         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
86600         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
86601         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
86602         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
86603         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
86604         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
86605         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
86606         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
86607         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
86608         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
86609         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
86610         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
86611         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
86612         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
86613         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
86614         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
86615         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
86616         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
86617         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
86618         xstrtol.m4, xstrtoumax.m4, yesno.m4:
86619         Use an all-permissive copyright notice, recommended by RMS.
86620
86621 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
86622
86623         * modules/chdir-long (Depends-on): Remove mempcpy.
86624
86625 2005-01-21  Jim Meyering  <jim@meyering.net>
86626
86627         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
86628         same value as for Solaris 9.
86629
86630         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
86631         component length.  This included changing the parameter to be
86632         of type `char *' rather than `char const *'.
86633         * lib/chdir-long.h (chdir_long): Update prototype.
86634
86635         * lib/openat.c (fdopendir, fstatat): New functions.
86636         * lib/openat.h: Include headers required for use of DIR and struct
86637         stat.
86638         [AT_SYMLINK_NOFOLLOW]: Define.
86639         (fdopendir, fstatat): Add prototypes.
86640
86641 2005-01-21  Bruno Haible  <bruno@clisp.org>
86642
86643         * modules/classpath: New file.
86644         * MODULES.html.sh (Java): Add classpath.
86645
86646 2005-01-21  Bruno Haible  <bruno@clisp.org>
86647
86648         * lib/classpath.h: New file, from GNU gettext.
86649         * lib/classpath.c: New file, from GNU gettext.
86650
86651 2005-01-20  Simon Josefsson  <jas@extundo.com>
86652
86653         * modules/version-etc-fsf: New file.
86654
86655 2005-01-20  Simon Josefsson  <jas@extundo.com>
86656
86657         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
86658         * lib/version-etc.c: Remove version_etc_copyright.
86659         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
86660         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
86661
86662 2005-01-20  Simon Josefsson  <jas@extundo.com>
86663
86664         * lib/base64.h (isbase64): Add.
86665
86666         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
86667         using a unsigned prototype, don't inline.
86668         (base64_decode): Use it.
86669
86670 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
86671
86672         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
86673         it.
86674
86675 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
86676
86677         * lib/save-cwd.c (save_cwd): Remove code to support the case
86678         where fchdir is missing or flaky.
86679
86680 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
86681
86682         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
86683
86684 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
86685
86686         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
86687         AC_LIBSOURCES now does this.
86688         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
86689         with new ullong_max module.
86690
86691 2005-01-19  Bruno Haible  <bruno@clisp.org>
86692
86693         * modules/sh-quote: New file.
86694         * MODULES.html.sh (Executing programs): Add sh-quote.
86695
86696 2005-01-19  Bruno Haible  <bruno@clisp.org>
86697
86698         * lib/sh-quote.h: New file, from GNU gettext.
86699         * lib/sh-quote.c: New file, from GNU gettext.
86700
86701 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
86702
86703         Merge from coreutils.
86704         * m4/ullong_max.m4: New file.
86705         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
86706         (gl_MACROS): Assume localeconv exists.
86707
86708 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
86709
86710         Merge changes from coreutils, as described below in several
86711         changelogs dated today.
86712
86713         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
86714         (O_DIRECTORY): Remove; not needed here, since "." must be
86715         a directory.  All uses removed.
86716         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
86717         universal on Suns, and we also need to test for IRIX.
86718         Revamp code to use 'if' rather than '#if'.
86719         Avoid unnecessary comparison of cwd->desc to 0.
86720
86721         * lib/utimens.c (futimens): Robustify the previous patch, by checking
86722         for known valid error numbers rather than observed invalid ones.
86723
86724 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
86725
86726         * modules/ullong_max: New file.
86727
86728         * modules/chdir-long, modules/openat: New files.
86729         * modules/save-cwd (Depends-on): Depend on chdir-long.
86730         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
86731
86732 2005-01-18  Jim Meyering  <jim@meyering.net>
86733
86734         Merge from coreutils.
86735         * m4/chdir-long.m4, m4/openat.m4: New files.
86736         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
86737         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
86738         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
86739         is sane and DOES follow symlinks.  Besides, testing 20 different
86740         systems found no broken chown implementations.
86741         Prompted by a change in rsync's copy of this macro.
86742         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
86743
86744         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
86745
86746         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
86747         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
86748         NULL-means-set-to-current-time semantics.
86749         Remove temporary file immediately, rather than waiting
86750         for configure's at-exit trap code to do it.
86751
86752 2005-01-18  Jim Meyering  <jim@meyering.net>
86753
86754         * lib/version-etc.c (version_etc_copyright): Update copyright date.
86755
86756         * lib/utimens.c (futimens): Account for the fact that futimes
86757         can also fail with errno == ENOSYS or errno == ENOENT.
86758         Patch from Dmitry V. Levin.
86759
86760         Change the name of the robust chdir function from chdir to chdir_long.
86761         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
86762         (restore_cwd): Use chdir_long, not chdir.
86763         * lib/chdir-long.c: Renamed from chdir.c.
86764         * lib/chdir-long.h: Renamed from chdir.h.
86765         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
86766         Hurd.
86767
86768 2005-01-18  Bruno Haible  <bruno@clisp.org>
86769
86770         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
86771         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
86772         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
86773         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
86774         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
86775         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
86776         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
86777         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
86778         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
86779         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
86780         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
86781         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
86782         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
86783         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
86784         Use an all-permissive copyright notice, recommended by RMS.
86785
86786 2005-01-18  Bob Proulx  <bob@proulx.com>
86787
86788         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
86789         simplify offsetof() macro construct to avoid compile failure with
86790         native HP-UX 11.0 ANSI C compiler.
86791
86792 2005-01-17  Bruno Haible  <bruno@clisp.org>
86793
86794         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
86795         redundant because stpncpy.m4 takes care of it.
86796
86797 2005-01-17  Bruno Haible  <bruno@clisp.org>
86798
86799         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
86800
86801 2005-01-17  Bruno Haible  <bruno@clisp.org>
86802
86803         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
86804         used.
86805
86806 2005-01-17  Bruno Haible  <bruno@clisp.org>
86807
86808         * lib/fwriteerror.h (fwriteerror): Change specification to include
86809         fclose.
86810         * lib/fwriteerror.c: Include <stdbool.h>.
86811         (fwriteerror): At the end, close the file stream. Record whether
86812         stdout was already closed.
86813
86814 2005-01-17  Bruno Haible  <bruno@clisp.org>
86815
86816         * lib/execute.c (environ): Declare if needed.
86817         * lib/pipe.c (environ): Likewise.
86818         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
86819
86820 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
86821
86822         * modules/argp: Depend on vsnprintf
86823
86824 2005-01-10  Jim Meyering  <jim@meyering.net>
86825
86826         * modules/closeout (Depends-on): Add atexit.
86827
86828 2005-01-06  Bruno Haible  <bruno@clisp.org>
86829
86830         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
86831
86832 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
86833
86834         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
86835         definitions to be after all include files, to avoid collisions.
86836         Problem reported by Bob Proulx.
86837
86838 2005-01-04  Jim Meyering  <jim@meyering.net>
86839
86840         Changes imported from coreutils.
86841         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
86842         as the mkstemp template, use a temporary directory and an
86843         8.3-friendly template to avoid trouble on systems like DJGPP.
86844         Reported by Juan M. Guerrero via Stepan Kasal.
86845         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
86846         close. Remove the temporary directory right away, rather than waiting
86847         for configure's at-exit trap code to do it.
86848         Suggestion from Stepan Kasal.
86849
86850 2005-01-01  Simon Josefsson  <jas@extundo.com>
86851
86852         * gnulib-tool: Print #include directives when --import'ing.
86853
86854 2004-12-28  Simon Josefsson  <jas@extundo.com>
86855
86856         * tests/test-base64.c: Include required header files.  Remove
86857         unused variables.
86858
86859 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
86860
86861         * modules/error (Depends-on): Remove gettext.
86862
86863 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
86864
86865         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
86866         not needed.  This removes a dependency on the gettext module.
86867         [defined _LIBC]: Do not include <libintl.h>; not needed.
86868
86869 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
86870
86871         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
86872         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
86873
86874 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
86875
86876         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
86877         HAVE_DECL_STRTOLD.
86878
86879 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
86880
86881         * modules/getdate (Depends-on): Remove alloca-opt.
86882
86883 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
86884
86885         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
86886
86887 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
86888
86889         * lib/argp-parse.c: Include <stddef.h>.
86890         (alignof, alignto): New macros.
86891         (parser_init): Don't assume that void * is aligned sufficiently
86892         for struct option.
86893
86894         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
86895         need to extend the stack.
86896         (YYINITDEPTH): New macro, so that the initial stack isn't overly
86897         large.
86898
86899 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
86900
86901         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
86902
86903 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
86904
86905         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
86906         (2004-10-24) change.  Apparently this was a false alarm.
86907
86908         * modules/getdate: Depend on alloca-opt, not alloca.
86909
86910 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
86911
86912         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
86913         Remove now-obsolete comment about AIX.
86914         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
86915         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
86916         (YYMAXDEPTH): New macro.
86917
86918 2004-12-18  Simon Josefsson  <jas@extundo.com>
86919
86920         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
86921
86922 2004-12-18  Bruno Haible  <bruno@clisp.org>
86923
86924         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
86925
86926 2004-12-18  Bruno Haible  <bruno@clisp.org>
86927
86928         * lib/fatal-signal.c (fatal_signals): Make non-const.
86929         (init_fatal_signals): New function.
86930         (uninstall_handlers, install_handlers): Ignore signals that were set to
86931         SIG_IGN.
86932         (at_fatal_signal): Call init_fatal_signals.
86933         (init_fatal_signal_set): Likewise. Ignore signals that were set to
86934         SIG_IGN.
86935         Reported by Paul Eggert.
86936
86937 2004-12-18  Bruno Haible  <bruno@clisp.org>
86938
86939         * doc/alloca.texi: New file.
86940         * doc/alloca-opt.texi: New file.
86941
86942 2004-12-17  Jim Meyering  <jim@meyering.net>
86943
86944         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
86945         Otherwise, install-sh could exit with improper exit status when
86946         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
86947
86948 2004-12-16  Simon Josefsson  <jas@extundo.com>
86949
86950         * tests/test-base64.c: Add license.
86951
86952 2004-12-15  Stepan Kasal  <address@hidden>
86953
86954         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
86955
86956 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
86957
86958         * modules/getcwd (Files): Add m4/d-ino.m4.
86959         Suggested by Mark D. Baushke.
86960
86961 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
86962
86963         * lib/getdate.y (textint): New member "negative".
86964         (time_zone_hhmm): New function.
86965         Expect 14 shift-reduce conflicts, not 13.
86966         (o_colon_minutes): New rule.
86967         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
86968         (yylex): Set the "negative" member of signed numbers.
86969
86970 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
86971
86972         * doc/getdate.texi (Time of day items, Time zone items):
86973         Describe new formats +00:00, UTC+00:00.
86974
86975 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
86976
86977         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
86978         spurious "-l"s.  Problem reported by Stepan Kasal.
86979
86980 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
86981
86982         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
86983         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
86984
86985 2004-12-04  Simon Josefsson  <jas@extundo.com>
86986
86987         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
86988         Vandoorselaere <yoann@prelude-ids.org>.
86989
86990 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
86991
86992         Changes imported from coreutils.
86993         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
86994         exist.
86995         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
86996
86997 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
86998
86999         Changes imported from coreutils.
87000         * lib/hard-locale.c: Assume <locale.h> exists.
87001         Include "strdup.h".
87002         (GLIBC_VERSION): New macro.
87003         (hard_locale): Assume setlocale exists.
87004         Rewrite to avoid #ifdef.
87005         Use strdup rather than malloc + strcpy.
87006         * lib/human.c: Assume <locale.h> exists.
87007         (human_readable): Assume localeconv exists.
87008
87009 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
87010
87011         * modules/hard-locale (Depends-on): Add strdup.
87012
87013 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
87014
87015         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
87016         convert T2, not T.  (Imported from libc.)
87017
87018 2004-11-30  Simon Josefsson  <jas@extundo.com>
87019
87020         * modules/restrict (License): Change to LGPL.
87021
87022 2004-11-30  Simon Josefsson  <jas@extundo.com>
87023
87024         * m4/restrict.m4: Add copyright and copying conditions.
87025
87026 2004-11-30  Simon Josefsson  <jas@extundo.com>
87027
87028         * m4/base64.m4: New file.
87029
87030 2004-11-30  Simon Josefsson  <jas@extundo.com>
87031
87032         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
87033         base64.
87034
87035         * tests/test-base64.c: New file.
87036
87037         * modules/base64: New file.
87038
87039 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
87040
87041         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
87042         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
87043
87044         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
87045
87046 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
87047
87048         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
87049         (__getcwd.c): Don't restore errno; glibc doesn't.
87050         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
87051         first, falling back to our code only if its results look suspicious.
87052         Ensure that the resulting buffer is only as large as necessary.
87053
87054         * lib/readutmp.c: Include readutmp.h first.
87055         Include <errno.h>, since readutmp.h no longer does that.
87056         * lib/readutmp.h: Don't include <errno.h>,
87057         <sys/param.h>, <time.h>; not needed to establish interface.
87058         (errno): Remove decl.
87059         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
87060         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
87061         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
87062
87063 2004-11-28  Simon Josefsson  <jas@extundo.com>
87064
87065         * lib/base64.h, base64.c: New file.
87066
87067 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
87068
87069         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
87070
87071 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
87072
87073         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
87074         (Depends-on): Remove pathmax, same.  Add mempcpy.
87075         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
87076         (Makefile.am): Append getcwd.h to lib_SOURCES.
87077         (Include): Add getcwd.h.
87078         (Maintainer): Change from Jim Meyering to "all, glibc",
87079         since getdate now uses intended-for-glibc code.
87080         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
87081         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
87082
87083 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
87084
87085         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
87086         HP's ANSI C compiler.
87087         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
87088         Declaring int functions causes warnings on some modern systems and
87089         shouldn't be needed to compile on ancient ones.
87090         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
87091         defined.
87092
87093         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
87094         with the following changes.
87095         (__set_errno): Parenthesize properly.
87096         Include <stdbool.h>.
87097         (MIN, MAX, MATCHING_INO): New macros.
87098         (__getcwd): Define with prototype, not K&R form.
87099         Use heuristics to allocate default buffer on stack if possible.
87100         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
87101         behavior, and to avoid the PATH_MAX limit when computing
87102         ../../../../...
87103         Use MATCHING_INO to compare inode number to file.
87104         Check for arithmetic overflow in size calculations.
87105         Fix bug in reallocation of dot array that caused getcwd to fail
87106         on directories nested deeper than 75.
87107         Be more careful about saving errno on error.
87108         Do not use realloc; use only free+malloc, as this is a bit
87109         more flexible and avoids a needless copy operation.
87110         Do not inspect st_dev and st_ino for symbolic links; POSIX
87111         doesn't specify the latter.
87112         Check for closedir errors.
87113         Avoid needless casts.
87114         Use "#ifdef weak_alias" around weak_alias, to be like other
87115         glibc code.
87116         The following changes to getcwd.c have effect only when used in
87117         gnulib; they have no effect inside glibc proper.
87118         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
87119         as alloca isn't used.
87120         (alloca, __alloca): Likewise.
87121         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
87122         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
87123         unconditionally, as gnulib assumes C89 or better.
87124         Do not include <sys/param.h>.
87125         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
87126         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
87127         better.
87128         (NULL) [!defined NULL]: Remove; we assume C89 or better.
87129         Include <dirent.h> in a way that is compatible with modern Autoconf.
87130         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
87131         New macros, if not already defined.
87132         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
87133         Use "_LIBC", not "defined _LIBC", for consistency.
87134         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
87135         a mempcpy module.
87136         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
87137         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
87138         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
87139         credit only to Jim Meyering and adjust the copyright dates.
87140         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
87141         <stdlib.h>, <unistd.h>, "pathmax.h".
87142         Instead, include "xgetcwd.h" (first) and "getcwd.h".
87143         (INITIAL_BUFFER_SIZE): Remove.
87144         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
87145
87146 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
87147
87148         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
87149         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
87150         Use the _ONCE methods, for efficiency.
87151         Check for fcntl.h.  In test program, include <errno.h>
87152         and <fcntl.h> if available.  Remove old K&R cruft from
87153         test program.  Check for common errors in GNU/Linux,
87154         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
87155         don't do AC_LIBOBJ, as that's getcwd.m4's job.
87156         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
87157         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
87158         name accordingly.
87159         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
87160         accommodate new getcwd.c.
87161         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
87162         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
87163         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
87164         that's all we need now.
87165
87166 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87167
87168         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
87169         argp-parse.c depends on getopt internals, that means we should
87170         always use our getopt, to be on the safe side.
87171         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
87172         order not to spoil the result of an eventual previous invocation
87173         of gl_GETOPT_SUBSTITUTE.
87174
87175 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87176
87177         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
87178         redefinition warnings. To avoid them, include the defines
87179         in `#if !defined __need_getopt ... #endif'. The only place
87180         where __getopt_argv_const is used is in definitions
87181         of getopt_long and getopt_long_only below, which are as well
87182         protected by `#ifndef __need_getopt'.
87183         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
87184         __need_getopt after including <stdio.h> and <unistd.h> These
87185         headers might have defined it.
87186
87187 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
87188
87189         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
87190
87191 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
87192
87193         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
87194         (futimens): New function, which uses futimes if available.
87195         (futimens, utimens): Support timespec==NULL, with same semantics
87196         as utime and utimens.
87197         * lib/utimens.h (futimens): New decl.
87198
87199 2004-11-23  Jim Meyering  <jim@meyering.net>
87200
87201         * lib/getopt_.h: Remove trailing blanks.
87202
87203 2004-11-23  Jim Meyering  <jim@meyering.net>
87204
87205         * lib/__fpending.c: Add comment.
87206
87207 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
87208
87209         * modules/canonicalize (Depends-on): Add xreadlink.
87210         Problem reported by James Youngman.
87211
87212 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
87213
87214         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
87215         New macros.
87216         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
87217         optopt): Use them instead of invoking ## directly; otherwise, the
87218         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
87219
87220 2004-11-19  Bruno Haible  <bruno@clisp.org>
87221
87222         * lib/strtok_r.c: Move comments from here...
87223         * lib/strtok_r.h: ... to here.
87224
87225 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
87226
87227         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
87228         implementations that mishandle size_t overflow.
87229
87230 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
87231
87232         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
87233         might fail.  Problem reported by Yoann Vandoorselaere.
87234         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
87235         implementations that mishandle size_t overflow.
87236
87237 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
87238
87239         * modules/canon-host (Depends-on): Add strdup.
87240
87241 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
87242
87243         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
87244
87245 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
87246
87247         * lib/canon-host.c: Include "strdup.h".
87248         (canon_host): Use getaddrinfo if available, so that IPv6 works.
87249         Use strdup instead of malloc/strcpy to duplicate strings.
87250
87251         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
87252         (human_space_before_unit): New constant.
87253         * lib/human.c (human_readable): Support it.
87254
87255         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
87256         (xgetcwd): Set errno correctly when failing.
87257         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
87258         the failure is actually due to a PATH_MAX problem.
87259
87260         Further getopt changes to make it more likely that glibc will
87261         buy the changes back.
87262         * lib/getopt.c (POSIXLY_CORRECT): New constant.
87263         (getopt): Use it, so to preserve glibc semantic
87264         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
87265         when compiling for libc.
87266         * lib/getopt_.h (__getopt_argv_const): Bring it back.
87267         (getopt_long, getopt_long_only): Use it.
87268
87269         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
87270         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
87271         (getopt): Argv is now char * const *, as per standard.
87272         (_getopt_internal_r, _getopt_internal): Argv is now char **,
87273         not char *__getopt_argv_const *.
87274         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
87275         _getopt_long_only_r): Likewise.
87276         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
87277         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
87278         _getopt_long_r, _getopt_long_only_r): Likewise.
87279         * lib/getopt_.h (__getopt_argv_const): Remove.
87280         (getopt): Argv is now char * const *, as per standard.
87281
87282         * lib/getdate.y (tORDINAL): New token.
87283         (day, relunit): Allow it for relative times.
87284         (relative_time_table): Use tORDINAL for ordinals.
87285
87286 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
87287
87288         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
87289         Document that "second" isn't allowed as an ordinal number.
87290
87291 2004-11-16  Jim Meyering  <jim@meyering.net>
87292
87293         * modules/closeout (Depends-on): Add fpending.
87294
87295 2004-11-15  Jim Meyering  <jim@meyering.net>
87296
87297         * lib/closeout.c: Include "__fpending.h" once again.
87298         Include <stdbool.h>.
87299         (close_stdout): Don't fail just because stdout was closed initially,
87300         since some programs don't write to stdout in the normal course of
87301         operation (other than --version and --help), and we don't want this
87302         function to make e.g. `touch file >&-' fail.
87303         But do fail if it was closed and someone has tried to write to it.
87304         E.g., `printf foo >&-' must fail.
87305
87306 2004-11-13  Jim Meyering  <jim@meyering.net>
87307
87308         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
87309
87310 2004-11-12  Simon Josefsson  <jas@extundo.com>
87311
87312         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
87313         small doc fix is still pending.
87314
87315 2004-11-11  Simon Josefsson  <jas@extundo.com>
87316
87317         * modules/strtok_r: New file.
87318
87319         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
87320         strtok_r.
87321
87322 2004-11-11  Simon Josefsson  <jas@extundo.com>
87323
87324         * m4/strtok_r.m4: New file.
87325
87326         * m4/getopt.m4: Replace opterr.
87327
87328 2004-11-11  Simon Josefsson  <jas@extundo.com>
87329
87330         * lib/strtok_r.h, strtok_r.c: New file.
87331
87332 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
87333
87334         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
87335         of replacing opterr, getopt, etc.  This should handle the
87336         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
87337
87338 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
87339
87340         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
87341         we can stop lying to compilers about the constness of argv when we
87342         are compiled outside glibc.
87343         (getopt, getopt_long, getopt_long_only): Use it.
87344         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
87345         _getopt_internal, getopt): Likewise.
87346         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
87347         _getopt_long_only_r): Likewise.
87348         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
87349         _getopt_long_r, _getopt_long_only_r): Likewise.
87350
87351         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
87352         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
87353         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
87354         the other external symbols.
87355         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
87356         declaration, since the above renaming now works around collisions.
87357
87358 2004-11-11  Jim Meyering  <jim@meyering.net>
87359
87360         * lib/linebreak.c: Remove trailing blanks.
87361         * lib/alloca_.h: Likewise.
87362         * lib/acosl.c: Likewise.
87363         * lib/euidaccess.c: Likewise.
87364         * lib/allocsa.h: Likewise.
87365
87366 2004-11-10  Simon Josefsson  <jas@extundo.com>
87367
87368         * m4/getaddrinfo.m4: New file.
87369
87370 2004-11-10  Simon Josefsson  <jas@extundo.com>
87371
87372         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
87373
87374 2004-11-10  Simon Josefsson  <jas@extundo.com>
87375
87376         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
87377         getaddrinfo.
87378
87379         * modules/getaddrinfo: New file.
87380
87381 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
87382
87383         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
87384
87385 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
87386
87387         * lib/mktime.c (SHR): New macro, which is a portable
87388         substitute for >> that should work even on Crays.
87389         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
87390         Problem reported by Mark D. Baushke in
87391         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
87392         * lib/getdate.y (SHR): Likewise.
87393         (tm_diff): Use it.
87394         * lib/strftime.c (SHR): Likewise.
87395         (tm_diff): Use it.
87396         * lib/quotearg.c (struct quoting_options): Use unsigned int for
87397         quote_these_too, so that right shifts are well defined.  All uses
87398         changed.
87399
87400 2004-11-10  Jim Meyering  <jim@meyering.net>
87401
87402         Ensure that no close failure goes unreported.
87403         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
87404         return early when it seems there's nothing to flush.
87405         Don't include __fpending.h.
87406
87407 2004-11-10  Jim Meyering  <jim@meyering.net>
87408
87409         * modules/closeout (Depends-on): Remove fpending.
87410
87411 2004-11-10  Jim Meyering  <jim@meyering.net>
87412
87413         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
87414
87415 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
87416
87417         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
87418         gl_FUNC_STRFTIME.
87419         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
87420         and AC_REQUIRE when possible, to avoid duplicate checks.
87421         Check for <wchar.h>.
87422
87423 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
87424
87425         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
87426
87427 2004-11-09  Bruno Haible  <bruno@clisp.org>
87428
87429         * m4/sockpfaf.m4: New file.
87430
87431 2004-11-05  Bruno Haible  <bruno@clisp.org>
87432
87433         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
87434         Reported by Mark D. Baushke <mdb@cvshome.org>.
87435
87436 2004-11-04  Bruno Haible  <bruno@clisp.org>
87437
87438         2004-09-11  Bruno Haible  <bruno@clisp.org>
87439                 * allocsa.valgrind: New file.
87440         2004-02-06  Bruno Haible  <bruno@clisp.org>
87441                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
87442                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
87443                 Reported by Christopher Seip <chris.seip@hp.com>.
87444
87445 2004-11-04  Bruno Haible  <bruno@clisp.org>
87446
87447         * modules/allocsa (Files): Add lib/allocsa.valgrind.
87448         (Makefile.am): Distribute it.
87449
87450 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
87451
87452         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
87453         with errno == ERANGE if the buffer is too small.
87454         Problem reported by Mark D. Baushke.
87455
87456 2004-11-03  Albert Chin  <china@thewrittenword.com>
87457             Paul Eggert  <eggert@cs.ucla.edu>
87458
87459         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
87460         equivalent, substitute $ac_type for equivalent type rather than
87461         blindly using uint32_t *always* which won't work if uint32_t is not
87462         available.  Define _UINT32_T to work around typedef of uint32_t if
87463         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
87464         2.5.1.
87465
87466 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
87467
87468         * m4/jm-macros.m4: Sync from coreutils.
87469         (gl_MACROS): Check for mbrlen, for pathchk.
87470         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
87471
87472 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
87473
87474         * lib/xreadlink.c (MAXSIZE): New macro.
87475         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
87476         size does not exceed MAXSIZE.  Avoid cast.
87477         As suggested by Mark D. Baushke in
87478         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
87479         if readlink fails with buffer size just under MAXSIZE, try again
87480         with MAXSIZE.
87481
87482 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
87483
87484         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
87485
87486 2004-11-02  Derek R. Price  <derek@ximbiot.com>
87487         and  Paul Eggert  <eggert@cs.ucla.edu>
87488
87489         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
87490         (get_date): Overparenthesize to avoid GCC warning.
87491
87492 2004-11-02  Bruno Haible  <bruno@clisp.org>
87493
87494         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
87495         returns void.
87496
87497 2004-11-02  Bruno Haible  <bruno@clisp.org>
87498
87499         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
87500         function returns void.
87501
87502 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
87503
87504         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
87505         fflush_unlocked, flockfile, funlockfile, funlockfile,
87506         fputs_unlocked, putc_unlocked.
87507
87508 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
87509
87510         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
87511         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
87512         already declared.
87513
87514 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
87515
87516         * modules/getdate (Files): Add doc/getdate.texi.
87517         (Depends-on): Add setenv, xalloc.
87518
87519 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
87520
87521         * lib/getdate.y: Add support for TZ="foo" within a date string.
87522         Fix some bugs near time_t boundaries.  Reject dates with
87523         out-of-range components, e.g., "Sept 31".
87524         Include <stdlib.h>, "setenv.h", "xalloc.h".
87525         (ISDIGIT_LOCALE): Remove; unused.
87526         Note that the TZ and time functions used here are not reentrant.
87527         (mktime_ok, get_tz): New functions.
87528         (TZBUFSIZE): New constant.
87529         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
87530         This requires that we sometimes generate our own TZ="XXX..." setting.
87531
87532 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
87533
87534         * doc/getdate.texi: New file, from coreutils with modifications for
87535         the new TZ parsing.
87536
87537 2004-10-27  Derek R. Price  <derek@ximbiot.com>
87538
87539         * lib/mktime.c (not_equal_tm): Remove redundant check.
87540
87541 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
87542
87543         * modules/regex (lib_SOURCES): Add regex.c.
87544         Reported by James Youngman in
87545         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
87546
87547 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
87548
87549         * lib/getdate.y: Use Bison 1.875 features, and some minor
87550         code cleanups.  This change does not affect semantics.
87551         Don't include <stdlib.h>; no longer needed.
87552         Don't include unlocked-io.h; only the "#if TEST" code uses
87553         stdio, and performance isn't crucial there.
87554         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
87555         Bison 1.875 features as described below.
87556         All uses of "PC." replaced by "pc->".
87557         (YYSTYPE): Add a forward declaration.
87558         (yylex, yyerror): Use full prototypes in forward decls.
87559         Use "%pure-parser" rather than obsolescent "%pure_parser".
87560         Use %parse-param and %lex-param instead of obsolescent
87561         YYPARSE_PARAM and YYLEX_PARAM.
87562         (meridian_table, month_and_day_table, time_units_table,
87563         relative_time_table, time_zone_table, military_table,
87564         lookup_zone, lookup_word, get_date):
87565         Use NULL instead of 0 where appropriate.
87566         (to_hour): Avoid abort (), to avoid a dependency on
87567         stdlib.h.
87568         (yyerror, yylex): Now accepts parser_control * arg.
87569         (main) [TEST]: Use '\0' rather than 0 for char.
87570
87571 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
87572
87573         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
87574
87575 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
87576
87577         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
87578         It's now the caller's responsibility to handle the case where
87579         !HAVE_GETPAGESIZE && !defined getpagesize.
87580
87581         * lib/mktime.c (leapyear): Arg is long int, not int.
87582
87583 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
87584
87585         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
87586
87587 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
87588
87589         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
87590         missing.  Problem reported by James Youngman.
87591
87592 2004-10-16  Simon Josefsson  <jas@extundo.com>
87593
87594         * gnulib-tool: Fix comments.  Fix parse problem.
87595         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
87596
87597 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
87598
87599         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
87600         implementation of getopt_long.  Problem reported by Alexander Taler in:
87601         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
87602
87603 2004-10-15  Bruno Haible  <bruno@clisp.org>
87604
87605         * gnulib-tool: Untabify. Initialize supplied_libname.
87606         (func_usage): More homogenous output.
87607         (func_modules_transitive_closure, func_modules_to_filelist,
87608         func_emit_lib_Makefile_am): New functions.
87609         (func_import): New function, extracted from big case statement. Use
87610         func_get_license, func_modules_transitive_closure,
87611         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
87612         opt_lgpl. Don't use test -a, as it's not portable.
87613         (func_create_testdir): Use func_modules_transitive_closure,
87614         func_modules_to_filelist, func_emit_lib_Makefile_am.
87615
87616 2004-10-15  Bruno Haible  <bruno@clisp.org>
87617
87618         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
87619
87620 2004-10-15  Bruno Haible  <bruno@clisp.org>
87621
87622         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
87623         the portions belonging to each module.
87624         Suggested by Derek Robert Price <derek@ximbiot.com>.
87625
87626 2004-10-12  Simon Josefsson  <jas@extundo.com>
87627
87628         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
87629         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
87630         to real functions.
87631
87632 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
87633
87634         * modules/vsnprintf: New file.
87635
87636 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
87637
87638         * m4/vsnprintf.m4: New file.
87639
87640 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
87641
87642         * lib/vsnprintf.h: New file.
87643         * lib/vsnprintf.c: New file.
87644
87645 2004-10-11  Bruno Haible  <bruno@clisp.org>
87646
87647         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
87648         vsnprintf.
87649
87650 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
87651
87652         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
87653
87654 2004-10-07  Bruno Haible  <bruno@clisp.org>
87655
87656         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
87657         fits into the provided buffer.
87658
87659 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
87660
87661         * lib/diacrit.c, diacrit.h: Add GPL notice.
87662
87663         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
87664         notice.
87665         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
87666         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
87667         This avoids a potential constant-folding bug.
87668
87669 2004-10-05  Bruno Haible  <bruno@clisp.org>
87670
87671         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
87672         for the declaration of strsep.
87673
87674 2004-10-05  Bruno Haible  <bruno@clisp.org>
87675
87676         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
87677
87678 2004-10-04  Simon Josefsson  <jas@extundo.com>
87679
87680         * modules/memmem: New file.
87681         * tests/test-memmem.c: New file.
87682         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
87683
87684 2004-10-04  Simon Josefsson  <jas@extundo.com>
87685
87686         * m4/memmem.m4: New file.
87687
87688 2004-10-04  Simon Josefsson  <jas@extundo.com>
87689
87690         * lib/memmem.h: New file.
87691         * lib/memmem.c: New file, taken from glibc.
87692
87693 2004-10-04  Simon Josefsson  <jas@extundo.com>
87694
87695         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
87696         '#ifdef USE_UNLOCKED_IO'.
87697
87698 2004-10-04  Simon Josefsson  <jas@extundo.com>
87699
87700         * config/srclist.txt: Add memmem from glibc.
87701
87702 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
87703
87704         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
87705
87706         * modules/argmatch, modules/argp, modules/closeout, modules/error,
87707         modules/exclude, modules/getdate, modules/getline,
87708         modules/getndelim2, modules/getpass, modules/getpass-gnu,
87709         modules/getusershell, modules/linebuffer, modules/md5,
87710         modules/mountlist, modules/posixtm, modules/readtokens,
87711         modules/readutmp, modules/regex, modules/sha1,
87712         modules/version-etc, modules/yesno:
87713         Remove dependency on unlocked-io.
87714
87715 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
87716
87717         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
87718
87719         * m4/unlocked-io.m4: Add copyright notice.
87720         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
87721
87722 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
87723
87724         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
87725         * lib/xmalloc.c (xmemdup): Likewise.
87726         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
87727         XFREE): Remove these long-obsolescent macros.
87728         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
87729         * lib/xstrdup.c: Remove.
87730
87731         * lib/regex.c (re_comp): Cast gettext return value to char *,
87732         Problem reported by Martin Neitzel via Mark D. Baushke.
87733
87734 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
87735
87736         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
87737         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
87738         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
87739         regex.c, sha1.c, version-etc.c, yesno.c:
87740         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
87741         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
87742         the includer's responsibility.
87743
87744         Sync from coreutils.
87745
87746         * lib/modechange.c (mode_compile): Don't decrement a pointer that
87747         points to the start of a string, as the C Standard says the
87748         resulting behavior is undefined.
87749
87750         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
87751         simple -> simple_backups, numbered_existing ->
87752         numbered_existing_backups, numbered -> numbered_backups
87753         to avoid shadowing problems.  All uses changed.
87754         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
87755         * lib/backupfile.c (check_extension, numbered_backup):
87756         Rename locals to avoid shadowing 'basename'.
87757         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
87758         once.
87759
87760         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
87761         * lib/.cvsignore: Add getopt.h.
87762
87763 2004-10-04  Bruno Haible  <bruno@clisp.org>
87764
87765         * modules/README: New file.
87766         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
87767         not a module.
87768
87769 2004-10-02  Jim Meyering  <jim@meyering.net>
87770
87771         * lib/dirfd.h, getpagesize.h: Add copyright notice.
87772
87773 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
87774
87775         * modules/strsep: New file.
87776
87777 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
87778
87779         * m4/strsep.m4: New file.
87780
87781 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
87782
87783         * lib/strsep.h: New file.
87784         * lib/strsep.c: New file.
87785
87786 2004-10-01  Simon Josefsson  <jas@extundo.com>
87787
87788         * lib/snprintf.c (snprintf): Handle size==0.
87789
87790 2004-10-01  Simon Josefsson  <jas@extundo.com>
87791             Bruno Haible  <bruno@clisp.org>
87792
87793         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
87794         (snprintf): Declare 'args'.
87795
87796 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
87797
87798         * lib/snprintf.c: Remove comments as to why each header is needed.
87799
87800 2004-10-01  Bruno Haible  <bruno@clisp.org>
87801
87802         * MODULES.html.sh: Add strsep.
87803
87804 2004-09-30  Simon Josefsson  <jas@extundo.com>
87805
87806         * modules/snprintf: New file.
87807
87808 2004-09-30  Simon Josefsson  <jas@extundo.com>
87809
87810         * m4/snprintf.m4: New file.
87811
87812 2004-09-30  Simon Josefsson  <jas@extundo.com>
87813
87814         * lib/snprintf.h, lib/snprintf.c: New files.
87815
87816 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87817
87818         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
87819         (hol_entry_help): Never translate an empty string.
87820         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
87821         * lib/argp.h (OPTION_NO_TRANS): New option.
87822
87823 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
87824
87825         * modules/argp (Maintainer): Replace Simon Josefsson
87826         by Sergey Poznyakoff.
87827
87828 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
87829
87830         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
87831         changes merged back into glibc.
87832
87833 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
87834
87835         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
87836
87837 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
87838
87839         * lib/xvasprintf.c: Include xalloc.h.
87840         (xvasprintf): Use xalloc_die, not xmalloc_die.
87841
87842 2004-09-29  Bruno Haible  <bruno@clisp.org>
87843
87844         * modules/alloca-opt: New file, derived from modules/alloca.
87845         * modules/allocsa: Depend on alloca-opt instead of alloca.
87846         * modules/setenv: Likewise.
87847         * modules/vasnprintf: Likewise.
87848         * MODULES.html.sh: Add alloca-opt.
87849
87850 2004-09-28  Simon Josefsson  <jas@extundo.com>
87851
87852         * gnulib-tool: New parameter --lgpl, to asseert that modules are
87853         LGPL, and to replace license template from GPL to LGPL.
87854
87855 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
87856
87857         * modules/dummy: Change license to LGPL.
87858
87859 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
87860
87861         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
87862
87863 2004-09-24  Simon Josefsson  <jas@extundo.com>
87864
87865         * modules/minmax (License): Change from GPL to LGPL.
87866
87867 2004-09-23  Simon Josefsson  <jas@extundo.com>
87868
87869         * gnulib-tool (--import): Typo.
87870
87871 2004-09-23  Simon Josefsson  <jas@extundo.com>
87872
87873         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
87874
87875 2004-09-22  Bruno Haible  <bruno@clisp.org>
87876
87877         * modules/*: Add 'License' field.
87878         * gnulib-tool: Accept --extract-license option.
87879         (func_get_license): New function.
87880
87881 2004-09-21  Bruno Haible  <bruno@clisp.org>
87882
87883         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
87884         Reported by Simon Josefsson.
87885
87886 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
87887
87888         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
87889         gl_AC_TYPE_LONG_LONG.
87890
87891 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
87892
87893         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
87894
87895 2004-09-18  Simon Josefsson  <jas@extundo.com>
87896         and  Paul Eggert  <eggert@cs.ucla.edu>
87897
87898         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
87899         calls with autoreconf.  Define GL_LIB.
87900
87901 2004-09-14  Karl Berry  <karl@gnu.org>
87902
87903         * config/srclist.txt: unsync setenv.c, sigh.
87904
87905 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
87906
87907         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
87908         Problem reported by Bruno Haible in:
87909         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
87910
87911 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
87912
87913         * config/srclist.txt: Comment out argp-pvh.c.
87914
87915 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
87916
87917         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
87918         in case some system header has #define'd it.  Problem reported by
87919         Soeren D. Schulze in
87920         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
87921
87922 2004-09-09  Karl Berry  <karl@gnu.org>
87923
87924         * regex.[ch]: delete from the root.  These were supposed to be
87925                 synced with emacs cvs, but this has not happened for about
87926                 a year, and anyway nothing else uses emacs regex.[ch].
87927                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
87928                 lib/regex[.ch] is untouched.
87929
87930 2004-09-09  Bruno Haible  <bruno@clisp.org>
87931
87932         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
87933
87934 2004-09-09  Bruno Haible  <bruno@clisp.org>
87935
87936         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
87937         modifications.
87938         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
87939
87940 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
87941
87942         * modules/xvasprintf: New file.
87943         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
87944
87945 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
87946
87947         * lib/xvasprintf.h: New file.
87948         * lib/xvasprintf.c: New file.
87949         * lib/xasprintf.c: New file.
87950
87951 2004-09-08  Bruno Haible  <bruno@clisp.org>
87952
87953         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
87954
87955 2004-09-08  Bruno Haible  <bruno@clisp.org>
87956
87957         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
87958         length is > INT_MAX.
87959         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
87960         more.
87961
87962 2004-09-08  Bruno Haible  <bruno@clisp.org>
87963
87964         * lib/stdint_.h: New file, taken from GNU clisp.
87965
87966 2004-09-08  Bruno Haible  <bruno@clisp.org>
87967             Oskar Liljeblad  <oskar@osk.mine.nu>
87968
87969         * modules/stdint: New file.
87970         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
87971
87972 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
87973
87974         Import from coreutils.
87975         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
87976         strings on unbounded length.  alloca's performance benefits aren't
87977         that important here.
87978         (V_STRDUP): Remove.
87979         (parse_with_separator): New function, with most of the internals
87980         of the old parse_user_spec.  Allow user to omit both user and group,
87981         for compatibility with FreeBSD.
87982         Clone only the user name, not the entire spec.
87983         Do not set *uid, *gid unless entirely successful.
87984         Avoid memory leak in some failing cases.
87985         Fix regression for USER.GROUP reported by Dmitry V. Levin in
87986         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
87987         (parse_user_spec): Rewrite to use parse_with_separator.
87988
87989 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
87990
87991         * modules/userspec: Don't depend on alloca.
87992
87993 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
87994
87995         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
87996
87997 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
87998
87999         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
88000         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
88001         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
88002
88003 2004-08-16  Simon Josefsson  <jas@extundo.com>
88004
88005         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
88006         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
88007         Add --dry-run for --import.
88008         Let user provided command line parameters override configure.ac
88009         settings.
88010
88011 2004-08-12  Simon Josefsson  <jas@extundo.com>
88012
88013         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
88014         as discussed with Paul Eggert in threads rooted at
88015         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
88016         and
88017         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
88018         Before, the test was empty, and relied on ELIDE_CODE in source
88019         code.)
88020         (gl_PREREQ_GETOPT): New macro.
88021         (gl_GETOPT): Use them.
88022
88023 2004-08-12  Simon Josefsson  <jas@extundo.com>
88024
88025         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
88026         * lib/getopt_.h: Renamed from getopt.h.
88027
88028 2004-08-12  Simon Josefsson  <jas@extundo.com>
88029
88030         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
88031         Change default library name from libfoo to libgnu.
88032         Now, if you have a configure.ac that says:
88033                 gl_SOURCE_BASE(gl)
88034                 gl_M4_BASE(gl/m4)
88035                 gl_MODULES(error getopt etcetera)
88036                 gl_INIT
88037         you can import all you need by running:
88038                 ../gnulib/gnulib-tool --import
88039
88040         * modules/getopt (Files): Rename getopt.h to getopt_.h.
88041         (Makefile.am): Rewrite, use logic from argz.
88042         (Include): Use <getopt.h> instead of "getopt.h".
88043
88044 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
88045
88046         * modules/argp (Files): Add m4/unlocked-io.m4.
88047         (Depends-on): Add extensions.
88048
88049 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
88050
88051         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
88052         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
88053         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
88054         Check for program_invocation_name, program_invocation_short_name,
88055         flockfile, funlockfile, features.h, _getopt_long_only_r.
88056
88057 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
88058
88059         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
88060         its complicated substitute.
88061         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
88062         and program_invocation_name.
88063         (__argp_basename) [!_LIBC]: Remove; the only use was
88064         replaced by its body.
88065         (__argp_short_program_name): Change condition from
88066         !defined __argp_short_program_name to
88067         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
88068         to match argp-namefrob.h.
88069         (__argp_failure): Don't assume strerror_r returns char *.
88070         * lib/argp-parse.c (N_): Define unconditionally.
88071         (argp_default_options): Fill out initializers with 0 to avoid
88072         gcc warnings.
88073
88074 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
88075
88076         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
88077         getopt1.c.
88078
88079 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
88080
88081         Merge from coreutils.
88082
88083         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
88084
88085         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
88086         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
88087
88088 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
88089
88090         Merge from coreutils.
88091
88092         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
88093         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
88094         for Reliant Unix 5.43.
88095
88096         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
88097         (union fooround): Use uintmax_t, not long int.
88098         The rest is a merge from libc:
88099         [defined _LIBC]: Include <shlib-compat.h>.
88100         (_obstack) [defined _LIBC]: Remove after 2.3.4.
88101
88102         * lib/settime.c (settime): Recode to avoid warning with
88103         Sun Forte C 6U2.
88104
88105         * lib/strverscmp.c: Convert to UTF-8.
88106
88107 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
88108
88109         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
88110         m4/uintmax_t.m4.
88111
88112 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
88113
88114         * modules/xalloc-die: New file.
88115         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
88116
88117         * modules/md5 (Files): Add m4/uint32_t.m4.
88118         * modules/sha1: Renamed from modules/sha.
88119         (Files):
88120         Rename lib/sha.h to lib/sha1.h.
88121         Rename lib/sha.c to lib/sha1.c.
88122         Rename m4/sha.m4 to m4/sha1.m4.
88123         (lib_SOURCES): Likewise.
88124         (configure.ac): Rename gl_SHA to gl_SHA1.
88125         (Include): sha.h -> sha1.h.
88126
88127 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
88128
88129         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
88130         * m4/sha1.m4: Renamed from sha.m4.
88131         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
88132
88133 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
88134
88135         * lib/obstack.h (obstack_empty_p):
88136         Don't assume that chunk->contents is suitably aligned.
88137         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
88138         Likewise. Problem reported by Benno in
88139         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
88140
88141         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
88142         readable.  This could be improved further but it'd take some work.
88143
88144 2004-08-08  Simon Josefsson  <jas@extundo.com>
88145
88146         * modules/xgethostname (Depends-on): Remove exit and error (not
88147         used).
88148
88149         * modules/getpass-gnu: Add getpass.h.
88150         (Depends-on): Add stdbool.
88151         * modules/getpass: Add getpass.h.
88152
88153 2004-08-08  Simon Josefsson  <jas@extundo.com>
88154
88155         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
88156         Check getpass declaration.
88157
88158 2004-08-08  Simon Josefsson  <jas@extundo.com>
88159
88160         * lib/xgethostname.c: Don't include error.h (not used).
88161
88162         * lib/getpass.h: Add.
88163         * lib/getpass.c: Include getpass.h first.
88164
88165 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
88166
88167         * lib/xalloc-die.c: New file.
88168         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
88169         All uses removed.
88170         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
88171         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
88172         xalloc-die.c.
88173         (_, N_, xalloc_die): Move to xalloc-die.c.
88174         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
88175         so that we needn't mess with xalloc_msg_memory_exhausted.
88176
88177         * lib/sha1.h: Renamed from sha.h.
88178         (SHA1_H): Renamed from _SHA_H.
88179         (sha1_ctx): Renamed from sha_ctx.
88180         (sha1_init_ctx): Renamed from sha_init_ctx.
88181         (sha1_process_block): Renamed from sha_process_block.
88182         (sha1_process_bytes): Renamed from sha_process_bytes.
88183         (sha1_finish_ctx): Renamed from sha_finish_ctx.
88184         (sha1_read_ctx): Renamed from sha_read_ctx.
88185         (sha1_stream): Renamed from sha_stream.
88186         (sha1_buffer): Renamed from sha_buffer.
88187         * lib/sha1.c: Likewise; renamed from sha.c.
88188         Do not include <sys/types.h>.
88189         Include <stddef.h> rather than <stdlib.h>.
88190
88191 2004-08-08  Bruno Haible  <bruno@clisp.org>
88192
88193         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
88194         FILESYSTEM_PREFIX_LEN.
88195         * lib/progreloc.c: Likewise.
88196         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
88197
88198 2004-08-06  Simon Josefsson  <jas@extundo.com>
88199
88200         * modules/progname (Depends-on): Don't depend on stdbool.
88201
88202 2004-08-06  Simon Josefsson  <jas@extundo.com>
88203
88204         * modules/getsubopt: New file.
88205         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
88206         getsubopt.
88207
88208 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
88209
88210         More merge from coreutils.
88211
88212         * m4/utimens.m4, m4/utimecmp.m4: New files.
88213         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
88214         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
88215         prereq.m4, sha.m4: Import changes from coreutils.
88216
88217 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
88218
88219         More merge from coreutils.
88220         * modules/raise, modules/readtokens0, modules/utimens:
88221         * modules/utimecmp, module/xnanosleep: New files.
88222         * modules/strftime: Add lib/strftime.h.
88223         Change include from <time.h> to "strftime.h".
88224         * modules/yesno: Add lib/yesno.h.
88225         * modules/backupfile: Remove lib/addext.c.
88226         * modules/euidaccess: Add stat-macros.h.
88227         * modules/canonicalize, modules/euidaccess,
88228         modules/filemode, modules/lchown, modules/makepath,
88229         modules/rmdir, modules/stat: Likewise.
88230
88231 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
88232
88233         Merge from tar.
88234         * lib/argp-help.c (make_hol, hol_append): Don't assume that
88235         SIZE_MAX is a valid preprocessor constant.
88236         (__argp_basename): Change from "#ifndef _LIBC"
88237         to "#ifndef __argp_short_program_name", so that
88238         we don't compile these functions for tar.
88239
88240         More merges from coreutils.
88241         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
88242         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
88243         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
88244         * lib/addext.c: Remove; no longer needed.
88245         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
88246         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
88247         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
88248         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
88249         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
88250         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
88251         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
88252         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
88253         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
88254         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
88255         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
88256         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
88257         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
88258         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
88259         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
88260         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
88261         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
88262         Import changes from coreutils.
88263
88264 2004-08-05  Simon Josefsson  <jas@extundo.com>
88265
88266         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
88267
88268 2004-08-05  Simon Josefsson  <jas@extundo.com>
88269
88270         * m4/getsubopt.m4: New file.
88271
88272 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
88273
88274         Merge from coreutils.
88275
88276         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
88277         * m4/getcwd-path-max.m4: New files.
88278
88279         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
88280         FILESYSTEM_PREFIX_LEN ->
88281         FILE_SYSTEM_PREFIX_LEN.
88282         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
88283         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
88284         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
88285         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
88286
88287         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
88288         prerequisite modules now handle the DOS stuff.
88289         Don't check for unistd.h.
88290
88291 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
88292
88293         Merge from coreutils.
88294
88295         * lib/.gdb-history: Remove; this doesn't belong here.
88296
88297         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
88298         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
88299         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
88300         * lib/getcwd.c: New files.
88301
88302         * lib/dirname.h: Include <stdbool.h>.
88303         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
88304         for consistency with POSIX terminology.  All uses changed.
88305         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
88306         (strip_trailing_slashes): Use bool for booleans.
88307         * lib/stripslash.c (strip_trailing_slashes): Likewise.
88308
88309         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
88310         sometimes returns a positive errno value even when it succeeds.
88311         (print_errno_message) [!LIBC]: Fall back on strerror if
88312         __strerror_r fails.
88313
88314         * lib/path-concat.c (mempcpy): Don't define if a system header defines
88315         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
88316         (longest_relative_suffix): New function.
88317         (path_concat): Use it.  Assume first argument is not NULL.
88318         Port to DOS.  Omit redundant separators.
88319         Report an error instead of returning NULL.
88320         Use mempcpy instead of memcpy.
88321         (xpath_concat): Remove: not declared or used.
88322
88323         * lib/same.h: Include <stdbool.h>
88324         (same_name): Return bool, not int.
88325         * lib/same.c (same_name): Likewise.
88326         (errno): Don't declare; we assume C89 or better now.
88327
88328         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
88329         if not already defined.
88330
88331         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
88332         * lib/dup-safer.c (errno): Likewise.
88333
88334 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
88335
88336         Merge from coreutils.
88337         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
88338         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
88339         * modules/path-concat: Don't depend on strdup.
88340
88341 2004-08-03  Simon Josefsson  <jas@extundo.com>
88342
88343         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
88344         * lib/progname.h: Don't include stdbool.h.
88345
88346 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
88347
88348         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
88349         * MODULES.html.sh (func_all_modules): Remove fatal.
88350
88351 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
88352
88353         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
88354
88355 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
88356
88357         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
88358         working.
88359
88360 2004-08-02  Simon Josefsson  <jas@extundo.com>
88361
88362         * lib/getsubopt.h: New file, with comments from Bruno Haible.
88363         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
88364         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
88365
88366 2004-08-01  Simon Josefsson  <jas@extundo.com>
88367
88368         * lib/xgetdomainname.c: Include stdlib.h, for free().
88369
88370 2004-07-19  Bruno Haible  <bruno@clisp.org>
88371
88372         * MODULES.html.sh (func_all_modules): Add dummy.
88373
88374 2004-07-16  Simon Josefsson  <jas@extundo.com>
88375
88376         * modules/dummy: New file.
88377
88378 2004-07-16  Simon Josefsson  <jas@extundo.com>
88379
88380         * lib/dummy.c: New file.
88381
88382 2004-07-16  Bruno Haible  <bruno@clisp.org>
88383
88384         * lib/backupfile.h: Add extern "C" for C++.
88385         * lib/closeout.h: Likewise.
88386         * lib/copy-file.h: Likewise.
88387         * lib/findprog.h: Likewise.
88388         * lib/full-write.h: Likewise.
88389         * lib/pathname.h: Likewise.
88390         * lib/progname.h: Likewise.
88391         * lib/stpcpy.h: Likewise.
88392         * lib/stpncpy.h: Likewise.
88393         * lib/strcase.h: Likewise.
88394         * lib/strstr.h: Likewise.
88395         * lib/xalloc.h: Likewise.
88396
88397         * lib/mbswidth.h: Add extern "C" for C++.
88398         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
88399
88400 2004-07-13  Robert Millan  <robertmh@gnu.org>
88401
88402         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
88403
88404 2004-07-09  Simon Josefsson  <jas@extundo.com>
88405
88406         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
88407         failed without this.)
88408
88409 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
88410
88411         * modules/chown (Files): Add lib/fchown-stub.c, since
88412         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
88413
88414 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
88415
88416         * lib/fchown-stub.c: New file.
88417
88418 2004-06-24  Jim Meyering  <jim@meyering.net>
88419
88420         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
88421
88422 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
88423
88424         * modules/argz: Omit "#include".
88425
88426         * MODULES.html.sh (func_all_modules): Add calloc, to match
88427         2004-06-01 addition of calloc module.
88428
88429 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
88430
88431         * m4/argz.m4: New file, which is autoupdated from libtool.
88432
88433 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
88434
88435         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
88436         libtool.
88437
88438 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
88439
88440         * config/srclist-update: Don't insist on "USA." before the
88441         close-comment, as libtool omits the period and puts the */ on a
88442         separate line.
88443         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
88444         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
88445
88446 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
88447
88448         * modules/argz: New file.
88449         * MODULES.html.sh (func_all_modules): Add argz.
88450
88451 2004-06-12  Jim Meyering  <jim@meyering.net>
88452         and  Paul Eggert  <eggert@cs.ucla.edu>
88453
88454         * modules/hash (Files): Add lib/xalloc.h.
88455         * modules/pipe (Depends-on): Add wait-process.
88456         * modules/stat (Depends-on): Add xalloc.
88457         * modules/userspec (Files): Add lib/userspec.h.
88458         * modules/xstrto
88459
88460         Upgrade from gettext-0.13.
88461         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
88462         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
88463         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
88464
88465 2004-06-10  Jim Meyering  <jim@meyering.net>
88466
88467         * lib/calloc.c: New file.
88468
88469 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
88470
88471         * lib/getdate.y (yylex): Allow space between sign and number.
88472         Problem reported by Dan Jacobson.
88473
88474 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
88475
88476         Merge from coreutils CVS.
88477
88478         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
88479         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
88480         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
88481         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
88482         xstrtol.m4: Fix copyright date and/or serial number.
88483
88484         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
88485         See if we need an fchown replacement.
88486         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
88487         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
88488         and use the replacement function if we detect either defect.
88489
88490         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
88491         gl_UTIMECMP.
88492
88493 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
88494         and  Jim Meyering  <jim@meyering.net>
88495
88496         Merge from coreutils CVS.
88497
88498         * lib/stat-macros.h: New file, with contents from file-type.h
88499         and coreutils' system.h.
88500         * lib/file-type.c: Include "stat-macros.h".
88501         * lib/file-type.h (file_type): Move all macro definitions to new file,
88502         stat-macros.h.
88503
88504         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
88505         Wrap old code with this conditional.
88506         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
88507         function that does not dereference symlinks.
88508         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
88509
88510         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
88511         dependency problems.
88512         (xreadlink): Accept new arg SIZE, for efficiency.
88513         All decls and uses changed.
88514         * lib/xreadlink.h: Include <stddef.h>, for size_t.
88515
88516         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
88517         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
88518
88519         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
88520         sysexits.h.
88521
88522 2004-06-01  Jim Meyering  <jim@meyering.net>
88523
88524         * m4/calloc.m4: New file.
88525
88526 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
88527
88528         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
88529         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
88530         Also, fix a typo in a diagnostic.
88531
88532 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
88533
88534         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
88535         or AC_FUNC_REALLOC.
88536
88537 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
88538
88539         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
88540         macros to be defined.
88541         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
88542         the allocator returns NULL because the requested size is zero.
88543
88544 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
88545
88546         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
88547         var.  Add comment explaining why libc still defines it.  This
88548         merges the following patch from glibc:
88549         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
88550
88551 2004-05-20  Andreas Schwab  <schwab@suse.de>
88552
88553         * m4/free.m4: Replace free if it not known to work, not the other
88554         way round.
88555
88556 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
88557
88558         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
88559         present in glibc since revision 1.1 of this file.
88560         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
88561         obstack_alignment_mask, obstack_alloc, obstack_base,
88562         obstack_blank, obstack_blank_fast, obstack_chunk_size,
88563         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
88564         obstack_grow0, obstack_init, obstack_int_grow,
88565         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
88566         obstack_next_free, obstack_object_size, obstack_ptr_grow,
88567         obstack_ptr_grow_fast, obstack_room): Remove declarations of
88568         nonexistent functions.
88569
88570 2004-05-18  Karl Berry  <karl@gnu.org>
88571
88572         * config/srclist.txt: break link for vasnprintf.c.
88573
88574 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
88575
88576         Port obstack to the AS/400, where pointers are 16 bytes wide and
88577         you cannot cast an integer to a valid pointer.  This patch is
88578         currently waiting to be integrated into glibc; see
88579         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
88580
88581         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
88582         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
88583         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
88584         (struct obstack): temp member is now a union of a pointer and
88585         an integer, instead of an integer.  All integer uses changed.
88586         This does not affect the physical layout of struct obstack,
88587         except on hosts (like the AS/400) where the size or alignment of
88588         void * is greater than that of ptrdiff_t.
88589         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
88590         __STDC__)]: Store temporary in pointer member of union, not
88591         integer member.
88592         * lib/obstack.c: Include <stddef.h>, for offsetof.
88593         (struct fooalign): Remove; it doesn't need a name.
88594         (union fooround): Change double to long double, and add void *.
88595         (DEFAULT_ALIGNMENT): Use offsetof to compute.
88596         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
88597         not a macro.  Hence the values are always int; so remove all
88598         casts-to-int in uses.
88599
88600 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
88601
88602         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
88603         we can get this patch merged into glibc.
88604
88605 2004-05-17  Derek R. Price  <derek@ximbiot.com>
88606             Paul Eggert  <eggert@cs.ucla.edu>
88607
88608         * m4/argp: Depend on alloca.
88609
88610 2004-05-17  Derek R. Price  <derek@ximbiot.com>
88611             Paul Eggert  <eggert@cs.ucla.edu>
88612
88613         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
88614         freecoding.
88615
88616 2004-05-17  Bruno Haible  <bruno@clisp.org>
88617
88618         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
88619         precision that consists of a '.' followed by an empty digit string.
88620         Patch by Tor Lillqvist <tml@iki.fi>.
88621
88622 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
88623
88624         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
88625         for backward compatibility with older code.  We need our own
88626         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
88627         it under some other name, and our alloca.h will define it.
88628
88629 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
88630             Derek Price  <derek@ximbiot.com>
88631
88632         * lib/alloca.c: Include <alloca.h>, to get our interface.
88633         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
88634         include <alloca.h> first.  Use C89 prototype for alloca; this
88635         requires including <stddef.h> for size_t.  Use extern "C" if C++.
88636         Use #elif for simplicity, since we can assume C89 now.
88637         Don't try to source the system alloca.h since it will not be found
88638         and to prevent recursively including its replacement.
88639         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
88640         * lib/regex.c: Likewise.
88641
88642 2004-05-16  Derek Price  <derek@ximbiot.com>
88643             Paul Eggert  <eggert@cs.ucla.edu>
88644
88645         getline cleanup.  This changes the getndelim2 API: both order of
88646         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
88647         no delimiter).
88648
88649         * lib/getline.c: Don't include stddef.h or stdio.h, since our
88650         interface does that.
88651         (getline): Always use getdelim, so that we don't have two
88652         copies of this code.
88653         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
88654         if available.
88655         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
88656         (GETNDELIM2_MAXIMUM): New macro.
88657         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
88658         instead of the old practice of delim2==0.  All callers changed.
88659         Return -1 on overflow, instead of returning junk.
88660         Do not set *linesize unless allocation succeeds.
88661         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
88662         that we include sys/types.h.
88663         * lib/getnline.h: Likewise.
88664         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
88665         (getndelim2): Reorder arguments.
88666         * lib/getnline.c (getnline, getndelim):
88667         Don't discard the NMAX argument.
88668         (getnline): Invoke getndelim, to avoid code duplication.
88669         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
88670         of (size_t) -1 by callers of the getnline family.
88671
88672 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
88673
88674         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
88675         Check for gettimeofday.
88676         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
88677         Check for settimeofday, stime.
88678
88679 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
88680
88681         * lib/nanosleep.c (suspended): Change its type from int to
88682         sig_atomic_t volatile.
88683         (first_call): Make it private to rpl_nanosleep, and have it
88684         be zero initially as that's a bit faster.
88685         (my_usleep): Round up fractional times instead of truncating them,
88686         as this is the usual meaning for 'sleep'.
88687
88688         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
88689         doesn't work.
88690         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
88691         (ENOSYS): Define if not defined.
88692         (settime): Fall back on stime if it exists and settimeofday fails.
88693         But don't bother with fallbacks if a method fails with errno == EPERM.
88694
88695 2004-05-11  Jim Meyering  <jim@meyering.net>
88696
88697         Prior to this change, the save_cwd caller required read access to the
88698         current directory on most systems (ones with the fchdir function).
88699
88700         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
88701         fails, try write-only, and finally, resort to using xgetcwd.
88702
88703 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
88704
88705         * lib/obstack.c, obstack.h: Import changes from libc.
88706
88707 2004-04-28  Bruno Haible  <bruno@clisp.org>
88708
88709         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
88710         also implicitly appends .exe to executables.
88711         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
88712         accepts Windows pathnames.
88713         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
88714         Treat Cygwin like Windows, since it now accepts Windows pathnames.
88715         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
88716         Treat Cygwin like Windows, since it now accepts Windows pathnames.
88717         Reported by Derek Robert Price <derek@ximbiot.com>.
88718
88719 2004-04-21  Karl Berry  <karl@gnu.org>
88720
88721         * config/srclist.txt (localcharset.c): break sync.
88722
88723 2004-04-20  Paul Eggert  <eggert@twinsun.com>
88724
88725         * m4/host-os.m4: Add a copyright notice.
88726
88727 2004-04-20  Jim Meyering  <jim@meyering.net>
88728
88729         Change UTILS_ to gl_ in AC_DEFINE'd names.
88730         Change utils_- and jm_-prefixed variables, too.
88731         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
88732         UTILS_FUNC_MKDIR_TRAILING_SLASH.
88733         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
88734
88735         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
88736         Don't emit trailing blanks.
88737         Also rename jm_-prefixed variables to have gl_ prefix.
88738
88739         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
88740         Also rename jm_-prefixed variables to have gl_ prefix.
88741
88742         * m4/jm-macros.m4: Reflect the renamings.
88743         * m4/prereq.m4: Likewise.
88744
88745 2004-04-20  Jim Meyering  <jim@meyering.net>
88746
88747         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
88748         memory.
88749
88750 2004-04-20  Jim Meyering  <jim@meyering.net>
88751             Bruno Haible  <bruno@clisp.org>
88752
88753         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
88754         memory when realloc fails.
88755
88756 2004-04-19  Jim Meyering  <jim@meyering.net>
88757
88758         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
88759         now that readutmp.c may call `free (0)'.
88760
88761 2004-04-19  Bruno Haible  <bruno@clisp.org>
88762
88763         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
88764         * m4/inttypes_h.m4: Likewise.
88765         * m4/stdint_h.m4: Likewise.
88766         * m4/intmax_t.m4: Likewise.
88767         * m4/uintmax_t.m4: Likewise.
88768
88769 2004-04-18  Jim Meyering  <jim@meyering.net>
88770
88771         * m4/prereq.m4: Don't forbid jm_ prefix.
88772
88773         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
88774         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
88775         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
88776         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
88777         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
88778         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
88779         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
88780         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
88781         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
88782         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
88783         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
88784         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
88785         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
88786         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
88787         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
88788         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
88789         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
88790         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
88791         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
88792
88793 2004-04-18  Jim Meyering  <jim@meyering.net>
88794
88795         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
88796         failure, don't leak memory and do call END_UTMP_ENT.
88797
88798 2004-04-16  Jim Meyering  <jim@meyering.net>
88799
88800         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
88801         coreutils' stat program.
88802         (gl_PREREQ): Don't require jm_PREREQ_STAT.
88803
88804 2004-04-11  Paul Eggert  <eggert@twinsun.com>
88805
88806         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
88807         C89.
88808         (CHAR_BIT): Remove, since we assume C89.
88809         Include <stdint.h> if available, as per current Autoconf CVS advice.
88810
88811 2004-03-31  Jim Meyering  <jim@meyering.net>
88812
88813         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
88814         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
88815         * m4/xalloc.m4: Likewise.
88816
88817 2004-03-30  Paul Eggert  <eggert@twinsun.com>
88818
88819         Merge from coreutils.
88820
88821         * m4/inttostr.m4: New file.
88822         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
88823         Require AM_STDBOOL_H and gl_TIMESPEC instead.
88824         Require gl_CLOCK_TIME.
88825         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
88826
88827 2004-03-30  Paul Eggert  <eggert@twinsun.com>
88828
88829         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
88830         not bool, to be more consistent with Unix conventions.
88831         Suggested by Bruno Haible.
88832
88833         Merge from coreutils.
88834
88835         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
88836         * lib/umaxtostr.c: New files.
88837
88838         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
88839         the usual <time.h> dance.
88840         (get_date): Change signature to support fractional time stamps.
88841         All callers changed.
88842         * lib/getdate.y: Include "getdate.h" first, as we can now
88843         assume C89 and don't need to worry about 'const'.
88844         Similarly, include "unlocked-io.h" near start, not in middle.
88845         Include <limits.h>.
88846         (textint.value): Use long int rather than int.
88847         (textint.digits): Use size_t rather than int.
88848         (BILLION, LOG10_BILLION): New constants.
88849         (parser_control): New member rel_ns.  Members day_ordinal,
88850         time_zone, month, day, hour, minutes, rel_year, rel_month,
88851         rel_day, rel_hour, rel_minutes, rel_seconds
88852         are now long int, not int.  Member seconds is now struct timespec,
88853         not int.  New member timespec_seen.  Members dates_seen, days_seen,
88854         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
88855         not int.
88856         (%union.intval): Now long int, not int.
88857         New member timespec.
88858         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
88859         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
88860         (spec): Now is a timespec or an item list.
88861         (timespec, items): New nonterminals.
88862         (time, rel, relunit, number, get_date):
88863         Add support for fractional seconds.
88864         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
88865         (gmtime, localtime, mktime): Remove decls; not needed with C89.
88866         (to_hour): First arg is now long int, not int.
88867         (to_year): Returns long int, not int.
88868         Don't treat year -70 like 70.
88869         (tm_diff): Returns long int, not int.
88870         (lookup_word): Use bool instead of int when appropriate.
88871         (yylex): Use size_t for count, not int.
88872         Detect overflow when parsing large integer constants.
88873         Add support for fractions.
88874         (get_date): Make pointers 'const' if possible.
88875         Use more-portable code to detect integer overflow.
88876         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
88877         Don't use ctime; it's not reliable if the year has >4 digits.
88878
88879         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
88880         This is for compatibility with BSD.
88881
88882         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
88883         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
88884         From coreutils' system.h.
88885
88886         * lib/userspec.c: Don't include "posixver.h".
88887         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
88888         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
88889         compatible extension.  Simplify code by removing a boolean int
88890         that was always nonzero if a string was nonnull.
88891
88892 2004-03-30  Jim Meyering  <jim@meyering.net>
88893
88894         Merge from coreutils.
88895
88896         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
88897         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
88898         on some systems one must include <grp.h> before it.
88899         Reported by Christian Krackowizer.
88900
88901 2004-03-30  Jim Meyering  <jim@meyering.net>
88902
88903         Merge from coreutils.
88904
88905         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
88906
88907         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
88908         an empty input stream.
88909
88910         * lib/readtokens.c: Include <stdbool.h>.
88911         (readtoken): Use `size_t' rather than int/long.
88912         All callers adjusted.
88913         Use `bool' rather than `int' where appropriate.
88914         Use memset rather than an explicit loop.
88915         Use x2nrealloc rather than xrealloc.
88916         Allow the use of `\0' as a delimiter.
88917         (readtokens): Likewise.
88918         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
88919
88920 2004-03-30  Jim Meyering  <jim@meyering.net>
88921
88922         * m4/realloc.m4: Remove file, since now it does no more than
88923         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
88924         the `configure.ac' section of module/realloc.
88925         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
88926
88927 2004-03-30  Bruno Haible  <bruno@clisp.org>
88928
88929         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
88930         nonnull.
88931
88932 2004-03-29  Paul Eggert  <eggert@twinsun.com>
88933
88934         Merge changes to getloadavg.c from coreutils and Emacs.
88935
88936         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
88937         Define to an expression, not to the empty string.
88938         Include cloexec.h and xalloc.h.
88939         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
88940         Use set_cloexec_flag rather than rolling our own.
88941         * lib/cloexec.c, lib/cloexec.h: New files.
88942
88943 2004-03-29  Paul Eggert  <eggert@twinsun.com>
88944
88945         * m4/cloexec.m4: New file.
88946
88947 2004-03-18  Paul Eggert  <eggert@twinsun.com>
88948
88949         * lib/getopt.h: Sync with libc CVS.
88950
88951 2004-03-18  Paul Eggert  <eggert@twinsun.com>
88952             Bruno Haible  <bruno@clisp.org>
88953
88954         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
88955         mbswidth.
88956
88957 2004-03-18  Paul Eggert  <eggert@twinsun.com>
88958             Bruno Haible  <bruno@clisp.org>
88959
88960         * lib/mbswidth.h: Include <wchar.h> only if
88961         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
88962         <wchar.h>.
88963         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
88964
88965 2004-03-09  Paul Eggert  <eggert@twinsun.com>
88966
88967         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
88968         Sync with libc CVS.
88969         * lib/getopt_int.h: New file, also synced from libc.
88970
88971 2004-03-09  Paul Eggert  <eggert@twinsun.com>
88972
88973         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
88974         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
88975         Bring back getopt.c, getopt.h, getopt1.c.
88976
88977 2004-03-07  Paul Eggert  <eggert@twinsun.com>
88978
88979         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
88980         All uses changed.  Check for sa_sigaction member; this fixes
88981         a bug first reported by Jason Andrade in
88982         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
88983
88984 2004-03-07  Paul Eggert  <eggert@twinsun.com>
88985
88986         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
88987         '#if' expressions.  Unlike the code it replaces, it does not
88988         depend on (defined _SC_PAGESIZE).  However, it does depend on
88989         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
88990         first reported by Jason Andrade in
88991         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
88992
88993 2004-02-25  Simon Josefsson  <jas@extundo.com>
88994
88995         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
88996
88997 2004-02-25  Simon Josefsson  <jas@extundo.com>
88998
88999         * lib/strdup.h: New file.
89000         * lib/strdup.c: Include it.
89001         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
89002         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
89003
89004 2004-02-23  Karl Berry  <karl@gnu.org>
89005
89006         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
89007         (from fencepost.gnu.org:/gd/gnuorg).
89008
89009 2004-02-23  Karl Berry  <karl@gnu.org>
89010
89011         * config/srclistvars.sh (GNUORG) [karl]: redefine.
89012         * config/srclist.txt: add maintain/standards documents.
89013
89014 2004-02-18  Bruno Haible  <bruno@clisp.org>
89015
89016         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
89017         Reported by Derek Robert Price <derek@ximbiot.com>.
89018
89019 2004-02-16  Karl Berry  <karl@gnu.org>
89020
89021         * config/mkinstalldirs, install-sh: update from automake.
89022
89023 2004-02-06  Karl Berry  <karl@gnu.org>
89024
89025         * m4/po.m4: update from gettext 0.14.1.
89026
89027 2004-02-06  Karl Berry  <karl@gnu.org>
89028
89029         * lib/config.charset: update from gettext 0.14.1.
89030
89031 2004-02-05  Paul Eggert  <eggert@twinsun.com>
89032
89033         Add comments and code, prompted by suggestions from Bruno Haible
89034         for sh-quote.
89035         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
89036         describing the enum quoting_style values.
89037         * lib/quotearg.c (quotearg_alloc): New function.
89038         (quotearg_buffer_restyled): Treat lone { and } as special.
89039         Treat = as special.  Work around bug with older shells
89040         that "see" a '\' that is really the 2nd byte of a multibyte char.
89041         Quote empty string with shell_quoting_style.
89042
89043 2004-02-03  Bruno Haible  <bruno@clisp.org>
89044
89045         * m4/pipe.m4: New file, from GNU gettext.
89046
89047 2004-02-03  Bruno Haible  <bruno@clisp.org>
89048
89049         * lib/pipe.h: New file, from GNU gettext.
89050         * lib/pipe.c: New file, from GNU gettext.
89051
89052 2004-01-27  Bruno Haible  <bruno@clisp.org>
89053
89054         * m4/execute.m4: New file, from GNU gettext.
89055
89056 2004-01-27  Bruno Haible  <bruno@clisp.org>
89057
89058         * lib/execute.h: New file, from GNU gettext.
89059         * lib/execute.c: New file, from GNU gettext.
89060         * lib/w32spawn.h: New file, from GNU gettext.
89061
89062 2004-01-24  Paul Eggert  <eggert@twinsun.com>
89063
89064         Merge from diffutils.
89065
89066         * lib/file-type.c (file_type): Add typed memory objects.
89067         * lib/file-type.h (S_TYPEISTMO): New macro.
89068
89069         * lib/c-stack.h (c_stack_action): Remove argv argument.
89070         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
89071         (die): Don't calculate message unless segv_action returns.
89072         (get_stack_location, min_address_from_argv, max_address_from_argv,
89073         volatile stack_base, volatile_stack_size): Remove.
89074         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
89075         that every segmentation violation is a stack overflow.  (Ouch!)
89076         See Debian bug 136249 (still outstanding) for more info about why
89077         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
89078
89079 2004-01-24  Paul Eggert  <eggert@twinsun.com>
89080
89081         Exit-status fix from coreutils.
89082
89083         Use exit_failure consistently in place of EXIT_FAILURE,
89084         so that program exit statuses are consistent on failure.
89085
89086         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
89087         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
89088         * lib/argmatch.h: Comment fix to match the above.
89089         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
89090         Now a macro referring to exit_failure, instead of a separate
89091         variable.  Include "exitfail.h" to get it.
89092         * lib/xstrtol.h: Include "exitfail.h".
89093         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
89094
89095         * lib/long-options.c (parse_long_options): Use prototype
89096         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
89097         for clarity.
89098
89099 2004-01-21  Jim Meyering  <jim@meyering.net>
89100
89101         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
89102         so as not to conflict with a different-sized __mktime_internal
89103         function in GNU libc.
89104         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
89105         Problem building statically-linked `ls' reported by Michael Brunnbauer.
89106
89107 2004-01-20  Karl Berry  <karl@gnu.org>
89108
89109         * config/config.guess: update from config.
89110
89111         * config/srclistvars.sh: GNUWWWLICENSES for karl.
89112
89113 2004-01-20  Bruno Haible  <bruno@clisp.org>
89114
89115         Safer stack allocation.
89116         * lib/setenv.c: Include allocsa.h.
89117         (alloca): Remove fallback definition.
89118         (freea): Remove macro.
89119         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
89120         instead of freea.
89121
89122 2004-01-20  Bruno Haible  <bruno@clisp.org>
89123
89124         * m4/eealloc.m4: New file, from GNU gettext.
89125
89126 2004-01-20  Bruno Haible  <bruno@clisp.org>
89127
89128         * m4/allocsa.m4: New file, from GNU gettext.
89129
89130 2004-01-20  Bruno Haible  <bruno@clisp.org>
89131
89132         * lib/xallocsa.h: New file, from GNU gettext.
89133         * lib/xallocsa.c: New file, from GNU gettext.
89134
89135 2004-01-20  Bruno Haible  <bruno@clisp.org>
89136
89137         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
89138
89139 2004-01-20  Bruno Haible  <bruno@clisp.org>
89140
89141         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
89142         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
89143         specially.
89144
89145 2004-01-20  Bruno Haible  <bruno@clisp.org>
89146
89147         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
89148         patch.
89149
89150 2004-01-20  Bruno Haible  <bruno@clisp.org>
89151
89152         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
89153
89154 2004-01-20  Bruno Haible  <bruno@clisp.org>
89155
89156         * lib/eealloc.h: New file.
89157
89158 2004-01-20  Bruno Haible  <bruno@clisp.org>
89159
89160         * lib/binary-io.h: Avoid warnings on Cygwin.
89161
89162 2004-01-20  Bruno Haible  <bruno@clisp.org>
89163
89164         * lib/allocsa.h: New file, from GNU gettext.
89165         * lib/allocsa.c: New file, from GNU gettext.
89166
89167 2004-01-18  Karl Berry  <karl@gnu.org>
89168
89169         * doc/gpl.texi, doc/lgpl.texi: new files.
89170
89171 2004-01-18  Karl Berry  <karl@gnu.org>
89172
89173         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
89174         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
89175
89176 2004-01-15  Paul Eggert  <eggert@twinsun.com>
89177
89178         Merge from coreutils.
89179
89180         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
89181         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
89182         (gl_DEFAULT_POSIX2_VERSION): Move
89183         the documentation from 'configure' into 'config.hin',
89184         so that 'configure --help' isn't burdened by it and
89185         we don't have to worry about its formatting there.
89186         Reword the documentation so that it's more succinct
89187         and can be run together into a single paragraph.
89188         * m4/same.m4 (gl_SAME): Check for pathconf.
89189
89190 2004-01-15  Paul Eggert  <eggert@twinsun.com>
89191
89192         Merge from coreutils.
89193
89194         * lib/posixver.c: Include posixver.h.
89195
89196         * lib/same.c: Include <stdbool.h>, <limits.h>.
89197         (_POSIX_NAME_MAX): Define if not defined.
89198         (MIN): New macro.
89199         (same_name): If file names are silently truncated, report
89200         that the file names are the same if they are the same after
89201         the silent truncation.
89202
89203         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
89204         conversion function.
89205         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
89206         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
89207         longer needed.
89208
89209 2004-01-15  Jim Meyering  <jim@meyering.net>
89210
89211         Merge from coreutils.
89212
89213         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
89214         if no library is required.
89215         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
89216         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
89217         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
89218         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
89219         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
89220         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
89221         value, $ac_cv_search_crypt, if it's "none required".
89222         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
89223         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
89224         not gl_FUNC_GETLOADAVG.
89225         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
89226         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
89227
89228 2004-01-15  Jim Meyering  <jim@meyering.net>
89229
89230         Merge from coreutils.
89231
89232         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
89233         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
89234         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
89235
89236         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
89237         optional configure-time default.
89238
89239         * lib/version-etc.c (version_etc_copyright): Update copyright date.
89240
89241         * lib/xreadlink.c (xreadlink): Correct outdated comment.
89242
89243 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
89244
89245         Merge from coreutils.
89246
89247         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
89248         value, $ac_cv_search_nanosleep, if it's "none required".
89249
89250 2004-01-14  Paul Eggert  <eggert@twinsun.com>
89251
89252         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
89253         with like-named macro in fnmatch.c.
89254         (EXT): Use an internal constant instead.
89255
89256         Merge fnmatch patches from glibc.
89257         * lib/fnmatch.c (mbsinit): Remove define.
89258         Add libc_hidden_ver (__fnmatch, fnmatch).
89259         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
89260         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
89261
89262 2004-01-14  Karl Berry  <karl@gnu.org>
89263
89264         * config/install-sh: update from automake.
89265
89266 2004-01-13  Karl Berry  <karl@gnu.org>
89267
89268         * config/install-sh: update from automake.
89269
89270 2004-01-09  Karl Berry  <karl@gnu.org>
89271
89272         * config/install-sh: update from automake.
89273
89274 2004-01-05  Karl Berry  <karl@gnu.org>
89275
89276         * config/config.{sub,guess}: update from config.
89277
89278 2003-12-31  Karl Berry  <karl@gnu.org>
89279
89280         * config/depcomp: update from automake.
89281
89282 2003-12-14  Karl Berry  <karl@gnu.org>
89283
89284         * lib/config.charset: update from gettext-runtime.
89285
89286 2003-12-03  Paul Eggert  <eggert@twinsun.com>
89287
89288         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
89289         Bug reported by Alfred M. Szmidt.
89290
89291 2003-12-03  Bruno Haible  <bruno@clisp.org>
89292
89293         * m4/gettext.m4: Upgrade from gettext-0.13.
89294         * m4/po.m4: Upgrade from gettext-0.13.
89295         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
89296         * m4/intmax.m4: New file, from gettext-0.13.
89297         * m4/printf-posix.m4: New file, from gettext-0.13.
89298
89299 2003-11-29  Karl Berry  <karl@gnu.org>
89300
89301         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
89302
89303 2003-11-25  Paul Eggert  <eggert@twinsun.com>
89304             Bruno Haible  <bruno@clisp.org>
89305
89306         * lib/printf-parse.h: Don't include sys/types.h.
89307         (ARG_NONE): New macro.
89308         (char_directive): Change type of *arg_index fields to size_t.
89309         * lib/printf-parse.c: Don't include sys/types.h.
89310         (SSIZE_MAX): Remove macro.
89311         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
89312         Remove unnecessary overflow check.
89313         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
89314         fields.
89315
89316 2003-11-25  Bruno Haible  <bruno@clisp.org>
89317
89318         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
89319
89320 2003-11-25  Bruno Haible  <bruno@clisp.org>
89321
89322         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
89323         gt_TYPE_SSIZE_T.
89324
89325 2003-11-24  Paul Eggert  <eggert@twinsun.com>
89326
89327         * modules/alloca: Remove dependency on xalloc.
89328
89329 2003-11-24  Paul Eggert  <eggert@twinsun.com>
89330
89331         * lib/alloca.c: Remove dependency on xalloc module.
89332         (xalloc_die): Remove.
89333         (memory_full) [!defined emacs]: New macro.
89334         [!defined emacs]: Don't include xalloc.h.
89335         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
89336         address arithmetic overflows.  Change datatypes a bit to avoid
89337         unnecessary casts.
89338
89339 2003-11-22  Jim Meyering  <jim@meyering.net>
89340
89341         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
89342         s/size/size_t/.
89343
89344 2003-11-21  Karl Berry  <karl@gnu.org>
89345
89346         * config/config.{sub,guess}: update from config.
89347
89348 2003-11-18  Karl Berry  <karl@gnu.org>
89349
89350         * config/config.{sub,guess}: update from config.
89351
89352         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
89353
89354 2003-11-17  Paul Eggert  <eggert@twinsun.com>
89355
89356         * README: Mention that S+T cannot overflow if S is the size of
89357         an existing object and T is sufficiently small.
89358
89359 2003-11-17  Jim Meyering  <jim@meyering.net>
89360
89361         On systems without utime and without a utimes function capable of
89362         dealing with a NULL struct utimbuf* argument, this utime replacement
89363         could -- in unusual circumstances -- leak a file descriptor.
89364         * lib/utime.c: Include <unistd.h> and <errno.h>.
89365         (utime_null): Be sure to close `fd' and to preserve errno.
89366         Reported by Geoff Collyer via Arnold Robbins.
89367
89368 2003-11-17  Bruno Haible  <bruno@clisp.org>
89369
89370         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
89371         (Depends-on): Add xsize.
89372
89373 2003-11-17  Bruno Haible  <bruno@clisp.org>
89374
89375         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
89376
89377 2003-11-17  Bruno Haible  <bruno@clisp.org>
89378
89379         * lib/vasnprintf.c (alloca): Remove fallback definition.
89380         (freea): Remove definition.
89381         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
89382         Reported by Paul Eggert.
89383
89384 2003-11-16  Paul Eggert  <eggert@twinsun.com>
89385             Bruno Haible  <bruno@clisp.org>
89386
89387         Protect against address arithmetic overflow.
89388         * lib/printf-args.h: Include stddef.h.
89389         (arguments): Change type of field 'count' to size_t.
89390         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
89391         'unsigned int' where appropriate.
89392         * lib/printf-parse.h: Include sys/types.h.
89393         (char_directive): Change type of *arg_index fields to ssize_t.
89394         (char_directives): Change type of fields 'count', max_*_length to
89395         size_t.
89396         * lib/printf-parse.c: Include sys/types.h and xsize.h.
89397         (SSIZE_MAX): Define fallback value.
89398         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
89399         instead of 'int' where appropriate. Check a_allocated, d_allocated
89400         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
89401         * lib/vasnprintf.c: Include xsize.h.
89402         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
89403         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
89404         overflow. Avoid wraparound when converting a width or precision from
89405         decimal to binary.
89406
89407 2003-11-16  Bruno Haible  <bruno@clisp.org>
89408
89409         Update from GNU gettext.
89410         * lib/printf-parse.c: Generalize to it can be compiled for wide
89411         strings.
89412         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
89413         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
89414         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
89415         SNPRINTF): New macros.
89416         Don't include <alloca.h> if the file is used inside libintl.
89417         (local_wcslen): New function, for Solaris 2.5.1.
89418         (VASNPRINTF): Use it instead of wcslen.
89419
89420 2003-11-16  Bruno Haible  <bruno@clisp.org>
89421
89422         * lib/xsize.h (xmax): New function.
89423         (xsum, xsum3, xsum4): Declare as "pure" functions.
89424
89425 2003-11-12  Paul Eggert  <eggert@twinsun.com>
89426
89427         * modules/xalloc (Files): Undo latest change, since xalloc.h
89428         no longer needs SIZE_MAX or PTRDIFF_MAX.
89429
89430 2003-11-12  Paul Eggert  <eggert@twinsun.com>
89431
89432         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
89433         gl_PTRDIFF_MAX.
89434
89435 2003-11-12  Paul Eggert  <eggert@twinsun.com>
89436
89437         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
89438         "return", to pacify some unknown compiler.  Problem reported
89439         by Joerg Schilling.
89440
89441 2003-11-12  Paul Eggert  <eggert@twinsun.com>
89442
89443         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
89444         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
89445         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
89446         heuristic is just as accurate as far as we know, and it removes a
89447         dependency on size_max.m4 and ptrdiff_max.m4.
89448
89449 2003-11-11  Bruno Haible  <bruno@clisp.org>
89450
89451         * modules/xsize (Files): Add m4/size_max.m4.
89452         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
89453
89454 2003-11-11  Bruno Haible  <bruno@clisp.org>
89455
89456         * m4/size_max.m4: New file.
89457         * m4/ptrdiff_max.m4: New file.
89458         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
89459         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
89460         (gl_XALLOC): Invoke it.
89461
89462 2003-11-11  Bruno Haible  <bruno@clisp.org>
89463
89464         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
89465         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
89466         defined.
89467
89468 2003-11-10  Paul Eggert  <eggert@twinsun.com>
89469
89470         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
89471         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
89472         rejected some allocations of exactly SIZE_MAX - 2 bytes.
89473         From Bruno Haible.
89474         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
89475         not (size_t) -1, since it's defined here.
89476
89477 2003-11-09  Karl Berry  <karl@gnu.org>
89478
89479         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
89480
89481 2003-11-06  Paul Eggert  <eggert@twinsun.com>
89482
89483         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
89484         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
89485         Reject sizes of exactly SIZE_MAX bytes.
89486         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
89487         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
89488
89489 2003-11-05  Bruno Haible  <bruno@clisp.org>
89490
89491         * lib/xsize.h: Include limits.h, to avoid a possible collision with
89492         SIZE_MAX defined in <limits.h> on Solaris.
89493
89494 2003-11-04  Jim Meyering  <jim@meyering.net>
89495
89496         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
89497         variable names, rather than @VAR@.
89498         * modules/poll: Likewise.
89499
89500 2003-11-04  Bruno Haible  <bruno@clisp.org>
89501
89502         * modules/xsize: New file.
89503         * modules/linebreak: Depend on xsize.
89504         * MODULES.html.sh (func_all_modules): Add xsize.
89505
89506 2003-11-04  Bruno Haible  <bruno@clisp.org>
89507
89508         * m4/xsize.m4: New file.
89509
89510 2003-11-04  Bruno Haible  <bruno@clisp.org>
89511
89512         * lib/xsize.h: New file.
89513         * lib/linebreak.c: Include xsize.h.
89514         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
89515         argument for overflow.
89516         Suggested by Paul Eggert.
89517
89518 2003-11-03  Karl Berry  <karl@gnu.org>
89519
89520         * config/config.{guess,sub}: update from config.
89521
89522 2003-11-03  Jim Meyering  <jim@meyering.net>
89523
89524         * modules/userspec (lib_SOURCES): Add userspec.h.
89525         (Include): Add "userspec.h".
89526         Improve description.
89527
89528 2003-11-03  Jim Meyering  <jim@meyering.net>
89529
89530         * lib/userspec.c: Include "userspec.h".
89531         * lib/userspec.h: New file.
89532
89533 2003-11-03  Bruno Haible  <bruno@clisp.org>
89534
89535         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
89536
89537 2003-11-03  Bruno Haible  <bruno@clisp.org>
89538
89539         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
89540         available, to avoid (extremely rare) race condition.
89541         Suggested by Paul Eggert.
89542
89543 2003-11-02  Karl Berry  <karl@gnu.org>
89544
89545         * config/srclist.txt (vasprintf.c): sync broken, sigh.
89546
89547 2003-10-31  Paul Eggert  <eggert@twinsun.com>
89548
89549         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
89550         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
89551         (read_filesystem_list): Set and use me_type_malloced.
89552         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
89553         whatever the type happens to be), for brevity and consistency.
89554         Check for size calculation overflow on Alphas running OSF/1.
89555
89556 2003-10-31  Jim Meyering  <jim@meyering.net>
89557
89558         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
89559
89560         * lib/linebuffer.c: Include <string.h> for declaration of memset.
89561
89562 2003-10-30  Paul Eggert  <eggert@twinsun.com>
89563             Bruno Haible  <bruno@clisp.org>
89564
89565         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
89566         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
89567
89568 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
89569
89570         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
89571         netbsd*-gnu*.  Suggested by Robert Millan.
89572
89573 2003-10-29  Paul Eggert  <eggert@twinsun.com>
89574
89575         * modules/group-member: Depend on stdbool.
89576
89577 2003-10-29  Paul Eggert  <eggert@twinsun.com>
89578
89579         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
89580
89581 2003-10-29  Paul Eggert  <eggert@twinsun.com>
89582
89583         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
89584         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
89585         after the 'gnu' in these cases.  This fixes some bugs in the
89586         previous change, and is based on suggestions by Robert Millan.
89587
89588 2003-10-29  Paul Eggert  <eggert@twinsun.com>
89589
89590         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
89591         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
89592         no longer needed.
89593         * lib/quotearg.c (quotearg_n_options): Use it.
89594         * lib/group-member.c: Include <stdbool.h>.
89595         (free_group_info): Arg is now const *; don't free arg.
89596         (get_group_info): Now returns bool and accepts struct group_info *,
89597         rather than returning a malloc'ed struct group_info *.
89598         All uses changed.  Check for overflow in internal size calculation.
89599
89600         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
89601         rather than xmalloc/xrealloc.
89602         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
89603         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
89604         conformance bug: the old code used a pointer after freeing the
89605         storage that it addressed.
89606         * lib/hash.c (hash_initialize): Simplify the code by using
89607         xalloc_oversized rather than doing it by hand.
89608         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
89609         the buffer preserved.  Use free and xmalloc instead.
89610         * lib/quotearg.c (quotearg_n_options): Likewise.
89611         Use a simpler test for size overflow.  Don't use xalloc_oversized
89612         because unsigned int might be wider than size_t (!); this suggests
89613         that we should switch from unsigned int to size_t for slot numbers.
89614
89615 2003-10-28  Paul Eggert  <eggert@twinsun.com>
89616
89617         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
89618         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
89619         NetBSD kernels.  Requested by Richard Stallman.
89620
89621 2003-10-27  Paul Eggert  <eggert@twinsun.com>
89622
89623         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
89624         to allocate the returned structure.  Do not allocate a subarray,
89625         as x2nrealloc will do that.
89626         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
89627         instead of xnrealloc.
89628         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
89629
89630 2003-10-27  Bruno Haible  <bruno@clisp.org>
89631
89632         * lib/stdbool_.h: Better support for BeOS.
89633
89634 2003-10-26  Paul Eggert  <eggert@twinsun.com>
89635
89636         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
89637         now uses inline.
89638
89639 2003-10-26  Paul Eggert  <eggert@twinsun.com>
89640
89641         * lib/xalloc.h (xalloc_oversized): New static inline function, for
89642         callers that want to do their own size-overflow checking.  Include
89643         <stdbool.h>, since xalloc_oversized returns bool.
89644         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
89645         to use xalloc_oversized.
89646
89647         Add two functions x2realloc, x2nrealloc, for programs that grow
89648         arrays dynamically by doubling their sizes.
89649         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
89650         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
89651         New functions.
89652
89653         Port to C99 semantics for 'inline' of external functions.
89654         Bug reported by Bruno Haible.
89655         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
89656         with the old contents of xnmalloc.
89657         (xnmalloc, xmalloc): Use it.
89658         (xnrealloc_inline): New static inline function,
89659         with the old contents of xnrealloc.
89660         (xnrealloc, xrealloc): Use it.
89661
89662         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
89663         that.
89664
89665 2003-10-26  Karl Berry  <karl@gnu.org>
89666
89667         * config/srclist.txt (COPYING.DOC): no longer available from
89668         /gd/gnuorg; don't know where the ultimate source is.
89669
89670 2003-10-25  Paul Eggert  <eggert@twinsun.com>
89671
89672         Fix several address-calculation bugs in the hash modules,
89673         plus some minor code cleanup.
89674
89675         * lib/hash.h: Include <stdbool.h>, for bool.
89676         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
89677         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
89678         hash_get_n_entries, hash_get_max_bucket_length,
89679         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
89680         hash_rehash): Use size_t rather than unsigned.
89681         * lib/hash.c (struct hash_table, hash_get_n_buckets,
89682         hash_get_n_buckets_used, hash_get_n_entries,
89683         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
89684         hash_get_entries, hash_do_for_each, hash_string, is_prime,
89685         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
89686         Likewise.
89687         (SIZE_MAX): Define if not defined.
89688         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
89689         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
89690         hash_print):
89691         Use const * when possible.
89692         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
89693         (check_tuning): Fix bug: if tuning parameters were very close to
89694         0 or 1, rounding errors could have caused subscript violations.
89695         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
89696         (hash_initialize): Add 'fail:' label
89697         to free table and return NULL, and use it to simplify code.
89698         Use calloc rather than clearing the storage ourself.
89699         (hash_initialize, hash_rehash): Check for arithmetic overflow in
89700         buffer size calculations.
89701         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
89702         Include <stddef.h>, for size_t.
89703         * lib/hash-pjw.c (hash_pjw): Likewise.
89704         Switch to method described by Bruno Haible.
89705         Include <limits.h>, for CHAR_BIT.
89706         (SIZE_BITS): New macro.
89707
89708 2003-10-23  Paul Eggert  <eggert@twinsun.com>
89709
89710         * m4/getline.m4 (AM_FUNC_GETLINE):
89711         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
89712         hosts.  Problem reported by Derek Robert Price in
89713         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
89714         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
89715         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
89716
89717 2003-10-21  Paul Eggert  <eggert@twinsun.com>
89718
89719         * lib/getndelim2.c (getndelim2): When size calculation overflows,
89720         ceiling the allocation at NMAX bytes rather than silently
89721         discarding input bytes before NMAX is reached.  This makes
89722         a difference only if NMAX exceeds SIZE_MAX / 2.
89723
89724         * lib/obstack.c: Merge from glibc.
89725         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
89726         Add libc_hidden_def (_obstack_newchunk).
89727         (_obstack_free) [! defined _LIBC]: Remove.
89728         [defined _LIBC]: Make a strong alias from obstack_free, rather than
89729         a clone of the function body.
89730         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
89731         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
89732
89733         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
89734         glibc.
89735         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
89736         arg to memcpy.
89737
89738         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
89739         (obstack_ptr_grow_fast, obstack_int_grow_fast):
89740         Don't use lvalue casts, as GCC plans to remove support for them
89741         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
89742         was also present in the non-GCC version, indicating that this
89743         code had always been buggy and had never been widely used.
89744         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
89745         Use the fast variant of each macro, rather than copying the
89746         definiens of the fast variant; that way, we'll be more likely to
89747         catch future bugs in the fast variants.
89748
89749 2003-10-20  Bruno Haible  <bruno@clisp.org>
89750
89751         * modules/wait-process: New file.
89752         * MODULES.html.sh (func_all_modules): Add wait-process.
89753
89754 2003-10-20  Bruno Haible  <bruno@clisp.org>
89755
89756         * m4/wait-process.m4: New file.
89757
89758 2003-10-20  Bruno Haible  <bruno@clisp.org>
89759
89760         * lib/wait-process.h: New file, from GNU gettext.
89761         * lib/wait-process.c: New file, from GNU gettext.
89762
89763 2003-10-19  Jim Meyering  <jim@meyering.net>
89764
89765         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
89766         HPUX 10.20.
89767
89768 2003-10-18  Karl Berry  <karl@gnu.org>
89769
89770         * config/config.guess: update from config.
89771
89772 2003-10-16  Paul Eggert  <eggert@twinsun.com>
89773
89774         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
89775         (getgroups): First arg is int, not size_t.
89776         Don't let 'free' mangle errno.
89777
89778 2003-10-16  Paul Eggert  <eggert@twinsun.com>
89779
89780         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
89781
89782 2003-10-16  Karl Berry  <karl@gnu.org>
89783
89784         * config/config.{guess,sub}: update from config.
89785
89786 2003-10-16  Jim Meyering  <jim@meyering.net>
89787
89788         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
89789         memcpy.
89790
89791 2003-10-15  Paul Eggert  <eggert@twinsun.com>
89792
89793         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
89794         (SIZE_MAX): Remove.
89795         (new_exclude, add_exclude_file): Initial size no longer needs to
89796         be a power of 2.
89797         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
89798         our own address arithmetic overflow checking.
89799
89800         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
89801         (fnmatch): Do not alloca more than 2000 wide characters;
89802         instead, use malloc for large buffers.
89803         Check for address arithmetic overflow, and return -1
89804         with errno set to ENOMEM in that case.
89805         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
89806         (NEW_PATTERN): Do not alloca more than 8000 bytes;
89807         instead, return -1.  Check for address arithmetic overflow.
89808
89809 2003-10-14  Paul Eggert  <eggert@twinsun.com>
89810
89811         Handle invalid suffixes and overflow independently, so that
89812         callers can treat them independently as needed.  Fix some bugs in
89813         suffix handling, e.g., "100k@" was not diagnosed as an invalid
89814         suffix for a human-readable blocksize.  The major caller-visible
89815         change is the addition of a new
89816         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
89817         that both overflow and suffix chars were found.
89818
89819         * lib/human.c (humblock): Don't check separately for invalid suffix
89820         char; that is xstrtoumax's job (now that its bug is fixed).
89821         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
89822         INTMAX_MAX]: New macros.
89823         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
89824         TYPE_MAXIMUM): New macros.
89825         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
89826         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
89827         if overflow occurs, as it's what __strtol does and it's more useful
89828         in practice.
89829         (__xstrtol): If __strtol reports some error other than ERANGE,
89830         reflect it to the caller as LONGINT_INVALID.  If it reports
89831         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
89832         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
89833         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
89834         value.
89835         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
89836         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
89837         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
89838         [defined UINTMAX_MAX]: New macros.
89839
89840 2003-10-14  Bruno Haible  <bruno@clisp.org>
89841
89842         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
89843
89844 2003-10-14  Bruno Haible  <bruno@clisp.org>
89845
89846         * m4/sig_atomic_t: New file, from GNU gettext.
89847         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
89848
89849 2003-10-14  Bruno Haible  <bruno@clisp.org>
89850
89851         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
89852         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
89853         Also use volatile where needed.
89854
89855 2003-10-12  Paul Eggert  <eggert@twinsun.com>
89856
89857         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
89858         Change maintainer from Bruno Haible to 'all'.
89859
89860 2003-10-12  Paul Eggert  <eggert@twinsun.com>
89861
89862         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
89863
89864 2003-10-12  Paul Eggert  <eggert@twinsun.com>
89865
89866         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
89867         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
89868         and define in terms of the other primitives.
89869         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
89870         (SIZE_MAX): Define if not already defined.
89871         (array_size_overflow): New function.
89872         (xalloc_die): Abort instead of exiting if 'error' returns.
89873         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
89874         (xmalloc, xrealloc): Use them.
89875         (xcalloc): Check for address arithmetic overflow.
89876         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
89877         a bit faster than strcpy.
89878
89879 2003-10-10  Simon Josefsson  <jas@extundo.com>
89880
89881         * modules/argp (Depends-on): Add restrict and strcase.
89882
89883 2003-10-10  Simon Josefsson  <jas@extundo.com>
89884
89885         * m4/argp.m4: Add AC_C_INLINE.
89886
89887 2003-10-08  Paul Eggert  <eggert@twinsun.com>
89888
89889         Merge getpass from libc, plus a few fixes.
89890
89891         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
89892         Include <stdbool.h>.
89893         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
89894         __fsetlocking to empty.
89895         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
89896         do include <bits/libc-lock.h>.
89897         Do not include <fcntl.h>; not needed.
89898         [_LIBC]: Include <wchar.h>.
89899         (NOTCANCEL_MODE): New macro.
89900         (flockfile, funlockfile) [_LIBC]: New macros.
89901         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
89902         [!_LIBC]: New macros.
89903         (call_fclose): New function.
89904         (getpass): Use it.  Save tty stream separately; this simplifies the
89905         code and makes it more reliable if stdin happens to equal stdout.
89906         Invoke __fsetlocking on tty.
89907         Handle thread cancellation if needed.
89908         Namespace cleanup (use __tcgetattr, __getline).
89909         Use bool for Booleans.
89910         [USE_IN_LIBIO]: Handle wide streams.
89911         [!_LIBC]: Unconditionally do the fseek, since we don't know what
89912         stream might go where.
89913
89914         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
89915         doesn't have to include <stdio.h> before us.
89916         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
89917         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
89918         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
89919         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
89920         if not declared, so that we can use getpass.c code from libc without
89921         rewriting it.
89922         (flockfile, ftrylockfile, funlockfile): New macros.
89923
89924 2003-10-08  Paul Eggert  <eggert@twinsun.com>
89925
89926         * modules/getpass: Depend on stdbool.
89927
89928 2003-10-08  Paul Eggert  <eggert@twinsun.com>
89929
89930         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
89931
89932 2003-10-07  Karl Berry  <karl@gnu.org>
89933
89934         * config/config.{guess,sub}: update from config.
89935
89936 2003-10-06  Jim Meyering  <jim@meyering.net>
89937             Bruno Haible  <bruno@clisp.org>
89938
89939         This lets translators provide better translations for the
89940         "Written by ..." part of --version output.
89941         * lib/version-etc.h: Include stdarg.h.
89942         (version_etc_copyright): Declare as readonly.
89943         (version_etc): Make this function variadic with a NULL-terminated list
89944         of author name strings.
89945         (version_etc_va): New declaration.
89946         * lib/version-etc.c: Include stdarg.h, stdlib.h.
89947         (version_etc_copyright): Declare as readonly.
89948         (version_etc_va): New function. Provide a different translatable string
89949         for each possible number of authors < 10. Abbreviate when there are 10
89950         authors or more.
89951         (version_etc): Make this function variadic. Call version_etc_va.
89952         Suggestion from Gary V. Vaughan.
89953
89954         * lib/long-options.h (parse_long_options): Change prototype: the
89955         authors string is moved to the end and becomes variadic.
89956         * lib/long-options.c: Include stdarg.h.
89957         (parse_long_options): Make this function variadic, too.
89958         Call version_etc_va, not version_etc.
89959
89960 2003-10-06  Bruno Haible  <bruno@clisp.org>
89961
89962         * modules/version-etc-2: Remove file.
89963         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
89964
89965 2003-10-06  Bruno Haible  <bruno@clisp.org>
89966
89967         * modules/fatal-signal: New file.
89968         * MODULES.html.sh (func_all_modules): Add fatal-signal.
89969
89970 2003-10-06  Bruno Haible  <bruno@clisp.org>
89971
89972         * m4/fatal-signal.m4: New file.
89973         * m4/signalblocking.m4: New file, from GNU gettext.
89974
89975 2003-10-06  Bruno Haible  <bruno@clisp.org>
89976
89977         * lib/version-etc-2.h: Remove file.
89978         * lib/version-etc-2.c: Remove file.
89979
89980 2003-10-06  Bruno Haible  <bruno@clisp.org>
89981
89982         * lib/fatal-signal.h: New file, from GNU gettext.
89983         * lib/fatal-signal.c: New file, from GNU gettext.
89984
89985 2003-10-05  Paul Eggert  <eggert@twinsun.com>
89986
89987         * README: Rework advice for preventing empty .o files.
89988         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
89989         not <sys/types.h>.
89990
89991 2003-10-04  Karl Berry  <karl@gnu.org>
89992
89993         * lib/argp*: update from libc.
89994
89995 2003-10-04  Karl Berry  <karl@gnu.org>
89996
89997         * config/config.{guess,sub}: update from config.
89998
89999 2003-10-02  Bruno Haible  <bruno@clisp.org>
90000
90001         * modules/lchown (Include): Add lchown.h.
90002         * modules/time_r (Include): Use "..." syntax.
90003         * modules/xgetdomainname (Include): Add xgetdomainname.h.
90004
90005 2003-10-01  Simon Josefsson  <jas@extundo.com>
90006
90007         * MODULES.html.sh (func_all_modules): Move gethostname from section
90008         'based on' to section 'lacking' POSIX:2001.
90009
90010 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
90011
90012         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
90013         to output mode on the same stream.
90014
90015 2003-09-29  Paul Eggert  <eggert@twinsun.com>
90016
90017         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
90018         Fix arg typo in previous patch.
90019
90020 2003-09-28  Jim Meyering  <jim@meyering.net>
90021
90022         * lib/error.c: Correct cpp indentation.
90023
90024 2003-09-27  Paul Eggert  <eggert@twinsun.com>
90025
90026         * modules/free: New file.
90027
90028 2003-09-27  Paul Eggert  <eggert@twinsun.com>
90029
90030         * m4/free.m4: New file.
90031
90032 2003-09-27  Paul Eggert  <eggert@twinsun.com>
90033
90034         * lib/minmax.h (MIN, MAX)
90035         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
90036         Omit the special code that used __typeof__, since we worry that
90037         it could be more trouble than it's worth.  See:
90038         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
90039         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
90040
90041         * lib/free.c: New file.
90042
90043 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
90044
90045         Trivial fixes to Makefile.am parts of module listings.
90046         * modules/strstr: Append strstr.h to lib_SOURCES.
90047         * modules/strcase: Likewise, for strcase.h.
90048
90049 2003-09-27  Karl Berry  <karl@gnu.org>
90050
90051         * config/mkinstalldirs: update from automake.
90052
90053 2003-09-26  Paul Eggert  <eggert@twinsun.com>
90054
90055         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
90056         (error_tail): Do not loop, reallocating temporary buffer, since
90057         the output cannot contain more wide characters than the input
90058         contains bytes, the size must be big enough already.  This avoids
90059         one potential size overflow calculation.  Check for size overflow
90060         when calculating temporary buffer size.  Free temporary buffer
90061         when done, if it was allocated with malloc; this plugs a memory
90062         leak.  Remove casts from void * to pointers, that are no longer
90063         needed now that we're assuming C89 or better.
90064
90065         Merge error changes from glibc.
90066
90067         * lib/error.c, error.h: Update copyright notice header to match glibc.
90068         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
90069         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
90070         Disable cancellation while printing error.
90071         * lib/error.h: Prepend __ to parameter names.
90072
90073 2003-09-26  Jim Meyering  <jim@meyering.net>
90074
90075         * lib/error.c (error_tail): Move some declarations
90076         into inner scope where the local variables are used.
90077
90078 2003-09-26  Bruno Haible  <bruno@clisp.org>
90079
90080         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
90081         stpncpy().
90082         Don't define stpncpy through config.h; it's now done through stpncpy.h.
90083
90084 2003-09-26  Bruno Haible  <bruno@clisp.org>
90085
90086         * lib/stpncpy.h (gnu_stpncpy): New declaration.
90087         (stpncpy): Define as alias for gnu_stpncpy.
90088         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
90089
90090 2003-09-25  Simon Josefsson  <jas@extundo.com>
90091
90092         * lib/xgetdomainname.h: New file.
90093         * lib/xgetdomainname.c: New file.
90094
90095 2003-09-25  Simon Josefsson  <jas@extundo.com>
90096             Bruno Haible  <bruno@clisp.org>
90097
90098         * modules/getdomainname: New file.
90099         * modules/xgetdomainname: New file.
90100         * MODULES.html.sh (func_all_modules): Add getdomainname,
90101         xgetdomainname.
90102
90103 2003-09-25  Simon Josefsson  <jas@extundo.com>
90104             Bruno Haible  <bruno@clisp.org>
90105
90106         * m4/getdomainname.m4: New file.
90107
90108 2003-09-25  Simon Josefsson  <jas@extundo.com>
90109             Bruno Haible  <bruno@clisp.org>
90110
90111         * lib/getdomainname.h: New file.
90112         * lib/getdomainname.c: New file.
90113
90114 2003-09-25  Karl Berry  <karl@gnu.org>
90115
90116         * lib/argp-fmtstream.c, argp-help.c: update from libc.
90117
90118 2003-09-25  Karl Berry  <karl@gnu.org>
90119
90120         * config/install-sh: update from automake.
90121
90122 2003-09-25  Bruno Haible  <bruno@clisp.org>
90123
90124         * modules/version-etc-2: New file, from modules/version-etc with
90125         modifications.
90126         * MODULES.html.sh (func_all_modules): Add version-etc-2.
90127
90128 2003-09-25  Bruno Haible  <bruno@clisp.org>
90129
90130         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
90131         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
90132
90133 2003-09-24  Simon Josefsson  <jas@extundo.com>
90134
90135         * modules/xgethostname: Add xgethostname.h.
90136
90137 2003-09-24  Paul Eggert  <eggert@twinsun.com>
90138
90139         * lib/linebuffer.c (freebuffer): Don't free the argument, just
90140         the buffer associated with the argument.  Bug reported by
90141         Simon Josefsson.
90142
90143 2003-09-24  Paul Eggert  <eggert@twinsun.com>
90144
90145         * README: Document assumptions that 'int' is at least 32 bits
90146         wide, that integer arithmetic is 2's complement without overflow,
90147         that there are no holes in integer values, that adding sizes of
90148         two nonoverlapping objects can't overflow, and that all-bits-zero
90149         yields scalar zero.  Fix spelling and capitalization typos.
90150
90151 2003-09-19  Karl Berry  <karl@gnu.org>
90152
90153         * lib/argp.h: update from libc.
90154
90155 2003-09-17  Paul Eggert  <eggert@twinsun.com>
90156
90157         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
90158         to avoid spurious warnings like "AC_RUN_IFELSE was called before
90159         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
90160
90161 2003-09-17  Paul Eggert  <eggert@twinsun.com>
90162
90163         * gnulib-tool: Use "test -h", not "test -L", for portability
90164         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
90165         (tags_regexp): Remove, since \| doesn't conform to POSIX.
90166         (sed_extract_prog): Issue s commands one-by-one, rather than
90167         using \| in one s command.
90168
90169 2003-09-16  Paul Eggert  <eggert@twinsun.com>
90170
90171         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
90172         input error, instead of returning NULL the next time we are called
90173         (and therefore losing track of errno).
90174
90175 2003-09-16  Bruno Haible  <bruno@clisp.org>
90176
90177         * gnulib-tool (func_create_testdir): Warn about duplicated
90178         dependencies.
90179
90180 2003-09-15  Paul Eggert  <eggert@twinsun.com>
90181
90182         * modules/argmatch, modules/fatal, modules/obstack,
90183         modules/xalloc, modules/xgethostname: Sort dependencies by
90184         importance, not alphabetically.
90185
90186 2003-09-15  Paul Eggert  <eggert@twinsun.com>
90187
90188         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
90189         fails, so that the caller gets the proper errno.
90190
90191         * lib/readutmp.c (read_utmp): Likewise.
90192         Check for fstat error.  Close stream and free storage
90193         when failing.
90194
90195 2003-09-14  Karl Berry  <karl@gnu.org>
90196
90197         * config/srclist.txt (strdup.c): disable for c89 changes.
90198
90199 2003-09-14  Jim Meyering  <jim@meyering.net>
90200
90201         * lib/getloadavg.c: Correct cpp indentation.
90202         * lib/strdup.c: Likewise.
90203         * lib/vasnprintf.c: Likewise.
90204
90205 2003-09-14  Bruno Haible  <bruno@clisp.org>
90206
90207         * modules/fwriteerror: New file.
90208         * MODULES.html.sh (func_all_modules): Add fwriteerror.
90209
90210 2003-09-14  Bruno Haible  <bruno@clisp.org>
90211
90212         * lib/fwriteerror.h: New file.
90213         * lib/fwriteerror.c: New file.
90214
90215 2003-09-12  Paul Eggert  <eggert@twinsun.com>
90216
90217         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
90218         modules/xgethostname, modules/xalloc: Depend on exit.
90219
90220 2003-09-12  Paul Eggert  <eggert@twinsun.com>
90221
90222         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
90223
90224         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
90225         and AC_MINIX, too, so that their extensions are available.
90226
90227         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
90228         This macro has been superseded by gl_BACKUPFILE.
90229
90230         More patches to assume C89 or better.
90231
90232         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
90233
90234         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
90235         unconditionally.
90236         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
90237         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
90238         Include <string.h>, <stdlib.h> unconditionally.
90239         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
90240         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
90241         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
90242         headers or for string.h.
90243         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
90244         or strtoul.
90245
90246         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
90247         headers.
90248         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
90249         * m4/userspec.m4 (gl_USERSPEC): Likewise.
90250         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
90251         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
90252         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
90253         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
90254         memcpy, memset.
90255         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
90256         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
90257         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
90258         strtol.
90259         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
90260         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
90261         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
90262         strtoul.
90263
90264 2003-09-12  Paul Eggert  <eggert@twinsun.com>
90265
90266         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
90267         * lib/obstack.c [!defined _LIBC]: Likewise.
90268         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
90269         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
90270         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
90271
90272         More changes to assume C89 or better.
90273
90274         * lib/error.c (error_tail): Assume vprintf.
90275
90276         * lib/argmatch.c (getenv): Remove decl.
90277         * lib/progreloc.c (get_full_program_name): Define via prototype.
90278         * lib/setenv.c (clearenv): Likewise.
90279         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
90280         needed.
90281         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
90282         (malloc, memcpy): Remove decls.
90283         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
90284         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
90285         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
90286         (memcpy): Remove macro.
90287         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
90288         (__P): Remove.  All uses removed.
90289         (PTR): Remove.  All uses changed to void *.
90290         (CHAR_BIT, NULL): Remove.
90291         (spaces, zeros, memset_space, memset_zero)
90292         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
90293         Remove.
90294         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
90295         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
90296         Define with prototype.
90297         Remove now-unnecessary prototype decl.
90298         (extra_args_spec): Assume ANSI C.  All uses changed.
90299         (extra_args_spec_iso): Remove.
90300         (my_strftime, emacs_strftimeu): Define via prototype.
90301         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
90302         unconditionally.
90303         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
90304         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
90305         (strtoul, strtol): Remove decls.
90306         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
90307         LONG_MAX): Remove.
90308         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
90309         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
90310         (LOCALE_PARAM_PROTO): New macro.
90311         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
90312         (INTERNAL (strtol), strtol): Define with a prototype.
90313         (PARAMS): Remove.  All uses removed.
90314         * lib/tempname.c: Include <string.h> unconditionally.
90315         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
90316         * lib/xgethostname.c (main): Define with a prototype.
90317         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
90318         Include <stdlib.h> unconditionally.
90319         (calloc, malloc, realloc, free): Remove decls.
90320         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
90321         Include <stdlib.h> unconditionally.  Sort include file names.
90322         (strtod): Remove.
90323         (xstrtod): Define with a prototype.
90324         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
90325         (strtol, strtoul): Remove decls.
90326
90327 2003-09-11  Paul Eggert  <eggert@twinsun.com>
90328
90329         More patches to assume C89 or better.
90330         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
90331         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
90332         string.h, memchr, STDC_HEADERS.
90333
90334 2003-09-11  Paul Eggert  <eggert@twinsun.com>
90335
90336         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
90337         Include <stdlib.h>, <string.h> unconditionally.
90338         Remove now-unnecessary cast to char *.
90339         * lib/strnlen.c: Include <string.h> unconditionally.
90340         * lib/yesno.c (yesno): Define with a prototype.
90341
90342 2003-09-11  Bruno Haible  <bruno@clisp.org>
90343
90344         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
90345
90346 2003-09-10  Jim Meyering  <jim@meyering.net>
90347
90348         * lib/error.c: Correct indentation of cpp directives.
90349
90350 2003-09-10  Bruno Haible  <bruno@clisp.org>
90351
90352         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
90353         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
90354         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
90355         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
90356         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
90357         <stdlib.h> and <string.h> checks.
90358         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
90359         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
90360
90361 2003-09-10  Bruno Haible  <bruno@clisp.org>
90362
90363         * lib/strcspn.c: Include <string.h> unconditionally.
90364         * lib/strpbrk.c: Include <string.h> unconditionally.
90365         * lib/strstr.c: Include <string.h> unconditionally.
90366         * lib/unicodeio.c: Include <string.h> unconditionally.
90367         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
90368         * lib/unsetenv.c: Likewise.
90369         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
90370         * lib/yesno.c: Include <stdlib.h> unconditionally.
90371         (rpmatch): Add prototype.
90372
90373 2003-09-09  Paul Eggert  <eggert@twinsun.com>
90374
90375         More patches to assume C89 or better.
90376         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
90377         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
90378         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
90379         or for string.h.
90380         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
90381         stdlib.h.
90382         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
90383         C headers.
90384         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
90385         string.h.
90386         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
90387         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
90388         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
90389         or for string.h.
90390         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
90391         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
90392         C headers.
90393         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
90394         memcpy.
90395         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
90396         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
90397         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
90398         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
90399         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
90400         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
90401         string.h, free.
90402         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
90403         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
90404         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
90405         C headers, or for string.h.
90406         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
90407         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
90408         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
90409         headers, memory.h, stdlib.h, string.h, strings.h.
90410         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
90411         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
90412         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
90413         strchr.
90414         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
90415         headers, memory.h, string.h.
90416         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
90417         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
90418         free.
90419         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
90420         headers.
90421         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
90422         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
90423         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
90424         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
90425         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
90426
90427 2003-09-09  Paul Eggert  <eggert@twinsun.com>
90428
90429         More K&R removal.
90430
90431         * lib/acosl.c (main): Use a prototype.
90432         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
90433         tanl.c: Likewise.
90434
90435         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
90436
90437         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
90438         (getopt, etopt_long, getopt_long_only, _getopt_internal)
90439         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
90440         with a prototype.
90441         * lib/getopt.c (const): Remove macro.
90442         Include <string.h> unconditionally.
90443         (my_index): Remove; all uses changed to strchr.
90444         (strlen): Remove decl.
90445         (exchange): Remove forward decl; no longer needed.
90446         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
90447         Define with prototype.
90448         * lib/getopt1.c (const): Remove macro.
90449         (getopt_long, getopt_long_only, main): Define with prototype.
90450
90451         * lib/getugroups.c: Include <string.h> unconditionally.
90452
90453         * lib/getusershell.c: Include <stdlib.h> unconditionally.
90454         (getusershell, setusershell, endusershell, readname, main):
90455         Define with prototypes.
90456
90457         * lib/group-member.c: Include group-member.h first.
90458         Include <stdlib.h> unconditionally.
90459
90460         * lib/hard-locale.c: Include hard-locale.h first.
90461         Include <stdlib.h>, <string.h> unconditionally.
90462
90463         * lib/hash.c (free, malloc): Remove decls.
90464         Include <stdlib.h> unconditionally.
90465
90466         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
90467         (getenv): Do not declare.
90468
90469         * lib/idcache.c: Include <string.h> unconditionally.
90470
90471         * lib/long-options.c: Include long-options.h first, to test interface.
90472         Include <stdlib.h> unconditionally.
90473
90474         * lib/makepath.c: Include makepath.h first, to test interface.
90475         Include <stdlib.h> and <string.h> unconditionally.
90476
90477         * lib/linebuffer.c: Include <stdlib.h>.
90478         (free): Remove decl.
90479
90480         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
90481         stddef.h. rpl_malloc returns void *, not char *.
90482         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
90483         prototype.
90484
90485         * lib/md5.h: Include <limits.h> unconditionally.
90486         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
90487         (__P): Remove; all uses removed.
90488         * lib/md5.c: Include "md5.h" first.
90489         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
90490         md5_buffer, md5_process_bytes, md5_process_block):
90491         Define with prototypes.
90492         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
90493         * lib/sha.c: Include "sha.h" first.
90494         Include <stdlib.h>, <string.h> unconditionally.
90495
90496         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
90497         * lib/memcmp.c (__ptr_t): Likewise.
90498         * lib/memrchr.c (__ptr_t): Likewise.
90499         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
90500         Include <string.h> unconditionally.
90501         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
90502         * lib/memchr.c: Include <stdlib.h> unconditionally.
90503         * lib/memchr.c (LONG_MAX): Remove.
90504         * lib/memrchr.c (LONG_MAX): Likewise.
90505         * lib/memchr.c (__memchr): Define via a prototype.
90506         * lib/memrchr.c (__memrchr): Likewise.
90507         * lib/memcmp.c (__P): Remove, and remove all uses.
90508         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
90509         Remove forward decls; no longer needed.
90510         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
90511         Use types required by C89 in prototype.
90512
90513         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
90514         * lib/savedir.c: Likewise.
90515         * lib/mkdir.c (free): Remove decl.
90516         * lib/rmdir.c (rmdir): Define with a prototype.
90517         * lib/savedir.c: Include savedir.h first, to test interface.
90518
90519         * lib/mktime.c (STDC_HEADERS): Remove.
90520         Include <stdlib.h>, <string.h> unconditionally.
90521
90522         * lib/modechange.c: Include <stdlib.h> unconditionally.
90523         (malloc): Remove decl.
90524
90525         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
90526         (free): Remove decl.
90527
90528         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
90529         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
90530         (This type really should be intptr_t, but that's a C99ism.)
90531         (_obstack_memcpy): Remove: all uses changed to memcpy.
90532         Include <string.h> unconditionally.
90533         (struct obstack): Assume __STDC__ for types of members
90534         chunkfun, freefun, extra_arg.
90535         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
90536         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
90537         obstack_begin, obstack_specify_allocation,
90538         obstack_specify_allocation_with_arg, obstack_chunkfun,
90539         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
90540         Remove unprototyped decls and the macros that use them.
90541         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
90542         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
90543         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
90544         (defined __STDC__ && __STDC__)]:
90545         Remove nonprototyped code.
90546         Include <stdlib.h> unconditionally.
90547         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
90548         _obstack_allocated_p, _obstack_free, obstack_free,
90549         _obstack_memory_used, print_and_abort):
90550         Define using prototypes.
90551         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
90552         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
90553         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
90554         obstack_next_free, obstack_object_size, obstack_room) [0]:
90555         Remove unused, unprototyped code.
90556
90557         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
90558
90559         * lib/physmem.c (physmem_total, physmem_available, main): Define
90560         with prototypes.
90561
90562         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
90563         (main): Define with a prototype.
90564
90565         * lib/posixver.c (getenv): Remove decl.
90566
90567         * lib/putenv.c (malloc): Returns void *, not char *.
90568         Include <string.h> unconditionally.
90569         (strchr, memcpy, NULL): Do not define.
90570
90571         * lib/readtokens.c: Include readtokens.h first, to test interface.
90572         Include <stdlib.h>, <string.h> unconditionally.
90573         (init_tokenbuffer): Define with a prototype.
90574
90575         * lib/regex.c (PARAMS): Remove.  All uses removed.
90576         All uses of _RE_ARGS removed, too.
90577         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
90578         unconditionally.
90579         (bzero): Assume memset exists.
90580         (memcmp, memcpy, NULL): Remove.
90581         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
90582         char, or assignments to local vars of type signed char.
90583         (init_syntax_once, PREFIX(extract_number_and_incr),
90584         PREFIX(print_partial_compiled_pattern),
90585         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
90586         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
90587         PREFIX(regex_grow_registers), PREFIX(regex_compile),
90588         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
90589         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
90590         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
90591         wcs_compile_range, byte_compile_range, truncate_wchar,
90592         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
90593         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
90594         count_mbs_length, wcs_re_match_2_internal,
90595         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
90596         PREFIX(alt_match_null_string_p),
90597         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
90598         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
90599         regfree, PREFIX(extract_number)): Define with prototype.  Remove
90600         now-unnecessary declaration, if any.
90601         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
90602         regcomp, regexec):
90603         Remove now-unnecessary casts among pointer types.
90604         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
90605
90606         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
90607         (free): Remove decl.
90608
90609         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
90610
90611         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
90612         (free): Remove decl.
90613
90614         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
90615         * lib/xgetcwd.c: Likewise.
90616
90617         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
90618         (free): Remove decl.
90619
90620         * lib/strchrnul.c (strchrnul): Define with a prototype.
90621         Fix bug: c_in was not converted to char before searching.
90622
90623         The following changes are not K&R related:
90624
90625         * lib/group-member.h: Include <sys/types.h>, so that this file is
90626         self-contained.
90627         * lib/makepath.h: Likewise.
90628
90629         * lib/getusershell.c (readname, default_index, line_size, readname):
90630         Use size_t, not int, for sizes.
90631         (readname): If the size overflows, report an error instead of
90632         looping forever.
90633
90634 2003-09-09  Paul Eggert  <eggert@twinsun.com>
90635
90636         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
90637         libc.
90638
90639 2003-09-09  Paul Eggert  <eggert@twinsun.com>
90640
90641         * README: New section: portability guidelines.
90642
90643 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
90644
90645         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
90646         C89 spec.
90647
90648 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
90649
90650         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
90651
90652 2003-09-08  Paul Eggert  <eggert@twinsun.com>
90653
90654         Assume C89 or better; remove K&R cruft.
90655         A few of these changes were first proposed by Derek Robert Price
90656         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
90657
90658         * lib/addext.c: Include <string.h> unconditionally.
90659         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
90660         Don't declare getenv or malloc.
90661
90662         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
90663         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
90664         (NULL): Remove.
90665         (find_stack_direction, alloca): Use prototypes.
90666
90667         * lib/atexit.c (atexit): Define using a prototype.
90668
90669         * lib/basename.c, dirname.c, stripslash.c:
90670         Include <string.h> unconditionally.
90671
90672         * lib/bcopy.c: Include <stddef.h>.
90673         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
90674
90675         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
90676
90677         * lib/error.h (error, error_at_line, error_print_progname)
90678         [! (defined (__STDC__) && __STDC__)]: Remove decls.
90679         * lib/error.c: Include error.h first, to check interface.
90680         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
90681         (VA_START): Remove; all uses changeed to va_start.
90682         (exit, strerror): Remove decls.
90683         (error_print_progname): Prototype uncondionally.
90684         Don't include <errno.h>; no longer needed.
90685         (private_strerror): Remove.
90686         (error_tail): Always define.
90687         (error, error_at_line): Assume C89 or better; always use prototypes.
90688         * lib/fatal.c: Include "fatal.h" first, to test interface.
90689         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
90690         (VA_START): Remove; all uses changed to va_start.
90691         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
90692         this case.
90693         (exit): Remove decl.
90694         (fatal): Prototype unconditionally.  Assume va_start works.
90695         Abort at end, to pacify gcc.
90696
90697         * lib/euidaccess.c (main): Define with a prototype.
90698
90699         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
90700
90701         * lib/exitfail.c: Include <stdlib.h> unconditionally.
90702
90703         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
90704         prototypes.
90705         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
90706         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
90707         (getenv): Remove decl.
90708         (fnmatch): Define using a prototype.
90709         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
90710         (FCT): Define using a prototype.
90711
90712         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
90713
90714         * lib/gethostname.c: Include <stddef.h>.
90715         (gethostname): Define with prototype.  Length is size_t, not int.
90716
90717 2003-09-08  Paul Eggert  <eggert@twinsun.com>
90718
90719         Assume C89 or better; remove K&R cruft.
90720         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
90721         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
90722         string.h, getenv, malloc.
90723         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
90724         headers.
90725         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
90726         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
90727         do not check for strerror.
90728         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
90729         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
90730         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
90731         do not check for doprnt or vprintf.
90732         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
90733         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
90734
90735 2003-09-08  Paul Eggert  <eggert@twinsun.com>
90736
90737         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
90738         getversion.c should have been removed then, but was accidentally
90739         preserved.
90740
90741         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
90742         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
90743
90744 2003-09-08  Karl Berry  <karl@gnu.org>
90745
90746         * config/config.sub, config.guess, srclistvars.sh: update from savannah
90747                 config, forget about prep.
90748
90749         * config/depcomp, missing: update from automake.
90750
90751 2003-09-07  Paul Eggert  <eggert@twinsun.com>
90752
90753         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
90754         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
90755
90756 2003-09-07  Paul Eggert  <eggert@twinsun.com>
90757
90758         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
90759         copy_tm_result.  Bug reported by Simon Josefsson in
90760         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
90761
90762 2003-09-06  Paul Eggert  <eggert@twinsun.com>
90763
90764         * m4/time_r.m4: New file.
90765         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
90766         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
90767         is. Check for timegm declaration.
90768         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
90769         Do not check for gmtime_r.
90770         Replace mktime if __mktime_internal does not exist and if mktime
90771         hasn't been replaced already.
90772
90773 2003-09-06  Paul Eggert  <eggert@twinsun.com>
90774
90775         * lib/time_r.c, lib/time_r.h: New files.
90776
90777         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
90778         __localtime_r.
90779         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
90780         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
90781
90782         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
90783         __gmtime_r.
90784         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
90785         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
90786         Include <time_r.h>.
90787
90788         * lib/timegm.c: Switch to glibc implementation, with the following
90789         changes:
90790         [defined HAVE_CONFIG_H]: Include <config.h>.
90791         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
90792         (__mktime_internal) [!defined _LIBC]: New decl.
90793         (__gmtime_r) [!defined _LIBC]: New macro and function.
90794         (timegm): Use a prototype, since gnulib assumes C89.
90795         Do not bother declaring tmp to be const, as it's not really usefu.
90796         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
90797         (timegm): Declare only if HAVE_DECL_TIMEGM.
90798
90799 2003-09-06  Paul Eggert  <eggert@twinsun.com>
90800
90801         * MODULES.html.sh (func_all_modules): Add time_r.
90802         * modules/time_r: New file.
90803         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
90804         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
90805
90806 2003-09-03  Paul Eggert  <eggert@twinsun.com>
90807
90808         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
90809         Bug reported by Lute Kamstra in
90810         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
90811
90812         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
90813         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
90814         course with correspondingly smaller numbers for tomorrow and
90815         yesterday.  From Tadayoshi Funaba.  Originally installed into
90816         sh-utils on 1999-08-07, but the patch got lost (I guess during the
90817         coreutils merge?).
90818
90819 2003-08-31  Simon Josefsson  <jas@extundo.com>
90820
90821         * modules/timegm: New file.
90822         * MODULES.html.sh (func_all_modules): Add timegm.
90823
90824 2003-08-31  Simon Josefsson  <jas@extundo.com>
90825
90826         * m4/timegm.m4: New file.
90827
90828 2003-08-31  Simon Josefsson  <jas@extundo.com>
90829
90830         * lib/timegm.h: New file.
90831         * lib/timegm.c: New file.  Based on
90832         wget-1.8.2/src/http.c:mktime_from_utc.
90833
90834 2003-08-31  Karl Berry  <karl@gnu.org>
90835
90836         * lib/argp.h: update from libc.
90837
90838 2003-08-28  Bruno Haible  <bruno@clisp.org>
90839
90840         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
90841         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
90842         followed by '#define fnmatch fnmatch_posix' gives an error.
90843
90844 2003-08-28  Bruno Haible  <bruno@clisp.org>
90845
90846         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
90847         warning on QNX, which defines O_BINARY to 000000.
90848
90849 2003-08-27  Jim Meyering  <jim@meyering.net>
90850
90851         * m4/mkstemp.m4: Require that the system mkstemp be able to create
90852         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
90853         would fail after 32.  Reported by Danny Levinson.  Details here:
90854         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
90855
90856 2003-08-24  Bruno Haible  <bruno@clisp.org>
90857
90858         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
90859         MSVC7 <stdio.h> is included later.
90860
90861 2003-08-22  Simon Josefsson  <jas@extundo.com>
90862
90863         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
90864
90865 2003-08-20  Karl Berry  <karl@gnu.org>
90866
90867         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
90868
90869 2003-08-20  Bruno Haible  <bruno@clisp.org>
90870
90871         * modules/progname: New file.
90872         * MODULES.html.sh (func_all_modules): Add progname.
90873
90874 2003-08-20  Bruno Haible  <bruno@clisp.org>
90875
90876         * lib/progname.h: New file, from GNU gettext.
90877         * lib/progname.c: New file, from GNU gettext.
90878         * lib/progreloc.c: New file, from GNU gettext.
90879
90880 2003-08-19  Jim Meyering  <jim@meyering.net>
90881
90882         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
90883         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
90884
90885 2003-08-19  Bruno Haible  <bruno@clisp.org>
90886
90887         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
90888         more.
90889
90890 2003-08-19  Bruno Haible  <bruno@clisp.org>
90891
90892         * lib/xstrdup.c: Assume <string.h> exists.
90893
90894 2003-08-18  Paul Eggert  <eggert@twinsun.com>
90895
90896         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
90897         in makefile rules.
90898
90899 2003-08-18  Jim Meyering  <jim@meyering.net>
90900
90901         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
90902         * m4/lib-ld.m4: Likewise.
90903
90904 2003-08-18  Jim Meyering  <jim@meyering.net>
90905
90906         * lib/setenv.h: Indent nested cpp directive.
90907         * lib/vasnprintf.c: Remove trailing blanks.
90908
90909 2003-08-17  Simon Josefsson  <jas@extundo.com>
90910
90911         * modules/xstrndup: New file.
90912         * MODULES.html.sh (func_all_modules): Add xstrndup.
90913
90914 2003-08-17  Simon Josefsson  <jas@extundo.com>
90915
90916         * modules/argp: Fix autoconf macro name. Add more dependencies.
90917
90918 2003-08-17  Simon Josefsson  <jas@extundo.com>
90919
90920         * m4/xstrndup.m4: New file.
90921
90922 2003-08-17  Simon Josefsson  <jas@extundo.com>
90923
90924         * m4/argp.m4: New file.
90925
90926 2003-08-17  Simon Josefsson  <jas@extundo.com>
90927             Bruno Haible  <bruno@clisp.org>
90928
90929         * lib/xstrndup.h: New file.
90930         * lib/xstrndup.c: New file.
90931
90932 2003-08-17  Bruno Haible  <bruno@clisp.org>
90933
90934         * modules/strndup (Files, Include): Add lib/strndup.h.
90935
90936 2003-08-17  Bruno Haible  <bruno@clisp.org>
90937
90938         * modules/euidaccess (Files): Add lib/euidaccess.h.
90939
90940 2003-08-17  Bruno Haible  <bruno@clisp.org>
90941
90942         * lib/strndup.h: New file.
90943
90944 2003-08-17  Bruno Haible  <bruno@clisp.org>
90945
90946         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
90947         like AC_GNU_SOURCE.
90948         * modules/extensions (configure.ac): Comment out the invocation of
90949         gl_USE_SYSTEM_EXTENSIONS.
90950
90951 2003-08-16  Paul Eggert  <eggert@twinsun.com>
90952
90953         Merges from coreutils, etc.
90954         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
90955         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
90956         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
90957         fixing a typo.
90958         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
90959         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
90960
90961 2003-08-16  Paul Eggert  <eggert@twinsun.com>
90962
90963         Document merge from coreutils.
90964         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
90965         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
90966         * modules/utime: Add m4/utimes-null.m4.
90967
90968 2003-08-16  Paul Eggert  <eggert@twinsun.com>
90969
90970         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
90971         space, undoing this 2003-08-12 change:
90972         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
90973
90974 2003-08-16  Paul Eggert  <eggert@twinsun.com>
90975
90976         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
90977         strtoul.c from libc, undoing this 2003-08-12 change:
90978         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
90979
90980 2003-08-16  Jim Meyering  <jim@meyering.net>
90981
90982         Merges from coreutils.
90983         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
90984         prefix.  Adjust cache variables similarly.  Create 500 rather than
90985         just 300 files, to exercise bug on Darwin6.5, too.
90986         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
90987         $missing_dir.
90988         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
90989         AM_SYS_POSIX_TERMIOS.
90990         Reported by mkc@mathdogs.com.
90991         Also change use of $am_cv_sys_posix_termios
90992         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
90993         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
90994         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
90995         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
90996         in /proc/mounts until it finds one with matching device number.  This
90997         is unnecessary when the FILE argument *is* a mount point.  No stat call
90998         is necessary in that case.  So, disable the statvfs-testing code on
90999         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
91000         as RedHat bug# 84846.
91001         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
91002         to 1MB, so as not to render systems with no stack size limit (e.g.,
91003         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
91004         Include <unistd.h>.  On some systems,
91005         it is required for the definition of _SC_PAGESIZE.
91006
91007 2003-08-16  Jim Meyering  <jim@meyering.net>
91008
91009         Merge from coreutils.
91010         * lib/xstrtoimax.c: #else #if -> #elif.
91011         * lib/xstrtoumax.c: Likewise.
91012
91013 2003-08-16  Jim Meyering  <jim@meyering.net>
91014
91015         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
91016         * m4/utimes.m4: Removed.
91017         * m4/utimes-null.m4: Renamed from utimes.m4.
91018
91019         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
91020         to 1MB, so as not to render systems with no stack size limit (e.g.,
91021         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
91022         Include <unistd.h>.  On some systems,
91023         it is required for the definition of _SC_PAGESIZE.
91024
91025 2003-08-16  Jim Meyering  <jim@meyering.net>
91026         and Paul Eggert  <eggert@cs.ucla.edu>
91027
91028         Merges from coreutils, etc.
91029
91030         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
91031         using the latest version from cvs.  This avoids problems with #line
91032         directives using a vendor (Sun) compiler.
91033         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
91034         Don't set GETGROUPS_LIB here; now it's
91035         done via getgroups.m4's wrapper function.
91036         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
91037         rather than just in sh-util/configure.in, so that the
91038         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
91039         same.
91040         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
91041         AC_FUNC_GETLOADAVG where to find getloadavg.c.
91042         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
91043         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
91044         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
91045         Remove code that is now done by the newly-required macros.
91046         Append $(EXEEXT) to DF_PROG.
91047         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
91048         Do not invoke or require the following here,
91049         since prereq.m4 or some gnulib .m4 now does this for us:
91050         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
91051         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
91052         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
91053         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
91054         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
91055         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
91056         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
91057         AC_FUNC_OBSTACK.
91058         Do not replace the following functions, as this is now the job
91059         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
91060         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
91061         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
91062         atexit getpass, strdup, getpagesize.
91063         Replace 'raise'.
91064         Do not check for the following functions, as this is now the job
91065         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
91066         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
91067         setregid.
91068         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
91069         Check for sys/sysctl.h.
91070         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
91071         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
91072         of checking for ssize_t ourselves.
91073
91074         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
91075         Require every macro that gnulib/modules/* suggests for us.
91076         (jm_PREREQ_ADDEXT): New macro.
91077         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
91078         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
91079
91080         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
91081         (gl_PHYSMEM): Use it.
91082         Also check for `table' function.
91083         Check for new headers and functions.
91084         Add check for sys/sysmp.h.
91085         With suggestions from Kaveh Ghazi.
91086         Ignore headers that are present but cannot be compiled.  This
91087         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
91088         C 5.4.
91089
91090 2003-08-15  Paul Eggert  <eggert@twinsun.com>
91091
91092         Document merge from coreutils.
91093         * modules/userspec: Depend on posixver.
91094         * modules/strftime: Depend on tzset.
91095
91096 2003-08-15  Paul Eggert  <eggert@twinsun.com>
91097
91098         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
91099         rather than tab, after '#' in shell-script copyright notices.
91100         Suggested by Bruno Haible.
91101
91102 2003-08-15  Paul Eggert  <eggert@twinsun.com>
91103
91104         * config/srclist-update: Use three spaces, rather than tab, after '#'
91105         in shell-script copyright notices.  Suggested by Bruno Haible.
91106         Remove unnecessary parenthesization in regular expression.
91107
91108 2003-08-15  Jim Meyering  <jim@meyering.net>
91109
91110         Merge from coreutils.
91111         * lib/xgethostname.c: Include <stdlib.h>.
91112         (xghostname): Don't exit for anything other than memory-related
91113         failure; just return NULL.
91114         * lib/userspec.c: Include "posixver.h".
91115         (parse_user_spec): Accept `.' as a separator only
91116         in pre-POSIX-200112 mode.
91117         * lib/strtoimax.c: Use #elif rather than #else #if.
91118         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
91119         Remove function, now that we can rely on a working tzset function.
91120         [!_LIBC]: Ensure that the required autoconf test has been run.
91121         [!defined _NL_CURRENT && HAVE_STRFTIME]:
91122         Use underlying_strftime for %r.
91123         * lib/sha.c: Merge in some clean-up and optimization changes from
91124         glibc.
91125         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
91126         Ensure that it is a multiple of 64.
91127         Rearrange loop exit tests so as to avoid performing an
91128         additional fread after encountering an error or EOF.
91129         * lib/realloc.c: Update copyright date.
91130
91131 2003-08-15  Jim Meyering  <jim@meyering.net>
91132         and Paul Eggert  <eggert@twinsun.com>
91133
91134         Merge from coreutils.
91135         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
91136         member but strut utmpx does not.  Needed for AIX 4.3.3.
91137         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
91138
91139 2003-08-15  Jim Meyering  <jim@meyering.net>
91140         and Paul Eggert  <eggert@cs.ucla.edu>
91141
91142         Merges from coreutils, etc.
91143         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
91144         Require gl_FUNC_TZSET_CLOBBER.
91145         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
91146         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
91147         members.
91148
91149 2003-08-14  Paul Eggert  <eggert@twinsun.com>
91150
91151         Help the merge from coreutils.
91152         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
91153         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
91154         * m4/tzset.m4: Use it too.
91155
91156 2003-08-14  Paul Eggert  <eggert@twinsun.com>
91157
91158         * modules/tzset: New file.
91159
91160 2003-08-14  Jim Meyering  <jim@meyering.net>
91161
91162         Merges from coreutils.
91163         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
91164         variable names, rather than @FNMATCH_H@.
91165         * modules/alloca: Likewise for $(ALLOCA_H).
91166
91167         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
91168         the three copies of the literal target, `fnmatch.h'.
91169         * modules/alloca (alloca.h): Likewise.
91170
91171 2003-08-14  Jim Meyering  <jim@meyering.net>
91172
91173         Merge from coreutils.
91174         * m4/tzset.m4: New file.
91175         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
91176         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
91177         otherwise, AIX 5.1 systems would end up using the latter.
91178         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
91179         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
91180         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
91181         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
91182
91183 2003-08-14  Jim Meyering  <jim@meyering.net>
91184
91185         Merge from coreutils.
91186         * lib/obstack.h: Whitespace changes.
91187         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
91188         and xcalloc return values.
91189         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
91190         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
91191         hang on OSF/1 5.1 for DIR on both local and remote file systems.
91192         Reported by (and fix confirmed by) Nelson H. F. Beebe.
91193         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
91194         error from mntctl.
91195         Use mntctl's return value to drive the entry-processing loop, since
91196         we can't rely on the value of the vmt_length member in the last
91197         entry.  On some systems doing so could result in exhausting
91198         virtual memory.  Based in part on a patch from Mike Jetzer.
91199
91200 2003-08-14  Jim Meyering  <jim@meyering.net>
91201         and Paul Eggert  <eggert@twinsun.com>
91202
91203         Merges from coreutils, plus other fixes.
91204         * lib/physmem.c: Merge in portability changes from gcc/libiberty
91205         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
91206         for credits and details.  Thanks to Kaveh Ghazi for helping
91207         to keep these files in sync.
91208         (ARRAY_SIZE): Define it.
91209         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
91210         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
91211         (memcasecmp): Don't assume size_t fits in unsigned int.
91212         Remove casts and duplicate code.
91213         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
91214         (memcpy): Remove definition.
91215         Merge in some clean-up and optimization changes from glibc.
91216         [BLOCKSIZE]: Move definition to top of file.
91217         Ensure that it is a multiple of 64.
91218         Rearrange loop exit tests so as to avoid performing an
91219         additional fread after encountering an error or EOF.
91220         * lib/md5.h (md5_uintptr): Define.
91221         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
91222         return to the initial working directory.  Preserve errno
91223         for caller.
91224         * lib/idcache.c: Include "xalloc.h".
91225         (xmalloc, xrealloc): Remove decls.
91226         (getuser): Remove casts no longer required in C89.
91227         * lib/human.c: Include stdio.h, for sprintf.
91228         * lib/group-member.c: Include "xalloc.h".
91229         (xmalloc, xrealloc): Remove decls.
91230         (get_group_info): Remove casts no longer required in C89.
91231         * lib/getusershell.c (readname): Remove casts no longer required in
91232         C89.
91233         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
91234         * lib/getline.c: Whitespace fix, from coreutils.
91235
91236 2003-08-13  Paul Eggert  <eggert@twinsun.com>
91237
91238         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
91239         Check for isascii.
91240
91241         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
91242         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
91243         Undo previous (whitespace-only) change.
91244
91245 2003-08-13  Paul Eggert  <eggert@twinsun.com>
91246
91247         * lib/exclude.c: Include <ctype.h>
91248         (IN_CTYPE_DOMAIN): New macro.
91249         (is_space): New fn.
91250         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
91251         and empty lines.
91252
91253         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
91254         Undo previous (whitespace-only) change.
91255
91256 2003-08-13  Paul Eggert  <eggert@twinsun.com>
91257
91258         * config/srclist-update: Change update back to the old behavior,
91259         leaving whitespace alone.  Use one 'sed' command rather than a
91260         pipeline.
91261         (fixlicense): Now a variable, not a function.
91262         (remove_trailing_blanks): Remove.
91263         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
91264         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
91265         Undo previous (whitespace-only) change.
91266
91267 2003-08-12  Paul Eggert  <eggert@twinsun.com>
91268
91269         Merge from coreutils.
91270         * modules/euidaccess: Add lib_SOURCES, include for new
91271         file euidaccess.h
91272
91273 2003-08-12  Paul Eggert  <eggert@twinsun.com>
91274
91275         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
91276         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
91277         Normalize leading white space and remove trailing white space.
91278
91279         Merge from coreutils
91280         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
91281
91282         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
91283         0.12.1.  These files are now being upgraded automatically by
91284         ../config/srclist-update.
91285
91286 2003-08-12  Paul Eggert  <eggert@twinsun.com>
91287
91288         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
91289         Normalize leading white space and remove trailing white space.
91290         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
91291         notice, as per ../config/srclist-update.
91292
91293         Merge from coreutils.
91294         * lib/euidaccess.h: New file.
91295         * lib/euidaccess.c: Include it.
91296         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
91297         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
91298         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
91299
91300 2003-08-12  Paul Eggert  <eggert@twinsun.com>
91301
91302         * config/srclist-update: Add copyright notice.
91303         (remove_id_lines, remove_trailing_blanks): New constants.
91304         (fixfile): Use them to normalize spacing a bit in copied files.
91305         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
91306         Normalize leading white space and remove trailing white space.
91307
91308         * config/texinfo.tex: Sync with texinfo.
91309
91310         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
91311         strtoul.c from libc, to merge coreutils whitespace changes.
91312
91313         * config/srclist.txt: Get the following m4 files from gettext:
91314         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
91315         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
91316         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
91317         wint_t.m4.
91318
91319 2003-08-12  Karl Berry  <karl@gnu.org>
91320
91321         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
91322         been made.
91323
91324 2003-08-11  Paul Eggert  <eggert@twinsun.com>
91325
91326         * modules/gnu-source, m4/gnu-source.m4:
91327         Remove; we're assuming Autoconf 2.54 or later now.
91328         Suggested by Bruno Haible.
91329         * MODULES.html.sh (func_all_modules): Remove gnu-source.
91330
91331 2003-08-11  Bruno Haible  <bruno@clisp.org>
91332
91333         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
91334
91335 2003-08-11  Bruno Haible  <bruno@clisp.org>
91336
91337         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
91338         (vasnprintf): Use it instead of wcslen.
91339
91340 2003-08-11  Bruno Haible  <bruno@clisp.org>
91341
91342         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
91343         value to ensure that _Bool promotes to int. Use #define for _Bool when
91344         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
91345
91346 2003-08-10  Karl Berry  <karl@gnu.org>
91347
91348         * lib/regex.h: update from libc (whitespace fix).
91349
91350 2003-08-09  Paul Eggert  <eggert@twinsun.com>
91351
91352         Merge some files from coreutils.  These changes were
91353         originally made by Jim Meyering.
91354         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
91355         many older Unixes require this.
91356         * lib/alloca.c (alloca): Remove cast to argument of free;
91357         no longer needed in C89.
91358         * lib/alloca_.h, regex.h: Fix white space to match
91359         what GNU indent does.
91360
91361 2003-08-09  Paul Eggert  <eggert@twinsun.com>
91362
91363         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
91364         apparently Emacs's Unicode mode got confused before my 2003-08-05
91365         checkin.
91366
91367 2003-08-08  Paul Eggert  <eggert@twinsun.com>
91368
91369         * m4/extensions.m4: New file.
91370         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
91371         Require gl_USE_SYSTEM_EXTENSIONS.
91372         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
91373         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
91374
91375 2003-08-08  Paul Eggert  <eggert@twinsun.com>
91376
91377         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
91378         * modules/extensions, modules/gnu-source: New files.
91379         * modules/timespec, modules/unlocked-io: Depend on extensions.
91380
91381 2003-08-07  Paul Eggert  <eggert@twinsun.com>
91382
91383         * modules/restrict: New file.
91384         * MODULES.html.sh (func_all_modules): Add restrict.
91385         * modules/regex: Depend on restrict.
91386
91387 2003-08-07  Paul Eggert  <eggert@twinsun.com>
91388
91389         * m4/restrict.m4: New file.
91390         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
91391
91392 2003-08-07  Bruno Haible  <bruno@clisp.org>
91393
91394         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
91395         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
91396
91397 2003-08-07  Bruno Haible  <bruno@clisp.org>
91398
91399         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
91400         makes the module 'getndelim2' compatible with the module 'getline'.
91401
91402 2003-08-05  Paul Eggert  <eggert@twinsun.com>
91403
91404         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
91405         byte with "\201" to avoid glitches when editing that source file
91406         with multi-gnome-terminal.
91407
91408 2003-08-05  Paul Eggert  <eggert@twinsun.com>
91409
91410         * lib/bumpalloc.h: Remove.
91411
91412 2003-08-05  Paul Eggert  <eggert@twinsun.com>
91413
91414         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
91415         * modules/bumpalloc: Remove.
91416
91417 2003-08-04  Paul Eggert  <eggert@twinsun.com>
91418
91419         * lib/getloadavg.c: Change copyright notice and spacing to conform to
91420         GNU coding style.
91421
91422         Merge from coreutils.
91423         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
91424         1. From glibc.
91425         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
91426         from Karl Berry, implemented by Jim Meyering.
91427         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
91428         from Dmitry V. Levin.
91429         Remove anachronistic cast of xrealloc.
91430         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
91431         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
91432         type. Otherwise, it wouldn't compile with at least /bin/cc on
91433         ymp-cray-unicos9.0.2.X.
91434         Combine two mostly-identical uses of alloca into one.
91435         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
91436
91437 2003-08-04  Dave Love  <d.love@dl.ac.uk>
91438
91439         [From Emacs.]
91440
91441         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
91442         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
91443         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
91444         obsolete NLIST_NAME_UNION.
91445         [__GNU__]: Undef BSD and FSCALE.
91446         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
91447
91448 2003-08-03  Paul Eggert  <eggert@twinsun.com>
91449
91450         * lib/stdbool_.h (_Bool): Make it signed char, instead of
91451         an enum type, so that it's guaranteed to promote to int.  See:
91452         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
91453
91454 2003-08-03  Karl Berry  <karl@gnu.org>
91455
91456         * config/depcomp: update from automake.
91457
91458 2003-07-31  Paul Eggert  <eggert@twinsun.com>
91459
91460         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
91461         (strerror): Don't assume that a printable int fits in 14 bytes.
91462
91463 2003-07-31  Bruno Haible  <bruno@clisp.org>
91464
91465         * modules/getpass-gnu: New file.
91466         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
91467
91468 2003-07-31  Bruno Haible  <bruno@clisp.org>
91469
91470         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
91471
91472 2003-07-24  Karl Berry  <karl@gnu.org>
91473
91474         * config/missing: update from automake.
91475
91476 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
91477             Bruno Haible  <bruno@clisp.org>
91478
91479         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
91480         * lib/getline.c (getline, getdelim): Likewise.
91481         Remove _GNU_SOURCE define; now it's defined in config.h through
91482         m4/getline.m4.
91483
91484 2003-07-23  Karl Berry  <karl@gnu.org>
91485
91486         * config/config.sub: update from prep.
91487
91488 2003-07-22  Paul Eggert  <eggert@twinsun.com>
91489
91490         * modules/xalloc (Depends-on): Add exitfail.
91491         * modules/xmemcoll: Likewise.
91492
91493 2003-07-22  Paul Eggert  <eggert@twinsun.com>
91494
91495         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
91496         over-parenthesization in macros.
91497
91498         Sync with coreutils.
91499
91500         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
91501         required by C99.
91502
91503         Use `exit_failure' for xalloc and xmemcoll instead of their own
91504         private exit-failure variables.
91505         * lib/xalloc.h (xalloc_exit_failure): Remove.
91506         * lib/xmalloc.c: Likewise.  Include exitfail.h.
91507         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
91508         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
91509         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
91510         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
91511
91512 2003-07-20  Jim Meyering  <jim@meyering.net>
91513
91514         * modules/closeout (Depends-on): Add exitfail.
91515         Suggestion from Bruno Haible.
91516
91517 2003-07-19  Karl Berry  <karl@gnu.org>
91518
91519         * config/config.sub: update from prep.
91520
91521 2003-07-18  Paul Eggert  <eggert@twinsun.com>
91522
91523         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
91524         Remove.
91525         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
91526         to test that it can stand by itself.  Include "exitfail.h".
91527         Clients should set exit_failure instead.
91528         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
91529
91530 2003-07-18  Bruno Haible  <bruno@clisp.org>
91531
91532         * modules/getndelim2: New file.
91533         * modules/getline: Share files with module getndelim2.
91534         * modules/getnline: Depend on getndelim2 instead of sharing files with
91535         it. Add getnline.c to lib_SOURCES.
91536         * MODULES.html.sh (func_all_modules): Add getndelim2.
91537
91538 2003-07-18  Bruno Haible  <bruno@clisp.org>
91539
91540         * m4/getndelim2.m4: New file.
91541         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
91542         invoke gl_PREREQ_GETNDELIM2.
91543         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
91544         gl_PREREQ_GETNDELIM2.
91545         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
91546         gl_GETNDELIM2.
91547
91548 2003-07-18  Bruno Haible  <bruno@clisp.org>
91549
91550         * lib/getndelim2.h: New file.
91551         * lib/getndelim2.c: Make into a module of its own. Include config.h,
91552         getndelim2.h.
91553         (getndelim2): Make non-static. Change return type to ssize_t.
91554         * lib/getline.h: Change argument names.
91555         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
91556         * lib/getnline.c: Include getndelim2.h.
91557
91558 2003-07-18  Andreas Schwab  <schwab@suse.de>
91559
91560         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
91561
91562 2003-07-17  Karl Berry  <karl@gnu.org>
91563
91564         * config/config.sub: update from prep.
91565
91566 2003-07-17  Bruno Haible  <bruno@clisp.org>
91567
91568         * modules/getnline: New file.
91569         * modules/getline: Add lib/getndelim2.c to source file list.
91570         * MODULES.html.sh (func_all_modules): Add getnline.
91571
91572 2003-07-17  Bruno Haible  <bruno@clisp.org>
91573
91574         * m4/getnline.m4: New file.
91575
91576 2003-07-17  Bruno Haible  <bruno@clisp.org>
91577
91578         * m4/Makefile.am.in: Remove file.
91579         * m4/Makefile.am: Remove file.
91580         * m4/Makefile.in: Remove file.
91581
91582 2003-07-17  Bruno Haible  <bruno@clisp.org>
91583
91584         * lib/getnline.h: New file.
91585         * lib/getnline.c: New file.
91586         * lib/getndelim2.c: New file, extracted from getline.c.
91587         (getndelim2): Renamed from getdelim2, with added nmax argument.
91588         * lib/getline.c: Include getndelim2.c.
91589         (getdelim2): Moved out to getndelim2.c.
91590         (getline, getdelim): Update.
91591
91592 2003-07-17  Bruno Haible  <bruno@clisp.org>
91593
91594         * lib/Makefile.am: Remove file.
91595         * lib/Makefile.in: Remove file.
91596
91597 2003-07-17  Bruno Haible  <bruno@clisp.org>
91598
91599         * configure.in: Remove file.
91600         * Makefile.in: Remove file.
91601
91602 2003-07-17  Bruno Haible  <bruno@clisp.org>
91603
91604         * MODULES.html.sh: Put the </BODY> right before </HTML>.
91605
91606 2003-07-16  Karl Berry  <karl@gnu.org>
91607
91608         * config/srclist-update: was running fixlicense twice, which caused
91609                 texinfo.tex to be nullified for some reason.  Simplify,
91610                 $gplsrc is no longer needed as far as I can see?
91611
91612 2003-07-16  Jim Meyering  <jim@meyering.net>
91613
91614         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
91615
91616 2003-07-15  Paul Eggert  <eggert@twinsun.com>
91617
91618         * config/srclist.txt: Get the following files from gettext-runtime/intl
91619         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
91620         ref-del.sin.  From Bruno Haible.
91621         * config/srclist-update (fixfile): Change grep pattern again, since the
91622         previous fix didn't work (there was another trailing $).  Use
91623         '[$]' to escape the $s.
91624
91625 2003-07-15  Karl Berry  <karl@gnu.org>
91626
91627         * lib/vasnprintf.c: update from gettext.
91628
91629 2003-07-15  Karl Berry  <karl@gnu.org>
91630
91631         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
91632         gets expanded when surrounded by '$'.
91633
91634 2003-07-15  Jim Meyering  <jim@meyering.net>
91635
91636         * modules/save-cwd: Don't depend on error.  From Derek Price.
91637
91638 2003-07-15  Jim Meyering  <jim@meyering.net>
91639
91640         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
91641
91642 2003-07-14  Simon Josefsson  <jas@extundo.com>
91643
91644         * modules/mempcpy: New file.
91645         * MODULES.html.sh (func_all_modules): Add mempcpy.
91646
91647 2003-07-14  Simon Josefsson  <jas@extundo.com>
91648
91649         * m4/mempcpy.m4: New file.
91650
91651 2003-07-14  Simon Josefsson  <jas@extundo.com>
91652
91653         * lib/mempcpy.h: New file.
91654         * lib/mempcpy.c: New file.
91655
91656 2003-07-14  Paul Eggert  <eggert@twinsun.com>
91657
91658         * modules/getdate, modules/posixtm: Depend on mktime.
91659
91660 2003-07-14  Paul Eggert  <eggert@twinsun.com>
91661
91662         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
91663         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
91664         unicodeio.c, unicodeio.h, unlocked-io.h:
91665         Switch from LGPL to GPL.
91666
91667 2003-07-14  Paul Eggert  <eggert@twinsun.com>
91668
91669         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
91670         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
91671         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
91672         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
91673         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
91674         updated automatically by ../config/srclist-update.  This changes
91675         their license from LPGL to GPL.
91676
91677 2003-07-14  Paul Eggert  <eggert@twinsun.com>
91678
91679         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
91680         assumed to refer to the root of the most recent stable gettext version.
91681         * config/srclistvars.sh: Add defaults for eggert.
91682         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
91683         Match "This program" as well as "The program".  This is needed
91684         for gettext.
91685
91686 2003-07-14  Jim Meyering  <jim@meyering.net>
91687
91688         Don't emit diagnostics.  Let callers do that.
91689         * lib/save-cwd.c: Don't include "error.h".
91690         (save_cwd): Don't call error.  Ensure that errno is valid
91691         when returning nonzero.
91692
91693         * lib/save-cwd.h (restore_cwd): Update prototype.
91694         * lib/save-cwd.c (restore_cwd): Remove two parameters.
91695         Simplify.  Don't call error upon failure.  Let callers do that.
91696         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
91697         when auditing is enabled.  But don't bother updating the #if.
91698
91699 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
91700
91701         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
91702         it breaks C++ compilation.
91703         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
91704
91705 2003-07-10  Simon Josefsson  <jas@extundo.com>
91706
91707         * modules/strchrnul (Makefile.am): Add strchrnul.h.
91708
91709 2003-07-10  Jim Meyering  <jim@meyering.net>
91710
91711         * m4/clock_time.m4: Remove trailing blank.
91712         * m4/intmax_t.m4: Likewise.
91713
91714 2003-07-10  Jim Meyering  <jim@meyering.net>
91715
91716         * lib/vasnprintf.c: Remove trailing blanks.
91717         Make cpp indentation consistent.
91718
91719 2003-07-09  Paul Eggert  <eggert@twinsun.com>
91720
91721         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
91722         posixver.c, strftime.c, strnlen.c, strverscmp.c:
91723         Switch from LGPL to GPL.
91724
91725 2003-07-09  Paul Eggert  <eggert@twinsun.com>
91726
91727         * config/srclist.txt: Sort sublists.  Add
91728         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
91729         that differ from gnulib for one reason or another; we'd like this list
91730         to be smaller but for now let's document what we have.
91731
91732 2003-07-08  Paul Eggert  <eggert@twinsun.com>
91733
91734         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
91735         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
91736         and sweeter "eval x=$x".
91737         * config/srclist.txt: Get lib/argp* from glibc.
91738
91739 2003-07-07  Paul Eggert  <eggert@twinsun.com>
91740
91741         * lib/mktime.c: Fix some boundary cases and remove need for floating
91742         point.
91743
91744         Issue a compile-time diagnostic if time_t is floating point, or if
91745         two's complement arithmetic is not in effect, or if arithmetic
91746         right shift does not propagate the sign.  These assumptions were
91747         all in the original code but they weren't checked.
91748
91749         (TIME_T_MIDPOINT, verify): New macros.
91750         (__isleap): Remove; it has integer overflow problems.
91751         (leapyear): New function, without those problems.
91752         (ydhms_tm_diff): Remove; splitting into two parts.
91753         (ydhms_diff): New function, containing the arithmetic part of
91754         the old ydhms_tm_diff function.  Issue a compile-time
91755         diagnostic if we are not using C99 integer division.
91756         Avoid casts when possible.
91757         (guess_time_tm): New function, containing the checking part of
91758         the old ydhms_tm_diff function.  Return the new value, rather than
91759         the difference between it and the old.  Accept a new argument T
91760         so that *T specifies the old value.  Check for overflow in the result.
91761
91762         (__mktime_internal): Use a time_t offset, not a long int offset.
91763         This undoes the 2003-06-04 change, which is no longer needed now
91764         that we have better overflow checking.
91765         (localtime_offset): Likewise.
91766
91767         (__mktime_internal): Avoid harmful overflow on hosts where time_t
91768         and long are 64-bit but int is only 32-bit.
91769         (ydhms_diff): Use long int to store year1 and yday1.
91770         Issue a compile-time diagnostic if long int is not wide enough.
91771
91772         (__mktime_internal): Use long int to store adjusted year and yday.
91773         Use plain C rather than preprocessor commands, if that doesn't
91774         affect efficiency.
91775         Check for overflow (and try to repair) after each probe
91776         rather than checking only at the very end.  This avoids some bugs
91777         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
91778         does not equal GMT offset at maximum time).
91779         Use integer to check for overflow rather than floating point; this
91780         is more portable to non-IEEE hosts, and is a tad faster.
91781         When we detect that we are oscillating between two values,
91782         don't check whether tm_isdst has the requested value, since
91783         we already know the answer.  When tm_isdst has the wrong value,
91784         use a different heuristic to find the right one, based on the
91785         extreme values actually observed in practice in tz2003a,
91786         rather than the (overly optimistic) "previous 3 calendar quarters".
91787
91788         (not_equal_tm, print_tm, check_result): Use "const T" rather than
91789         "T const" to accommodate glibc style.
91790         (check_result): Use less-confusing report format.  "long" -> "long int.
91791         (main): Likewise.
91792         Don't loop if the iteration overflows time_t.
91793         Allow a negative step in the iteration.
91794
91795 2003-07-06  Karl Berry  <karl@gnu.org>
91796
91797         * config/depcomp: update from automake.
91798         * config/config.sub: update from prep.
91799
91800 2003-07-03  Karl Berry  <karl@gnu.org>
91801
91802         * config/config.guess: update from prep.
91803
91804 2003-07-01  Paul Eggert  <eggert@twinsun.com>
91805
91806         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
91807         xreadlink.c now includes it unconditionally.
91808
91809 2003-07-01  Paul Eggert  <eggert@twinsun.com>
91810
91811         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
91812         having it depend on HAVE_SYS_TYPES_H.
91813
91814 2003-07-01  Bruno Haible  <bruno@clisp.org>
91815
91816         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
91817         <sys/types.h> should be sufficient.
91818         Reported by Paul Eggert.
91819
91820 2003-06-26  Karl Berry  <karl@gnu.org>
91821
91822         * config/depcomp: update from automake.
91823
91824 2003-06-26  Bruno Haible  <bruno@clisp.org>
91825
91826         * modules/human: Depend on module stdbool.
91827
91828 2003-06-25  Bruno Haible  <bruno@clisp.org>
91829
91830         * modules/readlink: New file.
91831         * modules/xreadlink: Depend on it.
91832         * MODULES.html.sh (func_all_modules): Add readlink.
91833
91834 2003-06-25  Bruno Haible  <bruno@clisp.org>
91835
91836         * m4/readlink.m4: New file.
91837
91838 2003-06-25  Bruno Haible  <bruno@clisp.org>
91839
91840         * lib/readlink.c: New file.
91841
91842 2003-06-22  Karl Berry  <karl@gnu.org>
91843
91844         * config/srclist.txt: update mkinstalldirs from automake.
91845         * config/mkinstalldirs: update.
91846
91847 2003-06-22  Bruno Haible  <bruno@clisp.org>
91848
91849         Portability to mingw32.
91850         * m4/ssize_t.m4: New file, from GNU gettext.
91851         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
91852         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
91853
91854 2003-06-22  Bruno Haible  <bruno@clisp.org>
91855
91856         * modules/safe-read: Add m4/ssize_t.m4.
91857         * modules/xreadlink: Add m4/ssize_t.m4.
91858
91859 2003-06-20  Bruno Haible  <bruno@clisp.org>
91860
91861         Assume C89, so PARAMS isn't needed.
91862         * lib/unicodeio.h (PARAMS): Remove.
91863         * lib/unicodeio.c: Don't use PARAMS.
91864
91865 2003-06-18  Karl Berry  <karl@gnu.org>
91866
91867         * config/config.{guess,sub}: update from prep.
91868
91869 2003-06-18  Jim Meyering  <jim@meyering.net>
91870
91871         Merge changes from coreutils.
91872         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
91873         Remove explicit declarations of xmalloc and realloc.
91874         Include xalloc.h.
91875         (read_utmp): Remove anachronistic cast of xmalloc.
91876
91877 2003-06-17  Paul Eggert  <eggert@twinsun.com>
91878
91879         Assume C89, so PARAMS isn't needed.
91880         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
91881         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
91882         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
91883         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
91884         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
91885         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
91886         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
91887         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
91888         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
91889         lib/xstrtod.h, lib/xstrtol.h: Likewise.
91890         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
91891         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
91892         no longer needed. Anyway, config.h should always be included before any
91893         other file.
91894
91895 2003-06-11  Simon Josefsson  <jas@extundo.com>
91896
91897         * modules/sysexits: New file.
91898         * MODULES.html.sh (func_all_modules): Add sysexits.
91899
91900 2003-06-11  Simon Josefsson  <jas@extundo.com>
91901
91902         * lib/sysexit_.h: New file.
91903
91904 2003-06-11  Derek Price  <derek@ximbiot.com>
91905
91906         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
91907         necessary.
91908
91909 2003-06-11  Bruno Haible  <bruno@clisp.org>
91910
91911         * m4/sysexits.m4: New file.
91912
91913 2003-06-10  Simon Josefsson  <jas@extundo.com>
91914
91915         * lib/argp.h: New file, from glibc.
91916         * lib/argp-ba.c: New file, from glibc.
91917         * lib/argp-eexst.c: New file, from glibc.
91918         * lib/argp-fmtstream.c: New file, from glibc.
91919         * lib/argp-fmtstream.h: New file, from glibc.
91920         * lib/argp-fs-xinl.c: New file, from glibc.
91921         * lib/argp-help.c: New file, from glibc.
91922         * lib/argp-namefrob.h: New file, from glibc.
91923         * lib/argp-parse.c: New file, from glibc.
91924         * lib/argp-pv.c: New file, from glibc.
91925         * lib/argp-pvh.c: New file, from glibc.
91926         * lib/argp-xinl.c: New file, from glibc.
91927
91928 2003-06-10  Simon Josefsson  <jas@extundo.com>
91929
91930         * modules/strchrnul: New file.
91931
91932 2003-06-10  Simon Josefsson  <jas@extundo.com>
91933
91934         * modules/argp: New file.
91935
91936 2003-06-10  Simon Josefsson  <jas@extundo.com>
91937
91938         * m4/strchrnul.m4: New file.
91939
91940 2003-06-10  Simon Josefsson  <jas@extundo.com>
91941
91942         * lib/strchrnul.h: New file.
91943         * lib/strchrnul.c: New file.
91944
91945 2003-06-10  Bruno Haible  <bruno@clisp.org>
91946
91947         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
91948
91949 2003-06-07  Karl Berry  <karl@gnu.org>
91950
91951         * config/config.{guess,sub}: update from prep.
91952
91953 2003-06-07  Jim Meyering  <jim@meyering.net>
91954
91955         * modules/strtod: Use $(...) notation, not @...@ for
91956         AC_REPLACE'd variables.
91957         * modules/localcharset: Likewise.
91958
91959 2003-06-07  Jim Meyering  <jim@meyering.net>
91960
91961         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
91962         in place of my name in the copyright comment.
91963         Remove definition and uses of __P.
91964
91965         From coreutils.
91966         * lib/stat.c: Don't declare xmalloc explicitly.
91967         Instead, include "xalloc.h".
91968         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
91969         xrealloc, and xcalloc return values.
91970         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
91971         Improve comment.
91972         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
91973
91974 2003-06-07  Bruno Haible  <bruno@clisp.org>
91975
91976         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
91977         avoid AC_CONFIG_LINKS.
91978         * modules/fnmatch (Makefile.am): Use explicit creation rule for
91979         fnmatch.h, to avoid AC_CONFIG_LINKS.
91980         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
91981
91982 2003-06-07  Bruno Haible  <bruno@clisp.org>
91983
91984         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
91985         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
91986         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
91987         directory.
91988         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
91989         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
91990         directory.
91991
91992 2003-06-06  Jim Meyering  <jim@meyering.net>
91993
91994         Merge from coreutils.
91995         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
91996         Consolidate declarations and initializations of *_base* locals.
91997
91998         Merge from coreutils.
91999         This avoids a core dump on systems without GNU putenv,
92000         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
92001         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
92002         (unsetenv): New static function, from GNU libc.
92003         (rpl_putenv): Use it.
92004
92005         * lib/modechange.c: Remove trailing blanks.
92006
92007         Merge from coreutils.
92008         * lib/fsusage.c: Remove declaration of statfs.
92009         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
92010
92011         * lib/posixtm.c: Include <stdbool.h> unconditionally.
92012
92013 2003-06-06  Jim Meyering  <jim@meyering.net>
92014
92015         * lib/stdbool_.h: Renamed from stdbool.h.in.
92016
92017 2003-06-06  Jim Meyering  <jim@meyering.net>
92018             Bruno Haible  <bruno@clisp.org>
92019
92020         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
92021         Adjust Makefile.am snippet not to redirect directly to target.
92022         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
92023
92024 2003-06-05  Paul Eggert  <eggert@twinsun.com>
92025
92026         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
92027         mismatch, look in future quarters as well as past.  This fixes a
92028         bug when processing fall-backwards gaps immediately after a long
92029         period of daylight-saving time.
92030
92031         * lib/mktime.c: Assume freestanding C89 or better.
92032         (HAVE_LIMITS_H): Remove.  Assume it's 1.
92033         (__P): Remove; not used.
92034         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
92035         (mktime, not_equal_tm, print_tm, check_result,
92036         main): Use prototypes.  Use const * where appropriate.
92037         (main): Fix typo in testing code that uncovered by above changes.
92038         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
92039
92040 2003-06-04  Paul Eggert  <eggert@twinsun.com>
92041
92042         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
92043         locale.h, localeconv.  This merges changes from coreutils.
92044
92045         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
92046         It can be removed after the next Autoconf is released.
92047         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
92048         needed.
92049
92050 2003-06-04  Paul Eggert  <eggert@twinsun.com>
92051
92052         * lib/mktime.c: Fix Debian bug 177940
92053         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
92054         (localtime_offset): Now long int, not time_t, because we want it
92055         to be guaranteed to be signed.  All uses changed.
92056         (__mktime_internal): If overflow would occur when adding offset,
92057         don't add it.
92058
92059         Merge 'human' changes from coreutils.  Rewrite to support
92060         locale-specific notations like thousands separators.
92061         * lib/human.c: Simplify authorship notice.
92062         Include human.h immediately after config.h.
92063         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
92064         <limits.h>: Do not include, since human.h does.
92065         (SIZE_MAX, UINTMAX_MAX): New macros.
92066         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
92067         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
92068         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
92069         (power_letter): Renamed from suffixes.
92070         (generate_suffix_backwards): Remove.
92071         (adjust_value): Now takes int style (because of human.h changes)
92072         and long double value (for greater precision on some platforms).
92073         (group_number): New function.
92074         (human_readable): Use it.  Use integer options, not enum.
92075         Put the options before the sizes in the arg list.
92076         Support all the new options.
92077         The old human_readable function has been removed;
92078         use inttostr.h instead.
92079         (human_readable, default_block_size, humblock):
92080         Use uintmax_t, not int, for block sizes.
92081         (human_readable_inexact, block_size_types): Remove.
92082         (block_size_opts): New constant.
92083         (human_options): Renamed from human_block_size, with new signature
92084         that allows block sizes up to UINTMAX_MAX.  All callers changed.
92085         * lib/human.h: Add copyright and authorship notice.
92086         Include <limits.h> and <stdbool.h> unconditionally.
92087         (PARAMS): Remove.  All uses removed.
92088         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
92089         (enum human_inexact_style): Remove tag; now a nameless enum.
92090         (human_floor, human_ceiling, human_round_to_even): Now have
92091         values 2, 0, 1 rather than -1, 1, 0.
92092         (human_group_digits, human_suppress_point_zero, human_autoscale,
92093         human_base_1024, human_SI, human_B): New constants.
92094         (human_readable_inexact, human_block_size): Remove.
92095         (human_readable): Size args are now uintmax_t, not int.
92096         (human_options): New decl.
92097
92098         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
92099         unnecessary now that we assume C89 or better.  This change
92100         imported from coreutils.
92101
92102         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
92103         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
92104         in the 2003-05-30 sync from glibc.
92105
92106         .h files should stand alone, but we shouldn't include <sys/types.h>
92107         if we can get away with just <stddef.h>.
92108
92109         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
92110         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
92111         rather than <sys/types.h>, as we merely need size_t.
92112         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
92113         to get size_t.
92114         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
92115         Include <stdio.h>, to get FILE.
92116         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
92117         memcasecmp.h has included <stddef.h> and all we need is size_t.
92118         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
92119         our interface, instead of including <sys/types.h>
92120
92121 2003-06-04  Paul Eggert  <eggert@twinsun.com>
92122
92123         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
92124         now, as glibc mktime is buggy on non-glibc systems.
92125
92126 2003-06-03  Karl Berry  <karl@gnu.org>
92127
92128         * config/config.sub: update from prep.
92129
92130 2003-06-02  Paul Eggert  <eggert@twinsun.com>
92131
92132         [from coreutils]
92133         Fix some minor time-related bugs with POSIX time arguments.
92134         Some valid time stamps were being rejected (notably -1, and
92135         time stamps before 1900 on 64-bit hosts).  And some invalid
92136         time stamps were being accepted, e.g. September 31.
92137
92138         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
92139         that we can return (time_t) -1 successfully.
92140         * lib/posixtm.c: Likewise.
92141         [HAVE_STDBOOL_H]: Include <stdbool.h>.
92142         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
92143         (t): Remove static var.
92144         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
92145         of static var.  All uses changed.
92146         (year): Do not reject years before 1900; they can occur with
92147         64-bit time_t.
92148         (posix_time_parse): Do not check for out-of-range components;
92149         that is now the caller's responsibility, since our checks were
92150         only approximations.
92151         (posixtime): Use mktime to check for out-of-range components,
92152         since it knows them exactly.
92153         If mktime returns (time_t) -1, check whether an error actually occurred
92154         by invoking localtime on -1.
92155         (main) [TEST_POSIXTIME]: Check for input data errors, and report
92156         posixtime failures better.
92157         Improve the test data (in comments only).
92158
92159 2003-06-02  Karl Berry  <karl@gnu.org>
92160
92161         * config/mkinstalldirs (version): new variable.
92162         (--version): new option.
92163         (usage): improve message.
92164
92165 2003-05-30  Karl Berry  <karl@gnu.org>
92166
92167         * lib/mktime.c: update from libc.
92168
92169 2003-05-30  Bruno Haible  <bruno@clisp.org>
92170
92171         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
92172         * config/config.rpath: Upgrade to gettext-0.12.1.
92173
92174 2003-05-30  Bruno Haible  <bruno@clisp.org>
92175
92176         * m4/gettext.m4: Upgrade to gettext-0.12.1.
92177         * m4/nls.m4: New file, from gettext-0.12.1.
92178         * m4/po.m4: New file, from gettext-0.12.1.
92179         * m4/progtest.m4: Upgrade to gettext-0.12.1.
92180
92181 2003-05-30  Bruno Haible  <bruno@clisp.org>
92182
92183         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
92184         * lib/localcharset.h: Likewise.
92185         * lib/localcharset.c: Likewise.
92186
92187 2003-05-29  Karl Berry  <karl@gnu.org>
92188
92189         * config/config.rpath: update from gettext.
92190
92191 2003-05-28  Paul Eggert  <eggert@twinsun.com>
92192
92193         Assume the headers required for C89 freestanding compilers.
92194         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
92195         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
92196         * m4/human.m4 (gl_HUMAN): Likewise.
92197         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
92198         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
92199         * m4/userspec.m4 (gl_USERSPEC): Likewise.
92200         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
92201         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
92202         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
92203
92204 2003-05-28  Paul Eggert  <eggert@twinsun.com>
92205
92206         Assume the headers required for C89 freestanding compilers.
92207         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
92208         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
92209         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
92210         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
92211         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
92212         define, since <limits.h> is guaranteed to do that.
92213         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
92214         * lib/exclude.c: Include <stdbool.h> unconditionally.
92215         * lib/tempname.c: Include <stddef.h> unconditionally.
92216         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
92217         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
92218         <stddef.h> does that.
92219         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
92220         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
92221         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
92222         needed.
92223         * lib/xstrtol.c: Likewise.
92224         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
92225         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
92226
92227         * lib/addext.c (addext): Use assignment rather than cast, to avoid
92228         warnings on some platforms.
92229
92230         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
92231         arbitrarily.
92232
92233 2003-05-26  Jim Meyering  <jim@meyering.net>
92234
92235         Merge in a change from coreutils:
92236         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
92237         that is guaranteed to be `no'.  Use `no_such_member' to indicate
92238         that condition, rather than `-1' which is slightly misleading.
92239         Change the name of the cache variable to have the gl_ prefix.
92240         Prompted by a patch from Richard Dawe for DJGPP.
92241
92242 2003-05-24  Karl Berry  <karl@gnu.org>
92243
92244         * config/config.guess: update from prep.
92245
92246 2003-05-22  Karl Berry  <karl@gnu.org>
92247
92248         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
92249
92250 2003-05-20  Karl Berry  <karl@gnu.org>
92251
92252         * config/config.guess: update from prep.
92253
92254 2003-05-18  Karl Berry  <karl@gnu.org>
92255
92256         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
92257         might actually be set by the user.
92258
92259         * config/depcomp, install-sh, mdate-sh: update from automake.
92260
92261 2003-05-17  Bruno Haible  <bruno@clisp.org>
92262
92263         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
92264         invalid expansion for AC_EGREP_CPP.
92265         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
92266         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
92267         Suggested by Akim Demaille <akim@epita.fr> in
92268         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
92269
92270 2003-05-12  Jim Meyering  <jim@meyering.net>
92271
92272         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
92273         the space-padded-by-default conversion specifiers, %e, %k, %l.
92274
92275 2003-05-12  Bruno Haible  <bruno@clisp.org>
92276
92277         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
92278         the string is longer than 4 KB.
92279
92280 2003-05-11  Karl Berry  <karl@gnu.org>
92281
92282         * config/config.{guess,sub}: update from prep.
92283
92284 2003-05-09  Bruno Haible  <bruno@clisp.org>
92285
92286         * modules/error: Add m4/strerror_r.m4 to file list.
92287
92288 2003-05-03  Bruno Haible  <bruno@clisp.org>
92289
92290         Upgrade to Unicode-4.0.
92291         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
92292         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
92293         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
92294         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
92295         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
92296         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
92297         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
92298         Change width of U+E0100..U+E01EF from 1 to 0.
92299
92300 2003-04-25  Jim Meyering  <jim@meyering.net>
92301
92302         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
92303         of type size_t, not int.
92304
92305 2003-04-25  Bruno Haible  <bruno@clisp.org>
92306
92307         * lib/copy-file.c: Include <stddef.h>, for size_t.
92308
92309 2003-04-21  Paul Eggert  <eggert@twinsun.com>
92310
92311         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
92312         code which expansion is under static control.  Patch imported from
92313         Akim Demaille's patch to Bison; see
92314         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
92315
92316 2003-04-14  Bruno Haible  <bruno@clisp.org>
92317
92318         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
92319
92320 2003-04-11  Jim Meyering  <jim@meyering.net>
92321
92322         Merge changes from Coreutils.
92323
92324         2003-03-22  Jim Meyering  <jim@meyering.net>
92325
92326         * lib/strftime.c (widen): Cast alloca return value to proper type.
92327
92328         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
92329
92330         From GNU libc.
92331         * lib/strftime.c (my_strftime): Handle very large width
92332         specifications for numeric values correctly.  Improve checks for
92333         overflow.
92334
92335         2003-01-19  Jim Meyering  <jim@meyering.net>
92336
92337         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
92338         definitions.
92339         (nl_get_alt_digit) [! defined my_strftime]: Define.
92340         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
92341         _nl_get_alt_digit and _nl_get_walt_digit.
92342
92343         * lib/strftime.c (my_strftime): Merge in locale-related changes from
92344         libc. These changes have no effect outside of _LIBC.
92345
92346 2003-04-10  Bruno Haible  <bruno@clisp.org>
92347
92348         * modules/findprog: New file.
92349         * MODULES.html.sh (func_all_modules): Add it.
92350
92351 2003-04-10  Bruno Haible  <bruno@clisp.org>
92352
92353         * m4/findprog.m4: New file.
92354         * m4/eaccess.m4: New file.
92355
92356 2003-04-10  Bruno Haible  <bruno@clisp.org>
92357
92358         * lib/findprog.h: New file, from GNU gettext.
92359         * lib/findprog.c: New file, from GNU gettext.
92360
92361 2003-04-05  Jim Meyering  <jim@meyering.net>
92362
92363         Merge changes from Coreutils.
92364
92365         * lib/exclude.h (PARAMS): Remove definition and uses.
92366         * lib/exclude.c: Remove uses of `PARAMS'.
92367
92368         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
92369         Add test-cases for DOS filenames. Declare program_name.
92370         (main): Set up program_name.  Patch by Rich Dawe.
92371
92372         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
92373         error from mntctl.
92374         Use mntctl's return value to drive the entry-processing loop, since
92375         we can't rely on the value of the vmt_length member in the last
92376         entry.  On some systems doing so could result in exhausting
92377         virtual memory.  Based in part on a patch from Mike Jetzer.
92378
92379 2003-04-04  Bruno Haible  <bruno@clisp.org>
92380
92381         * modules/linebreak: New file.
92382         * MODULES.html.sh (func_all_modules): Add it.
92383
92384 2003-04-04  Bruno Haible  <bruno@clisp.org>
92385
92386         * m4/linebreak.m4: New file.
92387
92388 2003-04-04  Bruno Haible  <bruno@clisp.org>
92389
92390         * lib/linebreak.h: New file, from GNU gettext.
92391         * lib/linebreak.c: New file, from GNU gettext with slight
92392         modifications.
92393         * lib/lbrkprop.h: New file, from GNU gettext.
92394
92395 2003-04-03  Bruno Haible  <bruno@clisp.org>
92396
92397         * modules/utf8-ucs4: New file.
92398         * modules/utf16-ucs4: New file.
92399         * modules/ucs4-utf8: New file.
92400         * modules/ucs4-utf16: New file.
92401         * MODULES.html.sh (func_all_modules): Add them.
92402
92403 2003-04-03  Bruno Haible  <bruno@clisp.org>
92404
92405         * m4/utf-ucs4.m4: New file.
92406         * m4/ucs4-utf.m4: New file.
92407
92408 2003-04-03  Bruno Haible  <bruno@clisp.org>
92409
92410         * lib/utf8-ucs4.h: New file, from GNU gettext.
92411         * lib/utf16-ucs4.h: New file, from GNU gettext.
92412         * lib/ucs4-utf8.h: New file, from GNU gettext.
92413         * lib/ucs4-utf16.h: New file, from GNU gettext.
92414
92415 2003-04-02  Bruno Haible  <bruno@clisp.org>
92416
92417         * modules/binary-io: New file.
92418         * MODULES.html.sh (func_all_modules): Add it.
92419
92420 2003-04-02  Bruno Haible  <bruno@clisp.org>
92421
92422         * lib/binary-io.h: New file, from GNU gettext.
92423
92424 2003-04-01  Bruno Haible  <bruno@clisp.org>
92425
92426         * modules/pathname: New file.
92427         * MODULES.html.sh (func_all_modules): Add it.
92428
92429 2003-04-01  Bruno Haible  <bruno@clisp.org>
92430
92431         * lib/pathname.h: New file, from GNU gettext.
92432         * lib/concatpath.c: New file, from GNU gettext.
92433
92434 2003-03-30  Bruno Haible  <bruno@clisp.org>
92435
92436         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
92437
92438 2003-03-30  Bruno Haible  <bruno@clisp.org>
92439
92440         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
92441         function chown() doesn't exist.
92442
92443 2003-03-28  Bruno Haible  <bruno@clisp.org>
92444
92445         * modules/copy-file: New file.
92446         * MODULES.html.sh (func_all_modules): Add it.
92447
92448 2003-03-28  Bruno Haible  <bruno@clisp.org>
92449
92450         * m4/copy-file.m4: New file.
92451
92452 2003-03-28  Bruno Haible  <bruno@clisp.org>
92453
92454         * lib/copy-file.h: New file, from GNU gettext.
92455         * lib/copy-file.c: New file, from GNU gettext.
92456
92457 2003-03-18  Jim Meyering  <jim@meyering.net>
92458
92459         * lib/quote.c (quote_n): Fix typo in comment.
92460
92461 2003-03-18  Bruno Haible  <bruno@clisp.org>
92462
92463         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
92464         checking.
92465         * m4/onceonly_2_57.m4: Likewise.
92466
92467 2003-03-17  Bruno Haible  <bruno@clisp.org>
92468
92469         * m4/onceonly.m4: Require autoconf 2.54 or newer.
92470         (m4_quote): Remove macro.
92471         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
92472
92473 2003-03-14  Jim Meyering  <jim@meyering.net>
92474
92475         Merge changes from Coreutils.
92476         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
92477         to be const, in order to avoid warnings.
92478         (obstack_room): Likewise.
92479         (obstack_empty_p): Likewise.
92480
92481 2003-03-14  Bruno Haible  <bruno@clisp.org>
92482
92483         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
92484         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
92485
92486 2003-03-13  Paul Eggert  <eggert@twinsun.com>
92487
92488         Merge changes from Bison.
92489         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
92490         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
92491         when compiling Bison 1.875's `bitset bset = obstack_alloc
92492         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
92493         * lib/hash.c: Include <stdbool.h> unconditionally.
92494
92495 2003-03-13  Paul Eggert  <eggert@twinsun.com>
92496
92497         * m4/onceonly.m4 (m4_quote): New macro.
92498         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
92499         Quote AC_FOREACH variable-expansions properly.
92500
92501 2003-03-13  Paul Eggert  <eggert@twinsun.com>
92502
92503         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
92504
92505 2003-03-09  Paul Eggert  <eggert@twinsun.com>
92506
92507         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
92508         Reported by Bruce Becker; see:
92509         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
92510
92511 2003-03-03  Paul Eggert  <eggert@twinsun.com>
92512             Bruno Haible  <bruno@clisp.org>
92513
92514         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
92515         Reported by John Hughes, see
92516         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
92517
92518 2003-02-20  Bruno Haible  <bruno@clisp.org>
92519
92520         * MODULES.html.sh (func_all_modules): Add poll.
92521
92522 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
92523
92524         * modules/poll: New file.
92525
92526 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
92527
92528         * lib/poll_.h: New file.
92529         * lib/poll.c: New file.
92530
92531 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
92532
92533         * m4/poll.m4: New file.
92534
92535 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
92536
92537         * modules/mathl: New file.
92538
92539 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
92540
92541         * lib/mathl.h: New file.
92542         * lib/acosl.c: New file.
92543         * lib/asinl.c: New file.
92544         * lib/atanl.c: New file.
92545         * lib/ceill.c: New file.
92546         * lib/cosl.c: New file.
92547         * lib/expl.c: New file.
92548         * lib/floorl.c: New file.
92549         * lib/frexpl.c: New file.
92550         * lib/ldexpl.c: New file.
92551         * lib/logl.c: New file.
92552         * lib/sincosl.c: New file.
92553         * lib/sinl.c: New file.
92554         * lib/sqrtl.c: New file.
92555         * lib/tanl.c: New file.
92556         * lib/trigl.c: New file.
92557         * lib/trigl.h: New file.
92558
92559 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
92560
92561         * m4/mathl.m4: New file.
92562
92563 2003-02-18  Bruno Haible  <bruno@clisp.org>
92564
92565         * MODULES.html.sh (func_all_modules): Add mathl.
92566
92567 2003-02-17  Bruno Haible  <bruno@clisp.org>
92568
92569         * modules/mkdtemp: New module.
92570         * MODULES.html.sh (func_all_modules): Add it.
92571
92572 2003-02-17  Bruno Haible  <bruno@clisp.org>
92573
92574         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
92575
92576 2003-02-17  Bruno Haible  <bruno@clisp.org>
92577
92578         * lib/mkdtemp.h: New file, from GNU gettext.
92579         * lib/mkdtemp.c: New file, from GNU gettext.
92580
92581 2003-02-02  Jim Meyering  <jim@meyering.net>
92582
92583         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
92584         e.g. glibc-2.2.93.
92585
92586 2003-01-31  Bruno Haible  <bruno@clisp.org>
92587
92588         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
92589         'rpl_rename'.
92590         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
92591         'rpl_strnlen'.
92592         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
92593         'rpl_strtod'.
92594         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
92595         'rpl_utime'.
92596
92597 2003-01-31  Bruno Haible  <bruno@clisp.org>
92598
92599         * lib/rename.c: #undef rename before defining rpl_rename.
92600         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
92601
92602 2003-01-30  Bruno Haible  <bruno@clisp.org>
92603
92604         * modules/vasnprintf, modules/vasprintf: New modules.
92605         * MODULES.html.sh (func_all_modules): Add them.
92606
92607 2003-01-30  Bruno Haible  <bruno@clisp.org>
92608
92609         * m4/signed.m4: New file, from GNU gettext.
92610         * m4/longdouble.m4: New file, from GNU gettext.
92611         * m4/wchar_t.m4: New file, from GNU gettext.
92612         * m4/wint_t.m4: New file, from GNU gettext.
92613         * m4/vasnprintf.m4: New file.
92614         * m4/vasprintf.m4: New file.
92615
92616 2003-01-30  Bruno Haible  <bruno@clisp.org>
92617
92618         * lib/printf-args.h: New file, from GNU gettext.
92619         * lib/printf-args.c: New file, from GNU gettext.
92620         * lib/printf-parse.h: New file, from GNU gettext.
92621         * lib/printf-parse.c: New file, from GNU gettext.
92622         * lib/vasnprintf.h: New file, from GNU gettext.
92623         * lib/vasnprintf.c: New file, from GNU gettext.
92624         * lib/asnprintf.c: New file, from GNU gettext.
92625         * lib/vasprintf.h: New file, from GNU gettext with modifications.
92626         * lib/vasprintf.c: New file, from GNU gettext.
92627         * lib/asprintf.c: New file, from GNU gettext.
92628
92629 2003-01-29  Bruno Haible  <bruno@clisp.org>
92630
92631         * modules/stpncpy: New module.
92632         * MODULES.html.sh (func_all_modules): Add it.
92633
92634 2003-01-29  Bruno Haible  <bruno@clisp.org>
92635
92636         * m4/stpncpy.m4: New file.
92637
92638 2003-01-29  Bruno Haible  <bruno@clisp.org>
92639
92640         * lib/stpncpy.h: New file, from GNU gettext with modifications.
92641         * lib/stpncpy.c: New file, from GNU gettext with modifications.
92642
92643 2003-01-28  Bruno Haible  <bruno@clisp.org>
92644
92645         * modules/c-ctype: New module.
92646         * MODULES.html.sh (func_all_modules): Add it.
92647
92648 2003-01-28  Bruno Haible  <bruno@clisp.org>
92649
92650         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
92651         Paul Eggert.
92652         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
92653         Paul Eggert.
92654
92655 2003-01-27  Bruno Haible  <bruno@clisp.org>
92656
92657         * modules/xsetenv: New module.
92658         * MODULES.html.sh (func_all_modules): Add it.
92659
92660 2003-01-27  Bruno Haible  <bruno@clisp.org>
92661
92662         * lib/xsetenv.h: New file, from GNU gettext.
92663         * lib/xsetenv.c: New file, from GNU gettext.
92664
92665 2003-01-23  Jim Meyering  <jim@meyering.net>
92666
92667         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
92668         from working on systems without dirfd (at least Irix and OSF1/Tru64).
92669
92670 2003-01-23  Bruno Haible  <bruno@clisp.org>
92671
92672         * modules/minmax: New module.
92673         * MODULES.html.sh (func_all_modules): Add it.
92674
92675 2003-01-23  Bruno Haible  <bruno@clisp.org>
92676
92677         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
92678         Eggert.
92679
92680 2003-01-22  Bruno Haible  <bruno@clisp.org>
92681
92682         * modules/exit: New module.
92683         * MODULES.html.sh (func_all_modules): Add it.
92684
92685 2003-01-22  Bruno Haible  <bruno@clisp.org>
92686
92687         * lib/exit.h: New file, from GNU gettext.
92688
92689 2003-01-19  Bruno Haible  <bruno@clisp.org>
92690
92691         * gnulib-tool: Recognize option --extract-maintainer.
92692         (func_get_maintainer): New function.
92693         * modules/*: Add Maintainer entry.
92694
92695 2003-01-16  Jim Meyering  <jim@meyering.net>
92696
92697         * m4/regex.m4: The `regex' struct is both input and output.
92698         Initialize it before each use.  Patch by Tim Waugh.
92699
92700 2003-01-16  Bruno Haible  <bruno@clisp.org>
92701
92702         * MODULES.html.sh: Add a table of contents. Add the module name as
92703         leftmost column. Add hyperlinks.
92704
92705 2003-01-15  Bruno Haible  <bruno@clisp.org>
92706
92707         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
92708
92709 2003-01-15  Bruno Haible  <bruno@clisp.org>
92710
92711         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
92712         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
92713         suffix.
92714
92715 2003-01-15  Bruno Haible  <bruno@clisp.org>
92716
92717         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
92718
92719 2003-01-15  Bruno Haible  <bruno@clisp.org>
92720
92721         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
92722         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
92723
92724 2003-01-14  Jim Meyering  <jim@meyering.net>
92725
92726         * lib/same.c (same_name): Tweak a comment.
92727
92728 2003-01-14  Bruno Haible  <bruno@clisp.org>
92729
92730         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
92731         when a string comparison is sufficient.
92732
92733 2003-01-14  Bruno Haible  <bruno@clisp.org>
92734
92735         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
92736         'unsigned int'.
92737
92738 2003-01-14  Bruno Haible  <bruno@clisp.org>
92739
92740         * lib/hash-pjw.c: Add comment about low quality of this function.
92741
92742 2003-01-13  Bruno Haible  <bruno@clisp.org>
92743
92744         * modules/stpcpy: Distribute lib/stpcpy.h.
92745         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
92746
92747 2003-01-13  Bruno Haible  <bruno@clisp.org>
92748
92749         * modules/*: Add a description.
92750         * modules/strpbrk: Fix Makefile.am snippet.
92751         * modules/strtoimax: Fix dependencies.
92752         * modules/strtoumax: Likewise.
92753
92754 2003-01-13  Bruno Haible  <bruno@clisp.org>
92755
92756         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
92757         * modules/alloca (Makefile.am): All object files depend on alloca.h.
92758         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
92759
92760 2003-01-13  Bruno Haible  <bruno@clisp.org>
92761
92762         * gnulib-tool (func_create_testdir): Store config/* files in the main
92763         directory.
92764         * config.rpath: Move to ...
92765         * config/config.rpath: ... here.
92766         * modules/gettext: Contains config/config.rpath, not config.rpath.
92767         * modules/iconv: Likewise.
92768
92769 2003-01-12  Paul Eggert  <eggert@twinsun.com>
92770
92771         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
92772         to avoid collisions with libcurses and libreadline.
92773
92774         * m4/getstr.m4: Remove.
92775         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
92776
92777 2003-01-12  Paul Eggert  <eggert@twinsun.com>
92778
92779         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
92780         to avoid collisions with libcurses and libreadline.
92781
92782         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
92783         * lib/getstr.h, getstr.c: Remove.
92784         * lib/getline.c: Include "getline.h", to check interface.
92785         Move body of old getstr.c here: this defines MIN_CHUNK and
92786         declares getdelim2, which is renamed from getstr.
92787         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
92788
92789         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
92790         All uses changed.
92791         * lib/linebuffer.h: Likewise.
92792         (readline): Remove backward-compatibility macro.
92793
92794 2003-01-12  Paul Eggert  <eggert@twinsun.com>
92795
92796         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
92797         to avoid collisions with libcurses and libreadline.
92798         * getstr: Remove.
92799         * MODULES.html.sh: Remove getstr.
92800         * modules/getline: Depend on unlocked-io, not getstr.
92801
92802 2003-01-12  Jim Meyering  <jim@meyering.net>
92803
92804         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
92805
92806 2003-01-10  Bruno Haible  <bruno@clisp.org>
92807
92808         * modules/alloca: Change Makefile.am requirements. Simplify Include
92809         requirements. Add lib/alloca_.h to file list.
92810
92811 2003-01-10  Bruno Haible  <bruno@clisp.org>
92812
92813         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
92814
92815 2003-01-10  Bruno Haible  <bruno@clisp.org>
92816
92817         * lib/alloca_.h: New file.
92818         * lib/getdate.y: Unconditionally include alloca.h.
92819         * lib/makepath.c: Likewise.
92820         * lib/setenv.c: Likewise.
92821         * lib/userspec.c: Likewise.
92822
92823 2003-01-09  Karl Berry  <karl@gnu.org>
92824
92825         * MODULES.html.sh: include `dirname $0` in PATH, to find
92826         gnulib-tool.
92827
92828 2003-01-09  Bruno Haible  <bruno@clisp.org>
92829
92830         * modules/stdbool: Change configure.ac, Makefile.am requirements.
92831         Simplify Include requirements. Add lib/stdbool.h.in to file list.
92832
92833 2003-01-09  Bruno Haible  <bruno@clisp.org>
92834
92835         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
92836
92837 2003-01-09  Bruno Haible  <bruno@clisp.org>
92838
92839         * lib/stdbool.h.in: New file.
92840
92841 2003-01-09  Bruno Haible  <bruno@clisp.org>
92842
92843         * gnulib-tool (func_all_modules): Ignore files ending in ~.
92844         * MODULES.html.sh: Likewise.
92845
92846 2003-01-08  Jim Meyering  <jim@meyering.net>
92847
92848         * lib/full-write.c: Undefine and define-away `const' after inclusion
92849         of errno.h, not before.  Suggestion from Bruno Haible.
92850
92851 2003-01-08  Bruno Haible  <bruno@clisp.org>
92852
92853         * modules/full-read: Depend on full-write.
92854
92855 2003-01-08  Bruno Haible  <bruno@clisp.org>
92856
92857         * lib/safe-read.c: Include specification header first, to ensure its
92858         selfcontainedness.
92859         * lib/full-write.c: Likewise.
92860
92861 2003-01-07  Jim Meyering  <jim@meyering.net>
92862
92863         * lib/full-write.c: Rework so that it may serve to define full_read,
92864         too.
92865         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
92866
92867 2003-01-07  Bruno Haible  <bruno@clisp.org>
92868
92869         * lib/strtoimax.c: Include <stdint.h> as an alternative to
92870         <inttypes.h>.
92871         * lib/xstrtol.h: Likewise.
92872         * lib/xstrtoimax.c: Likewise.
92873         * lib/xstrtoumax.c: Likewise.
92874         * lib/human.h: Likewise.
92875
92876         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
92877         on systems that have <inttypes.h> but not <stdint.h>.
92878
92879 2003-01-07  Bruno Haible  <bruno@clisp.org>
92880
92881         * MODULES.html.sh: Add copyright notice.
92882         (missed_files): Omit CVS directory entries.
92883         (func_module): Make it work with sed-3.02.
92884         * MODULES.txt: Remove file.
92885
92886 2003-01-06  Jim Meyering  <jim@meyering.net>
92887
92888         * lib/version-etc.c: Update year in translatable copyright string.
92889
92890 2003-01-03  Karl Berry  <karl@gnu.org>
92891
92892         * config/config.{guess,sub}: update from prep.
92893
92894 2003-01-02  Karl Berry  <karl@gnu.org>
92895
92896         * doc/COPYING.DOC: belatedly updated to 1.2.
92897
92898 2003-01-01  Karl Berry  <karl@gnu.org>
92899
92900         * gnulib-tool (func_verify_module): report module name $module in
92901         error message, not $1.
92902         * gnulib-tool (create-testdir): don't complain if destdir couldn't
92903         be created, only if it doesn't exist.
92904         * gnulib-tool (last_checkin_date): don't expand the $Date here.
92905
92906 2002-12-31  Paul Eggert  <eggert@twinsun.com>
92907
92908         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
92909
92910 2002-12-31  Paul Eggert  <eggert@twinsun.com>
92911
92912         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
92913         memcmp if strcoll doesn't work.
92914
92915 2002-12-31  Bruno Haible  <bruno@clisp.org>
92916
92917         * lib/utime.c (utime_null): No need to call ftruncate if the file was
92918         nonempty.
92919
92920 2002-12-31  Bruno Haible  <bruno@clisp.org>
92921
92922         * lib/memcoll.c (STRCOLL): New macro.
92923         (memcoll): Use it.
92924
92925 2002-12-31  Bruno Haible  <bruno@clisp.org>
92926
92927         * lib/localcharset.h: New file.
92928         * lib/localcharset.c: Include it.
92929         * lib/unicodeio.c: Likewise.
92930
92931 2002-12-31  Bruno Haible  <bruno@clisp.org>
92932
92933         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
92934         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
92935
92936 2002-12-31  Bruno Haible  <bruno@clisp.org>
92937
92938         * lib/getline.h: Include <stddef.h>, for size_t.
92939
92940         * lib/unicodeio.h: Include <stddef.h>, for size_t.
92941         * lib/unicodeio.c: Don't include <stddef.h>.
92942
92943 2002-12-31  Bruno Haible  <bruno@clisp.org>
92944
92945         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
92946         HAVE_TM_ZONE.
92947
92948 2002-12-24  Karl Berry  <karl@gnu.org>
92949
92950         * config/config.guess: update from prep.
92951
92952 2002-12-24  Bruno Haible  <bruno@clisp.org>
92953
92954         General infrasructure.
92955         * m4/README: Rewritten.
92956         * m4/onceonly.m4: New file.
92957         * m4/onceonly_2_57.m4: New file.
92958
92959         Module atexit.
92960         * m4/atexit.m4: New file.
92961
92962         Module strtod.
92963         * m4/strtod.m4: New file.
92964
92965         Module strtol.
92966         * m4/strtol.m4: New file.
92967
92968         Module strtoul.
92969         * m4/strtoul.m4: New file.
92970
92971         Module memchr.
92972         * m4/memchr.m4: New file.
92973
92974         Module memcmp.
92975         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
92976         (jm_FUNC_MEMCMP): Invoke it.
92977
92978         Module memcpy.
92979         * m4/memcpy.m4: New file.
92980
92981         Module memmove.
92982         * m4/memmove.m4: New file.
92983
92984         Module memset.
92985         * m4/memset.m4: New file.
92986
92987         Module strcspn.
92988         * m4/strcspn.m4: New file.
92989
92990         Module strpbrk.
92991         * m4/strpbrk.m4: New file.
92992
92993         Module strstr.
92994         * m4/strstr.m4: New file.
92995
92996         Module strerror.
92997         * m4/strerror.m4: New file.
92998
92999         Module mktime.
93000         * m4/mktime.m4: Renamed from jm-mktime.m4.
93001         (gl_PREREQ_MKTIME): New macro.
93002         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
93003
93004         Module malloc.
93005         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
93006         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
93007         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
93008
93009         Module realloc.
93010         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
93011         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
93012         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
93013
93014         Module strftime.
93015         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
93016         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
93017         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
93018         gl_TM_GMTOFF.
93019         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
93020
93021         Module xalloc.
93022         * m4/xalloc.m4: New file.
93023
93024         Module alloca.
93025         * m4/alloca.m4: New file.
93026
93027         Module putenv.
93028         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
93029         (jm_FUNC_PUTENV): Invoke it.
93030
93031         Module setenv.
93032         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
93033         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
93034         when invoked twice.
93035         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
93036         gt_FUNC_SETENV.
93037
93038         Module memrchr.
93039         * m4/memrchr.m4: New file.
93040
93041         Module stpcpy.
93042         * m4/stpcpy.m4: New file.
93043
93044         Module strcase.
93045         * m4/strcase.m4: New file.
93046
93047         Module strdup.
93048         * m4/strdup.m4: New file.
93049
93050         Module strnlen.
93051         * m4/strnlen.m4: New file.
93052
93053         Module strndup.
93054         * m4/strndup.m4: New file.
93055
93056         Module xstrtod.
93057         * m4/xstrtod.m4: New file.
93058
93059         Module xstrtol.
93060         * m4/xstrtol.m4: New file.
93061
93062         Module getdate.
93063         * m4/getdate.m4: New file.
93064
93065         Module unlocked-io.
93066         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
93067         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
93068         * m4/jm-glibc-io.m4n: Remove file.
93069
93070         Module long-options.
93071         * m4/long-options.m4: New file.
93072
93073         Module md5.
93074         * m4/md5.m4: New file.
93075
93076         Module sha.
93077         * m4/sha.m4: New file.
93078
93079         Module getstr.
93080         * m4/getstr.m4: New file.
93081
93082         Module getline.
93083         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
93084         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
93085         <sys/types.h>, for size_t. Use the function name gnu_getline, not
93086         simply getline. Infoke gl_PREREQ_GETLINE.
93087
93088         Module obstack.
93089         * m4/obstack.m4: New file.
93090
93091         Module hash.
93092         * m4/hash.m4: New file.
93093
93094         Module readtokens.
93095         * m4/readtokens.m4: New file.
93096
93097         Module strverscmp.
93098         * m4/strverscmp.m4: New file.
93099
93100         Module stdbool.
93101         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
93102         OSF/1.
93103
93104         Module strtoll.
93105         * m4/strtoll.m4: New file.
93106
93107         Module strtoull.
93108         * m4/strtoull.m4: New file.
93109
93110         Module strtoimax.
93111         * m4/strtoimax.m4: New file.
93112
93113         Module strtoumax.
93114         * m4/strtoumax.m4: New file.
93115
93116         Module xstrtoimax.
93117         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
93118         jm_AC_PREREQ_XSTRTOIMAX.
93119         Moved the strtol prerequisites to strtol.m4.
93120         Moved the strtoll prerequisites to strtoll.m4.
93121         Moved the strtoimax prerequisites to strtoimax.m4.
93122
93123         Module xstrtoumax.
93124         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
93125         jm_AC_PREREQ_XSTRTOUMAX.
93126         Moved the strtoul prerequisites to strtoul.m4.
93127         Moved the strtoull prerequisites to strtoull.m4.
93128         Moved the strtoumax prerequisites to strtoumax.m4.
93129
93130         Module chown.
93131         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
93132         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
93133
93134         Module dup2.
93135         * m4/dup2.m4: New file.
93136
93137         Module ftruncate.
93138         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
93139         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
93140
93141         Module getgroups.
93142         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
93143         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
93144
93145         Module gettimeofday.
93146         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
93147         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
93148         gl_PREREQ_GETTIMEOFDAY.
93149
93150         Module mkdir.
93151         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
93152         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
93153
93154         Module mkstemp.
93155         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
93156         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
93157         jm_AC_TYPE_UINTMAX_T.
93158         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
93159
93160         Module stat.
93161         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
93162         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
93163
93164         Module lstat.
93165         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
93166         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
93167
93168         Module timespec.
93169         * m4/timespec.m4 (gl_TIMESPEC): New macro.
93170         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
93171         * m4/st_mtim.m4: Indentation.
93172
93173         Module nanosleep.
93174         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
93175         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
93176         gl_PREREQ_NANOSLEEP.
93177
93178         Module regex.
93179         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
93180         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
93181         (gl_REGEX): New macro.
93182
93183         Module rename.
93184         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
93185         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
93186
93187         Module rmdir.
93188         * m4/rmdir.m4: New file.
93189
93190         Module utime.
93191         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
93192         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
93193         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
93194
93195         Module dirname.
93196         * m4/dirname.m4: New file.
93197
93198         Module getopt.
93199         * m4/getopt.m4: New file.
93200
93201         Module unistd-safer.
93202         * m4/unistd-safer.m4: New file.
93203
93204         Module fnmatch.
93205         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
93206         declaration.
93207         (gl_PREREQ_FNMATCH_EXTRA): New macro.
93208         (gl_FUNC_FNMATCH_POSIX): New macro.
93209         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
93210         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
93211         simply fnmatch.
93212
93213         Module exclude.
93214         * m4/exclude.m4: New file.
93215
93216         Module human.
93217         * m4/human.m4: New file.
93218
93219         Module acl.
93220         * m4/acl.m4: Nop.
93221
93222         Module backupfile.
93223         * m4/backupfile.m4: New file.
93224         * m4/d-ino.m4: Indentation.
93225
93226         Module fsusage.
93227         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
93228         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
93229         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
93230
93231         Module dirfd.
93232         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
93233         requirements.
93234
93235         Module euidaccess.
93236         * m4/euidaccess.m4: New file.
93237
93238         Module file-type.
93239         * m4/file-type.m4: New file.
93240
93241         Module fileblocks.
93242         * m4/fileblocks.m4: New file.
93243
93244         Module filemode.
93245         * m4/filemode.m4: New file.
93246
93247         Module isdir.
93248         * m4/isdir.m4: New file.
93249
93250         Module lchown.
93251         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
93252         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
93253
93254         Module makepath.
93255         * m4/makepath.m4: New file.
93256
93257         Module modechange.
93258         * m4/modechange.m4: New file.
93259
93260         Module mountlist.
93261         * m4/mountlist.m4: New file.
93262         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
93263         Indentation.
93264
93265         Module path-concat.
93266         * m4/path-concat.m4: New file.
93267
93268         Module pathmax.
93269         * m4/pathmax.m4: New file.
93270
93271         Module same.
93272         * m4/same.m4: New file.
93273
93274         Module save-cwd.
93275         * m4/save-cwd.m4: New file.
93276
93277         Module savedir.
93278         * m4/savedir.m4: New file.
93279
93280         Module xgetcwd.
93281         * m4/xgetcwd.m4: New file.
93282         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
93283
93284         Module xreadlink.
93285         * m4/xreadlink.m4: New file.
93286
93287         Module safe-read.
93288         * m4/safe-read.m4: New file.
93289
93290         Module safe-write.
93291         * m4/safe-write.m4: New file.
93292
93293         Module closeout.
93294         * m4/closeout.m4: New file.
93295
93296         Module stdio-safer.
93297         * m4/stdio-safer.m4: New file.
93298
93299         Module getpass.
93300         * m4/getpass.m4: New file.
93301
93302         Module getugroups.
93303         * m4/getugroups.m4: New file.
93304
93305         Module group-member.
93306         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
93307         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
93308
93309         Module idcache.
93310         * m4/idcache.m4: New file.
93311
93312         Module userspec.
93313         * m4/userspec.m4: New file.
93314
93315         Module gettime.
93316         * m4/clock_time.m4: New file.
93317         * m4/gettime.m4: New file.
93318
93319         Module settime.
93320         * m4/settime.m4: New file.
93321
93322         Module posixtm.
93323         * m4/posixtm.m4: New file.
93324
93325         Module gethostname.
93326         * m4/gethostname.m4: New file.
93327
93328         Module canon-host.
93329         * m4/canon-host.m4: New file.
93330
93331         Module gettext.
93332         * m4/codeset.m4: New file, from gettext-0.11.5.
93333         * m4/gettext.m4: New file, from gettext-0.11.5.
93334         * m4/glibc21.m4: New file, from gettext-0.11.5.
93335         * m4/iconv.m4: New file, from gettext-0.11.5.
93336         * m4/intdiv0.m4: New file, from gettext-0.11.5.
93337         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
93338         * m4/inttypes.m4: New file, from gettext-0.11.5.
93339         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
93340         * m4/isc-posix.m4: New file, from gettext-0.11.5.
93341         * m4/lcmessage.m4: New file, from gettext-0.11.5.
93342         * m4/lib-ld.m4: New file, from gettext-0.11.5.
93343         * m4/lib-link.m4: New file, from gettext-0.11.5.
93344         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
93345         * m4/progtest.m4: New file, from gettext-0.11.5.
93346         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
93347         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
93348         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
93349
93350         Module localcharset.
93351         * m4/localcharset.m4: New file.
93352
93353         Module hard-locale.
93354         * m4/hard-locale.m4: New file.
93355
93356         Module mbswidth.
93357         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
93358         onceonly macros.
93359         * m4/mbrtowc.m4: Add comment.
93360
93361         Module memcasecmp.
93362         * m4/memcasecmp.m4: New file.
93363
93364         Module memcoll.
93365         * m4/memcoll.m4: New file.
93366
93367         Module unicodeio.
93368         * m4/unicodeio.m4: New file.
93369
93370         Module rpmatch.
93371         * m4/rpmatch.m4: New file.
93372
93373         Module yesno.
93374         * m4/yesno.m4: New file.
93375
93376         Module exitfail.
93377         * m4/exitfail.m4: New file.
93378
93379         Module c-stack.
93380         * m4/c-stack.m4 (gl_C_STACK): New macro.
93381         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
93382
93383         Module error.
93384         * m4/error.m4 (gl_ERROR): New macro.
93385         (jm_PREREQ_ERROR): Use onceonly macros.
93386
93387         Module fatal.
93388         * m4/fatal.m4: New file.
93389
93390         Module getloadavg.
93391         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
93392         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
93393
93394         Module getpagesize.
93395         * m4/getpagesize.m4: New file.
93396
93397         Module getusershell.
93398         * m4/getusershell.m4: New file.
93399
93400         Module physmem.
93401         * m4/physmem.m4: New file.
93402
93403         Module posixver.
93404         * m4/posixver.m4: New file.
93405
93406         Module quotearg.
93407         * m4/quotearg.m4: New file.
93408
93409         Module quote.
93410         * m4/quote.m4: New file.
93411
93412         Module readutmp.
93413         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
93414
93415         Module sig2str.
93416         * m4/sig2str.m4: New file.
93417
93418         Other.
93419         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
93420         ulonglong.m4.
93421         * m4/intmax_t.m4: New file.
93422         * m4/d-type.m4: Indentation.
93423         * m4/jm-macros.m4: Update.
93424         * m4/prereq.m4 (jm_PREREQ): Update.
93425         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
93426         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
93427         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
93428         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
93429         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
93430         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
93431         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
93432         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
93433         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
93434         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
93435         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
93436         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
93437         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
93438         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
93439         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
93440         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
93441         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
93442         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
93443         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
93444
93445 2002-12-24  Bruno Haible  <bruno@clisp.org>
93446
93447         * MODULES.txt: Update according to m4/ changes.
93448
93449         Module gettext.
93450         * config.rpath: New file, from gettext-0.11.5.
93451
93452         * modules/*: New module descriptions.
93453         * gnulib-tool: New file.
93454         * MODULES.html.sh: New file.
93455
93456 2002-12-21  Karl Berry  <karl@gnu.org>
93457
93458         * doc/fdl.texi: update to version 1.2.
93459
93460 2002-12-19  Karl Berry  <karl@gnu.org>
93461
93462         * config/config.guess: update from prep.
93463
93464 2002-12-18  Bruno Haible  <bruno@clisp.org>
93465
93466         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
93467         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
93468
93469 2002-12-17  Bruno Haible  <bruno@clisp.org>
93470
93471         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
93472         stdlib.h, string.h.
93473
93474 2002-12-17  Bruno Haible  <bruno@clisp.org>
93475
93476         * lib/canon-host.c (strdup): Remove unused declaration.
93477
93478         * lib/fsusage.c: Include full_read.h.
93479         (get_fs_usage): Use full_read instead of safe_read.
93480
93481         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
93482
93483 2002-12-12  Karl Berry  <karl@gnu.org>
93484
93485         * config/config.guess: update from prep.
93486
93487 2002-12-11  Bruno Haible  <bruno@clisp.org>
93488
93489         * m4/setenv.m4: New file, from gettext-0.11.5.
93490
93491 2002-12-11  Bruno Haible  <bruno@clisp.org>
93492
93493         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
93494         not unsetenv().
93495         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
93496         modifications:
93497
93498         2002-12-11  Bruno Haible  <bruno@clisp.org>
93499
93500                 * setenv.c (alloca): Fall back to malloc.
93501                 (freea): New macro.
93502                 (setenv): Use freea() to free memory allocated with alloca().
93503
93504         2002-11-13  Bruno Haible  <bruno@clisp.org>
93505
93506                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
93507                 function declarations.
93508                 * unsetenv.c (unsetenv): Likewise.
93509
93510         2002-03-04  Bruno Haible  <bruno@clisp.org>
93511
93512                 Portability to AIX 4.3.3.
93513                 * unsetenv.c: New file, extracted from setenv.c.
93514                 * setenv.c: Move the unsetenv() function to unsetenv.c.
93515
93516         2001-12-20  Bruno Haible  <bruno@clisp.org>
93517
93518                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
93519                 use malloc instead. For SunOS 4.
93520
93521         2001-12-11  Bruno Haible  <bruno@clisp.org>
93522
93523                 * setenv.c: Declare alloca.
93524                 (compar_fn_t): New typedef.
93525                 (KNOWN_VALUE, STORE_VALUE): Use it.
93526
93527         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
93528         setenv.h.
93529
93530 2002-12-10  Paul Eggert  <eggert@twinsun.com>
93531
93532         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
93533         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
93534         Choose values that are less likely to collide with system fnmatch
93535         options.
93536         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
93537         defined (e.g., a pure POSIX system).
93538         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
93539         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
93540
93541 2002-12-06  Paul Eggert  <eggert@twinsun.com>
93542
93543         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
93544         a pain in practice to deal with generated m4 files.  This change
93545         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
93546
93547         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
93548         and jm-glibc-io.m4, as they are no longer a special case.
93549         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
93550         kludge and the auto-generation stuff.  Check only whether the
93551         functions are declared, not whether they exist, since older hosts
93552         that don't declare the functions can't use the optimization anyway.
93553
93554 2002-12-06  Jim Meyering  <jim@meyering.net>
93555
93556         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
93557
93558         Merge in changes from libc's misc/error.c, in preparation
93559         for the merge of gnulib's changes back into libc.
93560
93561         * lib/error.c (_): Define only if not already defined.
93562         Move definition to follow all #include directives.
93563         Include unlocked-io.h only if !_LIBC.
93564         [_LIBC]: Include <libio/libioP.h>.
93565         [USE_IN_LIBIO]: Include <libio/iolibio.h>
93566         (fflush): Tweak definition to use INTUSE.
93567         (putc): Define.
93568
93569 2002-12-05  Paul Eggert  <eggert@twinsun.com>
93570
93571         * lib/alloca.c [defined emacs]: Include "lisp.h".
93572         (xalloc_die) [defined emacs]: New macro.
93573         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
93574         [! defined emacs]: Include <xalloc.h>.
93575         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
93576         (pointer): Typedef to POINTER_TYPE *.
93577         (malloc): Remove decl; we now always use xmalloc.
93578         (alloca): Use old-style definition, since Emacs needs this.
93579         Check for arithmetic overflow when computing combined size.
93580
93581 2002-12-04  Paul Eggert  <eggert@twinsun.com>
93582
93583         Do not generate unlocked-io.h automatically, since it's easier to
93584         maintain it by hand.
93585
93586         * lib/unlocked-io.h: New file, from GNU diffutils,
93587         but with proper copyright notice and attribution.
93588         * lib/gen-uio: Remove.
93589         * lib/Makefile.am: Add copyright notice.
93590         (libfetish_a_SOURCES): Add unlocked-io.h.
93591         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
93592         (DISTCLEANFILES, io_functions): Remove macros.
93593         (EXTRA_DIST): Remove gen_uio.
93594         (unlocked-io.h): Remove rule.
93595
93596 2002-12-04  Jim Meyering  <jim@meyering.net>
93597
93598         Reflect the fact that stat.c and lstat.c are no longer generated.
93599         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
93600         (DISTCLEANFILES): Likewise.
93601         (EXTRA_DIST): Likewise.
93602         (all_local): Don't depend on stat.c or lstat.c.
93603         (stat.c, lstat.c): Remove rules.
93604         (EXTRA_DIST): Remove xstat.in.
93605
93606         * lib/xstat.in: Remove file.  Contents moved into stat.c.
93607         * lib/stat.c: New file.  Contents mostly from xstat.in.
93608         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
93609         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
93610
93611         * lib/safe-read.c: Rework so that it may serve to define safe_write,
93612         too.
93613         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
93614
93615 2002-12-03  Jim Meyering  <jim@meyering.net>
93616
93617         * lib/safe-read.c, safe-write.c: Change variable names and comments,
93618         but not semantics, to minimize the differences between these two files.
93619         (safe_read): Change comment to mention SAFE_READ_ERROR.
93620
93621         * lib/safe-read.c (IS_EINTR): Define.
93622         (safe_read): Use IS_EINTR in place of in-function cpp directives.
93623
93624 2002-12-02  Jim Meyering  <jim@meyering.net>
93625
93626         * lib/safe-read.c (EINTR): Define.
93627         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
93628         (INT_MAX): Provide fallback.
93629         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
93630
93631         * lib/safe-read.h (SAFE_READ_ERROR): Define.
93632
93633 2002-12-02  Bruno Haible  <bruno@clisp.org>
93634
93635         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
93636         Define, taken from safe-read.c.
93637         (INT_MAX): Provide fallback.
93638         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
93639         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
93640
93641         * lib/safe-read.c (EINTR): Remove definition.
93642         (safe_read): Don't use EINTR if it is absent.
93643
93644 2002-12-01  Jim Meyering  <jim@meyering.net>
93645
93646         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
93647         zero.
93648         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
93649
93650 2002-11-27  Paul Eggert  <eggert@twinsun.com>
93651
93652         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
93653         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
93654         with `if (! (value < limit)) abort ();', for readability.
93655
93656 2002-11-26  Karl Berry  <karl@gnu.org>
93657
93658         * lib/strdup.c: copy from libc again, with jim's ok.
93659         * lib/.cppi-disable: re-add strdup.c
93660
93661 2002-11-25  Karl Berry  <karl@gnu.org>
93662
93663         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
93664         instead of "strtol.c".
93665
93666 2002-11-25  Karl Berry  <karl@gnu.org>
93667
93668         * config/install-sh: update from automake for variable quoting, $0 in
93669         error msgs, etc.
93670
93671         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
93672         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
93673         entry.
93674
93675 2002-11-25  Jim Meyering  <jim@meyering.net>
93676
93677         * lib/mktime.c: Sync from libc, now that it has the latest fix.
93678
93679 2002-11-24  Karl Berry  <karl@gnu.org>
93680
93681         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
93682         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
93683
93684 2002-11-24  Jim Meyering  <jim@meyering.net>
93685
93686         Update from coreutils:
93687
93688         * lib/mktime.c: Merge in changes from libc.
93689
93690         Avoid a link-time failure on some Linux systems.
93691         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
93692         (otherwise).
93693         (__mon_yday): Declare with the STATIC attribute.
93694         (__mktime_internal): Likewise.
93695         Based on a report from Greg Schafer.
93696
93697 2002-11-23  Jim Meyering  <jim@meyering.net>
93698
93699         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
93700         Use `unsigned', not `int', as type of index.
93701
93702         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
93703
93704         * lib/fsusage.c: Remove unneeded parentheses around operands of
93705         `defined'.
93706
93707 2002-11-22  Paul Eggert  <eggert@twinsun.com>
93708
93709         * lib/quotearg.h: Allow multiple inclusion by surrounding with
93710         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
93711         so that we can be included first.
93712         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
93713         * lib/quotearg.c: Include quotearg.h immediately after config.h.
93714         No need to include stddef.h or sys/types.h any more.
93715         Surround local include files with "", not "<>".
93716         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
93717         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
93718         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
93719         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
93720         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
93721         (ISPRINT): Remove; no longer needed now that we assume C89.
93722
93723         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
93724         Preserve errno.
93725
93726         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
93727         quotearg_char): Use SIZE_MAX rather than
93728         (size_t) -1 when we are talking about "infinity".
93729
93730         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
93731
93732 2002-11-22  Paul Eggert  <eggert@twinsun.com>
93733
93734         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
93735         hint that one should use `if (! x) abort ();' rather than `assert
93736         (x);', and anyway it's one less thing to worry about configuring.
93737         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
93738         hash_rehash, hash_insert): Use abort rather than assert.
93739
93740 2002-11-22  Bruno Haible  <bruno@clisp.org>
93741
93742         * lib/safe-read.h: Assume C89. Add comments.
93743         (safe_read): Change return type to size_t.
93744         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
93745         byte counts > SSIZE_MAX correctly.
93746         * lib/safe-write.h: New file.
93747         * lib/safe-write.c: New file.
93748         * lib/full-read.h: New file.
93749         * lib/full-read.c: New file.
93750         * lib/full-write.h: Assume C89. Add comments.
93751         * lib/full-write.c: Include safe-write.h.
93752         (full_write): Rewritten to use safe_write.
93753         Suggested by Jim Meyering and Paul Eggert.
93754
93755 2002-11-21  Jim Meyering  <jim@meyering.net>
93756
93757         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
93758
93759         Merge in changes from the coreutils.
93760
93761         2002-09-25  Paul Eggert  <eggert@twinsun.com>
93762         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
93763         <stdint.h>.
93764         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
93765         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
93766         int.  Work more efficiently if X is the same width as uintmax_t.
93767         Do not compare X to -1, to avoid bogus compiler warning.
93768         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
93769         Don't assume that f_frsize and f_bsize are the same type.
93770
93771         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
93772         warning on FreeBSD.
93773
93774         * lib/makepath.c (make_path): Restore umask *before* creating the final
93775         component.
93776         (make_path): Minor reformatting.
93777
93778         * lib/xmalloc.c: Adjust to work with new autoconf macros,
93779         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
93780         HAVE_MALLOC/HAVE_REALLOC.
93781
93782         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
93783         dummy ones.  At least on GNU/Linux systems, `auto' means something
93784         else.
93785         From Michael Stone.
93786
93787 2002-11-21  Bruno Haible  <bruno@clisp.org>
93788
93789         Remove case insensitive option matching.
93790         * lib/argmatch.h (argcasematch): Remove declaration.
93791         (ARGCASEMATCH): Remove macro.
93792         (__xargmatch_internal): Remove case_sensitive argument.
93793         (XARGMATCH): Update.
93794         (XARGCASEMATCH): Remove macro.
93795         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
93796         case_sensitive argument.
93797         (argcasematch): Remove function.
93798         (__xargmatch_internal): Remove case_sensitive argument.
93799         (main): Use XARGMATCH instead of XARGCASEMATCH.
93800
93801         * lib/xmalloc.c: Change compile-time error message. Add comment about
93802         required autoconf version.
93803
93804 2002-11-20  Paul Eggert  <eggert@twinsun.com>
93805
93806         Merge argmatch cleanups from Bison.  Assume C89.
93807
93808         * lib/argmatch.c: Include config.h here, not in argmatch.h.
93809         Include stdlib.h, for EXIT_FAILURE.
93810         Always include <string.h>, since we assume C89.
93811         (EXIT_FAILURE): Remove pre-C89 bug workaround.
93812         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
93813         Include <stddef.h> instead, since it's all we need for size_t.
93814         (PARAMS): Remove.  All uses removed.
93815         (ARRAY_CARDINALITY): Do not bother to #undef.
93816         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
93817         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
93818         Remove unnecessary parentheses.
93819         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
93820         Insert necessary parentheses.
93821         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
93822         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
93823
93824 2002-11-19  Bruno Haible  <bruno@clisp.org>
93825
93826         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
93827         * lib/mbswidth.h: Include <stddef.h>, for size_t.
93828
93829         * lib/mbswidth.h (PARAMS): Remove macro.
93830         (mbswidth, mbsnwidth): Use ANSI C function declarations.
93831         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
93832
93833         * lib/gcd.h (PARAMS): Remove macro.
93834         (gcd): Use ANSI C function declarations.
93835         * lib/gcd.c (gcd): Likewise.
93836
93837 2002-11-15  Bruno Haible  <bruno@clisp.org>
93838
93839         * lib/strcspn.c: Include <stddef.h>.
93840         (strcspn): Use ANSI C function declaration. Change return type to
93841         size_t. Use NULL.
93842         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
93843         (strpbrk): Use NULL.
93844         * lib/strpbrk.h (PARAMS): Remove macro.
93845         (strpbrk): Use ANSI C function declaration.
93846         * lib/strstr.c: Don't include <sys/types.h>.
93847         * lib/strstr.h (PARAMS): Remove macro.
93848         (strstr): Use ANSI C function declarations.
93849
93850 2002-11-14  Karl Berry  <karl@gnu.org>
93851
93852         * config/mkinstalldirs: `do' on separate line, instead of
93853         `for var; do'.
93854
93855 2002-11-06  Bruno Haible  <bruno@clisp.org>
93856
93857         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
93858         * lib/gcd.c (gcd): Likewise.
93859
93860 2002-11-05  Bruno Haible  <bruno@clisp.org>
93861
93862         * lib/gcd.h: New file, from gettext-0.11.5.
93863         * lib/gcd.c: New file, from gettext-0.11.5.
93864
93865 2002-11-05  Bruno Haible  <bruno@clisp.org>
93866
93867         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
93868         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
93869         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
93870         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
93871
93872         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
93873         <libintl.h>.
93874         * lib/makepath.c: Include gettext.h instead of <locale.h> and
93875         <libintl.h>.
93876
93877         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
93878         * lib/human.c: Include gettext.h instead of <libintl.h>.
93879         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
93880         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
93881         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
93882         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
93883         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
93884         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
93885         (textdomain): Remove definition.
93886         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
93887
93888         * lib/long-options.c: Remove include of <libintl.h> and definition of
93889         _.
93890         * lib/same.c: Remove include of <libintl.h> and definition of _.
93891
93892 2002-11-04  Owen Taylor  <otaylor@redhat.com>
93893
93894         * lib/config.charset: A few additions for Solaris.
93895
93896 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
93897
93898         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
93899         * lib/localcharset.c (locale_charset): Declare as extern "C".
93900
93901 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
93902
93903         * lib/config.charset: msdos in uk_UA uses CP1125.
93904
93905 2002-11-04  Bruno Haible  <bruno@clisp.org>
93906
93907         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
93908         * lib/strcase.h: New file, from GNU gettext-0.11.5.
93909         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
93910         * lib/strstr.h: New file, from GNU gettext-0.11.5.
93911         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
93912
93913 2002-11-04  Bruno Haible  <bruno@clisp.org>
93914
93915         * lib/localcharset.c (locale_charset): Don't return an empty string.
93916
93917 2002-11-04  Bruno Haible  <bruno@clisp.org>
93918
93919         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
93920         aliases.
93921
93922 2002-11-04  Bruno Haible  <bruno@clisp.org>
93923
93924         * lib/config.charset: Update for newest glibc. Add canonical names
93925         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
93926
93927 2002-11-04  Bruno Haible  <bruno@clisp.org>
93928
93929         * lib/config.charset: Add support for NetBSD.
93930
93931 2002-11-04  Bruno Haible  <bruno@clisp.org>
93932
93933         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
93934
93935 2002-11-01  Bruno Haible  <bruno@clisp.org>
93936
93937         * configure.in: Add AC_CONFIG_AUX_DIR call.
93938         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
93939         test/Makefile.
93940         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
93941
93942 2002-09-28  Karl Berry  <karl@gnu.org>
93943
93944         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
93945         installed automake until the next release, since changes have been
93946         made.
93947
93948 2002-09-25  Karl Berry  <karl@gnu.org>
93949
93950         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
93951         * lib/getopt*: copy from libc/posix.
93952         * lib/gettext.h: copy from gettext.
93953         * lib/.cppi-disable: add strdup.c, gettext.h.
93954
93955 2002-09-25  Karl Berry  <karl@gnu.org>
93956
93957         * config/srclist.txt: enable gettext.h check.
93958         * config/config.{guess,sub}: update from prep.
93959         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
93960                 from automake 1.6.3.
93961         See srclist*.
93962
93963 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
93964
93965         * regex.c (PATFETCH): Remove the translating fetch.
93966         (PATFETCH_RAW): Rename to PATFETCH.
93967         (set_image_of_range): New fun.
93968         (SET_RANGE_TABLE_WORK_AREA): Use it.
93969         (regex_compile): Don't translate the pattern chars so eagerly.
93970         Only do it when inserting an `exactn' bytecode or when handling
93971         a char-range.
93972         (mutually_exclusive_p): Avoid empty statement.
93973
93974 2002-07-06  Jim Meyering  <meyering@lucent.com>
93975
93976         * m4/README: Don't mention Makefile.am.in.
93977         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
93978
93979 2002-07-01  Jim Meyering  <meyering@lucent.com>
93980
93981         * lib/c-stack.c: Include sys/time.h.
93982         From Volker Borchert.
93983
93984 2002-06-26  Paul Eggert  <eggert@twinsun.com>
93985
93986         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
93987
93988 2002-06-26  Paul Eggert  <eggert@twinsun.com>
93989
93990         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
93991         New macro.  Use it uniformly instead of
93992         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
93993         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
93994         reported by Vin Shelton.
93995
93996 2002-06-22  Paul Eggert  <eggert@twinsun.com>
93997
93998         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
93999         Do not assume SA_SIGINFO behavior.
94000         Bug reported by Jim Meyering on NetBSD 1.5.2.
94001
94002 2002-06-22  Jim Meyering  <meyering@lucent.com>
94003
94004         * m4/c-stack.m4: New file, from diffutils-2.8.2.
94005         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
94006
94007         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
94008         now that configure.ac uses AC_GNU_SOURCE.
94009         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
94010         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
94011
94012         Update to latest tools.  Suggestions from Paul Eggert.
94013         * m4/stdbool.m4: New file, from diffutils-2.8.2.
94014         * m4/gnu-source.m4: Update from diffutils-2.8.2.
94015         * m4/fnmatch.m4: Likewise.
94016         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
94017         to AC_HEADER_STDBOOL
94018
94019 2002-06-22  Jim Meyering  <meyering@lucent.com>
94020
94021         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
94022         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
94023
94024 2002-06-22  Jim Meyering  <meyering@lucent.com>
94025
94026         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
94027
94028         * lib/exitfail.c, exitfail.h: Likewise.
94029         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
94030
94031         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
94032         of fnmatch.h.
94033         (EXTRA_DIST): Add fnmatch_loop.c.
94034         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
94035
94036         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
94037         * lib/fnmatch.c: Update from diffutils-2.8.2.
94038         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
94039         * lib/fnmatch.h: Remove file.
94040
94041 2002-06-21  Jim Meyering  <meyering@lucent.com>
94042
94043         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
94044         * m4/mbrtowc.m4: Likewise.
94045
94046         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
94047         * m4/mbswidth.m4: Reflect name change:
94048         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
94049         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
94050
94051         * m4/lib-link.m4: Update from gettext-0.11.2.
94052         * m4/gettext.m4: Likewise.
94053
94054         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
94055         From Alfred M. Szmidt.
94056
94057 2002-06-18  Paul Eggert  <eggert@twinsun.com>
94058
94059         * lib/file-type.h: Report an error if neither S_ISREG nor
94060         S_IFREG is defined, instead of using a test specific to glibc
94061         2.2.  This should be safe, since POSIX requires S_ISREG and
94062         Unix Version 7 had S_IFREG.  We don't need to check for
94063         <sys/types.h> since we don't use any symbols that it defines.
94064
94065 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
94066
94067         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
94068         $@-t, so that each temporary file name is unique and valid in the first
94069         8 characters, for operation under DOS.
94070
94071 2002-06-15  Paul Eggert  <eggert@twinsun.com>
94072
94073         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
94074
94075 2002-06-15  Jim Meyering  <meyering@lucent.com>
94076
94077         Work even with DJGPP 2.03, which lacks support for symlinks.
94078         From Richard Dawe.
94079         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
94080         is defined.
94081         * lib/lchown.c (S_ISLNK): Likewise.
94082
94083 2002-06-15  Jim Meyering  <meyering@lucent.com>
94084
94085         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
94086         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
94087         have been included before this file.
94088
94089 2002-06-14  Jim Meyering  <meyering@lucent.com>
94090
94091         * lib/file-type.h: Use the version from diffutils-2.8.2.
94092         * lib/file-type.c: Likewise.
94093
94094 2002-06-07  Jim Meyering  <meyering@lucent.com>
94095
94096         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
94097         They're needed at least for NetBSD 1.5.2.
94098         ($statxfs_includes): Include those same headers.
94099         ($statxfs_includes): Include sys/vfs.h if available.
94100         ($statxfs_includes): Likewise for sys/statvfs.h.
94101         Check for the following members in both structs statfs and statvfs:
94102         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
94103
94104 2002-06-01  Jim Meyering  <meyering@lucent.com>
94105
94106         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
94107         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
94108
94109 2002-05-28  Jim Meyering  <meyering@lucent.com>
94110
94111         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
94112         Reported by Volker Borchert.
94113
94114 2002-05-27  Jim Meyering  <meyering@lucent.com>
94115
94116         Fix a problem seen only on nonconforming systems whereby ls.c's
94117         use of localtime, and then of gettimeofday would cause trouble:
94118         the localtime call used to initialize rpl_gettimeofday's save
94119         mechanism would clobber ls's current local time information so
94120         that in any long listing the first file would always be listed
94121         with date 1970-01-01.  Analysis by Volker Borchert.
94122
94123         * lib/gettimeofday.c (localtime): Undefine.
94124         (rpl_localtime): New function.
94125
94126 2002-05-27  Jim Meyering  <meyering@lucent.com>
94127
94128         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
94129         localtime.
94130
94131         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
94132         use the replacement function; it wouldn't resolve at link time.
94133         Reported by Volker Borchert.
94134
94135 2002-05-22  Jim Meyering  <meyering@lucent.com>
94136
94137         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
94138         file-type.h.
94139         * lib/file-type.h: New file.
94140         * lib/file-type.c (file_type): New file/function.  Extracted from
94141         diffutils.
94142
94143 2002-04-30  Jim Meyering  <meyering@lucent.com>
94144
94145         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
94146
94147 2002-04-29  Paul Eggert  <eggert@twinsun.com>
94148
94149         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
94150
94151 2002-04-29  Paul Eggert  <eggert@twinsun.com>
94152
94153         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
94154         Do not check for alloca.h (no longer used) or stdbool.h (was never
94155         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
94156
94157 2002-04-29  Paul Eggert  <eggert@twinsun.com>
94158
94159         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
94160
94161 2002-04-29  Jim Meyering  <meyering@lucent.com>
94162
94163         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
94164         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
94165         Use AC_FUNC_STRNLEN here instead.
94166
94167         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
94168         With autoconf-2.53a, it's part of AC_PROG_CC.
94169
94170 2002-04-28  Paul Eggert  <eggert@twinsun.com>
94171
94172         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
94173         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
94174
94175 2002-04-28  Paul Eggert  <eggert@twinsun.com>
94176
94177         * lib/sig2str.h, lib/sig2str.c: New files.
94178         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
94179
94180 2002-04-28  Paul Eggert  <eggert@twinsun.com>
94181
94182         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
94183         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
94184         of 127, since 64 is the largest conceivable number for ancient
94185         nonstandard hosts.
94186         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
94187
94188 2002-04-28  Jim Meyering  <meyering@lucent.com>
94189
94190         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
94191
94192 2002-04-24  Jim Meyering  <meyering@lucent.com>
94193
94194         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
94195         (jm_PREREQ): Use it.
94196
94197         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
94198         mach/mach.h fcntl.h.
94199         Check for this function: setlocale.
94200
94201 2002-04-24  Jim Meyering  <meyering@lucent.com>
94202
94203         * lib/gettext.h: New file, from Gettext.
94204         * lib/Makefile.am (INCLUDES): Remove -I../intl.
94205         (libfetish_a_SOURCES): Add gettext.h.
94206
94207 2002-04-16  Jim Meyering  <meyering@lucent.com>
94208
94209         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
94210         ut_pid, ut_id, ut_exit.
94211
94212 2002-04-16  Jim Meyering  <meyering@lucent.com>
94213
94214         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
94215         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
94216         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
94217
94218 2002-04-12  Jim Meyering  <meyering@lucent.com>
94219
94220         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
94221         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
94222         existence of the getmntinfo function.  Needed for Darwin 5.3.
94223
94224         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
94225         This is necessary at least on Darwin 5.3.
94226
94227         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
94228         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
94229         strnlen.o in the library, and that makes some versions of ranlib
94230         object.
94231
94232 2002-04-12  Jim Meyering  <meyering@lucent.com>
94233
94234         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
94235
94236 2002-04-09  Jim Meyering  <meyering@lucent.com>
94237
94238         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
94239         to be more precise.  Rather than saying we're checking whether the
94240         function `works', say what we're testing.
94241         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
94242         Reported by Bruno Haible.
94243
94244 2002-03-10  Jim Meyering  <meyering@lucent.com>
94245
94246         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
94247         Suggestion from Santiago Vila.
94248
94249 2002-03-08  Jim Meyering  <meyering@lucent.com>
94250
94251         * lib/rename.c: Mention that this wrapper is needed also on
94252         mips-dec-ultrix4.4 systems.
94253
94254 2002-03-02  Jim Meyering  <meyering@lucent.com>
94255
94256         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
94257         not HAVE_CLOCK_SETTIME.
94258
94259 2002-02-27  Paul Eggert  <eggert@twinsun.com>
94260
94261         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
94262         Check for clock_settime.
94263
94264 2002-02-27  Paul Eggert  <eggert@twinsun.com>
94265
94266         * lib/nanosleep.h: Rename to....
94267         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
94268
94269         * lib/gettime.c: New file.
94270         * lib/settime.c: New file.
94271         * lib/stime.c: Remove.
94272
94273         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
94274         timespec.h.  Remove nanosleep.h.
94275
94276 2002-02-25  Paul Eggert  <eggert@twinsun.com>
94277
94278         * m4/acl.m4: New file.
94279         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
94280         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
94281
94282 2002-02-25  Paul Eggert  <eggert@twinsun.com>
94283
94284         * lib/acl.c, lib/acl.h: New files.
94285         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
94286
94287 2002-02-24  Jim Meyering  <meyering@lucent.com>
94288
94289         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
94290         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
94291         cause trouble.  Reported by Nelson Beebe.
94292
94293 2002-02-23  Paul Eggert  <eggert@twinsun.com>
94294
94295         * lib/path-concat.c (xpath_concat): Reorder code to pacify
94296         compilers that don't know that xalloc_die never returns.
94297
94298 2002-02-20  Jim Meyering  <meyering@lucent.com>
94299
94300         * lib/getdate.c: Regenerate using bison-1.33.
94301
94302 2002-02-17  Jim Meyering  <meyering@lucent.com>
94303
94304         * config/config.guess (main): Don't use `head -1'; it's no longer
94305         portable. Use `sed 1q' instead.
94306
94307 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
94308
94309         * m4/codeset.m4: Upgrade to gettext-0.11.
94310         * m4/gettext.m4: Upgrade to gettext-0.11.
94311         * m4/glibc21.m4: Upgrade to gettext-0.11.
94312         * m4/iconv.m4: Upgrade to gettext-0.11.
94313         * m4/isc-posix.m4: Upgrade to gettext-0.11.
94314         * m4/lcmessage.m4: Upgrade to gettext-0.11.
94315         * m4/lib-ld.m4: New file, from gettext-0.11.
94316         * m4/lib-link.m4: New file, from gettext-0.11.
94317         * m4/lib-prefix.m4: New file, from gettext-0.11.
94318         * m4/progtest.m4: Upgrade to gettext-0.11.
94319
94320 2002-02-15  Paul Eggert  <eggert@twinsun.com>
94321
94322         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
94323         (jm_PREREQ): Use it.
94324
94325 2002-02-15  Paul Eggert  <eggert@twinsun.com>
94326
94327         * lib/posixver.c, lib/posixver.h: New files.
94328         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
94329
94330 2002-02-02  Paul Eggert  <eggert@twinsun.com>
94331             Bruno Haible  <bruno@clisp.org>
94332
94333         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
94334         (fwrite_success_callback): New declaration.
94335         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
94336         print_unicode_char. Call failure callback instead of error.
94337         (fwrite_success_callback): New function.
94338         (exit_failure_callback): New function.
94339         (fallback_failure_callback): New function.
94340         (print_unicode_char): Call unicode_to_mb.
94341
94342 2002-01-26  Jim Meyering  <meyering@lucent.com>
94343
94344         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
94345         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
94346
94347 2002-01-26  Jim Meyering  <meyering@lucent.com>
94348
94349         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
94350
94351 2002-01-22  Paul Eggert  <eggert@twinsun.com>
94352
94353         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
94354
94355 2002-01-22  Jim Meyering  <meyering@lucent.com>
94356
94357         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
94358         Otherwise, some versions of automake would omit the rule that makes
94359         Makefile from Makefile.in.
94360
94361 2002-01-21  Paul Eggert  <eggert@twinsun.com>
94362
94363         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
94364         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
94365         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
94366         (memcoll): Set errno to zero if there is no error.
94367
94368         * lib/quotearg.c (quotearg_buffer_restyled):
94369         Fix bug with quoting buffers containing NUL when backslashing escapes.
94370         This bug was exposed by the other changes in this patch.
94371         (quotearg_n_options): New arg ARGSIZE.
94372         All callers changed.
94373         (quoting_options_from_style): New function.
94374         (quotearg_n_style): Use it.
94375         (quotearg_n_style_mem): New function.
94376
94377         * lib/quotearg.h (quotearg_n_style_mem): New function.
94378
94379 2002-01-19  Jim Meyering  <meyering@lucent.com>
94380
94381         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
94382         Remove useless quotes: DF_PROG="df".
94383         * m4/strnlen.m4: New file.
94384
94385 2002-01-16  Paul Eggert  <eggert@twinsun.com>
94386
94387         * lib/backupfile.c (ISDIGIT): Comment fix.
94388         * lib/getdate.y (ISDIGIT): Likewise.
94389         * lib/posixtm.c (ISDIGIT, year): Likewise.
94390         * lib/strverscmp.c (ISDIGIT): Likewise.
94391         * lib/userspec.c (ISDIGIT): Likewise.
94392
94393 2002-01-16  Jim Meyering  <meyering@lucent.com>
94394
94395         * lib/getdate.y: Add three semicolons, each just before a closing
94396         brace. Bison (as of version 1.31) no longer papers over that mistake.
94397
94398 2002-01-05  Jim Meyering  <meyering@lucent.com>
94399
94400         * lib/version-etc.c (version_etc_copyright): Update copyright year.
94401
94402 2001-12-19  Paul Eggert  <eggert@twinsun.com>
94403
94404         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
94405         not silently exit merely because the output buffer happens to
94406         have nothing pending.
94407
94408 2001-12-18  Paul Eggert  <eggert@twinsun.com>
94409
94410         See the big note in ../ChangeLog.
94411         * lib/human.c (suffixes): Prefer K to k for 1024.
94412         (generate_suffix_backwards): New function.
94413         (human_readable_inexact): Use it.
94414         * lib/xstrtol.c (__xstrtol): If there is no number but there
94415         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
94416         Accept 'K' as well as 'k'.
94417
94418 2001-12-15  Jim Meyering  <meyering@lucent.com>
94419
94420         * lib/regex.h (__restrict_arr): Update from libc.
94421
94422         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
94423         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
94424         (STREQ): Define.
94425
94426 2001-12-14  Jim Meyering  <meyering@lucent.com>
94427
94428         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
94429         Suggestion from Bruno Haible.
94430
94431 2001-12-10  Jim Meyering  <meyering@lucent.com>
94432
94433         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
94434         xrealloc, Instead, include "xalloc.h".
94435         (initbuffer): Don't cast xmalloc return value to char*.
94436         (readline): Reword comment.
94437         Don't cast xrealloc return value to char*
94438         Return NULL, not 0.
94439
94440 2001-12-09  Jim Meyering  <meyering@lucent.com>
94441
94442         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
94443         about `signed and unsigned type in conditional expression'.
94444         * lib/posixtm.c (posix_time_parse): Likewise.
94445
94446         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
94447
94448         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
94449         to avoid a pedantic warning.
94450
94451         * lib/getstr.c: Don't include assert.h.
94452         (getstr): Remove warning-evoking assertions.
94453         Return -1 if offset parameter is out of bounds.
94454         Change the type of a local from int to size_t.
94455
94456         * lib/strftime.c (my_strftime_localtime_r): Include this function
94457         definition in the `#if ! HAVE_TM_GMTOFF' block.
94458
94459         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
94460         Include xalloc.h instead.
94461
94462 2001-12-02  Jim Meyering  <meyering@lucent.com>
94463
94464         * lib/tempname.c: Don't declare getenv, thus reverting the change of
94465         2001-11-18.  It's no longer necessary, now that stdlib.h is always
94466         included.
94467
94468         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
94469         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
94470
94471 2001-11-30  Akim Demaille  <akim@epita.fr>
94472
94473         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
94474         before being defined.
94475
94476 2001-11-27  Paul Eggert  <eggert@twinsun.com>
94477
94478         * lib/quotearg.h (quotearg_n, quotearg_n_style):
94479         First arg is int, not unsigned.
94480         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
94481         (SIZE_MAX, UINT_MAX): New macros.
94482         (quotearg_n_options): Abort if N is negative.
94483         Avoid overflow check on hosts where size_t is 64 bits and int
94484         is 32 bits, as overflow is impossible there.
94485         Fix off-by-one typo that caused unnecessary reallocation.
94486
94487 2001-11-27  Jim Meyering  <meyering@lucent.com>
94488
94489         * lib/tempname.c: Merge with version from libc.
94490         * lib/regex.c: Likewise.
94491
94492         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
94493         systems for which STDC_HEADERS is 0, it was not included, resulting in
94494         a warning about an integer-to-pointer conversion problem with getenv.
94495         Reported by Volker Borchert.
94496
94497 2001-11-26  Jim Meyering  <meyering@lucent.com>
94498
94499         * lib/gtod.h: Remove file.
94500         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
94501         * lib/gettimeofday.c: Don't include gtod.h.
94502         (GTOD_init): Remove function.
94503         (rpl_gettimeofday): Do its job here instead, rather than aborting.
94504         Suggestion from Volker Borchert.
94505
94506 2001-11-23  Jim Meyering  <meyering@lucent.com>
94507
94508         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
94509         it.
94510         * lib/hash.c (struct hash_table): Define it here instead.
94511
94512 2001-11-22  Jim Meyering  <meyering@lucent.com>
94513
94514         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
94515
94516 2001-11-20  Jim Meyering  <meyering@lucent.com>
94517
94518         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
94519         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
94520
94521 2001-11-19  Jim Meyering  <meyering@lucent.com>
94522
94523         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
94524         directory.  Use "conftestXXXXXX" as the template.
94525         Suggestion from Paul Eggert.
94526
94527         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
94528         immediately, so the test doesn't mistakenly hit the max-open-files
94529         limit.
94530
94531 2001-11-18  Paul Eggert  <eggert@twinsun.com>
94532
94533         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
94534         (TEMPORARIES): New macro.
94535         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
94536         removes an artificial limitation (e.g. HP-UX 10.20, where
94537         TMP_MAX is 17576).
94538
94539 2001-11-18  Jim Meyering  <meyering@lucent.com>
94540
94541         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
94542
94543 2001-11-18  Jim Meyering  <meyering@lucent.com>
94544
94545         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
94546         on SunOS 4.
94547
94548         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
94549         files will be created before anything else.
94550
94551 2001-11-17  Paul Eggert  <eggert@twinsun.com>
94552
94553         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
94554         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
94555
94556 2001-11-17  Jim Meyering  <meyering@lucent.com>
94557
94558         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
94559         Prompted by a report from Bob Proulx.
94560
94561         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
94562         Instead, require UTILS_FUNC_MKSTEMP.
94563
94564 2001-11-17  Jim Meyering  <meyering@lucent.com>
94565
94566         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
94567         Now, that's done as part of AC_FUNC_STRTOD.
94568
94569 2001-11-17  Jim Meyering  <meyering@lucent.com>
94570
94571         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
94572         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
94573         rather than group writable.  Patch by Juan F. Codagnone.
94574
94575         * lib/readtokens.c: Remove explicit declarations of xmalloc and
94576         xrealloc, Instead, include "xalloc.h".
94577
94578         * lib/mountlist.c: Include unlocked-io.h after all system headers.
94579         Remove explicit declarations of xmalloc, xrealloc,
94580         and xstrdup.  Instead, include "xalloc.h".
94581
94582         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
94583         unlocked-io.h.
94584         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
94585         Likewise.
94586         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
94587
94588         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
94589         Reported by Padraig Brady.
94590
94591         * lib/mkstemp.c: #undef mkstemp.
94592         Include config.h.
94593         (rpl_mkstemp): Rename from mkstemp.
94594         Protoize.
94595
94596 2001-11-16  Jim Meyering  <meyering@lucent.com>
94597
94598         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
94599         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
94600         determine the amount of total physical memory, use pstat_getstatic.
94601         HPUX-11 doesn't define _SC_PHYS_PAGES.
94602         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
94603         If sysconf couldn't be used to determine the amount of available
94604         physical memory, use both pstat_getstatic and pstat_getdynamic.
94605         Based on a patch from Bob Proulx.
94606
94607 2001-11-10  Jim Meyering  <meyering@lucent.com>
94608
94609         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
94610         (jm_PREREQ): Use it.
94611
94612 2001-11-09  Jim Meyering  <meyering@lucent.com>
94613
94614         * m4/jm-macros.m4: Require autoconf-2.52f.
94615         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
94616         Use these AC_-prefixed names, not the AM_-prefixed ones.
94617
94618         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
94619
94620 2001-11-05  Jim Meyering  <meyering@lucent.com>
94621
94622         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
94623
94624 2001-11-04  Jim Meyering  <meyering@lucent.com>
94625
94626         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
94627         $DEFS.
94628
94629 2001-11-03  Jim Meyering  <meyering@lucent.com>
94630
94631         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
94632         of AC_DEFUN.
94633
94634         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
94635         know the name of the variable in the macro definition.
94636
94637 2001-11-03  Jim Meyering  <meyering@lucent.com>
94638
94639         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
94640         in argmatch_to_argument call.
94641
94642         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
94643         argument.
94644
94645         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
94646         e.g., a fault due to an attempt to free a NULL pointer.
94647
94648 2001-11-01  Jim Meyering  <meyering@lucent.com>
94649
94650         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
94651         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
94652
94653 2001-11-01  Jim Meyering  <meyering@lucent.com>
94654
94655         * lib/dirfd.c, lib/dirfd.h: New files.
94656         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
94657
94658         * lib/hash.c (hash_print) [TESTING]: Clean up.
94659
94660 2001-10-22  Paul Eggert  <eggert@twinsun.com>
94661
94662         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
94663         to avoid a warning if -Wall.
94664
94665 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
94666
94667         * README: New file
94668         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
94669         (per RMS's instructions, this is now the canonical source)
94670         * lgpl/, gpl/: New directories.
94671
94672 2001-10-21  Paul Eggert  <eggert@twinsun.com>
94673
94674         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
94675
94676 2001-10-21  Jim Meyering  <meyering@lucent.com>
94677
94678         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
94679         this code would end up calling gettext even in packages built
94680         with --disable-nls.
94681         * lib/getopt.c (_): Likewise.
94682         * lib/regex.c (_): Likewise.
94683
94684 2001-10-20  Paul Eggert  <eggert@twinsun.com>
94685
94686         * m4/error.m4 (jm_PREREQ_ERROR):
94687         Do not invoke AC_CHECK_FUNCS with strerror_r, as
94688         AC_FUNC_STRERROR_R does that.
94689         Check for strerror declaration.
94690
94691         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
94692         are supposed to have them these days.
94693         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
94694         Merge changes from latest Autoconf CVS.
94695         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
94696         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
94697         POSIX decided to standardize on the int flavor of strerror_r.
94698
94699 2001-10-20  Paul Eggert  <eggert@twinsun.com>
94700
94701         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
94702         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
94703         Use strerror_r that is only a macro, even if it is not a function.
94704         (strerror): Check for HAVE_DECL_STRERROR before declaring.
94705         (private_strerror): Use prototypes, not old-style function definition.
94706         (print_errno_message): New function.
94707         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
94708         char*-flavored one.
94709         (error_tail, error, error_at_line): Use it.
94710
94711 2001-10-11  Jim Meyering  <meyering@lucent.com>
94712
94713         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
94714         and quote_n (1, ... to avoid clobbering a buffer.
94715
94716 2001-10-05  Jim Meyering  <meyering@lucent.com>
94717
94718         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
94719         hash-pjw.h.
94720         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
94721         * lib/hash-pjw.h: New file.
94722
94723 2001-09-30  Jim Meyering  <meyering@lucent.com>
94724
94725         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
94726         `struct fsstat' has the `f_fstypename' member.
94727         Use that to define FS_TYPE, which is now used to make
94728         the getfsstat link test tighter.
94729
94730 2001-09-30  Jim Meyering  <meyering@lucent.com>
94731
94732         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
94733         Include <sys/ucred.h>, for Apple Darwin.
94734         Include sys/mount.h and sys/fs_types.h only if available.
94735         (FS_TYPE): Define.
94736         (read_filesystem_list): Use FS_TYPE.
94737
94738 2001-09-29  Paul Eggert  <eggert@twinsun.com>
94739
94740         * lib/exclude.c (excluded_filename): 0 -> false, since it's
94741         a boolean context.
94742
94743 2001-09-29  Jim Meyering  <meyering@lucent.com>
94744
94745         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
94746         [one-argument getmntent function]): Include stdio.h before mntent.h.
94747         SunOS 4.1.x needs it for the declaration of `FILE'.
94748         Patch by Volker Borchert.
94749
94750         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
94751         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
94752         sys/fs_types.h, and make the link-test for getfsstat guard #include
94753         directives with appropriate #if HAVE_*_H tests so that we can
94754         detect getfsstat on Apple Darwin1.3.7 systems.
94755         Reported by Nelson Beebe.
94756         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
94757
94758 2001-09-28  Paul Eggert  <eggert@twinsun.com>
94759
94760         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
94761         #defines strtoimax.  Also treat the other strto* functions
94762         like strtoimax.
94763
94764         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
94765         Check for strtoul and strtoumax,
94766         as those declarations are made even in the signed case.
94767         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
94768         Likewise, for strtol and strtoimax.
94769
94770 2001-09-28  Paul Eggert  <eggert@twinsun.com>
94771
94772         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
94773         #defines strtoimax.  Also treat the other strto* functions
94774         like strtoimax.
94775
94776         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
94777         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
94778         (strtoimax, strtoumax): Do not declare if already defined as a macro.
94779
94780 2001-09-26  Jim Meyering  <meyering@lucent.com>
94781
94782         Most macros in unlocked-io.h had the wrong number of arguments.
94783         * lib/gen-uio: New script.
94784         (USE_UNLOCKED_IO): Define to 1 if not already defined.
94785         * lib/unlocked-io.hin: Remove file.
94786         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
94787         rather than trying to embed it here.
94788         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
94789         Reported by Padraig Brady.
94790
94791 2001-09-25  Volker Borchert  <bt@teknon.de>
94792
94793         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
94794         `result'.
94795
94796 2001-09-24  Jim Meyering  <meyering@lucent.com>
94797
94798         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
94799
94800 2001-09-23  Jim Meyering  <meyering@lucent.com>
94801
94802         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
94803         instead of the mere test for existence of mntent.h.  The latter
94804         would get a false-positive on AIX 3.4 systems.
94805         In the outer getmntent if-block, don't die if neither of the getmntent
94806         tests succeeds.  Instead, just fall through and continue with the
94807         remaining tests.
94808
94809 2001-09-23  Jim Meyering  <meyering@lucent.com>
94810
94811         * lib/mountlist.c: Remove useless parentheses in #if directives.
94812         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
94813         the deprecated MOUNTED symbol is no longer defined in mntent.h.
94814
94815 2001-09-22  Jim Meyering  <meyering@lucent.com>
94816
94817         * m4/gettext.m4: New file.  From gettext.
94818         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
94819         * m4/progtest.m4: Likewise
94820         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
94821         * m4/glibc21.m4: Likewise.
94822
94823         * m4/libintl.m4: Remove.  No longer used.
94824
94825 2001-09-22  Jim Meyering  <meyering@lucent.com>
94826
94827         * lib/localcharset.c: Update from latest gettext.
94828         * lib/config.charset: Likewise.
94829
94830 2001-09-20  Jim Meyering  <meyering@lucent.com>
94831
94832         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
94833         strtoimax.
94834         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
94835         strtoumax.
94836
94837 2001-09-20  Jim Meyering  <meyering@lucent.com>
94838
94839         * lib/xstrtol.c (strtoimax): Guard declaration with
94840         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
94841         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
94842         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
94843         (strtoumax): Likewise, for completeness (it wasn't necessary).
94844
94845 2001-09-17  Paul Eggert  <eggert@twinsun.com>
94846
94847         * lib/strtoimax.c (HAVE_LONG_LONG):
94848         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
94849         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
94850         to work around bug in IBM C compiler.
94851
94852 2001-09-17  Jim Meyering  <meyering@lucent.com>
94853
94854         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
94855         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
94856         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
94857         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
94858         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
94859         whenever the right hand side need not be expanded by the shell.
94860
94861 2001-09-16  Paul Eggert  <eggert@twinsun.com>
94862
94863         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
94864         library.  It's not correct, as some older glibcs are buggy.
94865         fnmatch wasn't fixed until glibc 2.2.
94866
94867         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
94868         special shell magic here.
94869
94870 2001-09-16  Jim Meyering  <meyering@lucent.com>
94871
94872         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
94873         * m4/jm-macros.m4: Require it.
94874
94875 2001-09-16  Jim Meyering  <meyering@lucent.com>
94876
94877         * lib/mkdir.c: New file.
94878
94879 2001-09-15  Jim Meyering  <meyering@lucent.com>
94880
94881         * m4/jm-macros.m4: Check for help2man.
94882
94883 2001-09-11  Jim Meyering  <meyering@lucent.com>
94884
94885         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
94886         The body, by Paul Eggert, was moved here from configure.in.
94887         * m4/jm-macros.m4: Require UTILS_HOST_OS.
94888
94889 2001-09-04  Paul Eggert  <eggert@twinsun.com>
94890
94891         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
94892         (jm_PREREQ): Use it.
94893
94894 2001-09-04  Paul Eggert  <eggert@twinsun.com>
94895
94896         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
94897         Use ssize_t, not int, to store result of readlink.
94898         Check for ssize_t overflow as well as size_t overflow,
94899         as POSIX says the result of readlink is implementation-defined
94900         when ssize_t overflows.
94901         Remove unnecessary cast to char*.
94902         Use free+malloc instead of realloc, as the storage doesn't need
94903         to be preserved and it's clearer and can be more efficient that way.
94904         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
94905         * lib/xreadlink.h (xreadlink): Update prototype.
94906
94907 2001-09-04  Paul Eggert  <eggert@twinsun.com>
94908
94909         * lib/xgetcwd.c: Revert some of the previous change; intead,
94910         fix the HAVE_GETCWD_NULL code to behave more like the
94911         !HAVE_GETCWD_NULL code used to.
94912
94913         Include "xalloc.h".
94914         (xgetcwd): Do not return NULL when memory is exhausted; instead,
94915         invoke xalloc_die.
94916
94917 2001-09-03  Paul Eggert  <eggert@twinsun.com>
94918
94919         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
94920         sys/param.h, as pathmax.h includes them.
94921
94922 2001-09-03  Paul Eggert  <eggert@twinsun.com>
94923
94924         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
94925         (jm_PREREQ_XGETCWD): New macro.
94926
94927         * m4/getcwd.m4: New file.
94928
94929 2001-09-03  Paul Eggert  <eggert@twinsun.com>
94930
94931         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
94932         like the HAVE_GETCWD_NULL code.
94933         Include pathmax.h if not HAVE_GETCWD.
94934         Do not include xalloc.h.
94935         (INITIAL_BUFFER_SIZE): New symbol.
94936         Do not use xmalloc / xrealloc, since the caller is responsible for
94937         handling errors.  Preserve errno around `free' during failure.
94938         Do not overrun buffer when using getwd.
94939
94940 2001-09-03  Paul Eggert  <eggert@twinsun.com>
94941
94942         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
94943         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
94944         getcwd (NULL, 0).
94945
94946 2001-09-03  Paul Eggert  <eggert@twinsun.com>
94947
94948         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
94949         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
94950         spotted by Jim Meyering.
94951
94952 2001-09-03  Jim Meyering  <meyering@lucent.com>
94953
94954         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
94955         failure.
94956
94957 2001-09-02  Jim Meyering  <meyering@lucent.com>
94958
94959         * lib/error.c: Update from GNU libc.
94960
94961 2001-09-01  Jim Meyering  <meyering@lucent.com>
94962
94963         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
94964         Used by df.
94965
94966 2001-09-01  Jim Meyering  <meyering@lucent.com>
94967
94968         * lib/xreadlink.c: New file.
94969         * lib/xreadlink.h: New file.
94970         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
94971         xreadlink.h.
94972
94973         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
94974         doesn't conflict with sparc Solaris 7's definition in
94975         /usr/include/sys/int_types.h.
94976
94977         * lib/exclude.c: Use `""', not `<>' to #include non-system header
94978         files.
94979         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
94980         and strncasecmp as r-values.  Unixware didn't have declarations.
94981
94982 2001-08-31  Paul Eggert  <eggert@twinsun.com>
94983
94984         * lib/xstrtol.h: Add copyright notice.
94985         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
94986         LONGINT_INVALID_SUFFIX_CHAR.
94987
94988 2001-08-31  Paul Eggert  <eggert@twinsun.com>
94989
94990         * lib/xstrtol.c (strtoimax): New decl.
94991
94992 2001-08-31  Paul Eggert  <eggert@twinsun.com>
94993
94994         * lib/xgetcwd.c: Don't include pathmax.h.
94995         Include stdlib.h and unistd.h if available.
94996         Include xalloc.h.
94997         (xmalloc, xstrdup, free): Remove decls.
94998         (xgetcwd): Don't assume sizes fit in unsigned.
94999         Check for overflow when computing sizes.
95000         Simplify reallocation code.
95001
95002 2001-08-31  Paul Eggert  <eggert@twinsun.com>
95003
95004         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
95005         a directory's st_size can have an arbitrary value, so the old
95006         usage could waste an arbitrary amount of memory.  All uses
95007         changed.
95008         * lib/savedir.h: Update prototype.
95009
95010 2001-08-31  Paul Eggert  <eggert@twinsun.com>
95011
95012         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
95013
95014         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
95015         old strtoimax.c.
95016
95017         Also, make the following further changes to make this file's
95018         configuration more similar to that of strtol.c:
95019         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
95020         (strtoumax, uintmax_t, strtoull, strtol): Remove.
95021         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
95022         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
95023         changed to signed values.
95024
95025         And make the following changes as well:
95026         Fix copyright notice, as 1999 was missing.
95027         (verify): New macro.
95028         (strtoimax): Check sizes at compile-time, not run-time.
95029         Prefer strtol to strtoll if both work.
95030         (main): Remove; it was not that useful and was a pain to maintain.
95031
95032         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
95033
95034 2001-08-31  Jim Meyering  <meyering@lucent.com>
95035
95036         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
95037         Use an initial, malloc'd, buffer of length 128 rather than
95038         a statically allocated one of length 1024.
95039
95040 2001-08-30  Paul Eggert  <eggert@twinsun.com>
95041
95042         Simplify code, partly by assuming autoconf 2.52 semantics.
95043
95044         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
95045
95046         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
95047         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
95048         All uses removed.
95049         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
95050         Move AC_REQUIRE to next-to-top level, to avoid confusion.
95051         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
95052         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
95053         jm_AC_HEADER_INTTYPES_H.
95054         * m4/jm-macros.m4 (jm_MACROS): Likewise.
95055
95056         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
95057
95058         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
95059         Quote first arg of AC_DEFUN.
95060         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
95061         since they are needed to parse the include file even if we need
95062         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
95063         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
95064         but with opposite signedness.
95065
95066 2001-08-30  Paul Eggert  <eggert@twinsun.com>
95067
95068         Merge 'exclude' changes from tar 1.13.22.
95069         This fixes one or two unlikely storage allocation overflow bugs,
95070         but doesn't change user-visible behavior otherwise.
95071
95072 2001-08-30  Paul Eggert  <eggert@twinsun.com>
95073
95074         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
95075         (jm_PREREQ_EXCLUDE): New macro.
95076
95077 2001-08-30  Paul Eggert  <eggert@twinsun.com>
95078
95079         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
95080         tm to be declared.
95081
95082 2001-08-30  Paul Eggert  <eggert@twinsun.com>
95083
95084         * lib/hash.c: Remove '2001' from copyright notice.
95085
95086 2001-08-30  Paul Eggert  <eggert@twinsun.com>
95087
95088         * lib/full-write.h: New file.
95089         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
95090         * lib/full-write.c: Correct credits, as cccp.c no longer
95091         exists and anyway it was so heavily changed from the old cccp
95092         code as to be unrecognizable.  Include full-write.h.
95093         (full_write): Return size_t, with short writes meaning failure.
95094         All callers changed.  This fixes a bug with large buffers
95095         on 64-bit hosts.
95096         * lib/utime.c: Include full-write.h.
95097
95098 2001-08-30  Paul Eggert  <eggert@twinsun.com>
95099
95100         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
95101         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
95102         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
95103         Include if available.
95104         (<xalloc.h>): Include
95105         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
95106         (verify): New macro.  Use it to verify that EXCLUDE macros do not
95107         collide with FNM macros.
95108         (struct patopts): New struct.
95109         (struct exclude): Use it, as exclude patterns now come with options.
95110         (new_exclude): Support above changes.
95111         (new_exclude, add_exclude_file):
95112         Initial size must now be a power of two to simplify overflow checking.
95113         (free_exclude, fnmatch_no_wildcards): New function.
95114         (excluded_filename): No longer requires options arg, as the options
95115         are determined by add_exclude.  Now returns bool, not int.
95116         (excluded_filename, add_exclude):
95117         Add support for the fancy new exclusion options.
95118         (add_exclude, add_exclude_file): Now takes int options arg.
95119         Check for arithmetic overflow when computing sizes.
95120         (add_exclude_file): xrealloc might modify errno, so don't
95121         realloc until after errno might be used.
95122
95123         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
95124         New macros.
95125         (free_exclude): New decl.
95126         (add_exclude, add_exclude_file): Now takes int options arg.
95127         (excluded_filename): No longer requires options arg, as the options
95128         are determined by add_exclude.  Now returns bool, not int.
95129
95130 2001-08-30  Paul Eggert  <eggert@twinsun.com>
95131
95132         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
95133
95134 2001-08-27  Jim Meyering  <meyering@lucent.com>
95135
95136         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
95137
95138         * lib/version-etc.c (N_): Remove definition.
95139         Revert most of last change.
95140         Instead, simply don't mark the `Copyright...' string for translation.
95141         Based on advice from Paul Eggert.
95142
95143         * lib/strtoxmax.c: Tweak comment.
95144
95145 2001-08-26  Jim Meyering  <meyering@lucent.com>
95146
95147         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
95148
95149         * m4/xstrtoimax.m4: New file.
95150         * m4/xstrtoumax.m4: Add comments explaining why we
95151         AC_REPLACE_FUNCS(strtol).
95152
95153 2001-08-26  Jim Meyering  <meyering@lucent.com>
95154
95155         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
95156         of copyright with `%s' so translators don't get an untranslated
95157         message in 2002.
95158         (COPYRIGHT_YEAR): Define.
95159         (version_etc): Use fprintf rather than fputs.
95160         Suggestion from Ulrich Drepper.
95161
95162         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
95163
95164         * lib/strtoll.c: New file, from GNU libc.
95165         * lib/xstrtoimax.c: New file.
95166
95167         * lib/xstrtol.h: Add xstrtoimax.
95168         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
95169         * lib/strtoimax.c: New file.  Likewise, but first define
95170         STRTOUXMAX_SIGNED.
95171
95172         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
95173         ...
95174         * lib/strtoxmax.c: ... then renamed to this.
95175
95176 2001-08-18  Paul Eggert  <eggert@twinsun.com>
95177
95178         * m4/inttypes.m4: Add AC_PREREQ(2.13).
95179         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
95180         (jm_AC_TYPE_INTMAX_T): New macro.
95181         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
95182
95183         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
95184
95185         * m4/longlong.m4: Renamed from ulonglong.m4.
95186         * m4/inttypes.m4: Renamed from inttypes_h.m4.
95187         * m4/uintmax_t.m4: Removed.
95188
95189 2001-08-13  Paul Eggert  <eggert@twinsun.com>
95190
95191         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
95192         Port to Solaris 8, where 'sed' requires a space after the 'r'
95193         command, and where sh dislikes "$/".  Clean up the spacing a bit.
95194         Redirect output to $tmp just once.
95195
95196 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
95197
95198         * lib/addext.c (<errno.h>): Include.
95199         (errno): Declare if not defined.
95200         (addext): Work correctly when pathconf returns -1 and leaves
95201         errno alone because there is no limit.  Also, work even if
95202         pathconf returns a value greater than SIZE_MAX.
95203
95204 2001-08-12  Jim Meyering  <meyering@lucent.com>
95205
95206         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
95207         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
95208         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
95209         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
95210         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
95211         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
95212         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
95213         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
95214         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
95215         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
95216         utime.m4, utimes.m4, xstrtoumax.m4:
95217         Quote the first argument in each use of AC_DEFUN.
95218
95219 2001-08-12  Jim Meyering  <meyering@lucent.com>
95220
95221         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
95222         Simply `return getcwd (NULL, 0);'.
95223         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
95224         Use 1300 as initial value for length, not PATH_MAX.
95225
95226         * lib/pathmax.h: Clean up cpp syntax.
95227
95228 2001-08-12  Jim Meyering  <meyering@lucent.com>
95229
95230         * lib/gettimeofday.c: New file.
95231         * lib/gtod.h: New file.
95232         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
95233
95234 2001-08-05  Jim Meyering  <meyering@lucent.com>
95235
95236         * m4/jm-macros.m4: Require autoconf-2.52.
95237
95238 2001-08-04  Jim Meyering  <meyering@lucent.com>
95239
95240         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
95241         stmt, to get in sync with glibc.
95242
95243 2001-08-03  Paul Eggert  <eggert@twinsun.com>
95244
95245         The following changes are from gettext 0.10.39 as maintained by
95246         Bruno Haible.
95247
95248         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
95249         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
95250         with inverted sense.  All uses changed.
95251
95252         * lib/mbswidth.c: Don't include <limits.h>.
95253         Include <stdlib.h> and <string.h> unconditionally.
95254         (iswcntrl, mbsinit, ISCNTRL): New macros.
95255         (mbsnwidth): Use K&R style function declarations.
95256         Don't bother checking for MB_LEN_MAX == 1, since the compiler
95257         can optimize it when MB_CUR_MAX == 1.
95258         The width of control characters is zero, not 1.
95259
95260 2001-08-03  Paul Eggert  <eggert@twinsun.com>
95261
95262         The following changes are from gettext 0.10.39 as maintained by
95263         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
95264
95265         * m4/codeset.m4: Upgrade to serial AM1.
95266         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
95267         all uses changed.  Quote first arg of AC_DEFUN.
95268         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
95269
95270         * m4/iconv.m4: Upgrade to serial AM2.
95271         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
95272         Add --with-libconv-prefix.
95273         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
95274         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
95275         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
95276         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
95277         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
95278
95279         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
95280         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
95281         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
95282         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
95283         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
95284         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
95285         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
95286         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
95287         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
95288
95289         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
95290         string.h any more.
95291
95292         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
95293         not the default value.
95294
95295         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
95296         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
95297         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
95298         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
95299         Also check for iswcntrl, used for wcwidth fallback.
95300         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
95301         to Autoconf 2.13.
95302
95303 2001-08-03  Jim Meyering  <meyering@lucent.com>
95304
95305         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
95306         as it was in the original.  Reported by Paul Eggert.
95307
95308 2001-07-16  Jim Meyering  <meyering@lucent.com>
95309
95310         * m4/gettimeofday.m4: New file.
95311         Prompted by a report from Bernhard Baehr.
95312
95313 2001-07-15  Jim Meyering  <meyering@lucent.com>
95314
95315         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
95316         stuff. Now it's in ../Makefile.cfg.
95317
95318 2001-07-15  Jim Meyering  <meyering@lucent.com>
95319
95320         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
95321         (BUILT_SOURCES): Add unlocked-io.h.
95322         (io_functions): Define.
95323         (unlocked-io.h): New rule.
95324         (DISTCLEANFILES): Add unlocked-io.h.
95325         (all-local): Depend on unlocked-io.h, to ensure it is created.
95326
95327         * lib/unlocked-io.hin: New file
95328
95329         * lib/regex.c: Update from glibc.
95330
95331 2001-07-05  Jim Meyering  <meyering@lucent.com>
95332
95333         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
95334         recommendation.
95335         (libfetish_a_SOURCES): Put all .h files here instead.
95336         Remove a thus-exposed (better checks in automake) duplicate and
95337         two unnecessary .h files.
95338
95339 2001-07-04  Jim Meyering  <meyering@lucent.com>
95340
95341         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
95342         that generates jm-glibc-io.m4 so that it doesn't trigger any make
95343         distcheck failure.
95344
95345 2001-07-02  Jim Meyering  <meyering@lucent.com>
95346
95347         The following changes were prompted by suggestions from Bruno Haible.
95348
95349         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
95350         is now generated.
95351         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
95352         definition of EXTRA_DIST.
95353         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
95354         ensure that the generated file is created/updated whenever the list
95355         of $(unlocked_functions) is changed.
95356         (jm-glibc-io.m4): New rule.
95357         (unlocked-io.h): New rule -- currently unused.
95358
95359 2001-06-24  Jim Meyering  <meyering@lucent.com>
95360
95361         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
95362         unmatched right bracket, rather than kludging it with an extra,
95363         falsely-matching quote in a comment.  Patch by Akim Demaille.
95364
95365 2001-06-11  Jim Meyering  <meyering@lucent.com>
95366
95367         * lib/regex.c: Update from GNU libc.
95368
95369 2001-05-27  Jim Meyering  <meyering@lucent.com>
95370
95371         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
95372         Check for ut_type in struct utmp.
95373
95374 2001-05-27  Jim Meyering  <meyering@lucent.com>
95375
95376         * lib/readutmp.h (UT_TYPE): Define.
95377
95378 2001-05-24  Jim Meyering  <meyering@lucent.com>
95379
95380         * lib/argmatch.c: Include "quote.h".
95381         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
95382         quote function.  Reported by Göran Uddeborg.
95383
95384 2001-05-22  Jim Meyering  <meyering@lucent.com>
95385
95386         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
95387         now that we use the package-supplied version unconditionally.
95388         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
95389
95390 2001-05-21  Jim Meyering  <meyering@lucent.com>
95391
95392         * m4/regex.m4: Change a couple backticks to single quotes to avoid
95393         shell syntax errors.
95394
95395 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
95396
95397         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
95398
95399 2001-05-20  Paul Eggert  <eggert@twinsun.com>
95400
95401         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
95402         Don't bother to check library strftime, since
95403         we'll be using our own my_strftime function anyway.
95404         Define my_strftime instead of strftime.
95405
95406 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
95407
95408         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
95409         which is not yet declared.
95410
95411 2001-05-15  Jim Meyering  <meyering@lucent.com>
95412
95413         * m4/regex.m4: Use proper quoting so brackets appear in the test
95414         program.
95415         Reported by, and with help from, Bruno Haible.
95416
95417 2001-05-13  Jim Meyering  <meyering@lucent.com>
95418
95419         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
95420         undefined.
95421
95422 2001-05-11  Paul Eggert  <eggert@twinsun.com>
95423
95424         dirname code cleanup.  base_name now behaves more compatibly
95425         with POSIX basename when given file names that have trailing
95426         slashes, and similarly for dir_name.  Add new primitives
95427         base_len and dir_len.  Put the directory-name-related decls
95428         into dirname.h.
95429
95430         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
95431         * lib/backupfile.c (base_name): Likewise.
95432         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
95433         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
95434         * lib/makepath.c (strip_trailing_slashes): Likewise.
95435         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
95436         ISSLASH): Likewise.
95437         * lib/rename.c (strip_trailing_slashes): Likewise.
95438         * lib/same.c (base_name): Likewise.
95439         * lib/stripslash.c (ISSLASH): Likewise.
95440
95441         * lib/addext.c: Include <dirname.h> after size_t is defined.
95442         * lib/backupfile.c: Likewise.
95443
95444         * lib/addext.c (addext): Use base_len to trim redundant
95445         trailing slashes instead of doing it ourselves.
95446         But do not trim the last slash if it is not redundant.
95447
95448         * lib/backupfile.c (find_backup_file_name,
95449         max_backup_version): Use base_len instead of rolling it ourselves.
95450         Handle the case of "" and (on DOS) "C:" correctly.
95451
95452         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
95453         needed. Include <string.h>, <dirname.h>.
95454         (base_name): Allow file names ending in slashes, other than names
95455         that are all slashes.  In this case, return the basename followed
95456         by the slashes.  This is more general, and can be used in places
95457         where the original base_name purposely had an assertion failure.
95458         (base_len): New function.
95459
95460         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
95461         Do not include <assert.h>; no longer needed.
95462         Include xalloc.h.
95463         (memrchr): Remove decl.
95464         (dir_name_r): Remove.
95465         (dir_len): Renamed from dirlen.  All callers changed.
95466         Rewrite in terms of base_name, for simplicity and consistency.
95467         (dir_name): Never return NULL.  All callers changed.
95468         Do not include <stdlib.h> in test program; no longer needed.
95469         return 0; is fine for test program.
95470
95471         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
95472         New macros.
95473         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
95474
95475         * lib/path-concat.c (path_concat): Use base_len to compute
95476         base length, not strlen; this means we cannot rely on memcpy
95477         to null-terminate.
95478
95479         * lib/same.c (STREQ): Remove.
95480         (same_name): Handle the case where the basename ends in trailing '/'.
95481
95482         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
95483         a slash was stripped.  Do not strip the last slash after a
95484         file system prefix.
95485
95486 2001-05-11  Paul Eggert  <eggert@twinsun.com>
95487
95488         * lib/Makefile.am (libfetish_a_SOURCES):
95489         Add strftime.c, since we now compile it on all hosts.
95490
95491         * lib/strftime.c (my_strftime):
95492         Define to nstrftime if emacs, but only if my_strftime is not defined.
95493         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
95494         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
95495         Add one more extra argument: a nanoseconds value.
95496         All uses changed.
95497         (ns): New macro.
95498         (my_strftime function): Add %N format.
95499         (emacs_strftimeu): Renamed from emacs_strftime,
95500         with extra ut argument.
95501
95502 2001-05-09  Paul Eggert  <eggert@twinsun.com>
95503
95504         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
95505
95506 2001-04-21  Jim Meyering  <meyering@lucent.com>
95507
95508         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
95509         doesn't interfere.
95510
95511 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
95512
95513         * m4/ftruncate.m4: Check for chsize.
95514         Link with ftruncate.o unconditionally if ftruncate is missing.
95515         This was required when cross-compiling to i586-mingw32msvc.
95516
95517 2001-04-08  Jim Meyering  <meyering@lucent.com>
95518
95519         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
95520         recomputed; that's necessary when the offset spans a DST transition.
95521         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
95522
95523 2001-04-02  Jim Meyering  <meyering@lucent.com>
95524
95525         * lib/regex.h, regex.c: Update from GNU libc.
95526
95527 2001-03-24  Jim Meyering  <meyering@lucent.com>
95528
95529         * m4/jm-macros.m4: Require autoconf-2.49d.
95530
95531 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
95532
95533         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
95534
95535 2001-03-19  Paul Eggert  <eggert@twinsun.com>
95536
95537         * lib/version-etc.c (version_etc_copyright): Update to 2001.
95538
95539 2001-03-17  Jim Meyering  <meyering@lucent.com>
95540
95541         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
95542         now that the version in autoconf is equivalent.
95543         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
95544
95545         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
95546         Suggestion from Akim Demaille.
95547
95548         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
95549         (jm_PREREQ_TEMPNAME): New function.
95550
95551 2001-03-16  Paul Eggert  <eggert@twinsun.com>
95552
95553         * lib/tempname.c (uint64_t): Define to uintmax_t if
95554         not defined, and if UINT64_MAX is not defined.
95555         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
95556         Reported by John David Anglin.
95557
95558 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
95559
95560         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
95561         resolve alias if codeset is empty.
95562         * lib/config.charset (BeOS): Use wildcard syntax.
95563
95564 2001-03-13  Jim Meyering  <meyering@lucent.com>
95565
95566         * lib/path-concat.c (path_concat)
95567         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
95568         concatenating e.g., `C:' and `foo'.
95569         From Bruno Haible.
95570
95571 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
95572
95573         * lib/localcharset.c (locale_charset): Don't use
95574         setlocale(LC_CTYPE,NULL). Don't return NULL.
95575         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
95576
95577 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
95578
95579         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
95580         support for DOS/DJGPP.
95581
95582 2001-03-01  Paul Eggert  <eggert@twinsun.com>
95583
95584         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
95585         lacks mkstemp.  Compile our own tempname.c if we compile our own
95586         mkstemp.c, as mkstemp relies on tempname.
95587
95588 2001-03-01  Jim Meyering  <meyering@lucent.com>
95589
95590         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
95591         AH_VERBATIM really does output its argument verbatim.
95592
95593 2001-02-28  Paul Eggert  <eggert@twinsun.com>
95594
95595         * lib/Makefile.am (libfetish_a_SOURCES):
95596         Add dup-safer.c, fopen-safer.c.
95597         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
95598
95599         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
95600         * lib/unistd-safer.h: New files.
95601
95602 2001-02-25  Paul Eggert  <eggert@twinsun.com>
95603
95604         The mkstemp replacement is taken from glibc 2.2.2, with some
95605         portability fixes for use outside glibc, as follows:
95606
95607         * lib/tempname.c (struct_stat64): New macro.
95608         (direxists, __gen_tempname): Use it.
95609         This avoids a portability problem with Solaris 8.
95610
95611         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
95612         (<stddef.h>, <stdint.h>, <string.h>):
95613         Include only if STDC_HEADERS || _LIBC.
95614         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
95615         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
95616         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
95617         (__set_errno): Define this macro if <errno.h> doesn't.
95618         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
95619         Define these macros if <stdio.h> doesn't.
95620         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
95621         Define these macros if <sys/stat.h>
95622         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
95623         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
95624         __xstat64): Define if not _LIBC.
95625         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
95626         (__gen_tempname): Invoke gettimeofday only if
95627         HAVE_GETTIMEOFDAY || _LIBC;
95628         otherwise, fall back on plain "time".
95629         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
95630
95631         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
95632
95633         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
95634
95635 2001-02-18  Paul Eggert  <eggert@twinsun.com>
95636
95637         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
95638
95639 2001-02-17  Paul Eggert  <eggert@twinsun.com>
95640
95641         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
95642         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
95643         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
95644         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
95645
95646 2001-02-17  Paul Eggert  <eggert@twinsun.com>
95647
95648         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
95649         Remove workaround macros for hosts that have mbrtowc but not
95650         mbstate_t, as we now insist on proper declarations for both
95651         before using mbrtowc.
95652
95653 2001-02-17  Jim Meyering  <meyering@lucent.com>
95654
95655         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
95656         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
95657         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
95658         UnixWare 7.1.1.
95659
95660         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
95661         rather than AC_CACHE_VAL.
95662
95663 2001-02-17  Jim Meyering  <meyering@lucent.com>
95664
95665         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
95666         around included file name.
95667
95668         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
95669
95670         * lib/strftime.c: Update from GNU libc (the only changes were to
95671         comments).
95672
95673 2001-02-17  Jim Meyering  <meyering@lucent.com>
95674
95675         * lib/regex.c: Update from libc.
95676
95677 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
95678
95679         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
95680         clash.
95681
95682 2001-02-16  Paul Eggert  <eggert@twinsun.com>
95683
95684         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
95685         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
95686         Reported by Mark Hounschell via Paul Eggert.
95687
95688 2001-02-07  Jim Meyering  <meyering@lucent.com>
95689
95690         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
95691
95692 2001-02-05  Jim Meyering  <meyering@lucent.com>
95693
95694         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
95695         it includes the patch required for `large file' support with at least
95696         HP-UX's 10.20 /bin/cc.
95697
95698 2001-02-03  Jim Meyering  <meyering@lucent.com>
95699
95700         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
95701         AS_IF, now that it works once again (mysteriously).
95702         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
95703
95704 2001-01-30  Jim Meyering  <meyering@lucent.com>
95705
95706         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
95707         * m4/chown.m4: Rename conftestchown to conftest.chown.
95708         * m4/rename.m4: s/conftestdir/conftest.d1/ and
95709         s/conftestdir2/conftest.d2/.
95710         * m4/utimes.m4: s/conftestdata/conftest.data/
95711         Inspired by Pavel Roskin's change in autoconf.
95712
95713 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
95714
95715         * lib/config.charset: Update for FreeBSD 4.2.
95716
95717 2001-01-27  Jim Meyering  <meyering@lucent.com>
95718
95719         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
95720         a use of AS_IF.
95721         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
95722
95723 2001-01-26  Jim Meyering  <meyering@lucent.com>
95724
95725         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
95726         quotearg.c includes it.
95727
95728 2001-01-26  Jim Meyering  <meyering@lucent.com>
95729
95730         * lib/quotearg.c: Include stddef.h.
95731         * lib/quote.c: Include stddef.h.
95732         Reported by Axel Kittenberger.
95733
95734         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
95735         line in double quotes so that it evokes a better diagnostic.
95736         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
95737         Reported by Axel Kittenberger.
95738
95739 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
95740
95741         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
95742         as if it was a `charset'.
95743
95744 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
95745
95746         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
95747         has const.
95748
95749 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
95750
95751         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
95752         to avoid a warning.  Add back 'const' to inptr.
95753
95754 2001-01-20  Jim Meyering  <meyering@lucent.com>
95755
95756         Be sure that headers are checked before used in code compiled
95757         for the type checks.
95758         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
95759         In place of that, invoke jm_CHECK_ALL_TYPES.
95760         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
95761         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
95762         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
95763         The check for ssize_t was mistakenly run before the test for unistd.h.
95764
95765         The configure-time check for stdbool.h was missing.
95766         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
95767         (jm_PREREQ_HASH): New function.
95768
95769 2001-01-17  Jim Meyering  <meyering@lucent.com>
95770
95771         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
95772         for autoconf-2.49c.
95773         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
95774
95775 2001-01-16  Jim Meyering  <meyering@lucent.com>
95776
95777         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
95778         From Bruno Haible.
95779
95780 2001-01-14  Jim Meyering  <meyering@lucent.com>
95781
95782         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
95783         foo and bar.  Create conftestdir/ in the script, not in the C code.
95784         Remove directories in the script, not in the C code.
95785         Remove conftestdir{,2} before trying to create the directory.
95786         Make the entire configure script fail if the mkdir fails.
95787
95788 2001-01-14  Jim Meyering  <meyering@lucent.com>
95789
95790         * lib/rename.c: New file.  From Volker Borchert.
95791         Include stdlib.h, string.h or strings.h, and xalloc.h.
95792         Use strip_trailing_slashes rather than open-coding it.
95793
95794 2001-01-03  Paul Eggert  <eggert@twinsun.com>
95795
95796         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
95797
95798 2001-01-03  Jim Meyering  <meyering@lucent.com>
95799
95800         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
95801         of local `inptr' to avoid warning with some system declarations of
95802         iconv.
95803
95804 2001-01-02  Volker Borchert  <bt@teknon.de>
95805
95806         * m4/rename.m4: New file.
95807         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
95808
95809 2001-01-01  Jim Meyering  <meyering@lucent.com>
95810
95811         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
95812         even on systems with utmpx.h.  It's necessary for the declaration of
95813         utmp's ut_user member.  Reported by Andreas Jaeger.
95814
95815         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
95816         available. They are required for the declarations of getgrgid and
95817         getpwuid resp.
95818         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
95819         Reported by Andreas Jaeger.
95820
95821 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
95822
95823         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
95824         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
95825         so `make install' also works in VPATH builds.
95826
95827 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
95828
95829         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
95830         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
95831         can be used in subdirectories.
95832
95833 2000-12-29  Paul Eggert  <eggert@twinsun.com>
95834
95835         * lib/modechange.c: Do not assume that mode_t uses the
95836         traditional octal encoding.  E.g. "chmod 1 FOO" should set
95837         the other-execute bit of FOO even if S_IXOTH != 1.
95838
95839         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
95840         WOTH, XOTH, ALLM): New macros.
95841         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
95842          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
95843         Use them.
95844         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
95845         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
95846         (mode_compile):
95847         No need to use uintmax_t; unsigned long is long enough.
95848         Don't bother to get suffix since we don't use it.
95849
95850 2000-12-26  Jim Meyering  <meyering@lucent.com>
95851
95852         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
95853         better with autoheader.
95854
95855 2000-12-24  Jim Meyering  <meyering@lucent.com>
95856
95857         * lib/hash.c (is_prime): Return explicit boolean values.
95858         (hash_get_first): Return NULL to appease Irix5.6's 89.
95859         Reported by Nelson Beebe.
95860
95861 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
95862
95863         * lib/localcharset.c (locale_charset): Add support for Win32.
95864
95865 2000-12-18  Paul Eggert  <eggert@twinsun.com>
95866
95867         * lib/physmem.h, lib/physmem.c: New files.
95868
95869         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
95870         (noinst_HEADERS): Add physmem.h.
95871
95872         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
95873         't' for compatibility with Solaris 8 sort.
95874
95875 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
95876
95877         * lib/config.charset: Add support for BeOS.
95878
95879 2000-12-17  Jim Meyering  <meyering@lucent.com>
95880
95881         * m4/dos.m4 (jm_AC_DOS): New file and macro.
95882         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
95883
95884 2000-12-16  Jim Meyering  <meyering@lucent.com>
95885
95886         This bug had a serious impact on chown: `chown N:M FILE' (for integer
95887         N and M) would have treated it like `chown N:N FILE'.
95888
95889         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
95890
95891 2000-12-16  Jim Meyering  <meyering@lucent.com>
95892
95893         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
95894         SHELLS_FILE to a file name that's useful on djgpp systems.
95895         Include stdlib.h.
95896         (ADDITIONAL_DEFAULT_SHELLS): Define.
95897         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
95898         Based mostly on a patch from Prashant TR.
95899
95900 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
95901
95902         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
95903         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
95904         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
95905
95906 2000-12-08  Andreas Schwab  <schwab@suse.de>
95907
95908         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
95909         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
95910
95911 2000-12-07  Jim Meyering  <meyering@lucent.com>
95912
95913         * lib/stripslash.c (ISSLASH): Define.
95914         (strip_trailing_slashes): Use ISSLASH rather than comparing against
95915         `/'.
95916         From Prashant TR.
95917
95918         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
95919         (dir_name_r): Declare this function as static.
95920         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
95921         manifest itself on a name containing a mix of slashes and
95922         backslashes.
95923         Make this function work with names starting with a DOS-style
95924         drive letter and colon prefix.
95925         (dir_name): Append `.' if necessary.
95926         Based mostly on patches from Prashant TR and Eli Zaretskii.
95927
95928         * lib/dirname.h (dir_name_r): Remove prototype.
95929
95930 2000-12-06  Paul Eggert  <eggert@twinsun.com>
95931
95932         * m4/off_t-format.m4: Remove this file.
95933         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
95934
95935 2000-12-06  Jim Meyering  <meyering@lucent.com>
95936
95937         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
95938         replacement strtoull, we may well need the replacement strtoul, too.
95939         Check for declarations of strtoul and strtoull.
95940         Check for strtol.  Mainly as a cue to cause automake to include
95941         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
95942         Check for limits.h -- strtol.c needs it.
95943
95944 2000-12-05  Jim Meyering  <meyering@lucent.com>
95945
95946         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
95947
95948 2000-12-04  Jim Meyering  <meyering@lucent.com>
95949
95950         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
95951         Also include memory.h, stdlib.h, unistd.h if appropriate.
95952         Reported by Andreas Jaeger (conflicting declaration of malloc).
95953
95954 2000-12-02  Jim Meyering  <meyering@lucent.com>
95955
95956         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
95957         * m4/jm-macros.m4 (jm_MACROS): require it.
95958
95959 2000-12-02  Jim Meyering  <meyering@lucent.com>
95960
95961         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
95962
95963 2000-12-01  Paul Eggert  <eggert@twinsun.com>
95964
95965         * lib/memrchr.c: Include <config.h> before any system include file.
95966
95967 2000-11-30  Jim Meyering  <meyering@lucent.com>
95968
95969         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
95970
95971 2000-11-30  Jim Meyering  <meyering@lucent.com>
95972
95973         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
95974
95975 2000-11-29  Paul Eggert  <eggert@twinsun.com>
95976
95977         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
95978
95979 2000-11-26  Jim Meyering  <meyering@lucent.com>
95980
95981         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
95982
95983 2000-11-22  Paul Eggert  <eggert@twinsun.com>
95984
95985         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
95986         size of (size_t) -1; it's not portable.
95987
95988 2000-11-17  Jim Meyering  <meyering@lucent.com>
95989
95990         * lib/strstr.c: Update from GNU libc.
95991
95992 2000-11-17  Akim Demaille  <akim@epita.fr>
95993
95994         * lib/obstack.h: Formatting changes.
95995         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
95996         prevent type checking.
95997         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
95998         cast the value to (void *): assigning a `foo *' to a `void *'
95999         variable is valid.
96000         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
96001
96002 2000-11-16  Jim Meyering  <meyering@lucent.com>
96003
96004         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
96005
96006 2000-11-11  Jim Meyering  <meyering@lucent.com>
96007
96008         * lib/error.c: Add a couple #includes, merging from GNU libc version.
96009
96010 2000-11-10  Jim Meyering  <meyering@lucent.com>
96011
96012         * lib/obstack.h: Update from GNU libc.
96013         * lib/obstack.c: Likewise.
96014
96015 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
96016
96017         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
96018
96019 2000-11-06  Paul Eggert  <eggert@twinsun.com>
96020
96021         * lib/getusershell.c (setusershell): Use rewind rather than
96022         fseek/fseeko, to avoid configuration hassles with fseeko.
96023         Don't bother opening SHELLS_FILE if shellstream is NULL;
96024         it's not necessary.
96025
96026 2000-11-05  Jim Meyering  <meyering@lucent.com>
96027
96028         * lib/makepath.h (make_dir): Declare.
96029         * lib/makepath.c (make_dir): Remove `static' attribute.
96030         Tweak a comment.
96031
96032 2000-11-04  Jim Meyering  <meyering@lucent.com>
96033
96034         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
96035
96036 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
96037
96038         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
96039         last one in a bucket, advance to the next bucket.
96040
96041 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
96042
96043         * lib/fnmatch.c: Do not comment out all the code if we are using
96044         the GNU C library, because in some cases we are replacing buggy
96045         code in the GNU C library itself.
96046
96047 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
96048
96049         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
96050         (regex_compile): Catch bogus \(\1\).
96051
96052 2000-10-30  Paul Eggert  <eggert@twinsun.com>
96053
96054         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
96055         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
96056         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
96057
96058 2000-10-30  Paul Eggert  <eggert@twinsun.com>
96059
96060         * lib/error.h, getline.h, modechange.h:
96061         Remove "2000" from Copyright line, as the file hasn't been
96062         changed this year other than in the copyright notice.
96063
96064         * lib/xalloc.h: Add "2000" to Copyright line, as this file
96065         was changed this year.
96066
96067 2000-10-29  Jim Meyering  <meyering@lucent.com>
96068
96069         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
96070         renaming.
96071         * m4/ls-mntd-fs.m4: Likewise
96072
96073 2000-10-29  Jim Meyering  <meyering@lucent.com>
96074
96075         * lib/xstat.in: Fix grammar in comment.
96076
96077 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
96078
96079         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
96080         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
96081         doesn't define __restrict_arr.
96082
96083 2000-10-28  Jim Meyering  <meyering@lucent.com>
96084
96085         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
96086         (jm_PREREQ_MEMCHR): New function.
96087
96088 2000-10-28  Jim Meyering  <meyering@lucent.com>
96089
96090         * lib/memchr.c: Update from libc.
96091         Adjust for portability:
96092         [HAVE_STDLIB_H]: Include stdlib.h.
96093         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
96094         Undef __memchr, too.
96095         [!weak_alias]: Define __memchr to memchr.
96096
96097         * lib/regex.c: Update from libc.
96098         * lib/regex.h: Likewise.
96099         * lib/getopt1.c: Likewise.
96100         * lib/memcmp.c: Likewise.
96101
96102         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
96103         Avoid using fseek, when possible -- it's broken by design.
96104         Patch by Ulrich Drepper.
96105
96106 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
96107
96108         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
96109         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
96110         Giving in to popular pressure to shut up the compiler with casts.
96111
96112 2000-10-26  Jim Meyering  <meyering@lucent.com>
96113
96114         * lib/strftime.c: Update from libc.
96115
96116 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
96117
96118         * regex.c: More `unsigned char' -> `re_char' changes.
96119         Also change several `int' into `re_wchar_t'.
96120         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
96121         (PUSH_FAILURE_POINTER): Don't cast any more.
96122         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
96123         We want GCC to complain, since this piece of code makes
96124         re_match non-reentrant, which *should* be fixed.
96125         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
96126         (EXTEND_BUFFER): Use RETALLOC.
96127         (SET_LIST_BIT): Don't cast.
96128         (re_wchar_t): New type.
96129         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
96130         that those two functions will always properly return.
96131         (IMMEDIATE_QUIT_CHECK): Cast to void.
96132         (analyse_first): Use recursion rather than an explicit stack.
96133         (re_compile_fastmap): Can't fail anymore.
96134         (re_search_2): Don't check re_compile_fastmap for failure.
96135         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
96136         Now also sets the new value (passed in a new argument).
96137         (re_match_2_internal): Use it.
96138         Also, use a new var `reg' of type size_t when looping through regs
96139         rather than reuse the inappropriate `mcnt'.
96140
96141 2000-10-25  Jim Meyering  <meyering@lucent.com>
96142
96143         * lib/obstack.c: Update from libc.
96144
96145 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
96146
96147         * regex.c (regex_compile): Change the way of handling a range from
96148         a char less than 256 to a char not less than 256.
96149
96150 2000-10-24  Andrew Innes  <andrewi@gnu.org>
96151
96152         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
96153         NT-Emacs only.
96154         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
96155         so that re_search functions only quit when callers expect them to.
96156
96157 2000-10-23  Jim Meyering  <meyering@lucent.com>
96158
96159         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
96160         wrong.  That set_locale call must not have any side effects.
96161         From Paul Eggert.
96162
96163 2000-10-22  Jim Meyering  <meyering@lucent.com>
96164
96165         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
96166         [CYCLIC]: Remove now-unused definition.
96167
96168         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
96169         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
96170         Suggestion from Ulrich Drepper.
96171
96172 2000-10-21  Jim Meyering  <meyering@lucent.com>
96173
96174         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
96175         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
96176         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
96177
96178 2000-10-21  Jim Meyering  <meyering@lucent.com>
96179
96180         * lib/dirname.c (memrchr): Declare if necessary.
96181         (dir_name): Remove the restriction that there be no
96182         trailing slashes.  Now, this code skips past them, effectively
96183         ignoring them.
96184         [TEST_DIRNAME] (main): New unit tests.
96185
96186         * lib/memrchr.c: New file from GNU libc.
96187         Undef __memrchr, too.
96188         [!weak_alias]: Define __memrchr to memrchr.
96189         Guard weak_alias use with `#ifdef weak_alias'.
96190
96191 2000-10-21  Jim Meyering  <meyering@lucent.com>
96192
96193         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
96194         (dir_name): Use dir_name_r.
96195         * lib/dirname.h (dir_name_r): Declare it.
96196
96197 2000-10-17  Jim Meyering  <meyering@lucent.com>
96198
96199         * lib/quote.h (PARAMS): Define and use.
96200         Reported by Akim Demaille.
96201
96202         * lib/getopt.c: Update from libc.
96203
96204 2000-10-16  Jim Meyering  <meyering@lucent.com>
96205
96206         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
96207         setlocale.
96208         From Jan Fedak.
96209
96210 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
96211
96212         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
96213
96214 2000-09-25  Jim Meyering  <meyering@lucent.com>
96215
96216         * lib/md5.h (rol): Define (from GnuPG).
96217
96218         * lib/sha.c: Give credit (GnuPG) where due.
96219         (M): Use rol rather than open-coding it.
96220         Add a FIXME comment.
96221
96222 2000-09-21  Jim Meyering  <meyering@lucent.com>
96223
96224         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
96225         Reported by Michael Stone.
96226
96227 2000-09-20  Jim Meyering  <meyering@lucent.com>
96228
96229         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
96230         (noinst_HEADERS): Add sha.h.
96231         Based on code from Scott G. Miller and from GnuPG.
96232
96233 2000-09-18  Jim Meyering  <meyering@lucent.com>
96234
96235         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
96236         LIBS. Otherwise, everyone ends up linking with -lelf for some
96237         configurations.
96238         Reported by Mike Stone.
96239
96240 2000-09-15  Jim Meyering  <meyering@lucent.com>
96241
96242         * lib/regex.c: Update from libc.
96243
96244 2000-09-10  Jim Meyering  <meyering@lucent.com>
96245
96246         * lib/getopt.c (_getopt_internal): Update from glibc.
96247
96248 2000-09-09  Jim Meyering  <meyering@lucent.com>
96249
96250         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
96251         think it should be used as a general replacement for isascii.
96252         * lib/fnmatch.c: Likewise.
96253         * lib/mbswidth.c: Likewise
96254         * lib/regex.c: Likewise.
96255
96256         Don't use atoi.
96257         * lib/userspec.c: Include sys/param.h and limits.h.
96258         Include xstrtol.h.
96259         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
96260         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
96261         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
96262         UID, GID.  Check range.
96263
96264 2000-09-06  Jim Meyering  <meyering@lucent.com>
96265
96266         * lib/getopt.c (_getopt_internal): Update from glibc.
96267
96268 2000-08-30  Jim Meyering  <meyering@lucent.com>
96269
96270         * lib/strftime.c: Merge in changes from GNU libc.
96271
96272 2000-08-26  Jim Meyering  <meyering@lucent.com>
96273
96274         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
96275         * m4/fpending.m4: New file.
96276
96277 2000-08-26  Jim Meyering  <meyering@lucent.com>
96278
96279         * lib/closeout.c: Include "__fpending.h".
96280         (close_stdout_status): Return right away if there's nothing to flush.
96281
96282         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
96283         * lib/__fpending.c: New file.
96284         * lib/__fpending.h: New file.
96285
96286 2000-08-20  Jim Meyering  <meyering@lucent.com>
96287
96288         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
96289         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
96290         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
96291
96292 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
96293
96294         Improve fileutils installation on systems where running
96295         programs (like install) can't be unlinked.
96296         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
96297         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
96298
96299 2000-08-07  Paul Eggert  <eggert@twinsun.com>
96300
96301         Standardize on "memory exhausted" instead of "Memory exhausted"
96302         or "virtual memory exhausted".
96303         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
96304         "virtual memory exhausted".
96305         * lib/same.c (same_name): Invoke xalloc_die instead of printing
96306         our own message.
96307         * lib/userspec.c (parse_user_spec): Likewise.
96308         * lib/bumpalloc.h: comment fix
96309         * lib/same.c, userspec.c: Include xalloc.h.
96310
96311         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
96312         not char *const and pointing to a constant array.
96313         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
96314         (xrealloc): Comment fix.
96315
96316         * lib/userspec.c (parse_user_spec):
96317         Don't translate a message until just before returning,
96318         to avoid unnecessary translation.
96319
96320 2000-08-07  Jim Meyering  <meyering@lucent.com>
96321
96322         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
96323         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
96324         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
96325         getgroups.c, gethostname.c, getopt.h, group-member.c,
96326         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
96327         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
96328         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
96329         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
96330         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
96331         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
96332         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
96333         yesno.c: Back out Copyright date changes for each file with no change
96334         this year.  This eases coordination with other programs using the same
96335         source code modules.  From Paul Eggert.
96336
96337 2000-08-06  Paul Eggert  <eggert@twinsun.com>
96338
96339         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
96340         not char, for compatibility with glibc 2.1.3 strftime.c.
96341
96342 2000-08-03  Greg McGary  <greg@mcgary.org>
96343
96344         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
96345         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
96346         (EXTEND_BUFFER): Use them.
96347
96348 2000-08-01  Jim Meyering  <meyering@lucent.com>
96349
96350         * lib/dirname.c (ISSLASH): Define.
96351         (BACKSLASH_IS_PATH_SEPARATOR): Define.
96352         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
96353         both `\' and `/' may be use as path separators.
96354         Based on a patch from Prashant TR.
96355
96356 2000-07-31  Paul Eggert  <eggert@twinsun.com>
96357
96358         * lib/quotearg.c (quotearg_n_options): Don't make the initial
96359         slot vector a constant, since it might get modified.
96360
96361 2000-07-31  Jim Meyering  <meyering@lucent.com>
96362
96363         * lib/xmalloc.c: Use `virtual memory exhausted', not
96364         `Memory exhausted'.
96365         * lib/obstack.c (print_and_abort): Likewise.
96366
96367 2000-07-30  Paul Eggert  <eggert@twinsun.com>
96368
96369         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
96370         buffer, so that the caller can always quote one small
96371         component of a "memory exhausted" message in slot 0.
96372         From a suggestion by Jim Meyering.
96373
96374 2000-07-30  Jim Meyering  <meyering@lucent.com>
96375
96376         * lib/makepath.c (make_path): Quote the other instance, too.
96377
96378         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
96379         (STATIC_BUF_SIZE): Define.
96380         (quotearg_n_options): Use only statically allocated storage when
96381         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
96382         than STATIC_BUF_SIZE.
96383
96384 2000-07-29  Jim Meyering  <meyering@lucent.com>
96385
96386         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
96387         * lib/dirname.c (dir_name): Likewise.
96388
96389         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
96390         `/'.
96391
96392         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
96393         (dir_name): Assert that there are no trailing slashes.
96394
96395 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
96396
96397         * lib/mbswidth.h (mbswidth): Add a flags argument.
96398         (mbswidth): New declaration.
96399         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
96400         * lib/mbswidth.c (mbswidth): Add a flags argument.
96401         (mbsnwidth): New function.
96402
96403 2000-07-24  Jim Meyering  <meyering@lucent.com>
96404
96405         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
96406
96407 2000-07-23  Paul Eggert  <eggert@twinsun.com>
96408
96409         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
96410
96411 2000-07-23  Paul Eggert  <eggert@twinsun.com>
96412
96413         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
96414         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
96415         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
96416         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
96417         invoke multibyte primitives.
96418
96419 2000-07-23  Paul Eggert  <eggert@twinsun.com>
96420
96421         * lib/quotearg.c:
96422         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
96423         so that mbstate_t is always defined.
96424
96425         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
96426         be 1 in at least one GCC installation, and this configuration
96427         error is likely to be common.  Ignoring MB_LEN_MAX hurts
96428         performance on hosts that have mbrtowc but have only unibyte
96429         locales, but I assume these hosts are rare.
96430
96431 2000-07-23  Paul Eggert  <eggert@twinsun.com>
96432
96433         * lib/mbswidth.c (_XOPEN_SOURCE):
96434         Don't define; this causes problems on Solaris 7.
96435         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
96436
96437 2000-07-23  Jim Meyering  <meyering@lucent.com>
96438
96439         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
96440         too: getgrgid, getpwuid, getuid.
96441
96442 2000-07-23  Jim Meyering  <meyering@lucent.com>
96443
96444         * lib/basename.c (base_name): Add an assertion.
96445
96446 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
96447
96448         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
96449         shadow its mbsinit function.
96450
96451 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
96452
96453         * lib/mbswidth.h: New file.
96454         * lib/mbswidth.c: New file.
96455         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
96456         (noinst_HEADERS): Add mbswidth.h.
96457
96458 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
96459
96460         * lib/config.charset: Add support for FreeBSD. Improve support for
96461         HP-UX and IRIX 6.
96462
96463 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
96464
96465         * m4/mbswidth.m4: New file.
96466         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
96467
96468 2000-07-15  Jim Meyering  <meyering@lucent.com>
96469
96470         * lib/makepath.c: Include quote.h.
96471         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
96472         corresponding argument in a `quote (...)' call.
96473         Give better diagnostics.
96474
96475         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
96476         (noinst_HEADERS): Add quote.h.
96477
96478         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
96479         from tar's src/misc.c.
96480         * lib/quote.h: New file.  Prototypes for same.
96481
96482 2000-07-14  Paul Eggert  <eggert@twinsun.com>
96483
96484         From a suggestion by Bruno Haible.
96485         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
96486         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
96487         to decide whether to define the BeOS workaround macro;
96488         this adjusts to the change to AC_MBSTATE_T.
96489
96490 2000-07-14  Jim Meyering  <meyering@lucent.com>
96491
96492         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
96493         jm_AC_TYPE_UINTMAX_T.
96494
96495 2000-07-13  Paul Eggert  <eggert@twinsun.com>
96496
96497         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
96498
96499         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
96500         quotearg_buffer_restyled): Add support for
96501         clocale_quoting_style.  Undo previous change to
96502         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
96503         and "{RIGHT QUOTATION MARK}" msgids.
96504
96505 2000-07-10  Paul Eggert  <eggert@twinsun.com>
96506
96507         From a suggestion by Bruno Haible.
96508         * m4/mbstate_t.m4 (AC_MBSTATE_T):
96509         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
96510         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
96511         and mbstate_t, to a single-part test that simply defines mbstate_t.
96512         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
96513         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
96514
96515 2000-07-10  Jim Meyering  <meyering@lucent.com>
96516
96517         * m4/strerror_r.m4: Mirror the correction made in autoconf.
96518
96519         * m4/gnu-source.m4: Output to confdefs.h directly.
96520         Suggestion from Akim Demaille.
96521
96522 2000-07-09  Paul Eggert  <eggert@twinsun.com>
96523
96524         The old behavior of quoting `like this' doesn't look good with
96525         newer, ISO-style fonts.  See:
96526         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
96527
96528         Instead, quote "like this" by default.  Let the translator
96529         tailor the locale-specific quoting behavior by providing
96530         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
96531
96532         * lib/quotearg.c (N_): New macro.
96533         (gettext_default): New function.
96534         (quotearg_buffer_restyled): Use
96535         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
96536         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
96537
96538 2000-07-09  Jim Meyering  <meyering@lucent.com>
96539
96540         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
96541         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
96542
96543         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
96544         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
96545
96546 2000-07-09  Jim Meyering  <meyering@lucent.com>
96547
96548         * lib/Most files: Update copyright dates to include 2000.
96549
96550 2000-07-08  Jim Meyering  <meyering@lucent.com>
96551
96552         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
96553         if not defined.
96554         (xgethostname): Remove now-unnecessary #ifdef.
96555         Move declaration of `err' into loop where it's used.
96556
96557 2000-07-05  Paul Eggert  <eggert@twinsun.com>
96558         and Bruno Haible  <haible@clisp.cons.org>
96559
96560         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
96561         only if the test for an object-type mbstate_t fails.  This
96562         prevents us from mistakenly reporting that mbstate_t is a
96563         system object type after we "#define mbstate_t int" to work
96564         around its lack.
96565
96566 2000-07-05  Paul Eggert  <eggert@twinsun.com>
96567         and Bruno Haible  <haible@clisp.cons.org>
96568
96569         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
96570
96571 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
96572
96573         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
96574         to strerror_r.
96575         Include <ctype.h> for use of isalpha.
96576
96577 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
96578
96579         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
96580         by allocating a larger buffer. Test the gethostname return value for
96581         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
96582         returns an error and ENAMETOOLONG isn't defined.
96583
96584 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
96585
96586         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
96587         dimension.
96588
96589 2000-07-04  Jim Meyering  <meyering@lucent.com>
96590
96591         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
96592         of the deprecated AC_CHECKING.
96593
96594 2000-07-04  Jim Meyering  <meyering@lucent.com>
96595
96596         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
96597         Reported by Bruno Haible.
96598
96599 2000-07-04  Jim Meyering  <meyering@lucent.com>
96600
96601         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
96602         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
96603         lacks mbrtowc.
96604
96605 2000-07-03  Paul Eggert  <eggert@twinsun.com>
96606
96607         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
96608         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
96609
96610 2000-07-03  Paul Eggert  <eggert@twinsun.com>
96611         and Bruno Haible  <haible@clisp.cons.org>
96612
96613         * lib/quotearg.c (mbrtowc):
96614         Assign to *pwc, and return 1 only if result is nonzero.
96615         (iswprint): Use ISPRINT when substituting our own mbrtowc.
96616
96617 2000-07-03  Jim Meyering  <meyering@lucent.com>
96618
96619         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
96620
96621 2000-07-03  Jim Meyering  <meyering@lucent.com>
96622
96623         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
96624         This is necessary to get a definition of e.g., UTMP_FILE on
96625         HP-UX 10.20.
96626         From Bob Proulx.
96627
96628 2000-07-02  Jim Meyering  <meyering@lucent.com>
96629
96630         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
96631
96632         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
96633         AC_LIBOBJ(function_name).
96634         * m4/chown.m4: Likewise.
96635         * m4/fnmatch.m4: Likewise.
96636         * m4/ftruncate.m4: Likewise.
96637         * m4/getgroups.m4: Likewise.
96638         * m4/getline.m4: Likewise.
96639         * m4/group-member.m4: Likewise.
96640         * m4/jm-macros.m4: Likewise.
96641         * m4/lstat.m4: Likewise.
96642         * m4/malloc.m4: Likewise.
96643         * m4/memcmp.m4: Likewise.
96644         * m4/nanosleep.m4: Likewise.
96645         * m4/putenv.m4: Likewise.
96646         * m4/realloc.m4: Likewise.
96647         * m4/regex.m4: Likewise.
96648         * m4/stat.m4: Likewise.
96649         * m4/strftime.m4: Likewise.
96650
96651 2000-07-02  Jim Meyering  <meyering@lucent.com>
96652
96653         * lib/quotearg.c (mbstate_t): Don't define here.
96654
96655 2000-07-02  Jim Meyering  <meyering@lucent.com>
96656
96657         * lib/nanosleep.c (SIGCONT): Define if not already defined.
96658
96659 2000-07-01  Jim Meyering  <meyering@lucent.com>
96660
96661         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
96662
96663 2000-07-01  Jim Meyering  <meyering@lucent.com>
96664
96665         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
96666         problem.
96667
96668 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
96669
96670         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
96671         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
96672
96673 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
96674
96675         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
96676         per change in ../m4/ls-mntd-fs.m4.
96677         (read_filesystem_list): Ignore symbolic links.
96678
96679 2000-06-29  Jim Meyering  <meyering@lucent.com>
96680
96681         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
96682         for declaration of strcmp.
96683
96684         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
96685
96686         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
96687         Avoid warning by casting result to `char *' to remove `const'.
96688
96689 2000-06-28  Jim Meyering  <meyering@lucent.com>
96690
96691         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
96692         included by quotearg.c, for which we perform this test.  From
96693         Bruno Haible.
96694
96695 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
96696
96697         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
96698         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
96699         <utmpx.h> exists, put readutmp.o into LIBOBJS.
96700
96701 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
96702
96703         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
96704
96705 2000-06-26  Paul Eggert  <eggert@twinsun.com>
96706
96707         savedir now sets errno on failure and invokes xmalloc to get memory.
96708         Fix a couple of other minor bugs while we're at it.
96709
96710         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
96711         (NAMLEN): Remove macro.
96712         (malloc, realloc): Remove decls.
96713         (stpcpy): Likewise.
96714         ("xalloc.h"): Include.
96715         (NAME_SIZE_DEFAULT): New macro.
96716         (savedir): Use xmalloc / xrealloc to allocate memory.
96717         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
96718         Skip "" directory entries.
96719         Use strlen to calculate directory entry length, since the old method
96720         is rarely used these days and isn't worth supporting.
96721         Don't use a pointer after freeing it.
96722         Check for integer overflow when calculating allocation size.
96723         Use memcpy to copy entries, instead of stpcpy.
96724         Set errno properly when returning NULL.
96725         Check for readdir error.
96726
96727 2000-06-26  Jim Meyering  <meyering@lucent.com>
96728
96729         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
96730
96731 2000-06-25  Jim Meyering  <meyering@lucent.com>
96732
96733         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
96734         Linux header bug when _XOPEN_SOURCE is defined to 500.
96735
96736 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
96737
96738         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
96739         deficiency.
96740
96741 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
96742
96743         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
96744         Include xalloc.h.
96745         Don't include <stdlib.h>.  Don't declare malloc, realloc.
96746
96747 2000-06-24  Jim Meyering  <meyering@lucent.com>
96748
96749         * m4/strerror_r.m4: Revive this file -- to try out an experimental
96750         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
96751         for which strerror does return char*, but which lacks a conveniently
96752         accessible declaration of the function.  If the compile-test says
96753         strerror_r doesn't work, then resort to a `run'-test that works on
96754         BeOS and segfaults on DEC Unix.
96755
96756 2000-06-24  Jim Meyering  <meyering@lucent.com>
96757
96758         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
96759
96760 2000-06-23  Paul Eggert  <eggert@twinsun.com>
96761
96762         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
96763         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
96764
96765 2000-06-23  Paul Eggert  <eggert@twinsun.com>
96766
96767         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
96768         (mbrtowc, mbstate_t): Define substitutes if
96769         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
96770         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
96771         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
96772
96773 2000-06-23  Jim Meyering  <meyering@lucent.com>
96774
96775         * m4/afs.m4: Add missing AC_MSG_RESULT.
96776         Reported by Bruno Haible.
96777
96778         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
96779         Suggestion from Bruno Haible.
96780
96781 2000-06-23  Jim Meyering  <meyering@lucent.com>
96782
96783         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
96784
96785 2000-06-21  Jim Meyering  <meyering@lucent.com>
96786
96787         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
96788
96789 2000-06-21  Jim Meyering  <meyering@lucent.com>
96790
96791         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
96792         (noinst_HEADERS): Add getstr.h.
96793
96794         * lib/getline.c (getstr): Move into a separate file.
96795         * lib/getstr.c (getstr): New file, extracted from getline.c, with
96796         the following changes: new parameter, delim2; both delim[12]
96797         parameters have type `int', not `char'.  The latter would lose
96798         with 8-bit delimiters.
96799         * lib/getstr.h: New file.
96800
96801 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
96802
96803         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
96804         than 1024, return a memory chunk of least possible size, instead
96805         of size PATH_MAX + 2. In the loop, increment the size proportionally.
96806         Use free/xmalloc instead of xrealloc to avoid copying for very long
96807         paths.
96808
96809 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
96810
96811         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
96812         the empty string.
96813
96814 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
96815
96816         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
96817         address, not strdup.  Include <stdlib.h> and don't declare free().
96818
96819 2000-06-19  Jim Meyering  <meyering@lucent.com>
96820
96821         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
96822
96823 2000-06-18  Jim Meyering  <meyering@lucent.com>
96824
96825         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
96826
96827         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
96828         `checking whether...' message to be consistent with that of the
96829         lstat test.
96830
96831 2000-06-18  Jim Meyering  <meyering@lucent.com>
96832
96833         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
96834         Besides, these days every porting target provides a mkdir function.
96835
96836         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
96837         needed. (this snippet comes from src/system.h).
96838
96839 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
96840
96841         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
96842
96843 2000-06-15  Paul Eggert  <eggert@twinsun.com>
96844
96845         * lib/human.c (adjust_value): New function.
96846         (human_readable_inexact): Apply rounding style even when
96847         printing approximate values.
96848
96849 2000-06-14  Paul Eggert  <eggert@twinsun.com>
96850
96851         * lib/human.c (human_readable_inexact): Allow an input block
96852         size that is not a multiple of the output block size, and vice versa.
96853         Reported by Piergiorgio Sartor.
96854
96855 2000-06-14  Paul Eggert  <eggert@twinsun.com>
96856
96857         * lib/getdate.y (get_date): Apply relative times after time
96858         zone indicator, not before.  Reported by Todd A. Jacobs.
96859
96860 2000-06-13  Jim Meyering  <meyering@lucent.com>
96861
96862         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
96863
96864         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
96865
96866 2000-06-12  Paul Eggert  <eggert@twinsun.com>
96867
96868         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
96869
96870 2000-06-12  Jim Meyering  <meyering@lucent.com>
96871
96872         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
96873         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
96874         optional argument.
96875         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
96876         the optional argument, `lib'.
96877
96878 2000-06-08  Jim Meyering  <meyering@lucent.com>
96879
96880         * m4/largefile.m4: Remove file (now that it's part of autoconf).
96881
96882 2000-06-04  Paul Eggert  <eggert@twinsun.com>
96883
96884         Rewrite largefile configuration so that we don't need to run
96885         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
96886         AC_CANONICAL_HOST in configure.in -- jmm]
96887
96888         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
96889         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
96890         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
96891         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
96892         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
96893         All uses changed.
96894         Instead of inspecting the output of getconf, try to compile the
96895         test program without and with the macro definition.
96896         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
96897         for getconf.  Instead, check for the needed flags by compiling
96898         test programs.
96899
96900 2000-06-04  Paul Eggert  <eggert@twinsun.com>
96901
96902         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
96903
96904 2000-06-04  Jim Meyering  <meyering@lucent.com>
96905
96906         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
96907         SunOS 4.1.4 for which gid_t is an unsigned type.
96908
96909 2000-06-03  Jim Meyering  <meyering@lucent.com>
96910
96911         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
96912         now that autoconf requires that.
96913
96914         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
96915         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
96916         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
96917
96918 2000-06-03  Jim Meyering  <meyering@lucent.com>
96919
96920         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
96921
96922 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
96923
96924         * m4/glibc21.m4: New file.
96925         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
96926
96927 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
96928
96929         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
96930         newer, don't install charset.alias.
96931         * lib/config.charset: Change the Linux/glibc rules so they become empty
96932         on glibc-2.1 or newer.
96933
96934 2000-06-02  Jim Meyering  <meyering@lucent.com>
96935
96936         * lib/mountlist.c: Back out last change.  Instead, do this...
96937         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
96938         me_dummy member using the same `ignore'-testing code.
96939         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
96940         fs_type strings.
96941         From Mark D. Roth.
96942
96943 2000-05-29  Jim Meyering  <meyering@lucent.com>
96944
96945         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
96946         mounts with the `ignore' attribute.  Based on a patch from
96947         Mark D. Roth.
96948
96949 2000-05-28  Jim Meyering  <meyering@lucent.com>
96950
96951         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
96952         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
96953         * m4/stat.m4: Likewise.
96954         * m4/lstat.m4: Likewise.
96955         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
96956
96957         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
96958         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
96959
96960 2000-05-26  Jim Meyering  <meyering@lucent.com>
96961
96962         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
96963
96964 2000-05-24  Jim Meyering  <meyering@lucent.com>
96965
96966         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
96967         autoconf requires that.
96968         * m4/lib-check.m4: Likewise.
96969         * m4/jm-macros.m4: Likewise.
96970         * m4/strftime.m4: Likewise.
96971
96972         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
96973         AC_CHECK_DECLS, now that autoconf requires that.
96974
96975 2000-05-22  Jim Meyering  <meyering@lucent.com>
96976
96977         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
96978         * m4/lstat.m4: Likewise.
96979
96980 2000-05-22  Jim Meyering  <meyering@lucent.com>
96981
96982         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
96983
96984 2000-05-20  Jim Meyering  <meyering@lucent.com>
96985
96986         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
96987         (jm_PREREQ): Use it.
96988
96989 2000-05-18  Jim Meyering  <meyering@lucent.com>
96990
96991         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
96992         back, too, since it may have been modified by allocate_entry.
96993         (hash_delete): Rewrite to use neither the assignment operator
96994         nor the comma operator in an if-expression.
96995
96996 2000-05-15  Paul Eggert  <eggert@twinsun.com>
96997
96998         * lib/closeout.c:
96999         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
97000         Remove; no longer needed.
97001         "quotearg.h": Add include.
97002         (file_name): Do not bother to explicitly initialize to NULL; it's less
97003         efficient on some hosts.
97004         (close_stdout_status): Remove test as to whether stdout was already
97005         closed; it breaks for the case "echo x | sort >&-".
97006         Quote file name colons.
97007         Do not assume that _("write error") lacks format strings.
97008
97009 2000-05-15  Jim Meyering  <meyering@lucent.com>
97010
97011         * lib/version-etc.c (version_etc_copyright): Update the copyright
97012         string used in all --version output.
97013
97014 2000-05-14  Jim Meyering  <meyering@lucent.com>
97015
97016         * lib/closeout.c (close_stdout_set_file_name): New function.
97017         (close_stdout_status): Use new file-scoped global.
97018         Return right away if fstat says the stdout file descriptor is invalid.
97019         * lib/closeout.h (close_stdout_set_file_name): Declare.
97020
97021 2000-05-10  Jim Meyering  <meyering@lucent.com>
97022
97023         * lib/closeout.c [default_exit_status]: New file-scoped variable.
97024         (close_stdout_set_status): New function.
97025         * lib/closeout.h (close_stdout_set_status): Declare.
97026
97027 2000-05-09  Jim Meyering  <meyering@lucent.com>
97028
97029         * m4/gettext.m4: Rename this...
97030         * m4/libintl.m4: ...to this.
97031
97032 2000-05-08  Jim Meyering  <meyering@lucent.com>
97033
97034         * lib/long-options.c: Don't include closeout.h.
97035         (parse_long_options): Don't call close_stdout for --version.
97036
97037 2000-05-06  Paul Eggert  <eggert@twinsun.com>
97038
97039         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
97040         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
97041         2.1.3 bug.  This avoids a clash when files like regex.c define
97042         _GNU_SOURCE.
97043
97044 2000-05-06  Jim Meyering  <meyering@lucent.com>
97045
97046         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
97047         (AC_REPLACE_FUNCS): Add strnlen.
97048
97049         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
97050         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
97051
97052         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
97053         AC_SEARCH_LIBS call for nanosleep.
97054         (LIB_NANOSLEEP): Set and AC_SUBST.
97055
97056 2000-05-06  Jim Meyering  <meyering@lucent.com>
97057
97058         * lib/strnlen.c: Undefine __strnlen and strnlen.
97059         [!weak_alias]: Define __strnlen to strnlen.
97060
97061         * lib/atexit.c: New file, from libiberty.
97062
97063 2000-05-06  Jim Meyering  <meyering@lucent.com>
97064
97065         * lib/closeout.c (close_stdout_status): Also check for errors on the
97066         stderr stream.
97067
97068 2000-05-05  Jim Meyering  <meyering@lucent.com>
97069
97070         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
97071         AC_SEARCH_LIBS call for clock_gettime.
97072         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
97073
97074         * m4/search-libs.m4: Update from autoconf.
97075
97076         su doesn't work on Solaris 2.6.
97077         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
97078         <shadow.h>.  Reported by Dragos Harabor.
97079
97080 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
97081
97082         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
97083         memcpy instead of xmalloc, xrealloc, path_concat.
97084         (locale_charset): Treat empty environment variables as absent.
97085         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
97086
97087 2000-05-04  Jim Meyering  <meyering@lucent.com>
97088
97089         * lib/getopt.c: Update from glibc.
97090         * lib/obstack.c: Likewise.
97091         * lib/obstack.h: Likewise.
97092         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
97093         file
97094
97095         * lib/regex.h: Likewise.
97096         * lib/strndup.c: Likewise.
97097         * lib/strnlen.c: New file, from glibc.
97098
97099 2000-05-03  Jim Meyering  <meyering@lucent.com>
97100
97101         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
97102
97103 2000-05-02  Paul Eggert  <eggert@twinsun.com>
97104
97105         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
97106         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
97107         compile-time test, rather than inspecting host and OS, to
97108         decide whether to define _LARGEFILE_SOURCE.
97109
97110 2000-05-01  Jim Meyering  <meyering@lucent.com>
97111
97112         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
97113
97114         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
97115         Based on a patch from Bruno Haible.
97116
97117 2000-05-01  Jim Meyering  <meyering@lucent.com>
97118
97119         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
97120
97121 2000-04-29  Jim Meyering  <meyering@lucent.com>
97122
97123         * lib/path-concat.c: Declare strdup only if it's not defined.
97124         * lib/canon-host.c: Likewise.
97125
97126 2000-04-28  Jim Meyering  <meyering@lucent.com>
97127
97128         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
97129         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
97130         is included first, then limits.h is included by locale.h by libintl.h.
97131         From John David Anglin.
97132
97133 2000-04-25  Jim Meyering  <meyering@lucent.com>
97134
97135         * lib/makepath.c (S_IRWXUGO): Define.
97136         (make_path): Always perform explicit chmod if MODE specifies any
97137         of the `special' permission bits.  Prompted by a bug report against
97138         install from Mate Wierdl and Joost van Baal.
97139
97140 2000-04-18  Jim Meyering  <meyering@lucent.com>
97141
97142         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
97143         (jm_PREREQ): Use it.
97144
97145 2000-04-18  Jim Meyering  <meyering@lucent.com>
97146
97147         * lib/README: New file.
97148
97149         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
97150         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
97151
97152 2000-04-17  Jim Meyering  <meyering@lucent.com>
97153
97154         Get it right :-)
97155         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
97156         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
97157         Suggestion from Akim Demaille.
97158
97159 2000-04-17  Jim Meyering  <meyering@lucent.com>
97160
97161         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
97162         the definition of it to rpl_strftime also defined-away the system's
97163         declaration.
97164
97165 2000-04-15  Jim Meyering  <meyering@lucent.com>
97166
97167         Use `C' to denote so-called `contiguous' files, the same way
97168         that tar does.
97169         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
97170         (ftypelet): Use S_ISCTG.
97171         From Michael Deutschmann.
97172
97173 2000-04-14  Jim Meyering  <meyering@lucent.com>
97174
97175         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
97176         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
97177         clobbered.
97178
97179 2000-04-14  Jim Meyering  <meyering@lucent.com>
97180
97181         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
97182
97183 2000-04-13  Jim Meyering  <meyering@lucent.com>
97184
97185         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
97186         AH_VERBATIM to insert required #ifndef into config.h.in.
97187         Suggestion from Akim Demaille.
97188
97189 2000-04-12  Jim Meyering  <meyering@lucent.com>
97190
97191         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
97192         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
97193         Christian Krackowizer.
97194
97195         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
97196         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
97197         (AC_SYS_LARGEFILE): Require.
97198         (AM_C_PROTOTYPES): Require.
97199
97200 2000-04-08  Jim Meyering  <meyering@lucent.com>
97201
97202         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
97203         names don't conflict.  Reported by Eli Zaretskii.
97204
97205 2000-04-07  Jim Meyering  <meyering@lucent.com>
97206
97207         * lib/putenv.c: Move inclusion of errno.h so it follows that of
97208         sys/types.h, to work around system header problems on AIX 3.2.5.
97209         From Bruno Haible.
97210
97211 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
97212
97213         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
97214         bug.  Deal with the different error behavior of Irix iconv.
97215
97216 2000-04-05  Paul Eggert  <eggert@twinsun.com>
97217
97218         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
97219         IRIX if the installer said otherwise.
97220
97221 2000-04-05  Jim Meyering  <meyering@lucent.com>
97222
97223         Portability tweaks required for ultrix4.3.
97224         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
97225         (jm_CHECK_DECLS): Add getutent to the list of functions.
97226         (_jm_DECL_HEADERS): Add utmpx.h.
97227         From John David Anglin.
97228
97229         * m4/strftime.m4: Back out the 2000-04-02 change.
97230         Instead of that change, simply undefine putenv in the test program.
97231
97232 2000-04-05  Jim Meyering  <meyering@lucent.com>
97233
97234         Portability tweaks required for ultrix4.3.
97235         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
97236         getutent.
97237         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
97238         * lib/canon-host.c: Declare strdup.
97239         * lib/path-concat.c: Likewise.
97240         From John David Anglin.
97241
97242 2000-04-04  Jim Meyering  <meyering@lucent.com>
97243
97244         Be more DOS 8.3-friendly.
97245         * lib/ref-add.sin: Renamed from ref-add.sed.in.
97246         * lib/ref-del.sin: Renamed from ref-del.sed.in.
97247         * lib/Makefile.am: Reflect renaming.
97248         Reported by Eli Zaretskii.
97249
97250         Use a temporary file name that won't clash with `charset.alias'
97251         in the DOS 8.3 name space.
97252         * lib/Makefile.am (charset_tmp): Define.
97253         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
97254         (uninstall-local): Likewise.
97255         Reported by Eli Zaretskii.
97256
97257 2000-04-03  Jim Meyering  <meyering@lucent.com>
97258
97259         * m4/gettext.m4: Fix typo in comment.
97260
97261         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
97262         textutils/configure.in).  Suggestion from Paul Eggert.
97263         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
97264
97265 2000-04-02  Paul Eggert  <eggert@twinsun.com>
97266
97267         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
97268         variable in the shell rather than using putenv, which isn't
97269         portable.  This avoids the configure-time inter-test dependency
97270         on the potentially-renamed putenv function.
97271
97272 2000-03-30  Paul Eggert  <eggert@twinsun.com>
97273
97274         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
97275         before checking struct stat.st_blksize, so that
97276         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
97277
97278 2000-03-29  Paul Eggert  <eggert@twinsun.com>
97279
97280         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
97281         since strftime.c uses HAVE_STRFTIME to decide whether to use
97282         the underlying strftime.
97283
97284 2000-03-29  Paul Eggert  <eggert@twinsun.com>
97285
97286         * lib/time/strftime.c (my_strftime): Make sure we call the system
97287         strftime, not ourselves, when invoking the underlying strftime.
97288
97289 2000-03-24  Jim Meyering  <meyering@lucent.com>
97290
97291         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
97292         (charset_alias): Define.
97293         (install-exec-local): Factor out common code.
97294         (uninstall-local): Split lines longer than 80.
97295         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
97296         (SUFFIXES): Define.
97297         (.sed.in.sed): New rule.  Don't redirect directly to $@.
97298         (CLEANFILES): Add ref-add.sed and ref-del.sed.
97299
97300 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
97301
97302         * lib/config.charset: Output a line containing "Packages using this
97303         file".
97304         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
97305         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
97306         ref-del.sed): New rules.
97307
97308 2000-03-17  Jim Meyering  <meyering@lucent.com>
97309
97310         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
97311         Otherwise, include <strings.h>
97312
97313 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
97314
97315         * lib/unicodeio.c (utf8_wctomb): New function.
97316         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
97317         format instead of in UCS-4 with platform dependent endianness.
97318
97319 2000-03-10  Jim Meyering  <meyering@lucent.com>
97320
97321         * m4/lib-check.m4: Look for getspnam in -lgen, too.
97322         From Marco Franzen.
97323
97324 2000-03-07  Paul Eggert  <eggert@twinsun.com>
97325
97326         * lib/savedir.c (savedir): Work even if directory size is
97327         negative; this can happen with some screwy NFS configurations.
97328
97329 2000-03-06  Jim Meyering  <meyering@lucent.com>
97330
97331         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
97332         if it's NULL (because we ran out of memory).  From Bruno Haible.
97333
97334 2000-03-05  Jim Meyering  <meyering@lucent.com>
97335
97336         * lib/localcharset.c ("path-concat.h"): Include.
97337         (get_charset_aliases): Use path_concat instead of ANSI string
97338         concatenation.
97339
97340         * lib/unicodeio.h (PARAMS): Define.
97341         Use it to guard prototype.
97342
97343 2000-03-04  Jim Meyering  <meyering@lucent.com>
97344
97345         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
97346         for lib/localcharset.c.
97347
97348 2000-03-04  Jim Meyering  <meyering@lucent.com>
97349
97350         * lib/Makefile.am (install-exec-local): Create $(libdir) before
97351         installing into it.
97352         (uninstall-local): Uncomment this rule so `make distcheck' works
97353         once again.
97354
97355         * lib/unicodeio.c (<errno.h>): Include it.
97356         (errno): Declare if not defined.
97357
97358         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
97359
97360         * lib/config.charset: New version, incorporating remarks from a linux
97361         i18n mailing list.  From Bruno Haible.
97362
97363 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
97364
97365         * m4/codeset.m4: New file.
97366         * m4/iconv.m4: New file.
97367         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
97368
97369 2000-03-03  Jim Meyering  <meyering@lucent.com>
97370
97371         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
97372
97373 2000-03-02  Jim Meyering  <meyering@lucent.com>
97374
97375         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
97376         the messages come out on separate lines.
97377
97378         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
97379         rather than jm_CHECK_DECLARATIONS.
97380         * m4/decl.m4: Remove now-unused file.
97381
97382         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
97383         geteuid.
97384
97385 2000-03-02  Jim Meyering  <meyering@lucent.com>
97386
97387         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
97388
97389 2000-03-01  Jim Meyering  <meyering@lucent.com>
97390
97391         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
97392         * lib/unicodeio.c: Likewise.
97393
97394 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
97395
97396         * lib/config.charset: New file.
97397         * lib/localcharset.c: New file.
97398         * lib/unicodeio.h, lib/unicodeio.c: New files.
97399         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
97400         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
97401         (noinst_HEADERS): Add unicodeio.h.
97402         (all-local, install-exec-local, charset.alias): New targets.
97403
97404 2000-02-28  Paul Eggert  <eggert@twinsun.com>
97405
97406         * lib/quotearg.c (ALERT_CHAR): New macro.
97407         (quotearg_buffer_restyled): Use it.
97408
97409 2000-02-27  Jim Meyering  <meyering@lucent.com>
97410
97411         * m4/check-decl.m4: Add getenv to the list.
97412
97413 2000-02-27  Jim Meyering  <meyering@lucent.com>
97414
97415         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
97416         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
97417
97418         * lib/backupfile.c: Guard inclusion of stdlib.h with
97419         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
97420         Declare malloc if needed.
97421
97422         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
97423         `#ifndef HAVE_DECL..'
97424         now that autoconf always defines the HAVE_DECL_ symbols.
97425         * lib/human.c: Likewise.
97426         * lib/same.c: Likewise.
97427         * lib/strtoumax.c: Likewise.
97428
97429         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
97430         declaration check was not run.
97431         * lib/hash.c: Likewise.
97432         * lib/human.c: Likewise.
97433         * lib/same.c: Likewise.
97434         * lib/strtoumax.c: Likewise.
97435
97436         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
97437         `.', then first look up the entire `.'-containing string as a login
97438         name.
97439
97440 2000-02-23  Jim Meyering  <meyering@lucent.com>
97441
97442         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
97443         in place of my hack.
97444
97445 2000-02-18  Paul Eggert  <eggert@twinsun.com>
97446
97447         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
97448         (textint): New typedef.
97449         (parser_control): Member year changed from int to textint.
97450         All uses changed.
97451         (YYSTYPE): Removed; replaced by %union with int and textint members.
97452         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
97453         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
97454         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
97455         (tSNUMBER, tUNUMBER): Now of type <textintval>.
97456         (date, number, to_year): Use width of number in digits, not its value,
97457         to determine whether it's a 2-digit year, or a 2-digit time.
97458         (yylex): Store number of digits of numeric tokens.
97459         Reported by John Kendall.
97460
97461         (parser_control): Changed from struct parser_control to typedef (for
97462         consistency).  All uses changed.
97463
97464         (tID): Removed; not used.
97465         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
97466
97467 2000-02-14  Paul Eggert  <eggert@twinsun.com>
97468
97469         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
97470         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
97471
97472 2000-02-12  Jim Meyering  <meyering@lucent.com>
97473
97474         * lib/userspec.c (ISDIGIT): Define it.
97475         (isdigit): Remove definition.
97476         (is_number): Use ISDIGIT, not isdigit.
97477         <libintl.h>: Include.
97478         (_ and N_): Define.
97479         (parse_user_spec): Mark translatable strings.
97480
97481 2000-02-10  Jim Meyering  <meyering@lucent.com>
97482
97483         With these changes, nanosleep.[ch] are finally enough like the other
97484         lib/* replacement files to compile on a few more losing systems.
97485
97486         * lib/nanosleep.h: Don't include config.h.
97487         Remove prototype from declaration of nanosleep.
97488         (PARAMS): Remove now-unneeded definition.
97489         * lib/nanosleep.c: #undef nanosleep.
97490         (rpl_nanosleep): Rename from nanosleep.
97491
97492 2000-02-10  Jim Meyering  <meyering@lucent.com>
97493
97494         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
97495         gnu_nanosleep to rpl_nanosleep.
97496
97497 2000-02-09  Jim Meyering  <meyering@lucent.com>
97498
97499         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
97500         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
97501
97502 2000-02-08  Akim Demaille  <akim@epita.fr>
97503
97504         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
97505         `[' and `]' and remove uses of `changequote'.
97506         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
97507         (AC_SYS_LARGEFILE): Likewise.
97508         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
97509         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
97510         of changequote.
97511         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
97512         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
97513         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
97514         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
97515
97516 2000-02-05  Jim Meyering  <meyering@lucent.com>
97517
97518         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
97519         Remove explicit use of AC_HEADER_TIME.  It is required by
97520         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
97521         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
97522         in autoconf whereby the expansion of the latter ended up preceding
97523         the expansion of its prerequisite, AC_HEADER_TIME.
97524         Reported by Volker Borchert.
97525
97526 2000-02-03  Jim Meyering  <meyering@lucent.com>
97527
97528         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
97529
97530 2000-02-03  Jim Meyering  <meyering@lucent.com>
97531
97532         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
97533         rather than with `#if HAVE_UTMPNAME'.
97534
97535 2000-02-02  Jim Meyering  <meyering@lucent.com>
97536
97537         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
97538         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
97539         Reported by Eli Zaretskii.
97540
97541 2000-02-01  Jim Meyering  <meyering@lucent.com>
97542
97543         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
97544
97545 2000-01-31  Jim Meyering  <meyering@lucent.com>
97546
97547         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
97548         functions.  Add the time.h and sys/time.h headers along with the
97549         AC_REQUIRE'ment of AC_HEADER_TIME.
97550
97551 2000-01-31  Jim Meyering  <meyering@lucent.com>
97552
97553         * lib/nanosleep.h (nanosleep): Guard declaration with
97554         `#if ! HAVE_DECL_NANOSLEEP'.
97555         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
97556         the declaration in that vendor's sys/timers.h.
97557         Reported by Christian Krackowizer.
97558
97559         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
97560         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
97561         (ISPRINT): Likewise.
97562         Reported by Tom Tromey.
97563
97564 2000-01-30  Jim Meyering  <meyering@lucent.com>
97565
97566         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
97567
97568         * m4/prereq.m4 (utmp_includes): Define.
97569         Check for ut_user and ut_name members in both struct utmpx
97570         and struct utmp.
97571
97572 2000-01-30  Jim Meyering  <meyering@lucent.com>
97573
97574         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
97575         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
97576         header files where only utmpx.ut_user is declared.
97577
97578         * lib/readutmp.h (UT_USER): Define.
97579
97580 2000-01-29  Jim Meyering  <meyering@lucent.com>
97581
97582         * m4/lib-check.m4: New file containing library-related checks from
97583         fileutils and sh-utils (textutils had none).
97584
97585 2000-01-28  Jim Meyering  <meyering@lucent.com>
97586
97587         * m4/perl.m4: Change format of warning message to look more like that
97588         from the missing script.  Suggestion from François Pinard.
97589
97590 2000-01-25  Jim Meyering  <meyering@lucent.com>
97591
97592         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
97593         well as time.h in the compile check.
97594         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
97595         Fix typo in cross-compiling case: s/yes/no/.
97596
97597 2000-01-23  Jim Meyering  <meyering@lucent.com>
97598
97599         * m4/jm-macros.m4: Move df-related tests here from
97600         fileutils/configure.in
97601
97602         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
97603         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
97604
97605         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
97606         s/space/ac_fsusage_space/.
97607         (jm_FILE_SYSTEM_USAGE): Take two parameters.
97608
97609         * m4/ftruncate.m4: New file (derived from part of
97610         fileutils/configure.in).
97611         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
97612         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
97613
97614         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
97615         AC_SUBST these here, rather than just in sh-util/configure.in, so
97616         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
97617         all the same.
97618         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
97619         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
97620         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
97621         (AC_SUBST(POW_LIBM)): Likewise.
97622         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
97623
97624 2000-01-23  Jim Meyering  <meyering@lucent.com>
97625
97626         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
97627         obstack.c.
97628
97629 2000-01-22  Jim Meyering  <meyering@lucent.com>
97630
97631         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
97632
97633         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
97634
97635         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
97636         configure.in
97637         (AC_CHECK_HEADERS): Likewise for sh-utils.
97638         (AC_CHECK_HEADERS): Likewise for textutils.
97639         Merge the three lists of headers.
97640
97641         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
97642         from fileutils' configure.in.
97643
97644         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
97645         code. Moved tests into their own function (_jm_DECL_HEADERS) in
97646         check-decl.m4.
97647
97648         * m4/check-decl.m4: Use #if rather than #ifdef.
97649         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
97650         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
97651         (_jm_DECL_HEADERS): Define new function.
97652         (jm_CHECK_DECLARATIONS): Require it.
97653
97654 2000-01-22  Jim Meyering  <meyering@lucent.com>
97655
97656         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
97657         [! HAVE_DECL_STRTOULL]: Declare strtoull.
97658         Required for some AIX systems.  Reported by Christian Krackowizer.
97659         [TESTING] (main): New function.
97660
97661         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
97662         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
97663         letters.
97664
97665         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
97666         iswprint.
97667
97668         * lib/strverscmp.c (ISDIGIT): Define.
97669         (strverscmp): Use ISDIGIT, not isdigit.
97670
97671 2000-01-19  Jim Meyering  <meyering@lucent.com>
97672
97673         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
97674         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
97675         defines `struct timespec' in <sys/time.h>
97676
97677         * m4/c-bs-a.m4: Remove uses of changequote altogether.
97678         Thanks to Akim for explaining.
97679
97680 2000-01-17  Paul Eggert  <eggert@twinsun.com>
97681
97682         * lib/nanosleep.c (nanosleep):
97683         Don't use SA_INTERRUPT to decide whether to call sigaction, as
97684         POSIX.1 doesn't require SA_INTERRUPT and some systems
97685         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
97686         it's been part of POSIX.1 since day 1 (in 1988).
97687
97688 2000-01-17  Jim Meyering  <meyering@lucent.com>
97689
97690         * lib/interlock: Remove unused file.  Reported by François Pinard.
97691
97692 2000-01-16  Paul Eggert  <eggert@twinsun.com>
97693
97694         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
97695         alert, backslash, formfeed, and vertical tab unnecessarily in
97696         shell quoting style.
97697
97698 2000-01-16  Jim Meyering  <meyering@lucent.com>
97699
97700         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
97701         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
97702         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
97703         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
97704
97705 2000-01-16  Jim Meyering  <meyering@lucent.com>
97706
97707         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
97708         because the latter didn't work.
97709
97710 2000-01-15  Jim Meyering  <meyering@lucent.com>
97711
97712         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
97713         (AC_REPLACE_FUNCS): Add memcpy and memset.
97714         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
97715         Add strpbrk.
97716         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
97717
97718 2000-01-12  Jim Meyering  <meyering@lucent.com>
97719
97720         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
97721         (jm_PREREQ): Use it.
97722         (jm_PREREQ_READUTMP): New macro.
97723         (jm_PREREQ): Use it.
97724
97725 2000-01-11  Paul Eggert  <eggert@twinsun.com>
97726
97727         Quote multibyte characters correctly.
97728         * m4/c-bs-a.m4: New file.
97729         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
97730         (jm_PREREQ): Use it.
97731
97732 2000-01-11  Paul Eggert  <eggert@twinsun.com>
97733
97734         * m4/uintmax_t.m4: Port to autoconf 2.13.
97735
97736 2000-01-08  Jim Meyering  <meyering@ascend.com>
97737
97738         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
97739         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
97740
97741 2000-01-04  Jim Meyering  <meyering@ascend.com>
97742
97743         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
97744         jm_STRUCT_DIRENT_D_TYPE.
97745         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
97746         jm_STRUCT_DIRENT_D_INO.
97747         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
97748         jm_STRUCT_UTIMBUF.
97749         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
97750         renamings.
97751         * m4/utime.m4: Likewise.
97752
97753         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
97754         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
97755
97756 2000-01-03  Paul Eggert  <eggert@twinsun.com>
97757
97758         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
97759         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
97760
97761 2000-01-02  Jim Meyering  <meyering@ascend.com>
97762
97763         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
97764         remember if this is necessary.
97765
97766 1999-12-26  Jim Meyering  <meyering@ascend.com>
97767
97768         * m4/jm-macros.m4: Use it here.
97769         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
97770
97771 1999-12-23  Jim Meyering  <meyering@ascend.com>
97772
97773         * m4/jm-macros.m4: Check for clock_gettime (moved from
97774         fileutils/configure.in)
97775         Check for gettimeofday.
97776
97777 1999-12-20  Jim Meyering  <meyering@ascend.com>
97778
97779         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
97780         autoconf-2.14a-1999-12-20.
97781
97782 1999-12-19  Jim Meyering  <meyering@ascend.com>
97783
97784         * m4/lstat-slash.m4: New file.
97785         * m4/jm-macros.m4: Use the new macro:
97786         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
97787
97788 1999-12-07  Jim Meyering  <meyering@ascend.com>
97789
97790         * m4/perl.m4: Require that File::Compare be available, too.
97791         Too many systems seem to lack it.
97792
97793         * m4/strftime.m4: Add checks for most of the cpp macros tested in
97794         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
97795
97796 1999-11-18  Paul Eggert  <eggert@twinsun.com>
97797
97798         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
97799         problem with the QNX 4.25 shell, which doesn't propagate exit
97800         status of failed commands inside shell assignments.
97801
97802 1999-11-17  Jim Meyering  <meyering@ascend.com>
97803
97804         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
97805
97806 1999-11-07  Jim Meyering  <meyering@ascend.com>
97807
97808         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
97809
97810 1999-11-06  Jim Meyering  <meyering@ascend.com>
97811
97812         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
97813         * m4/jm-macros.m4 (jm_MACROS): Use it here.
97814
97815 1999-11-05  Jim Meyering  <meyering@ascend.com>
97816
97817         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
97818         configure.in of textutils, fileutils, and sh-utils into this one
97819         (shared between those packages) file.
97820         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
97821         AC_STRUCT_ST_BLKSIZE.
97822
97823 1999-11-03  Jim Meyering  <meyering@ascend.com>
97824
97825         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
97826         of AC_CHECK_TYPE checks includes unistd.h.
97827         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
97828         Suggestion from Akim Demaille.
97829
97830 1999-10-30  Jim Meyering  <meyering@ascend.com>
97831
97832         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
97833         m4-quoted string.
97834         * m4/ls-mntd-fs.m4: Likewise.
97835         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
97836         * m4/jm-winsz1.m4: Likewise.
97837
97838         * m4/const.m4: Remove file, since the fix made it into the experimental
97839         version of autoconf.
97840         * m4/mktime.m4: Likewise.
97841
97842         * m4/check-type.m4: Remove file, now that the latest version of
97843         AC_CHECK_TYPE takes a third arg to specify additional #includes.
97844
97845         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
97846         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
97847         AC_CHECK_TYPE.
97848
97849 1999-10-04  Jim Meyering  <meyering@ascend.com>
97850
97851         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
97852
97853 1999-09-22  Paul Eggert  <eggert@twinsun.com>
97854
97855         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
97856         2.95.1 bug with HP-UX 10.20.
97857
97858 1999-09-17  Jim Meyering  <meyering@ascend.com>
97859
97860         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
97861         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
97862         due to missing strdup (against sh-utils-2.0).
97863
97864 1999-08-29  Jim Meyering  <meyering@ascend.com>
97865
97866         * m4/jm-macros.m4: Require jm_BISON.
97867         * m4/bison.m4: New file.
97868
97869 1999-08-17  Paul Eggert  <eggert@twinsun.com>
97870
97871         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
97872         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
97873
97874 1999-08-05  Jim Meyering  <meyering@ascend.com>
97875
97876         * m4/getline.m4: Rename test file from conftestdata to conftest.data
97877         to avoid conflicts with `conftest' on 8+3 filesystems.
97878         Suggestion from Eli Zaretskii.
97879
97880 1999-08-04  Jim Meyering  <meyering@ascend.com>
97881
97882         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
97883         fileutils and sh-utils (textutils's getline test was inadequate).
97884         (AM_FUNC_GETLINE): Run this test.
97885         (AC_CHECK_FUNCS): Check for getdelim.
97886         Reported by Bob Proulx.
97887
97888 1999-08-02  Jim Meyering  <meyering@ascend.com>
97889
97890         * m4/jm-macros.m4: Add a comment.
97891
97892 1999-08-01  Paul Eggert  <eggert@twinsun.com>
97893
97894         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
97895         <inttypes.h> defines strtoumax as a macro (and not as a
97896         function).
97897
97898 1999-08-01  Paul Eggert  <eggert@twinsun.com>
97899
97900         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
97901         that we can shift, multiply and divide unsigned long long
97902         values; Ultrix cc can't do it.
97903
97904 1999-08-01  Paul Eggert  <eggert@twinsun.com>
97905
97906         * m4/mktime.m4: New file, which is a preview of what should appear
97907         in the next public autoconf release.
97908
97909 1999-08-01  Paul Eggert  <eggert@twinsun.com>
97910
97911         * m4/lfs.m4: Remove this file.
97912         * m4/largefile.m4: New file.  It contains the old contents of
97913         lfs.m4, except that all names with prefix AC_LFS have been
97914         changed to use the prefix AC_SYS_LARGEFILE instead, to be
97915         compatible with future autoconf versions.  Also, some minor m4
97916         quoting problems have been fixed.
97917
97918 1999-08-01  Paul Eggert  <eggert@twinsun.com>
97919
97920         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
97921         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
97922         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
97923         and simplify the shell code.
97924
97925 1999-08-01  Jim Meyering  <meyering@ascend.com>
97926
97927         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
97928         m4.
97929
97930 1999-07-20  Jim Meyering  <meyering@ascend.com>
97931
97932         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
97933
97934 1999-07-15  Jim Meyering  <meyering@ascend.com>
97935
97936         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
97937
97938 1999-05-22  Jim Meyering  <meyering@ascend.com>
97939
97940         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
97941
97942 1999-05-20  Jim Meyering  <meyering@ascend.com>
97943
97944         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
97945         Add a colon after each `then' in case $4 is empty.
97946
97947 1999-05-16  Jim Meyering  <meyering@ascend.com>
97948
97949         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
97950
97951 1999-05-10  Jim Meyering  <meyering@ascend.com>
97952
97953         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
97954
97955         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
97956         AC_FUNC_MKTIME.
97957
97958 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
97959
97960         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
97961
97962 1999-05-04  Paul Eggert  <eggert@twinsun.com>
97963
97964         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
97965         not CPPFLAGS, so that linking works correctly in IRIX.
97966
97967 1999-04-30  Paul Eggert  <eggert@twinsun.com>
97968
97969         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
97970
97971 1999-04-20  Paul Eggert  <eggert@twinsun.com>
97972
97973         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
97974         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
97975         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
97976         jm_AC_TYPE_UNSIGNED_LONG_LONG.
97977         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
97978
97979         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
97980
97981 1999-04-20  Jim Meyering  <meyering@ascend.com>
97982
97983         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
97984         AC_REPLACE xstroull if necessary.  From Paul Eggert.
97985         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
97986
97987 1999-04-18  Jim Meyering  <meyering@ascend.com>
97988
97989         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
97990         * m4/jm-macros.m4: Use it.
97991
97992 1999-04-06  Jim Meyering  <meyering@ascend.com>
97993
97994         * m4/strftime.m4: Remove test for %f.
97995
97996 1999-03-29  Jim Meyering  <meyering@ascend.com>
97997
97998         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
97999         superset of the AC_TYPE_* checks in the textutils, fileutils,
98000         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
98001         AC_TYPE_PID_T.
98002
98003 1999-03-28  Jim Meyering  <meyering@ascend.com>
98004
98005         * m4/jm-macros.m4: Define GNU_PACKAGE here.
98006         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
98007         replaced e.g., in the *.sh files of the sh-utils.
98008
98009 1999-03-20  Jim Meyering  <meyering@ascend.com>
98010
98011         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
98012         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
98013         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
98014
98015 1999-03-19  Jim Meyering  <meyering@ascend.com>
98016
98017         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
98018
98019 1999-03-12  Jim Meyering  <meyering@ascend.com>
98020
98021         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
98022
98023 1999-03-07  Jim Meyering  <meyering@ascend.com>
98024
98025         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
98026         declared.
98027
98028 1999-02-17  Jim Meyering  <meyering@ascend.com>
98029
98030         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
98031         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
98032
98033 1999-02-07  Jim Meyering  <meyering@ascend.com>
98034
98035         * m4/group-member.m4: New file -- extracted from sh-utils'
98036         configure.in.
98037
98038         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
98039         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
98040
98041 1999-02-06  Jim Meyering  <meyering@ascend.com>
98042
98043         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
98044         * m4/fnmatch.m4: Likewise.
98045         * m4/getgroups.m4: Likewise.
98046         * m4/lstat.m4: Likewise.
98047         * m4/malloc.m4: Likewise.
98048         * m4/putenv.m4: Likewise.
98049         * m4/realloc.m4: Likewise.
98050         * m4/regex.m4: Likewise.
98051         * m4/stat.m4: Likewise.
98052         * m4/strftime.m4: Likewise.
98053         Suggestion from Alain Magloire.
98054
98055         * m4/chown.m4: Use `.$ac_objext', not `.o'.
98056         * m4/fnmatch.m4: Likewise.
98057         * m4/getgroups.m4: Likewise.
98058         * m4/getline.m4: Likewise.
98059         * m4/lstat.m4: Likewise.
98060         * m4/malloc.m4: Likewise.
98061         * m4/memcmp.m4: Likewise.
98062         * m4/putenv.m4: Likewise.
98063         * m4/realloc.m4: Likewise.
98064         * m4/regex.m4: Likewise.
98065         * m4/stat.m4: Likewise.
98066         * m4/strftime.m4: Likewise.
98067         Suggestion from Alain Magloire.
98068
98069         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
98070         an argument.
98071
98072         * m4/regex.m4: Add a run-time Test for proper operation of
98073         re_compile_pattern.
98074
98075 1999-01-31  Jim Meyering  <meyering@ascend.com>
98076
98077         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
98078
98079 1999-01-30  Jim Meyering  <meyering@ascend.com>
98080
98081         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
98082
98083         * m4/jm-mktime.m4: Make this a wrapper around the official
98084         AM_FUNC_MKTIME rather than my private copy, now that the official one
98085         is up to date.
98086         * m4/mktime.m4: Remove file.
98087
98088         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
98089         * m4/uptime.m4: Likewise.
98090         * m4/uintmax_t.m4: Likewise.
98091
98092 1999-01-28  Jim Meyering  <meyering@ascend.com>
98093
98094         * m4/jm-macros.m4: Use jm_AFS.
98095         * m4/afs.m4: New file (from fileutils' configure.in).
98096
98097         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
98098         * m4/chown.m4: Likewise.
98099         * m4/d-ino.m4: Likewise.
98100         * m4/d-type.m4: Likewise.
98101         * m4/fnmatch.m4: Likewise.
98102         * m4/getgroups.m4: Likewise.
98103         * m4/gettext.m4: Likewise.
98104         * m4/jm-mktime.m4: Likewise.
98105         * m4/jm-winsz2.m4: Likewise.
98106         * m4/lcmessage.m4: Likewise.
98107         * m4/ls-mntd-fs.m4: Likewise.
98108         * m4/malloc.m4: Likewise.
98109         * m4/memcmp.m4: Likewise.
98110         * m4/putenv.m4: Likewise.
98111         * m4/realloc.m4: Likewise.
98112         * m4/st_mtim.m4: Likewise.
98113         * m4/strftime.m4: Likewise.
98114
98115 1999-01-16  Jim Meyering  <meyering@ascend.com>
98116
98117         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
98118         (ARGMATCH_DIE_DECL): Define.
98119
98120 1999-01-12  Jim Meyering  <meyering@ascend.com>
98121
98122         * m4/Makefile.am.in: Rewrite to avoid using fmt.
98123         Reported by Lars Hecking.
98124
98125 1999-01-10  Jim Meyering  <meyering@ascend.com>
98126
98127         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
98128         gross kludge.
98129         * m4/inttypes_h.m4: Likewise.
98130         * m4/lstat.m4: Likewise.
98131         * m4/malloc.m4: Likewise.
98132         * m4/readdir.m4: Likewise.
98133         * m4/realloc.m4: Likewise.
98134         * m4/st_dm_mode.m4: Likewise.
98135         * m4/stat.m4: Likewise.
98136         * m4/utimbuf.m4: Likewise.
98137         * m4/utimes.m4: Likewise.
98138
98139         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
98140         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
98141         comments in config.h.in are meaningful.
98142
98143         * m4/jm-macros.m4: Require autoconf-2.13 here.
98144
98145         * m4/regex.m4: By default, don't use the included regex.c on systems
98146         with glibc 2.  Suggestion from Uli Drepper.
98147
98148 1999-01-02  Jim Meyering  <meyering@ascend.com>
98149
98150         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
98151
98152 1998-12-18  Jim Meyering  <meyering@ascend.com>
98153
98154         * m4/Makefile.am.in (Makefile.am): Simplify rule.
98155         Based on a suggestion from Lars Hecking.
98156
98157 1998-11-16  Paul Eggert  <eggert@twinsun.com>
98158
98159         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
98160
98161 1998-11-16  Jim Meyering  <meyering@ascend.com>
98162
98163         * m4/lfs.m4: Double-quote the `uname...` expression.
98164
98165 1998-11-14  Jim Meyering  <meyering@ascend.com>
98166
98167         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
98168         * m4/stat.m4: Likewise.
98169
98170 1998-11-03  Jim Meyering  <meyering@ascend.com>
98171
98172         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
98173         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
98174
98175 1998-10-18  Jim Meyering  <meyering@ascend.com>
98176
98177         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
98178
98179 1998-10-17  Jim Meyering  <meyering@ascend.com>
98180
98181         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
98182         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
98183         calls for those previously hard-coded headers.  Instead, take a new
98184         parameter.
98185         (jm_CHECK_DECLARATIONS): Reflect interface change.
98186         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
98187         (jm_CHECK_DECL_LOCALTIME_R): New macro.
98188
98189         * m4/mktime.m4: Test for spring-forward gap before long-running test.
98190
98191 1998-10-14  Jim Meyering  <meyering@ascend.com>
98192
98193         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
98194         instead of "TZ=America/Vancouver".  From Paul Eggert.
98195
98196 1998-10-11  Jim Meyering  <meyering@ascend.com>
98197
98198         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
98199         This adds a test for a recently added compatibility fix for mktime.c.
98200         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
98201
98202 1998-09-27  Jim Meyering  <meyering@ascend.com>
98203
98204         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
98205
98206         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
98207         ../configure.in, including a change from Gordon Matzigkeit to allow
98208         cross-compiling for the Hurd.
98209
98210         * m4/glibc.m4: New file/macro to test for the GNU C Library
98211         versions 1 and 2.  From Gordon Matzigkeit.
98212         Indent.
98213
98214 1998-09-21  Jim Meyering  <meyering@ascend.com>
98215
98216         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
98217
98218 1998-08-18  Paul Eggert  <eggert@twinsun.com>
98219
98220         Port nanosecond-resolution times to UnixWare 2.1.2 and
98221         pedantic Solaris 2.6.
98222
98223         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
98224         AC_STRUCT_ST_MTIM.
98225         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
98226         Generate name of ns member, instead of just 1 or undef.
98227         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
98228
98229 1998-08-15  Jim Meyering  <meyering@ascend.com>
98230
98231         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
98232         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
98233         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
98234         instead of jm_TYPE_SSIZE_T.
98235
98236 1998-08-12  Jim Meyering  <meyering@ascend.com>
98237
98238         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
98239
98240 1998-08-02  Jim Meyering  <meyering@ascend.com>
98241
98242         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
98243         in acconfig.h manually.
98244
98245 1998-07-31  Paul Eggert  <eggert@twinsun.com>
98246
98247         * m4/st_mtim.m4: New file.
98248
98249 1998-07-28  Jim Meyering  <meyering@ascend.com>
98250
98251         * m4/utimes.m4: Undef stat.
98252
98253 1998-07-25  Jim Meyering  <meyering@ascend.com>
98254
98255         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
98256         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
98257
98258 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
98259
98260         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
98261         uid and gid actually remain unchanged.
98262
98263 1998-07-07  Jim Meyering  <meyering@ascend.com>
98264
98265         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
98266
98267 1998-07-04  Jim Meyering  <meyering@ascend.com>
98268
98269         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
98270         to prove that this macro can be used in packages without regex.c.
98271
98272 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
98273
98274         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
98275         is to be used.
98276
98277 1998-07-03  Jim Meyering  <meyering@ascend.com>
98278
98279         * m4/gettext.m4: Add -lintl if it's found to be necessary.
98280
98281         * m4/gettext.m4: New file -- from gettext-0.10.35.
98282         * m4/lcmessage.m4: Likewise.
98283         * m4/progtest.m4: Likewise.
98284
98285         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
98286         * m4/jm-macros.m4: Require the new macro.
98287
98288 1998-06-29  Jim Meyering  <meyering@ascend.com>
98289
98290         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
98291         for the definition of NGROUPS (used in a system header included
98292         by sys/mount.h).
98293
98294 1998-06-28  Jim Meyering  <meyering@ascend.com>
98295
98296         * m4/ls-mntd-fs.m4: New file.
98297         * m4/fstypename.m4: New file.
98298
98299         * m4/jm-macros.m4: Require the new macro.
98300         * m4/jm-glibc-io.m4: New file.
98301
98302 1998-05-19  Jim Meyering  <meyering@ascend.com>
98303
98304         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
98305         * m4/lchown.m4: New file.
98306
98307         * m4/Makefile.am.in: New file.
98308         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
98309
98310 1998-05-14  Jim Meyering  <meyering@ascend.com>
98311
98312         * m4/Makefile.am (EXTRA_DIST): Add them.
98313         * m4/jm-macros.m4: New file.
98314         * m4/utimbuf.m4: New file.
98315
98316 1998-05-12  Jim Meyering  <meyering@ascend.com>
98317
98318         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
98319
98320 1998-05-11  Jim Meyering  <meyering@ascend.com>
98321
98322         * m4/isc-posix.m4: New file.
98323
98324 1998-05-10  Jim Meyering  <meyering@ascend.com>
98325
98326         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
98327
98328 1998-05-09  Jim Meyering  <meyering@ascend.com>
98329
98330         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
98331         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
98332         with automake.
98333
98334         * m4/ssize_t.m4: New file.
98335         * m4/mktime.m4: Remove file -- the new automake has this now.
98336
98337 1998-04-26  Jim Meyering  <meyering@ascend.com>
98338
98339         * m4/assert.m4: New file.
98340         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
98341
98342 1998-04-05  Jim Meyering  <meyering@ascend.com>
98343
98344         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
98345         (jm_PREREQ): Use it here.
98346
98347 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
98348
98349         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
98350         in acconfig.h.
98351
98352 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
98353
98354         * m4/prereq.m4: New file.
98355         * m4/error.m4: New file.
98356         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
98357
98358 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
98359
98360         * m4/getline.m4: Don't set am_cv_func_working_getline before the
98361         cache-check for the same variable -- that defeated the purpose of
98362         the test; the test program was never run.  This was a problem only
98363         on systems with losing getline functions -- HP-UX 10.20 is one.
98364         Reported by Bjorn Helgaas.
98365
98366 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
98367
98368         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
98369
98370 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
98371
98372         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
98373
98374         * m4/const.m4: New file.  Use an initializer in this declaration
98375         typedef int charset[2]; const charset x;
98376         Reported by Bob Glickstein.
98377
98378 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
98379
98380         * m4/chown.m4: Fix reversed types on -1 args to chown.
98381         From Kaveh Ghazi.
98382
98383 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
98384
98385         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
98386         Add lseek and memchr.
98387
98388         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
98389         T.E.Dickey <dickey@clark.net> said that some older preprocessors
98390         have a 20-character limit on names.
98391
98392 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
98393
98394         * m4/inttypes_h.m4: New file.
98395         * m4/uintmax_t.m4: New file.
98396         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
98397
98398
98399         -----
98400
98401         Local Variables:
98402         coding: utf-8
98403         End:
98404
98405         Copyright (C) 1997-2012 Free Software Foundation, Inc.
98406
98407         Copying and distribution of this file, with or without
98408         modification, are permitted provided the copyright notice
98409         and this notice are preserved.